diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..ea59817
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,33 @@
+---
+name: 👾 Bug Report
+about: Report a bug or issue with the project.
+title: ''
+labels: 'bug'
+assignees: ''
+
+---
+
+### Description
+A clear and concise description of what the bug is.
+
+### Steps To Reproduce
+1. Log in...
+2. Ensure that...
+3. Allow a long period of inactivity to pass...
+4. Observe that...
+5. Attempt to log in...
+
+### Current Behavior
+- After the period of inactivity...
+- When the user tries to log in using another method...
+- This causes a bug due to...
+
+### Expected Behavior
+- After a long period of inactivity...
+- When a user logs in successfully...
+- This ensures that only...
+
+### Environment
+- Platform: PC
+- Node: v18.18.0
+- Browser: Chrome 126.0.6478.56
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..163c1c4
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,10 @@
+blank_issues_enabled: false
+issue_template:
+ - name: 👾 Bug Report
+ description: Report a bug or issue with the project.
+ labels: ["bug"]
+ template: bug_report.md
+ - name: 💡 Feature Request
+ description: Create a new ticket for a new feature request.
+ labels: ["enhancement"]
+ template: feature_request.md
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..a4b8175
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,27 @@
+---
+name: 💡 Feature Request
+about: Create a new ticket for a new feature request
+title: ''
+labels: 'enhancement'
+assignees: ''
+
+---
+
+### Expected Behavior
+Describe the expected behavior here.
+
+### Specifications
+As a `user`, I would like to `action` so that `reason`.
+
+**Features:**
+- describe feature details here.
+
+**Development Tasks:**
+- [ ] Task 1
+- [ ] Task 2
+
+### Dependencies
+List any dependencies that are required for this feature by providing links to the issues or repositories.
+
+### References
+List any references that are related to this feature request.
\ No newline at end of file
diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml
new file mode 100644
index 0000000..62cc37d
--- /dev/null
+++ b/.github/workflows/security.yml
@@ -0,0 +1,23 @@
+name: Security Review
+
+permissions:
+ pull-requests: write
+ contents: read
+
+on:
+ pull_request:
+
+jobs:
+ security:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ ref: ${{ github.event.pull_request.head.sha || github.sha }}
+ fetch-depth: 2
+
+ - uses: Portkey-Wallet/claude-code-security-review@main
+ with:
+ comment-pr: true
+ claude-api-key: ${{ secrets.CLAUDE_API_KEY }}
+ run-every-commit: true
diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml
new file mode 100644
index 0000000..da557f4
--- /dev/null
+++ b/.github/workflows/sonarqube.yaml
@@ -0,0 +1,46 @@
+on:
+ pull_request:
+ types: [opened, synchronize, reopened]
+
+name: PR Static Code Analysis
+jobs:
+ static-code-analysis:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Code Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '7.0'
+ - name: Create temporary global.json
+ run: echo '{"sdk":{"version":"7.0.x"}}' > ./global.json
+ - name: Install protobuf
+ run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
+ - name: Set up JDK 17
+ uses: actions/setup-java@v1
+ with:
+ java-version: 17
+ - name: Cache SonarQube packages
+ uses: actions/cache@v1
+ with:
+ path: ~/.sonar/cache
+ key: ${{ runner.os }}-sonar
+ restore-keys: ${{ runner.os }}-sonar
+ - name: Cache SonarQube scanner
+ id: cache-sonar-scanner
+ uses: actions/cache@v1
+ with:
+ path: ./.sonar/scanner
+ key: ${{ runner.os }}-sonar-scanner
+ restore-keys: ${{ runner.os }}-sonar-scanner
+ - name: Install SonarScanner for .NET
+ run: dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner
+ - name: Add .NET global tools to PATH
+ run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
+ - name: Begin SonarQube analysis
+ run: |
+ ./.sonar/scanner/dotnet-sonarscanner begin /k:"aelfscan-genesis-app" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
+ dotnet build
+ ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
\ No newline at end of file
diff --git a/.github/workflows/test-with-code-coverage.yml b/.github/workflows/test-with-code-coverage.yml
new file mode 100644
index 0000000..fdcee23
--- /dev/null
+++ b/.github/workflows/test-with-code-coverage.yml
@@ -0,0 +1,55 @@
+name: Test with code coverage
+
+on:
+ push:
+ branches:
+ - '**'
+
+env:
+ DOTNET_INSTALL_DIR: "./.dotnet"
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ permissions:
+ pull-requests: write
+ contents: write
+ services:
+ elasticsearch:
+ image: elasticsearch:7.17.0
+ ports:
+ - 9200:9200
+ options: -e="discovery.type=single-node" -e="xpack.security.enabled=false" --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Setup dotnet
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '8.0'
+ - name: Verify Elasticsearch connection
+ env:
+ ELASTIC_SEARCH_URL: http://127.0.0.1:${{ job.services.elasticsearch.ports[9200] }}
+ run: |
+ echo $ELASTIC_SEARCH_URL
+ curl -fsSL "$ELASTIC_SEARCH_URL/_cat/health?h=status"
+ - name: Install dependencies
+ run: dotnet restore --verbosity quiet
+
+ - name: Build
+ run: dotnet build --no-restore /clp:ErrorsOnly /p:GeneratePackageOnBuild=false --verbosity quiet
+
+ - name: Test
+ run: |
+ for name in `ls ./test/*.Tests/*.csproj | awk '{print $NF}'`;
+ do
+ dotnet test ${name} --no-restore --no-build --logger trx --settings CodeCoverage.runsettings --results-directory coverage --collect:"XPlat Code Coverage"
+ done
+
+ - name: Upload coverage reports to Codecov
+ uses: codecov/codecov-action@v4
+ with:
+ fail_ci_if_error: true
+ files: coverage/*/coverage.cobertura.xml
+ env:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
\ No newline at end of file
diff --git a/.idea/.idea.GenesisApp/.idea/.gitignore b/.idea/.idea.GenesisApp/.idea/.gitignore
new file mode 100644
index 0000000..45ab784
--- /dev/null
+++ b/.idea/.idea.GenesisApp/.idea/.gitignore
@@ -0,0 +1,13 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Rider ignored files
+/projectSettingsUpdater.xml
+/modules.xml
+/contentModel.xml
+/.idea.GenesisApp.iml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/CodeCoverage.runsettings b/CodeCoverage.runsettings
new file mode 100755
index 0000000..e810126
--- /dev/null
+++ b/CodeCoverage.runsettings
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+ cobertura
+ [xunit.*]*,[*Tests]*
+ **/test/**/*.cs,**/src/AElfScan.GenesisApp/Generated/*.*
+ Obsolete,GeneratedCodeAttribute
+ false
+
+
+
+
+
\ No newline at end of file
diff --git a/GenesisApp.sln b/GenesisApp.sln
new file mode 100644
index 0000000..296ba72
--- /dev/null
+++ b/GenesisApp.sln
@@ -0,0 +1,40 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29020.237
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{CA9AC87F-097E-4F15-8393-4BC07735A5B0}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{04DBDB01-70F4-4E06-B468-8F87850B22BE}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AElfScan.GenesisApp", "src\AElfScan.GenesisApp\AElfScan.GenesisApp.csproj", "{EEC6D30D-2A9F-4757-8BE0-6E6105185383}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AElfScan.GenesisApp.Tests", "test\AElfScan.GenesisApp.Tests\AElfScan.GenesisApp.Tests.csproj", "{EEC35B8E-028E-4B1B-A9A0-FE1B0F5C0CAE}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {EEC6D30D-2A9F-4757-8BE0-6E6105185383}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EEC6D30D-2A9F-4757-8BE0-6E6105185383}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EEC6D30D-2A9F-4757-8BE0-6E6105185383}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EEC6D30D-2A9F-4757-8BE0-6E6105185383}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EEC35B8E-028E-4B1B-A9A0-FE1B0F5C0CAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EEC35B8E-028E-4B1B-A9A0-FE1B0F5C0CAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EEC35B8E-028E-4B1B-A9A0-FE1B0F5C0CAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EEC35B8E-028E-4B1B-A9A0-FE1B0F5C0CAE}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {EEC6D30D-2A9F-4757-8BE0-6E6105185383} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
+ {EEC35B8E-028E-4B1B-A9A0-FE1B0F5C0CAE} = {04DBDB01-70F4-4E06-B468-8F87850B22BE}
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {28315BFD-90E7-4E14-A2EA-F3D23AF4126F}
+ EndGlobalSection
+EndGlobal
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..65f6113
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 AelfScanProject
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/NuGet.Config b/NuGet.Config
new file mode 100644
index 0000000..e2c8645
--- /dev/null
+++ b/NuGet.Config
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build.cake b/build.cake
new file mode 100755
index 0000000..c2fb031
--- /dev/null
+++ b/build.cake
@@ -0,0 +1,78 @@
+#tool nuget:?package=Codecov
+#addin nuget:?package=Cake.Codecov&version=0.8.0
+
+var target = Argument("target", "Default");
+var configuration = Argument("configuration", "Debug");
+var rootPath = "./";
+var srcPath = rootPath + "src/";
+var testPath = rootPath + "test/";
+var solution = rootPath + "GenesisApp.sln";
+
+Task("Clean")
+ .Description("clean up project cache")
+ .Does(() =>
+{
+ CleanDirectories(srcPath + "**/bin");
+ CleanDirectories(srcPath + "**/obj");
+ CleanDirectories(testPath + "**/bin");
+ CleanDirectories(testPath + "**/obj");
+});
+
+Task("Restore")
+ .Description("restore project dependencies")
+ .Does(() =>
+{
+ DotNetCoreRestore(solution, new DotNetCoreRestoreSettings
+ {
+ Verbosity = DotNetCoreVerbosity.Quiet,
+ Sources = new [] { "https://www.myget.org/F/aelf-project-dev/api/v3/index.json", "https://api.nuget.org/v3/index.json" }
+ });
+});
+Task("Build")
+ .Description("Compilation project")
+ .IsDependentOn("Clean")
+ .IsDependentOn("Restore")
+ .Does(() =>
+{
+ var buildSetting = new DotNetCoreBuildSettings{
+ NoRestore = true,
+ Configuration = configuration,
+ ArgumentCustomization = args => {
+ return args.Append("/clp:ErrorsOnly")
+ .Append("-v quiet");}
+ };
+
+ DotNetCoreBuild(solution, buildSetting);
+});
+
+Task("Test-with-Codecov")
+ .Description("operation tes")
+ .IsDependentOn("Build")
+ .Does(() =>
+{
+ var testSetting = new DotNetCoreTestSettings{
+ Configuration = configuration,
+ NoRestore = true,
+ NoBuild = true,
+ ArgumentCustomization = args => {
+ return args
+ .Append("--logger trx")
+ .Append("--settings CodeCoverage.runsettings")
+ .Append("--collect:\"XPlat Code Coverage\"");
+ }
+ };
+ var testProjects = GetFiles("./test/*.Tests/*.csproj");
+ var testProjectList = testProjects.OrderBy(p=>p.FullPath).ToList();
+ foreach(var testProject in testProjectList)
+ {
+ DotNetCoreTest(testProject.FullPath, testSetting);
+ }
+});
+
+Task("Upload-Coverage-Azure")
+ .Does(() =>
+{
+ Codecov("./CodeCoverage/Cobertura.xml","$CODECOV_TOKEN");
+});
+
+RunTarget(target);
diff --git a/build.config b/build.config
new file mode 100644
index 0000000..ab1c26d
--- /dev/null
+++ b/build.config
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+CAKE_VERSION=0.37.0
+DOTNET_VERSION=7.0.100
diff --git a/build.ps1 b/build.ps1
new file mode 100755
index 0000000..e48d09a
--- /dev/null
+++ b/build.ps1
@@ -0,0 +1,154 @@
+#!/usr/bin/env pwsh
+$DotNetInstallerUri = 'https://dot.net/v1/dotnet-install.ps1';
+$DotNetUnixInstallerUri = 'https://dot.net/v1/dotnet-install.sh'
+$DotNetChannel = 'LTS'
+$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
+
+[string] $CakeVersion = ''
+[string] $DotNetVersion= ''
+foreach($line in Get-Content (Join-Path $PSScriptRoot 'build.config'))
+{
+ if ($line -like 'CAKE_VERSION=*') {
+ $CakeVersion = $line.SubString(13)
+ }
+ elseif ($line -like 'DOTNET_VERSION=*') {
+ $DotNetVersion =$line.SubString(15)
+ }
+}
+
+
+if ([string]::IsNullOrEmpty($CakeVersion) -or [string]::IsNullOrEmpty($DotNetVersion)) {
+ 'Failed to parse Cake / .NET Core SDK Version'
+ exit 1
+}
+
+# Make sure tools folder exists
+$ToolPath = Join-Path $PSScriptRoot "tools"
+if (!(Test-Path $ToolPath)) {
+ Write-Verbose "Creating tools directory..."
+ New-Item -Path $ToolPath -Type Directory -Force | out-null
+}
+
+
+if ($PSVersionTable.PSEdition -ne 'Core') {
+ # Attempt to set highest encryption available for SecurityProtocol.
+ # PowerShell will not set this by default (until maybe .NET 4.6.x). This
+ # will typically produce a message for PowerShell v2 (just an info
+ # message though)
+ try {
+ # Set TLS 1.2 (3072), then TLS 1.1 (768), then TLS 1.0 (192), finally SSL 3.0 (48)
+ # Use integers because the enumeration values for TLS 1.2 and TLS 1.1 won't
+ # exist in .NET 4.0, even though they are addressable if .NET 4.5+ is
+ # installed (.NET 4.5 is an in-place upgrade).
+ [System.Net.ServicePointManager]::SecurityProtocol = 3072 -bor 768 -bor 192 -bor 48
+ } catch {
+ Write-Output 'Unable to set PowerShell to use TLS 1.2 and TLS 1.1 due to old .NET Framework installed. If you see underlying connection closed or trust errors, you may need to upgrade to .NET Framework 4.5+ and PowerShell v3'
+ }
+}
+
+###########################################################################
+# INSTALL .NET CORE CLI
+###########################################################################
+
+$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
+$env:DOTNET_CLI_TELEMETRY_OPTOUT=1
+$env:DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2
+
+
+Function Remove-PathVariable([string]$VariableToRemove)
+{
+ $SplitChar = ';'
+ if ($IsMacOS -or $IsLinux) {
+ $SplitChar = ':'
+ }
+
+ $path = [Environment]::GetEnvironmentVariable("PATH", "User")
+ if ($path -ne $null)
+ {
+ $newItems = $path.Split($SplitChar, [StringSplitOptions]::RemoveEmptyEntries) | Where-Object { "$($_)" -inotlike $VariableToRemove }
+ [Environment]::SetEnvironmentVariable("PATH", [System.String]::Join($SplitChar, $newItems), "User")
+ }
+
+ $path = [Environment]::GetEnvironmentVariable("PATH", "Process")
+ if ($path -ne $null)
+ {
+ $newItems = $path.Split($SplitChar, [StringSplitOptions]::RemoveEmptyEntries) | Where-Object { "$($_)" -inotlike $VariableToRemove }
+ [Environment]::SetEnvironmentVariable("PATH", [System.String]::Join($SplitChar, $newItems), "Process")
+ }
+}
+
+# Get .NET Core CLI path if installed.
+$FoundDotNetCliVersion = $null;
+if (Get-Command dotnet -ErrorAction SilentlyContinue) {
+ $FoundDotNetCliVersion = dotnet --version;
+}
+
+if($FoundDotNetCliVersion -ne $DotNetVersion) {
+ $InstallPath = Join-Path $PSScriptRoot ".dotnet"
+ if (!(Test-Path $InstallPath)) {
+ New-Item -Path $InstallPath -ItemType Directory -Force | Out-Null;
+ }
+
+ if ($IsMacOS -or $IsLinux) {
+ $ScriptPath = Join-Path $InstallPath 'dotnet-install.sh'
+ (New-Object System.Net.WebClient).DownloadFile($DotNetUnixInstallerUri, $ScriptPath);
+ & bash $ScriptPath --version "$DotNetVersion" --install-dir "$InstallPath" --channel "$DotNetChannel" --no-path
+
+ Remove-PathVariable "$InstallPath"
+ $env:PATH = "$($InstallPath):$env:PATH"
+ }
+ else {
+ $ScriptPath = Join-Path $InstallPath 'dotnet-install.ps1'
+ (New-Object System.Net.WebClient).DownloadFile($DotNetInstallerUri, $ScriptPath);
+ & $ScriptPath -Channel $DotNetChannel -Version $DotNetVersion -InstallDir $InstallPath;
+
+ Remove-PathVariable "$InstallPath"
+ $env:PATH = "$InstallPath;$env:PATH"
+ }
+ $env:DOTNET_ROOT=$InstallPath
+}
+
+###########################################################################
+# INSTALL CAKE
+###########################################################################
+
+# Make sure Cake has been installed.
+[string] $CakeExePath = ''
+[string] $CakeInstalledVersion = Get-Command dotnet-cake -ErrorAction SilentlyContinue | % {&$_.Source --version}
+
+if ($CakeInstalledVersion -eq $CakeVersion) {
+ # Cake found locally
+ $CakeExePath = (Get-Command dotnet-cake).Source
+}
+else {
+ $CakePath = [System.IO.Path]::Combine($ToolPath,'.store', 'cake.tool', $CakeVersion) # Old PowerShell versions Join-Path only supports one child path
+
+ $CakeExePath = (Get-ChildItem -Path $ToolPath -Filter "dotnet-cake*" -File| ForEach-Object FullName | Select-Object -First 1)
+
+
+ if ((!(Test-Path -Path $CakePath -PathType Container)) -or (!(Test-Path $CakeExePath -PathType Leaf))) {
+
+ if ((![string]::IsNullOrEmpty($CakeExePath)) -and (Test-Path $CakeExePath -PathType Leaf))
+ {
+ & dotnet tool uninstall --tool-path $ToolPath Cake.Tool
+ }
+
+ & dotnet tool install --tool-path $ToolPath --version $CakeVersion Cake.Tool
+ if ($LASTEXITCODE -ne 0)
+ {
+ 'Failed to install cake'
+ exit 1
+ }
+ $CakeExePath = (Get-ChildItem -Path $ToolPath -Filter "dotnet-cake*" -File| ForEach-Object FullName | Select-Object -First 1)
+ }
+}
+
+###########################################################################
+# RUN BUILD SCRIPT
+###########################################################################
+& "$CakeExePath" ./build.cake --bootstrap
+if ($LASTEXITCODE -eq 0)
+{
+ & "$CakeExePath" ./build.cake $args
+}
+exit $LASTEXITCODE
\ No newline at end of file
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..06bcee8
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,75 @@
+#!/usr/bin/env bash
+# Define varibles
+SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+source $SCRIPT_DIR/build.config
+TOOLS_DIR=$SCRIPT_DIR/tools
+CAKE_EXE=$TOOLS_DIR/dotnet-cake
+CAKE_PATH=$TOOLS_DIR/.store/cake.tool/$CAKE_VERSION
+
+if [ "$CAKE_VERSION" = "" ] || [ "$DOTNET_VERSION" = "" ]; then
+ echo "An error occured while parsing Cake / .NET Core SDK version."
+ exit 1
+fi
+
+# Make sure the tools folder exist.
+if [ ! -d "$TOOLS_DIR" ]; then
+ mkdir "$TOOLS_DIR"
+fi
+
+###########################################################################
+# INSTALL .NET CORE CLI
+###########################################################################
+
+export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
+export DOTNET_CLI_TELEMETRY_OPTOUT=1
+export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0
+export DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2
+
+DOTNET_INSTALLED_VERSION=$(dotnet --version 2>&1)
+
+if [ "$DOTNET_VERSION" != "$DOTNET_INSTALLED_VERSION" ]; then
+ echo "Installing .NET CLI..."
+ if [ ! -d "$SCRIPT_DIR/.dotnet" ]; then
+ mkdir "$SCRIPT_DIR/.dotnet"
+ fi
+ curl -Lsfo "$SCRIPT_DIR/.dotnet/dotnet-install.sh" https://dot.net/v1/dotnet-install.sh
+ bash "$SCRIPT_DIR/.dotnet/dotnet-install.sh" --version $DOTNET_VERSION --install-dir .dotnet --no-path
+ export PATH="$SCRIPT_DIR/.dotnet":$PATH
+ export DOTNET_ROOT="$SCRIPT_DIR/.dotnet"
+fi
+
+###########################################################################
+# INSTALL CAKE
+###########################################################################
+
+CAKE_INSTALLED_VERSION=$(dotnet-cake --version 2>&1)
+
+if [ "$CAKE_VERSION" != "$CAKE_INSTALLED_VERSION" ]; then
+ if [ ! -f "$CAKE_EXE" ] || [ ! -d "$CAKE_PATH" ]; then
+ if [ -f "$CAKE_EXE" ]; then
+ dotnet tool uninstall --tool-path $TOOLS_DIR Cake.Tool
+ fi
+
+ echo "Installing Cake $CAKE_VERSION..."
+ dotnet tool install --tool-path $TOOLS_DIR --version $CAKE_VERSION Cake.Tool
+ if [ $? -ne 0 ]; then
+ echo "An error occured while installing Cake."
+ exit 1
+ fi
+ fi
+
+ # Make sure that Cake has been installed.
+ if [ ! -f "$CAKE_EXE" ]; then
+ echo "Could not find Cake.exe at '$CAKE_EXE'."
+ exit 1
+ fi
+else
+ CAKE_EXE="dotnet-cake"
+fi
+
+###########################################################################
+# RUN BUILD SCRIPT
+###########################################################################
+
+# Start Cake
+(exec "$CAKE_EXE" build.cake --bootstrap) && (exec "$CAKE_EXE" build.cake "$@")
\ No newline at end of file
diff --git a/codecov.sh b/codecov.sh
new file mode 100755
index 0000000..6b97c5b
--- /dev/null
+++ b/codecov.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+TOKEN=$1
+rm -r ./test/*.Tests/TestResults
+rm -r CodeCoverage
+for name in `ls ./test/*.Tests/*.csproj | awk '{print $NF}'`;
+do
+ echo ${name}
+ dotnet test ${name} --logger trx --settings CodeCoverage.runsettings --collect:"XPlat Code Coverage"
+done
+reportgenerator /test/*/TestResults/*/coverage.cobertura.xml -reports:./test/*/TestResults/*/coverage.cobertura.xml -targetdir:./CodeCoverage -reporttypes:Cobertura -assemblyfilters:-xunit*
+codecov -f ./CodeCoverage/Cobertura.xml -t ${TOKEN}
\ No newline at end of file
diff --git a/codecov.yml b/codecov.yml
new file mode 100755
index 0000000..23be405
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,3 @@
+codecov:
+ notify:
+ after_n_builds: 1
\ No newline at end of file
diff --git a/scripts/elasticsearch-linux.sh b/scripts/elasticsearch-linux.sh
new file mode 100644
index 0000000..3b29595
--- /dev/null
+++ b/scripts/elasticsearch-linux.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.15.1-linux-x86_64.tar.gz
+tar xzvf elasticsearch-7.15.1-linux-x86_64.tar.gz
+cd elasticsearch-7.15.1/
+bin/elasticsearch -d
+sleep 30
+curl http://127.0.0.1:9200
diff --git a/scripts/elasticsearch-macOS.sh b/scripts/elasticsearch-macOS.sh
new file mode 100644
index 0000000..a039dfb
--- /dev/null
+++ b/scripts/elasticsearch-macOS.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.15.1-darwin-x86_64.tar.gz
+tar xzvf elasticsearch-7.15.1-darwin-x86_64.tar.gz
+cd elasticsearch-7.15.1/
+bin/elasticsearch -d
+sleep 30
diff --git a/scripts/elasticsearch-windows.ps1 b/scripts/elasticsearch-windows.ps1
new file mode 100644
index 0000000..c435a76
--- /dev/null
+++ b/scripts/elasticsearch-windows.ps1
@@ -0,0 +1,9 @@
+#!/usr/bin/env pwsh
+$WebClient = New-Object System.Net.WebClient
+$WebClient.DownloadFile("https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.15.1-windows-x86_64.zip","elasticsearch.zip")
+Expand-Archive -Path elasticsearch.zip -DestinationPath elasticsearch;
+cd elasticsearch/elasticsearch-7.15.1/
+.\bin\elasticsearch-service.bat install
+.\bin\elasticsearch-service.bat start
+sleep 30
+curl http://127.0.0.1:9200
diff --git a/src/AElfScan.GenesisApp/AElfScan.GenesisApp.csproj b/src/AElfScan.GenesisApp/AElfScan.GenesisApp.csproj
new file mode 100644
index 0000000..b4f69bd
--- /dev/null
+++ b/src/AElfScan.GenesisApp/AElfScan.GenesisApp.csproj
@@ -0,0 +1,11 @@
+
+
+
+ net8.0
+ enable
+
+
+
+
+
+
diff --git a/src/AElfScan.GenesisApp/Entities/ContractInfo.cs b/src/AElfScan.GenesisApp/Entities/ContractInfo.cs
new file mode 100644
index 0000000..67663a0
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Entities/ContractInfo.cs
@@ -0,0 +1,17 @@
+using AeFinder.Sdk.Entities;
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.GenesisApp.Entities;
+
+public class ContractInfo : AeFinderEntity, IAeFinderEntity
+{
+ [Keyword] public string Address { get; set; }
+ [Keyword] public string CodeHash { get; set; }
+ [Keyword] public string Author { get; set; }
+ public int Version { get; set; }
+ [Keyword] public string NameHash { get; set; }
+ [Keyword] public string ContractVersion { get; set; }
+ public int ContractCategory { get; set; }
+ public ContractType ContractType { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Entities/ContractOperationType.cs b/src/AElfScan.GenesisApp/Entities/ContractOperationType.cs
new file mode 100644
index 0000000..28a8f7e
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Entities/ContractOperationType.cs
@@ -0,0 +1,8 @@
+namespace AElfScan.GenesisApp.Entities;
+
+public enum ContractOperationType
+{
+ DeployContract,
+ UpdateContract,
+ SetAuthor
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Entities/ContractProposeInfo.cs b/src/AElfScan.GenesisApp/Entities/ContractProposeInfo.cs
new file mode 100644
index 0000000..223bc83
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Entities/ContractProposeInfo.cs
@@ -0,0 +1,12 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.GenesisApp.Entities;
+
+public class ContractProposeInfo : AeFinderEntity, IAeFinderEntity
+{
+ [Keyword]
+ public string ProposedContractInputHash { get; set; }
+ [Keyword]
+ public string Proposer { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Entities/ContractRecord.cs b/src/AElfScan.GenesisApp/Entities/ContractRecord.cs
new file mode 100644
index 0000000..42d0971
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Entities/ContractRecord.cs
@@ -0,0 +1,14 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.GenesisApp.Entities;
+
+public class ContractRecord : AeFinderEntity, IAeFinderEntity
+{
+ public ContractOperationType OperationType { get; set; }
+ [Keyword]
+ public string Operator { get; set; }
+ [Keyword]
+ public string TransactionId { get; set; }
+ public ContractInfo ContractInfo { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Entities/ContractRegistration.cs b/src/AElfScan.GenesisApp/Entities/ContractRegistration.cs
new file mode 100644
index 0000000..e629033
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Entities/ContractRegistration.cs
@@ -0,0 +1,16 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.GenesisApp.Entities;
+
+public class ContractRegistration : AeFinderEntity, IAeFinderEntity
+{
+ [Keyword]
+ public string CodeHash { get; set; }
+ [Text(Index = false)]
+ public string Code { get; set; }
+ [Keyword]
+ public string ProposedContractInputHash { get; set; }
+ public int ContractCategory { get; set; }
+ public ContractType ContractType { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Entities/ContractType.cs b/src/AElfScan.GenesisApp/Entities/ContractType.cs
new file mode 100644
index 0000000..61ef390
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Entities/ContractType.cs
@@ -0,0 +1,7 @@
+namespace AElfScan.GenesisApp.Entities;
+
+public enum ContractType
+{
+ SystemContract,
+ UserContract
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Generated/Acs0.c.cs b/src/AElfScan.GenesisApp/Generated/Acs0.c.cs
new file mode 100644
index 0000000..5738f5b
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Generated/Acs0.c.cs
@@ -0,0 +1,140 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: acs0.proto
+//
+// Original file comments:
+// *
+// AElf Standards ACS0(Contract Deployment Standard)
+//
+// Used to manage the deployment and update of contracts.
+#pragma warning disable 0414, 1591
+#region Designer generated code
+
+using System.Collections.Generic;
+using aelf = global::AElf.CSharp.Core;
+
+namespace AElf.Standards.ACS0 {
+
+ #region Events
+ public partial class ContractProposed : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public ContractProposed GetNonIndexed()
+ {
+ return new ContractProposed
+ {
+ ProposedContractInputHash = ProposedContractInputHash,
+ };
+ }
+ }
+
+ public partial class ContractDeployed : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new ContractDeployed
+ {
+ Author = Author
+ },
+ new ContractDeployed
+ {
+ CodeHash = CodeHash
+ },
+ };
+ }
+
+ public ContractDeployed GetNonIndexed()
+ {
+ return new ContractDeployed
+ {
+ Address = Address,
+ Version = Version,
+ Name = Name,
+ ContractVersion = ContractVersion,
+ Deployer = Deployer,
+ };
+ }
+ }
+
+ public partial class CodeCheckRequired : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public CodeCheckRequired GetNonIndexed()
+ {
+ return new CodeCheckRequired
+ {
+ Code = Code,
+ ProposedContractInputHash = ProposedContractInputHash,
+ Category = Category,
+ IsSystemContract = IsSystemContract,
+ IsUserContract = IsUserContract,
+ };
+ }
+ }
+
+ public partial class CodeUpdated : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new CodeUpdated
+ {
+ Address = Address
+ },
+ };
+ }
+
+ public CodeUpdated GetNonIndexed()
+ {
+ return new CodeUpdated
+ {
+ OldCodeHash = OldCodeHash,
+ NewCodeHash = NewCodeHash,
+ Version = Version,
+ ContractVersion = ContractVersion,
+ };
+ }
+ }
+
+ public partial class AuthorUpdated : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new AuthorUpdated
+ {
+ Address = Address
+ },
+ };
+ }
+
+ public AuthorUpdated GetNonIndexed()
+ {
+ return new AuthorUpdated
+ {
+ OldAuthor = OldAuthor,
+ NewAuthor = NewAuthor,
+ };
+ }
+ }
+
+ #endregion
+}
+#endregion
+
diff --git a/src/AElfScan.GenesisApp/Generated/Acs0.g.cs b/src/AElfScan.GenesisApp/Generated/Acs0.g.cs
new file mode 100644
index 0000000..385099a
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Generated/Acs0.g.cs
@@ -0,0 +1,6353 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: acs0.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace AElf.Standards.ACS0 {
+
+ /// Holder for reflection information generated from acs0.proto
+ public static partial class Acs0Reflection {
+
+ #region Descriptor
+ /// File descriptor for acs0.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static Acs0Reflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CgphY3MwLnByb3RvEgRhY3MwGg9hZWxmL2NvcmUucHJvdG8aEmFlbGYvb3B0",
+ "aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGh5nb29n",
+ "bGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8i9wEKDENvbnRyYWN0SW5mbxIV",
+ "Cg1zZXJpYWxfbnVtYmVyGAEgASgDEh0KBmF1dGhvchgCIAEoCzINLmFlbGYu",
+ "QWRkcmVzcxIQCghjYXRlZ29yeRgDIAEoERIdCgljb2RlX2hhc2gYBCABKAsy",
+ "Ci5hZWxmLkhhc2gSGgoSaXNfc3lzdGVtX2NvbnRyYWN0GAUgASgIEg8KB3Zl",
+ "cnNpb24YBiABKAUSGAoQY29udHJhY3RfdmVyc2lvbhgHIAEoCRIYChBpc191",
+ "c2VyX2NvbnRyYWN0GAggASgIEh8KCGRlcGxveWVyGAkgASgLMg0uYWVsZi5B",
+ "ZGRyZXNzIm4KF0NvbnRyYWN0RGVwbG95bWVudElucHV0EhAKCGNhdGVnb3J5",
+ "GAEgASgREgwKBGNvZGUYAiABKAwSMwoSY29udHJhY3Rfb3BlcmF0aW9uGAMg",
+ "ASgLMhcuYWNzMC5Db250cmFjdE9wZXJhdGlvbiJXChtVc2VyQ29udHJhY3RE",
+ "ZXBsb3ltZW50SW5wdXQSEAoIY2F0ZWdvcnkYASABKBESDAoEY29kZRgCIAEo",
+ "DBIYCgRzYWx0GAMgASgLMgouYWVsZi5IYXNoIkcKF1VzZXJDb250cmFjdFVw",
+ "ZGF0ZUlucHV0Eh4KB2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3MSDAoE",
+ "Y29kZRgCIAEoDCL7AgodU3lzdGVtQ29udHJhY3REZXBsb3ltZW50SW5wdXQS",
+ "EAoIY2F0ZWdvcnkYASABKBESDAoEY29kZRgCIAEoDBIYCgRuYW1lGAMgASgL",
+ "MgouYWVsZi5IYXNoEmkKHHRyYW5zYWN0aW9uX21ldGhvZF9jYWxsX2xpc3QY",
+ "BCABKAsyQy5hY3MwLlN5c3RlbUNvbnRyYWN0RGVwbG95bWVudElucHV0LlN5",
+ "c3RlbVRyYW5zYWN0aW9uTWV0aG9kQ2FsbExpc3QaQgobU3lzdGVtVHJhbnNh",
+ "Y3Rpb25NZXRob2RDYWxsEhMKC21ldGhvZF9uYW1lGAEgASgJEg4KBnBhcmFt",
+ "cxgCIAEoDBpxCh9TeXN0ZW1UcmFuc2FjdGlvbk1ldGhvZENhbGxMaXN0Ek4K",
+ "BXZhbHVlGAEgAygLMj8uYWNzMC5TeXN0ZW1Db250cmFjdERlcGxveW1lbnRJ",
+ "bnB1dC5TeXN0ZW1UcmFuc2FjdGlvbk1ldGhvZENhbGwieAoTQ29udHJhY3RV",
+ "cGRhdGVJbnB1dBIeCgdhZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRyZXNzEgwK",
+ "BGNvZGUYAiABKAwSMwoSY29udHJhY3Rfb3BlcmF0aW9uGAMgASgLMhcuYWNz",
+ "MC5Db250cmFjdE9wZXJhdGlvbiLTAQoWQ29udHJhY3RDb2RlQ2hlY2tJbnB1",
+ "dBIWCg5jb250cmFjdF9pbnB1dBgBIAEoDBIeChZpc19jb250cmFjdF9kZXBs",
+ "b3ltZW50GAIgASgIEiEKGWNvZGVfY2hlY2tfcmVsZWFzZV9tZXRob2QYAyAB",
+ "KAkSMAoccHJvcG9zZWRfY29udHJhY3RfaW5wdXRfaGFzaBgEIAEoCzIKLmFl",
+ "bGYuSGFzaBIQCghjYXRlZ29yeRgFIAEoERIaChJpc19zeXN0ZW1fY29udHJh",
+ "Y3QYBiABKAgiSgoQQ29udHJhY3RQcm9wb3NlZBIwChxwcm9wb3NlZF9jb250",
+ "cmFjdF9pbnB1dF9oYXNoGAEgASgLMgouYWVsZi5IYXNoOgSguxgBIuoBChBD",
+ "b250cmFjdERlcGxveWVkEiQKBmF1dGhvchgBIAEoCzINLmFlbGYuQWRkcmVz",
+ "c0IFiI/1AQESJAoJY29kZV9oYXNoGAIgASgLMgouYWVsZi5IYXNoQgWIj/UB",
+ "ARIeCgdhZGRyZXNzGAMgASgLMg0uYWVsZi5BZGRyZXNzEg8KB3ZlcnNpb24Y",
+ "BCABKAUSGAoETmFtZRgFIAEoCzIKLmFlbGYuSGFzaBIYChBjb250cmFjdF92",
+ "ZXJzaW9uGAYgASgJEh8KCGRlcGxveWVyGAcgASgLMg0uYWVsZi5BZGRyZXNz",
+ "OgSguxgBIqEBChFDb2RlQ2hlY2tSZXF1aXJlZBIMCgRjb2RlGAEgASgMEjAK",
+ "HHByb3Bvc2VkX2NvbnRyYWN0X2lucHV0X2hhc2gYAiABKAsyCi5hZWxmLkhh",
+ "c2gSEAoIY2F0ZWdvcnkYAyABKBESGgoSaXNfc3lzdGVtX2NvbnRyYWN0GAQg",
+ "ASgIEhgKEGlzX3VzZXJfY29udHJhY3QYBSABKAg6BKC7GAEiqwEKC0NvZGVV",
+ "cGRhdGVkEiUKB2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEB",
+ "EiEKDW9sZF9jb2RlX2hhc2gYAiABKAsyCi5hZWxmLkhhc2gSIQoNbmV3X2Nv",
+ "ZGVfaGFzaBgDIAEoCzIKLmFlbGYuSGFzaBIPCgd2ZXJzaW9uGAQgASgFEhgK",
+ "EGNvbnRyYWN0X3ZlcnNpb24YBSABKAk6BKC7GAEiggEKDUF1dGhvclVwZGF0",
+ "ZWQSJQoHYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzc0IFiI/1AQESIQoK",
+ "b2xkX2F1dGhvchgCIAEoCzINLmFlbGYuQWRkcmVzcxIhCgpuZXdfYXV0aG9y",
+ "GAMgASgLMg0uYWVsZi5BZGRyZXNzOgSguxgBInMKIlZhbGlkYXRlU3lzdGVt",
+ "Q29udHJhY3RBZGRyZXNzSW5wdXQSLQoZc3lzdGVtX2NvbnRyYWN0X2hhc2hf",
+ "bmFtZRgBIAEoCzIKLmFlbGYuSGFzaBIeCgdhZGRyZXNzGAIgASgLMg0uYWVs",
+ "Zi5BZGRyZXNzImkKFFJlbGVhc2VDb250cmFjdElucHV0Eh8KC3Byb3Bvc2Fs",
+ "X2lkGAEgASgLMgouYWVsZi5IYXNoEjAKHHByb3Bvc2VkX2NvbnRyYWN0X2lu",
+ "cHV0X2hhc2gYAiABKAsyCi5hZWxmLkhhc2giMQoUQ29udHJhY3RDb2RlSGFz",
+ "aExpc3QSGQoFdmFsdWUYASADKAsyCi5hZWxmLkhhc2gilAEKE0NvbnRyYWN0",
+ "Q29kZUhhc2hNYXASMwoFdmFsdWUYASADKAsyJC5hY3MwLkNvbnRyYWN0Q29k",
+ "ZUhhc2hNYXAuVmFsdWVFbnRyeRpICgpWYWx1ZUVudHJ5EgsKA2tleRgBIAEo",
+ "AxIpCgV2YWx1ZRgCIAEoCzIaLmFjczAuQ29udHJhY3RDb2RlSGFzaExpc3Q6",
+ "AjgBImQKFlNldENvbnRyYWN0QXV0aG9ySW5wdXQSJwoQY29udHJhY3RfYWRk",
+ "cmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxIhCgpuZXdfYXV0aG9yGAIgASgL",
+ "Mg0uYWVsZi5BZGRyZXNzIj4KHURlcGxveVVzZXJTbWFydENvbnRyYWN0T3V0",
+ "cHV0Eh0KCWNvZGVfaGFzaBgBIAEoCzIKLmFlbGYuSGFzaCKkAQoRQ29udHJh",
+ "Y3RPcGVyYXRpb24SEAoIY2hhaW5faWQYASABKAUSHQoJY29kZV9oYXNoGAIg",
+ "ASgLMgouYWVsZi5IYXNoEh8KCGRlcGxveWVyGAMgASgLMg0uYWVsZi5BZGRy",
+ "ZXNzEhgKBHNhbHQYBCABKAsyCi5hZWxmLkhhc2gSDwoHdmVyc2lvbhgFIAEo",
+ "BRISCglzaWduYXR1cmUYkE4gASgMMsMQCgRBQ1MwElEKGURlcGxveVN5c3Rl",
+ "bVNtYXJ0Q29udHJhY3QSIy5hY3MwLlN5c3RlbUNvbnRyYWN0RGVwbG95bWVu",
+ "dElucHV0Gg0uYWVsZi5BZGRyZXNzIgASRQoTRGVwbG95U21hcnRDb250cmFj",
+ "dBIdLmFjczAuQ29udHJhY3REZXBsb3ltZW50SW5wdXQaDS5hZWxmLkFkZHJl",
+ "c3MiABJBChNVcGRhdGVTbWFydENvbnRyYWN0EhkuYWNzMC5Db250cmFjdFVw",
+ "ZGF0ZUlucHV0Gg0uYWVsZi5BZGRyZXNzIgASQQoSUHJvcG9zZU5ld0NvbnRy",
+ "YWN0Eh0uYWNzMC5Db250cmFjdERlcGxveW1lbnRJbnB1dBoKLmFlbGYuSGFz",
+ "aCIAEkYKGFByb3Bvc2VDb250cmFjdENvZGVDaGVjaxIcLmFjczAuQ29udHJh",
+ "Y3RDb2RlQ2hlY2tJbnB1dBoKLmFlbGYuSGFzaCIAEkAKFVByb3Bvc2VVcGRh",
+ "dGVDb250cmFjdBIZLmFjczAuQ29udHJhY3RVcGRhdGVJbnB1dBoKLmFlbGYu",
+ "SGFzaCIAEk8KF1JlbGVhc2VBcHByb3ZlZENvbnRyYWN0EhouYWNzMC5SZWxl",
+ "YXNlQ29udHJhY3RJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElIK",
+ "GlJlbGVhc2VDb2RlQ2hlY2tlZENvbnRyYWN0EhouYWNzMC5SZWxlYXNlQ29u",
+ "dHJhY3RJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEmMKF0RlcGxv",
+ "eVVzZXJTbWFydENvbnRyYWN0EiEuYWNzMC5Vc2VyQ29udHJhY3REZXBsb3lt",
+ "ZW50SW5wdXQaIy5hY3MwLkRlcGxveVVzZXJTbWFydENvbnRyYWN0T3V0cHV0",
+ "IgASUgoXVXBkYXRlVXNlclNtYXJ0Q29udHJhY3QSHS5hY3MwLlVzZXJDb250",
+ "cmFjdFVwZGF0ZUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASWAog",
+ "UmVsZWFzZUFwcHJvdmVkVXNlclNtYXJ0Q29udHJhY3QSGi5hY3MwLlJlbGVh",
+ "c2VDb250cmFjdElucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASVAoe",
+ "UGVyZm9ybURlcGxveVVzZXJTbWFydENvbnRyYWN0EiEuYWNzMC5Vc2VyQ29u",
+ "dHJhY3REZXBsb3ltZW50SW5wdXQaDS5hZWxmLkFkZHJlc3MiABJZCh5QZXJm",
+ "b3JtVXBkYXRlVXNlclNtYXJ0Q29udHJhY3QSHS5hY3MwLlVzZXJDb250cmFj",
+ "dFVwZGF0ZUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASSwoRU2V0",
+ "Q29udHJhY3RBdXRob3ISHC5hY3MwLlNldENvbnRyYWN0QXV0aG9ySW5wdXQa",
+ "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJjCh1WYWxpZGF0ZVN5c3RlbUNv",
+ "bnRyYWN0QWRkcmVzcxIoLmFjczAuVmFsaWRhdGVTeXN0ZW1Db250cmFjdEFk",
+ "ZHJlc3NJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElgKIFNldENv",
+ "bnRyYWN0UHJvcG9zZXJSZXF1aXJlZFN0YXRlEhouZ29vZ2xlLnByb3RvYnVm",
+ "LkJvb2xWYWx1ZRoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjQKCVNldFNp",
+ "Z25lchINLmFlbGYuQWRkcmVzcxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIA",
+ "EkAKDFJlbW92ZVNpZ25lchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoWLmdv",
+ "b2dsZS5wcm90b2J1Zi5FbXB0eSIAElkKG0N1cnJlbnRDb250cmFjdFNlcmlh",
+ "bE51bWJlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRobLmdvb2dsZS5wcm90",
+ "b2J1Zi5JbnQ2NFZhbHVlIgWIifcBARI7Cg9HZXRDb250cmFjdEluZm8SDS5h",
+ "ZWxmLkFkZHJlc3MaEi5hY3MwLkNvbnRyYWN0SW5mbyIFiIn3AQESOAoRR2V0",
+ "Q29udHJhY3RBdXRob3ISDS5hZWxmLkFkZHJlc3MaDS5hZWxmLkFkZHJlc3Mi",
+ "BYiJ9wEBEjMKD0dldENvbnRyYWN0SGFzaBINLmFlbGYuQWRkcmVzcxoKLmFl",
+ "bGYuSGFzaCIFiIn3AQESPAoYR2V0Q29udHJhY3RBZGRyZXNzQnlOYW1lEgou",
+ "YWVsZi5IYXNoGg0uYWVsZi5BZGRyZXNzIgWIifcBARJeCiVHZXRTbWFydENv",
+ "bnRyYWN0UmVnaXN0cmF0aW9uQnlBZGRyZXNzEg0uYWVsZi5BZGRyZXNzGh8u",
+ "YWVsZi5TbWFydENvbnRyYWN0UmVnaXN0cmF0aW9uIgWIifcBARJcCiZHZXRT",
+ "bWFydENvbnRyYWN0UmVnaXN0cmF0aW9uQnlDb2RlSGFzaBIKLmFlbGYuSGFz",
+ "aBofLmFlbGYuU21hcnRDb250cmFjdFJlZ2lzdHJhdGlvbiIFiIn3AQESbwot",
+ "R2V0Q29udHJhY3RDb2RlSGFzaExpc3RCeURlcGxveWluZ0Jsb2NrSGVpZ2h0",
+ "EhsuZ29vZ2xlLnByb3RvYnVmLkludDY0VmFsdWUaGi5hY3MwLkNvbnRyYWN0",
+ "Q29kZUhhc2hMaXN0IgWIifcBARIwCglHZXRTaWduZXISDS5hZWxmLkFkZHJl",
+ "c3MaDS5hZWxmLkFkZHJlc3MiBYiJ9wEBQhaqAhNBRWxmLlN0YW5kYXJkcy5B",
+ "Q1MwUABiBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractInfo), global::AElf.Standards.ACS0.ContractInfo.Parser, new[]{ "SerialNumber", "Author", "Category", "CodeHash", "IsSystemContract", "Version", "ContractVersion", "IsUserContract", "Deployer" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractDeploymentInput), global::AElf.Standards.ACS0.ContractDeploymentInput.Parser, new[]{ "Category", "Code", "ContractOperation" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.UserContractDeploymentInput), global::AElf.Standards.ACS0.UserContractDeploymentInput.Parser, new[]{ "Category", "Code", "Salt" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.UserContractUpdateInput), global::AElf.Standards.ACS0.UserContractUpdateInput.Parser, new[]{ "Address", "Code" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SystemContractDeploymentInput), global::AElf.Standards.ACS0.SystemContractDeploymentInput.Parser, new[]{ "Category", "Code", "Name", "TransactionMethodCallList" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCall), global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCall.Parser, new[]{ "MethodName", "Params" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList), global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList.Parser, new[]{ "Value" }, null, null, null, null)}),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractUpdateInput), global::AElf.Standards.ACS0.ContractUpdateInput.Parser, new[]{ "Address", "Code", "ContractOperation" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractCodeCheckInput), global::AElf.Standards.ACS0.ContractCodeCheckInput.Parser, new[]{ "ContractInput", "IsContractDeployment", "CodeCheckReleaseMethod", "ProposedContractInputHash", "Category", "IsSystemContract" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractProposed), global::AElf.Standards.ACS0.ContractProposed.Parser, new[]{ "ProposedContractInputHash" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractDeployed), global::AElf.Standards.ACS0.ContractDeployed.Parser, new[]{ "Author", "CodeHash", "Address", "Version", "Name", "ContractVersion", "Deployer" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.CodeCheckRequired), global::AElf.Standards.ACS0.CodeCheckRequired.Parser, new[]{ "Code", "ProposedContractInputHash", "Category", "IsSystemContract", "IsUserContract" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.CodeUpdated), global::AElf.Standards.ACS0.CodeUpdated.Parser, new[]{ "Address", "OldCodeHash", "NewCodeHash", "Version", "ContractVersion" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.AuthorUpdated), global::AElf.Standards.ACS0.AuthorUpdated.Parser, new[]{ "Address", "OldAuthor", "NewAuthor" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ValidateSystemContractAddressInput), global::AElf.Standards.ACS0.ValidateSystemContractAddressInput.Parser, new[]{ "SystemContractHashName", "Address" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ReleaseContractInput), global::AElf.Standards.ACS0.ReleaseContractInput.Parser, new[]{ "ProposalId", "ProposedContractInputHash" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractCodeHashList), global::AElf.Standards.ACS0.ContractCodeHashList.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractCodeHashMap), global::AElf.Standards.ACS0.ContractCodeHashMap.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SetContractAuthorInput), global::AElf.Standards.ACS0.SetContractAuthorInput.Parser, new[]{ "ContractAddress", "NewAuthor" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.DeployUserSmartContractOutput), global::AElf.Standards.ACS0.DeployUserSmartContractOutput.Parser, new[]{ "CodeHash" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractOperation), global::AElf.Standards.ACS0.ContractOperation.Parser, new[]{ "ChainId", "CodeHash", "Deployer", "Salt", "Version", "Signature" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class ContractInfo : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractInfo());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractInfo() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractInfo(ContractInfo other) : this() {
+ serialNumber_ = other.serialNumber_;
+ author_ = other.author_ != null ? other.author_.Clone() : null;
+ category_ = other.category_;
+ codeHash_ = other.codeHash_ != null ? other.codeHash_.Clone() : null;
+ isSystemContract_ = other.isSystemContract_;
+ version_ = other.version_;
+ contractVersion_ = other.contractVersion_;
+ isUserContract_ = other.isUserContract_;
+ deployer_ = other.deployer_ != null ? other.deployer_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractInfo Clone() {
+ return new ContractInfo(this);
+ }
+
+ /// Field number for the "serial_number" field.
+ public const int SerialNumberFieldNumber = 1;
+ private long serialNumber_;
+ ///
+ /// The serial number of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long SerialNumber {
+ get { return serialNumber_; }
+ set {
+ serialNumber_ = value;
+ }
+ }
+
+ /// Field number for the "author" field.
+ public const int AuthorFieldNumber = 2;
+ private global::AElf.Types.Address author_;
+ ///
+ /// The author of the contract, this is the person who deployed the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Author {
+ get { return author_; }
+ set {
+ author_ = value;
+ }
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 3;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "code_hash" field.
+ public const int CodeHashFieldNumber = 4;
+ private global::AElf.Types.Hash codeHash_;
+ ///
+ /// The hash of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash CodeHash {
+ get { return codeHash_; }
+ set {
+ codeHash_ = value;
+ }
+ }
+
+ /// Field number for the "is_system_contract" field.
+ public const int IsSystemContractFieldNumber = 5;
+ private bool isSystemContract_;
+ ///
+ /// Whether it is a system contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsSystemContract {
+ get { return isSystemContract_; }
+ set {
+ isSystemContract_ = value;
+ }
+ }
+
+ /// Field number for the "version" field.
+ public const int VersionFieldNumber = 6;
+ private int version_;
+ ///
+ /// The version of the current contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Version {
+ get { return version_; }
+ set {
+ version_ = value;
+ }
+ }
+
+ /// Field number for the "contract_version" field.
+ public const int ContractVersionFieldNumber = 7;
+ private string contractVersion_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string ContractVersion {
+ get { return contractVersion_; }
+ set {
+ contractVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "is_user_contract" field.
+ public const int IsUserContractFieldNumber = 8;
+ private bool isUserContract_;
+ ///
+ /// Indicates if the contract is the user contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsUserContract {
+ get { return isUserContract_; }
+ set {
+ isUserContract_ = value;
+ }
+ }
+
+ /// Field number for the "deployer" field.
+ public const int DeployerFieldNumber = 9;
+ private global::AElf.Types.Address deployer_;
+ ///
+ /// The address for deploying the contract
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Deployer {
+ get { return deployer_; }
+ set {
+ deployer_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractInfo);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractInfo other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (SerialNumber != other.SerialNumber) return false;
+ if (!object.Equals(Author, other.Author)) return false;
+ if (Category != other.Category) return false;
+ if (!object.Equals(CodeHash, other.CodeHash)) return false;
+ if (IsSystemContract != other.IsSystemContract) return false;
+ if (Version != other.Version) return false;
+ if (ContractVersion != other.ContractVersion) return false;
+ if (IsUserContract != other.IsUserContract) return false;
+ if (!object.Equals(Deployer, other.Deployer)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (SerialNumber != 0L) hash ^= SerialNumber.GetHashCode();
+ if (author_ != null) hash ^= Author.GetHashCode();
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (codeHash_ != null) hash ^= CodeHash.GetHashCode();
+ if (IsSystemContract != false) hash ^= IsSystemContract.GetHashCode();
+ if (Version != 0) hash ^= Version.GetHashCode();
+ if (ContractVersion.Length != 0) hash ^= ContractVersion.GetHashCode();
+ if (IsUserContract != false) hash ^= IsUserContract.GetHashCode();
+ if (deployer_ != null) hash ^= Deployer.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (SerialNumber != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(SerialNumber);
+ }
+ if (author_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Author);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(24);
+ output.WriteSInt32(Category);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(CodeHash);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(IsSystemContract);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(ContractVersion);
+ }
+ if (IsUserContract != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(IsUserContract);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(74);
+ output.WriteMessage(Deployer);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (SerialNumber != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(SerialNumber);
+ }
+ if (author_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Author);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(24);
+ output.WriteSInt32(Category);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(CodeHash);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(IsSystemContract);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(ContractVersion);
+ }
+ if (IsUserContract != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(IsUserContract);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(74);
+ output.WriteMessage(Deployer);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (SerialNumber != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(SerialNumber);
+ }
+ if (author_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author);
+ }
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (codeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(CodeHash);
+ }
+ if (IsSystemContract != false) {
+ size += 1 + 1;
+ }
+ if (Version != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ContractVersion);
+ }
+ if (IsUserContract != false) {
+ size += 1 + 1;
+ }
+ if (deployer_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deployer);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractInfo other) {
+ if (other == null) {
+ return;
+ }
+ if (other.SerialNumber != 0L) {
+ SerialNumber = other.SerialNumber;
+ }
+ if (other.author_ != null) {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ Author.MergeFrom(other.Author);
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.codeHash_ != null) {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ CodeHash.MergeFrom(other.CodeHash);
+ }
+ if (other.IsSystemContract != false) {
+ IsSystemContract = other.IsSystemContract;
+ }
+ if (other.Version != 0) {
+ Version = other.Version;
+ }
+ if (other.ContractVersion.Length != 0) {
+ ContractVersion = other.ContractVersion;
+ }
+ if (other.IsUserContract != false) {
+ IsUserContract = other.IsUserContract;
+ }
+ if (other.deployer_ != null) {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ Deployer.MergeFrom(other.Deployer);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ SerialNumber = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ case 24: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 34: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 40: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ case 48: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 58: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ case 64: {
+ IsUserContract = input.ReadBool();
+ break;
+ }
+ case 74: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ SerialNumber = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ case 24: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 34: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 40: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ case 48: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 58: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ case 64: {
+ IsUserContract = input.ReadBool();
+ break;
+ }
+ case 74: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractDeploymentInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractDeploymentInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeploymentInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeploymentInput(ContractDeploymentInput other) : this() {
+ category_ = other.category_;
+ code_ = other.code_;
+ contractOperation_ = other.contractOperation_ != null ? other.contractOperation_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeploymentInput Clone() {
+ return new ContractDeploymentInput(this);
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 1;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "contract_operation" field.
+ public const int ContractOperationFieldNumber = 3;
+ private global::AElf.Standards.ACS0.ContractOperation contractOperation_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Standards.ACS0.ContractOperation ContractOperation {
+ get { return contractOperation_; }
+ set {
+ contractOperation_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractDeploymentInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractDeploymentInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Category != other.Category) return false;
+ if (Code != other.Code) return false;
+ if (!object.Equals(ContractOperation, other.ContractOperation)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (contractOperation_ != null) hash ^= ContractOperation.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (contractOperation_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (contractOperation_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (contractOperation_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractDeploymentInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ if (other.contractOperation_ != null) {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ ContractOperation.MergeFrom(other.ContractOperation);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ input.ReadMessage(ContractOperation);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ input.ReadMessage(ContractOperation);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class UserContractDeploymentInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserContractDeploymentInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[2]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractDeploymentInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractDeploymentInput(UserContractDeploymentInput other) : this() {
+ category_ = other.category_;
+ code_ = other.code_;
+ salt_ = other.salt_ != null ? other.salt_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractDeploymentInput Clone() {
+ return new UserContractDeploymentInput(this);
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 1;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = 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]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash Salt {
+ get { return salt_; }
+ set {
+ salt_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as UserContractDeploymentInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UserContractDeploymentInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Category != other.Category) return false;
+ if (Code != other.Code) return false;
+ if (!object.Equals(Salt, other.Salt)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (salt_ != null) hash ^= Salt.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (salt_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Salt);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (salt_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Salt);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (salt_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Salt);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(UserContractDeploymentInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ 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]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (salt_ == null) {
+ Salt = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Salt);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (salt_ == null) {
+ Salt = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Salt);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class UserContractUpdateInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserContractUpdateInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[3]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractUpdateInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractUpdateInput(UserContractUpdateInput other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ code_ = other.code_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractUpdateInput Clone() {
+ return new UserContractUpdateInput(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The contract address that needs to be updated.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the new contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as UserContractUpdateInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UserContractUpdateInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (Code != other.Code) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(UserContractUpdateInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SystemContractDeploymentInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemContractDeploymentInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[4]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemContractDeploymentInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemContractDeploymentInput(SystemContractDeploymentInput other) : this() {
+ category_ = other.category_;
+ code_ = other.code_;
+ name_ = other.name_ != null ? other.name_.Clone() : null;
+ transactionMethodCallList_ = other.transactionMethodCallList_ != null ? other.transactionMethodCallList_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemContractDeploymentInput Clone() {
+ return new SystemContractDeploymentInput(this);
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 1;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "name" field.
+ public const int NameFieldNumber = 3;
+ private global::AElf.Types.Hash name_;
+ ///
+ /// The name of the contract. It has to be unique.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash Name {
+ get { return name_; }
+ set {
+ name_ = value;
+ }
+ }
+
+ /// Field number for the "transaction_method_call_list" field.
+ public const int TransactionMethodCallListFieldNumber = 4;
+ private global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList transactionMethodCallList_;
+ ///
+ /// An initial list of transactions for the system contract,
+ /// which is executed in sequence when the contract is deployed.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList TransactionMethodCallList {
+ get { return transactionMethodCallList_; }
+ set {
+ transactionMethodCallList_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SystemContractDeploymentInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SystemContractDeploymentInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Category != other.Category) return false;
+ if (Code != other.Code) return false;
+ if (!object.Equals(Name, other.Name)) return false;
+ if (!object.Equals(TransactionMethodCallList, other.TransactionMethodCallList)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (name_ != null) hash ^= Name.GetHashCode();
+ if (transactionMethodCallList_ != null) hash ^= TransactionMethodCallList.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (name_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Name);
+ }
+ if (transactionMethodCallList_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(TransactionMethodCallList);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (name_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Name);
+ }
+ if (transactionMethodCallList_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(TransactionMethodCallList);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (name_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name);
+ }
+ if (transactionMethodCallList_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransactionMethodCallList);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SystemContractDeploymentInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ if (other.name_ != null) {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ Name.MergeFrom(other.Name);
+ }
+ if (other.transactionMethodCallList_ != null) {
+ if (transactionMethodCallList_ == null) {
+ TransactionMethodCallList = new global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList();
+ }
+ TransactionMethodCallList.MergeFrom(other.TransactionMethodCallList);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Name);
+ break;
+ }
+ case 34: {
+ if (transactionMethodCallList_ == null) {
+ TransactionMethodCallList = new global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList();
+ }
+ input.ReadMessage(TransactionMethodCallList);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Name);
+ break;
+ }
+ case 34: {
+ if (transactionMethodCallList_ == null) {
+ TransactionMethodCallList = new global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList();
+ }
+ input.ReadMessage(TransactionMethodCallList);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ #region Nested types
+ /// Container for nested types declared in the SystemContractDeploymentInput message type.
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static partial class Types {
+ public sealed partial class SystemTransactionMethodCall : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemTransactionMethodCall());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.SystemContractDeploymentInput.Descriptor.NestedTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCall() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCall(SystemTransactionMethodCall other) : this() {
+ methodName_ = other.methodName_;
+ params_ = other.params_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCall Clone() {
+ return new SystemTransactionMethodCall(this);
+ }
+
+ /// Field number for the "method_name" field.
+ public const int MethodNameFieldNumber = 1;
+ private string methodName_ = "";
+ ///
+ /// The method name of system transaction.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string MethodName {
+ get { return methodName_; }
+ set {
+ methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "params" field.
+ public const int ParamsFieldNumber = 2;
+ private pb::ByteString params_ = pb::ByteString.Empty;
+ ///
+ /// The params of system transaction method.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Params {
+ get { return params_; }
+ set {
+ params_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SystemTransactionMethodCall);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SystemTransactionMethodCall other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (MethodName != other.MethodName) return false;
+ if (Params != other.Params) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (MethodName.Length != 0) hash ^= MethodName.GetHashCode();
+ if (Params.Length != 0) hash ^= Params.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (MethodName.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(MethodName);
+ }
+ if (Params.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Params);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (MethodName.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(MethodName);
+ }
+ if (Params.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Params);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (MethodName.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName);
+ }
+ if (Params.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Params);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SystemTransactionMethodCall other) {
+ if (other == null) {
+ return;
+ }
+ if (other.MethodName.Length != 0) {
+ MethodName = other.MethodName;
+ }
+ if (other.Params.Length != 0) {
+ Params = other.Params;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ MethodName = input.ReadString();
+ break;
+ }
+ case 18: {
+ Params = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ MethodName = input.ReadString();
+ break;
+ }
+ case 18: {
+ Params = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SystemTransactionMethodCallList : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemTransactionMethodCallList());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.SystemContractDeploymentInput.Descriptor.NestedTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCallList() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCallList(SystemTransactionMethodCallList other) : this() {
+ value_ = other.value_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCallList Clone() {
+ return new SystemTransactionMethodCallList(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.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCall.Parser);
+ private readonly pbc::RepeatedField value_ = new pbc::RepeatedField();
+ ///
+ /// The list of system transactions.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Value {
+ get { return value_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SystemTransactionMethodCallList);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SystemTransactionMethodCallList other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!value_.Equals(other.value_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= value_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ value_.WriteTo(output, _repeated_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ value_.WriteTo(ref output, _repeated_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += value_.CalculateSize(_repeated_value_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SystemTransactionMethodCallList other) {
+ if (other == null) {
+ return;
+ }
+ value_.Add(other.value_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(input, _repeated_value_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(ref input, _repeated_value_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ }
+ #endregion
+
+ }
+
+ public sealed partial class ContractUpdateInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractUpdateInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[5]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractUpdateInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractUpdateInput(ContractUpdateInput other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ code_ = other.code_;
+ contractOperation_ = other.contractOperation_ != null ? other.contractOperation_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractUpdateInput Clone() {
+ return new ContractUpdateInput(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The contract address that needs to be updated.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the new contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "contract_operation" field.
+ public const int ContractOperationFieldNumber = 3;
+ private global::AElf.Standards.ACS0.ContractOperation contractOperation_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Standards.ACS0.ContractOperation ContractOperation {
+ get { return contractOperation_; }
+ set {
+ contractOperation_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractUpdateInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractUpdateInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (Code != other.Code) return false;
+ if (!object.Equals(ContractOperation, other.ContractOperation)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (contractOperation_ != null) hash ^= ContractOperation.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (contractOperation_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (contractOperation_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (contractOperation_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractUpdateInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ if (other.contractOperation_ != null) {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ ContractOperation.MergeFrom(other.ContractOperation);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ input.ReadMessage(ContractOperation);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ input.ReadMessage(ContractOperation);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractCodeCheckInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractCodeCheckInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[6]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeCheckInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeCheckInput(ContractCodeCheckInput other) : this() {
+ contractInput_ = other.contractInput_;
+ isContractDeployment_ = other.isContractDeployment_;
+ codeCheckReleaseMethod_ = other.codeCheckReleaseMethod_;
+ proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null;
+ category_ = other.category_;
+ isSystemContract_ = other.isSystemContract_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeCheckInput Clone() {
+ return new ContractCodeCheckInput(this);
+ }
+
+ /// Field number for the "contract_input" field.
+ public const int ContractInputFieldNumber = 1;
+ private pb::ByteString contractInput_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code to be checked.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString ContractInput {
+ get { return contractInput_; }
+ set {
+ contractInput_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "is_contract_deployment" field.
+ public const int IsContractDeploymentFieldNumber = 2;
+ private bool isContractDeployment_;
+ ///
+ /// Whether the input contract is to be deployed or updated.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsContractDeployment {
+ get { return isContractDeployment_; }
+ set {
+ isContractDeployment_ = value;
+ }
+ }
+
+ /// Field number for the "code_check_release_method" field.
+ public const int CodeCheckReleaseMethodFieldNumber = 3;
+ private string codeCheckReleaseMethod_ = "";
+ ///
+ /// Method to call after code check complete(DeploySmartContract or UpdateSmartContract).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string CodeCheckReleaseMethod {
+ get { return codeCheckReleaseMethod_; }
+ set {
+ codeCheckReleaseMethod_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "proposed_contract_input_hash" field.
+ public const int ProposedContractInputHashFieldNumber = 4;
+ private global::AElf.Types.Hash proposedContractInputHash_;
+ ///
+ /// The id of the proposed contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash ProposedContractInputHash {
+ get { return proposedContractInputHash_; }
+ set {
+ proposedContractInputHash_ = value;
+ }
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 5;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "is_system_contract" field.
+ public const int IsSystemContractFieldNumber = 6;
+ private bool isSystemContract_;
+ ///
+ /// Indicates if the contract is the system contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsSystemContract {
+ get { return isSystemContract_; }
+ set {
+ isSystemContract_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractCodeCheckInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractCodeCheckInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ContractInput != other.ContractInput) return false;
+ if (IsContractDeployment != other.IsContractDeployment) return false;
+ if (CodeCheckReleaseMethod != other.CodeCheckReleaseMethod) return false;
+ if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false;
+ if (Category != other.Category) return false;
+ if (IsSystemContract != other.IsSystemContract) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (ContractInput.Length != 0) hash ^= ContractInput.GetHashCode();
+ if (IsContractDeployment != false) hash ^= IsContractDeployment.GetHashCode();
+ if (CodeCheckReleaseMethod.Length != 0) hash ^= CodeCheckReleaseMethod.GetHashCode();
+ if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode();
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (IsSystemContract != false) hash ^= IsSystemContract.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (ContractInput.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteBytes(ContractInput);
+ }
+ if (IsContractDeployment != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(IsContractDeployment);
+ }
+ if (CodeCheckReleaseMethod.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(CodeCheckReleaseMethod);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(40);
+ output.WriteSInt32(Category);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(IsSystemContract);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (ContractInput.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteBytes(ContractInput);
+ }
+ if (IsContractDeployment != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(IsContractDeployment);
+ }
+ if (CodeCheckReleaseMethod.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(CodeCheckReleaseMethod);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(40);
+ output.WriteSInt32(Category);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(IsSystemContract);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (ContractInput.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(ContractInput);
+ }
+ if (IsContractDeployment != false) {
+ size += 1 + 1;
+ }
+ if (CodeCheckReleaseMethod.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeCheckReleaseMethod);
+ }
+ if (proposedContractInputHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (IsSystemContract != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractCodeCheckInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.ContractInput.Length != 0) {
+ ContractInput = other.ContractInput;
+ }
+ if (other.IsContractDeployment != false) {
+ IsContractDeployment = other.IsContractDeployment;
+ }
+ if (other.CodeCheckReleaseMethod.Length != 0) {
+ CodeCheckReleaseMethod = other.CodeCheckReleaseMethod;
+ }
+ if (other.proposedContractInputHash_ != null) {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash);
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.IsSystemContract != false) {
+ IsSystemContract = other.IsSystemContract;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ ContractInput = input.ReadBytes();
+ break;
+ }
+ case 16: {
+ IsContractDeployment = input.ReadBool();
+ break;
+ }
+ case 26: {
+ CodeCheckReleaseMethod = input.ReadString();
+ break;
+ }
+ case 34: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ case 40: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 48: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ ContractInput = input.ReadBytes();
+ break;
+ }
+ case 16: {
+ IsContractDeployment = input.ReadBool();
+ break;
+ }
+ case 26: {
+ CodeCheckReleaseMethod = input.ReadString();
+ break;
+ }
+ case 34: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ case 40: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 48: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractProposed : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractProposed());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[7]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractProposed() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractProposed(ContractProposed other) : this() {
+ proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractProposed Clone() {
+ return new ContractProposed(this);
+ }
+
+ /// Field number for the "proposed_contract_input_hash" field.
+ public const int ProposedContractInputHashFieldNumber = 1;
+ private global::AElf.Types.Hash proposedContractInputHash_;
+ ///
+ /// The id of the proposed contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash ProposedContractInputHash {
+ get { return proposedContractInputHash_; }
+ set {
+ proposedContractInputHash_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractProposed);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractProposed other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (proposedContractInputHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractProposed other) {
+ if (other == null) {
+ return;
+ }
+ if (other.proposedContractInputHash_ != null) {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractDeployed : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractDeployed());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[8]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeployed() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeployed(ContractDeployed other) : this() {
+ author_ = other.author_ != null ? other.author_.Clone() : null;
+ codeHash_ = other.codeHash_ != null ? other.codeHash_.Clone() : null;
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ version_ = other.version_;
+ name_ = other.name_ != null ? other.name_.Clone() : null;
+ contractVersion_ = other.contractVersion_;
+ deployer_ = other.deployer_ != null ? other.deployer_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeployed Clone() {
+ return new ContractDeployed(this);
+ }
+
+ /// Field number for the "author" field.
+ public const int AuthorFieldNumber = 1;
+ private global::AElf.Types.Address author_;
+ ///
+ /// The author of the contract, this is the person who deployed the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Author {
+ get { return author_; }
+ set {
+ author_ = value;
+ }
+ }
+
+ /// Field number for the "code_hash" field.
+ public const int CodeHashFieldNumber = 2;
+ private global::AElf.Types.Hash codeHash_;
+ ///
+ /// The hash of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash CodeHash {
+ get { return codeHash_; }
+ set {
+ codeHash_ = value;
+ }
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 3;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The address of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "version" field.
+ public const int VersionFieldNumber = 4;
+ private int version_;
+ ///
+ /// The version of the current contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Version {
+ get { return version_; }
+ set {
+ version_ = value;
+ }
+ }
+
+ /// Field number for the "Name" field.
+ public const int NameFieldNumber = 5;
+ private global::AElf.Types.Hash name_;
+ ///
+ /// The name of the contract. It has to be unique.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash Name {
+ get { return name_; }
+ set {
+ name_ = value;
+ }
+ }
+
+ /// Field number for the "contract_version" field.
+ public const int ContractVersionFieldNumber = 6;
+ private string contractVersion_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string ContractVersion {
+ get { return contractVersion_; }
+ set {
+ contractVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "deployer" field.
+ public const int DeployerFieldNumber = 7;
+ private global::AElf.Types.Address deployer_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Deployer {
+ get { return deployer_; }
+ set {
+ deployer_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractDeployed);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractDeployed other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Author, other.Author)) return false;
+ if (!object.Equals(CodeHash, other.CodeHash)) return false;
+ if (!object.Equals(Address, other.Address)) return false;
+ if (Version != other.Version) return false;
+ if (!object.Equals(Name, other.Name)) return false;
+ if (ContractVersion != other.ContractVersion) return false;
+ if (!object.Equals(Deployer, other.Deployer)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (author_ != null) hash ^= Author.GetHashCode();
+ if (codeHash_ != null) hash ^= CodeHash.GetHashCode();
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (Version != 0) hash ^= Version.GetHashCode();
+ if (name_ != null) hash ^= Name.GetHashCode();
+ if (ContractVersion.Length != 0) hash ^= ContractVersion.GetHashCode();
+ if (deployer_ != null) hash ^= Deployer.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (author_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Author);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(CodeHash);
+ }
+ if (address_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Address);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Version);
+ }
+ if (name_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(Name);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(50);
+ output.WriteString(ContractVersion);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(58);
+ output.WriteMessage(Deployer);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (author_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Author);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(CodeHash);
+ }
+ if (address_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Address);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Version);
+ }
+ if (name_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(Name);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(50);
+ output.WriteString(ContractVersion);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(58);
+ output.WriteMessage(Deployer);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (author_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author);
+ }
+ if (codeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(CodeHash);
+ }
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (Version != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version);
+ }
+ if (name_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name);
+ }
+ if (ContractVersion.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ContractVersion);
+ }
+ if (deployer_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deployer);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractDeployed other) {
+ if (other == null) {
+ return;
+ }
+ if (other.author_ != null) {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ Author.MergeFrom(other.Author);
+ }
+ if (other.codeHash_ != null) {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ CodeHash.MergeFrom(other.CodeHash);
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.Version != 0) {
+ Version = other.Version;
+ }
+ if (other.name_ != null) {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ Name.MergeFrom(other.Name);
+ }
+ if (other.ContractVersion.Length != 0) {
+ ContractVersion = other.ContractVersion;
+ }
+ if (other.deployer_ != null) {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ Deployer.MergeFrom(other.Deployer);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ case 18: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 26: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 32: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Name);
+ break;
+ }
+ case 50: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ case 58: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ case 18: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 26: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 32: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Name);
+ break;
+ }
+ case 50: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ case 58: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CodeCheckRequired : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodeCheckRequired());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[9]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeCheckRequired() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeCheckRequired(CodeCheckRequired other) : this() {
+ code_ = other.code_;
+ proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null;
+ category_ = other.category_;
+ isSystemContract_ = other.isSystemContract_;
+ isUserContract_ = other.isUserContract_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeCheckRequired Clone() {
+ return new CodeCheckRequired(this);
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 1;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "proposed_contract_input_hash" field.
+ public const int ProposedContractInputHashFieldNumber = 2;
+ private global::AElf.Types.Hash proposedContractInputHash_;
+ ///
+ /// The id of the proposed contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash ProposedContractInputHash {
+ get { return proposedContractInputHash_; }
+ set {
+ proposedContractInputHash_ = value;
+ }
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 3;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "is_system_contract" field.
+ public const int IsSystemContractFieldNumber = 4;
+ private bool isSystemContract_;
+ ///
+ /// Indicates if the contract is the system contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsSystemContract {
+ get { return isSystemContract_; }
+ set {
+ isSystemContract_ = value;
+ }
+ }
+
+ /// Field number for the "is_user_contract" field.
+ public const int IsUserContractFieldNumber = 5;
+ private bool isUserContract_;
+ ///
+ /// Indicates if the contract is the user contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsUserContract {
+ get { return isUserContract_; }
+ set {
+ isUserContract_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CodeCheckRequired);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CodeCheckRequired other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Code != other.Code) return false;
+ if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false;
+ if (Category != other.Category) return false;
+ if (IsSystemContract != other.IsSystemContract) return false;
+ if (IsUserContract != other.IsUserContract) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode();
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (IsSystemContract != false) hash ^= IsSystemContract.GetHashCode();
+ if (IsUserContract != false) hash ^= IsUserContract.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Code.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteBytes(Code);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(24);
+ output.WriteSInt32(Category);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(IsSystemContract);
+ }
+ if (IsUserContract != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(IsUserContract);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Code.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteBytes(Code);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(24);
+ output.WriteSInt32(Category);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(IsSystemContract);
+ }
+ if (IsUserContract != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(IsUserContract);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (proposedContractInputHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (IsSystemContract != false) {
+ size += 1 + 1;
+ }
+ if (IsUserContract != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CodeCheckRequired other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ if (other.proposedContractInputHash_ != null) {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash);
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.IsSystemContract != false) {
+ IsSystemContract = other.IsSystemContract;
+ }
+ if (other.IsUserContract != false) {
+ IsUserContract = other.IsUserContract;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 18: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ case 24: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 32: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ case 40: {
+ IsUserContract = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 18: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ case 24: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 32: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ case 40: {
+ IsUserContract = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CodeUpdated : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodeUpdated());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[10]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeUpdated() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeUpdated(CodeUpdated other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ oldCodeHash_ = other.oldCodeHash_ != null ? other.oldCodeHash_.Clone() : null;
+ newCodeHash_ = other.newCodeHash_ != null ? other.newCodeHash_.Clone() : null;
+ version_ = other.version_;
+ contractVersion_ = other.contractVersion_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeUpdated Clone() {
+ return new CodeUpdated(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The address of the updated contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "old_code_hash" field.
+ public const int OldCodeHashFieldNumber = 2;
+ private global::AElf.Types.Hash oldCodeHash_;
+ ///
+ /// The byte array of the old contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash OldCodeHash {
+ get { return oldCodeHash_; }
+ set {
+ oldCodeHash_ = value;
+ }
+ }
+
+ /// Field number for the "new_code_hash" field.
+ public const int NewCodeHashFieldNumber = 3;
+ private global::AElf.Types.Hash newCodeHash_;
+ ///
+ /// The byte array of the new contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash NewCodeHash {
+ get { return newCodeHash_; }
+ set {
+ newCodeHash_ = value;
+ }
+ }
+
+ /// Field number for the "version" field.
+ public const int VersionFieldNumber = 4;
+ private int version_;
+ ///
+ /// The version of the current contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Version {
+ get { return version_; }
+ set {
+ version_ = value;
+ }
+ }
+
+ /// Field number for the "contract_version" field.
+ public const int ContractVersionFieldNumber = 5;
+ private string contractVersion_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string ContractVersion {
+ get { return contractVersion_; }
+ set {
+ contractVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CodeUpdated);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CodeUpdated other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (!object.Equals(OldCodeHash, other.OldCodeHash)) return false;
+ if (!object.Equals(NewCodeHash, other.NewCodeHash)) return false;
+ if (Version != other.Version) return false;
+ if (ContractVersion != other.ContractVersion) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (oldCodeHash_ != null) hash ^= OldCodeHash.GetHashCode();
+ if (newCodeHash_ != null) hash ^= NewCodeHash.GetHashCode();
+ if (Version != 0) hash ^= Version.GetHashCode();
+ if (ContractVersion.Length != 0) hash ^= ContractVersion.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (oldCodeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(OldCodeHash);
+ }
+ if (newCodeHash_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(NewCodeHash);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(ContractVersion);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (oldCodeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(OldCodeHash);
+ }
+ if (newCodeHash_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(NewCodeHash);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(ContractVersion);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (oldCodeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(OldCodeHash);
+ }
+ if (newCodeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewCodeHash);
+ }
+ if (Version != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ContractVersion);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CodeUpdated other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.oldCodeHash_ != null) {
+ if (oldCodeHash_ == null) {
+ OldCodeHash = new global::AElf.Types.Hash();
+ }
+ OldCodeHash.MergeFrom(other.OldCodeHash);
+ }
+ if (other.newCodeHash_ != null) {
+ if (newCodeHash_ == null) {
+ NewCodeHash = new global::AElf.Types.Hash();
+ }
+ NewCodeHash.MergeFrom(other.NewCodeHash);
+ }
+ if (other.Version != 0) {
+ Version = other.Version;
+ }
+ if (other.ContractVersion.Length != 0) {
+ ContractVersion = other.ContractVersion;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (oldCodeHash_ == null) {
+ OldCodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(OldCodeHash);
+ break;
+ }
+ case 26: {
+ if (newCodeHash_ == null) {
+ NewCodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(NewCodeHash);
+ break;
+ }
+ case 32: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (oldCodeHash_ == null) {
+ OldCodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(OldCodeHash);
+ break;
+ }
+ case 26: {
+ if (newCodeHash_ == null) {
+ NewCodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(NewCodeHash);
+ break;
+ }
+ case 32: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class AuthorUpdated : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthorUpdated());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[11]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AuthorUpdated() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AuthorUpdated(AuthorUpdated other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ oldAuthor_ = other.oldAuthor_ != null ? other.oldAuthor_.Clone() : null;
+ newAuthor_ = other.newAuthor_ != null ? other.newAuthor_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AuthorUpdated Clone() {
+ return new AuthorUpdated(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The address of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "old_author" field.
+ public const int OldAuthorFieldNumber = 2;
+ private global::AElf.Types.Address oldAuthor_;
+ ///
+ /// The old author of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address OldAuthor {
+ get { return oldAuthor_; }
+ set {
+ oldAuthor_ = value;
+ }
+ }
+
+ /// Field number for the "new_author" field.
+ public const int NewAuthorFieldNumber = 3;
+ private global::AElf.Types.Address newAuthor_;
+ ///
+ /// The new author of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address NewAuthor {
+ get { return newAuthor_; }
+ set {
+ newAuthor_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as AuthorUpdated);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(AuthorUpdated other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (!object.Equals(OldAuthor, other.OldAuthor)) return false;
+ if (!object.Equals(NewAuthor, other.NewAuthor)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (oldAuthor_ != null) hash ^= OldAuthor.GetHashCode();
+ if (newAuthor_ != null) hash ^= NewAuthor.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (oldAuthor_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(OldAuthor);
+ }
+ if (newAuthor_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(NewAuthor);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (oldAuthor_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(OldAuthor);
+ }
+ if (newAuthor_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(NewAuthor);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (oldAuthor_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(OldAuthor);
+ }
+ if (newAuthor_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewAuthor);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(AuthorUpdated other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.oldAuthor_ != null) {
+ if (oldAuthor_ == null) {
+ OldAuthor = new global::AElf.Types.Address();
+ }
+ OldAuthor.MergeFrom(other.OldAuthor);
+ }
+ if (other.newAuthor_ != null) {
+ if (newAuthor_ == null) {
+ NewAuthor = new global::AElf.Types.Address();
+ }
+ NewAuthor.MergeFrom(other.NewAuthor);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (oldAuthor_ == null) {
+ OldAuthor = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(OldAuthor);
+ break;
+ }
+ case 26: {
+ if (newAuthor_ == null) {
+ NewAuthor = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(NewAuthor);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (oldAuthor_ == null) {
+ OldAuthor = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(OldAuthor);
+ break;
+ }
+ case 26: {
+ if (newAuthor_ == null) {
+ NewAuthor = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(NewAuthor);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ValidateSystemContractAddressInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidateSystemContractAddressInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[12]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ValidateSystemContractAddressInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ValidateSystemContractAddressInput(ValidateSystemContractAddressInput other) : this() {
+ systemContractHashName_ = other.systemContractHashName_ != null ? other.systemContractHashName_.Clone() : null;
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ValidateSystemContractAddressInput Clone() {
+ return new ValidateSystemContractAddressInput(this);
+ }
+
+ /// Field number for the "system_contract_hash_name" field.
+ public const int SystemContractHashNameFieldNumber = 1;
+ private global::AElf.Types.Hash systemContractHashName_;
+ ///
+ /// The name hash of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash SystemContractHashName {
+ get { return systemContractHashName_; }
+ set {
+ systemContractHashName_ = value;
+ }
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 2;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The address of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ValidateSystemContractAddressInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ValidateSystemContractAddressInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(SystemContractHashName, other.SystemContractHashName)) return false;
+ if (!object.Equals(Address, other.Address)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (systemContractHashName_ != null) hash ^= SystemContractHashName.GetHashCode();
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (systemContractHashName_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(SystemContractHashName);
+ }
+ if (address_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Address);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (systemContractHashName_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(SystemContractHashName);
+ }
+ if (address_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Address);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (systemContractHashName_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(SystemContractHashName);
+ }
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ValidateSystemContractAddressInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.systemContractHashName_ != null) {
+ if (systemContractHashName_ == null) {
+ SystemContractHashName = new global::AElf.Types.Hash();
+ }
+ SystemContractHashName.MergeFrom(other.SystemContractHashName);
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (systemContractHashName_ == null) {
+ SystemContractHashName = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(SystemContractHashName);
+ break;
+ }
+ case 18: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (systemContractHashName_ == null) {
+ SystemContractHashName = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(SystemContractHashName);
+ break;
+ }
+ case 18: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ReleaseContractInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReleaseContractInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[13]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ReleaseContractInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ReleaseContractInput(ReleaseContractInput other) : this() {
+ proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null;
+ proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ReleaseContractInput Clone() {
+ return new ReleaseContractInput(this);
+ }
+
+ /// Field number for the "proposal_id" field.
+ public const int ProposalIdFieldNumber = 1;
+ private global::AElf.Types.Hash proposalId_;
+ ///
+ /// The hash of the proposal.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash ProposalId {
+ get { return proposalId_; }
+ set {
+ proposalId_ = value;
+ }
+ }
+
+ /// Field number for the "proposed_contract_input_hash" field.
+ public const int ProposedContractInputHashFieldNumber = 2;
+ private global::AElf.Types.Hash proposedContractInputHash_;
+ ///
+ /// The id of the proposed contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash ProposedContractInputHash {
+ get { return proposedContractInputHash_; }
+ set {
+ proposedContractInputHash_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ReleaseContractInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ReleaseContractInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(ProposalId, other.ProposalId)) return false;
+ if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (proposalId_ != null) hash ^= ProposalId.GetHashCode();
+ if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (proposalId_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ProposalId);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (proposalId_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ProposalId);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (proposalId_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId);
+ }
+ if (proposedContractInputHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ReleaseContractInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.proposalId_ != null) {
+ if (proposalId_ == null) {
+ ProposalId = new global::AElf.Types.Hash();
+ }
+ ProposalId.MergeFrom(other.ProposalId);
+ }
+ if (other.proposedContractInputHash_ != null) {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (proposalId_ == null) {
+ ProposalId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposalId);
+ break;
+ }
+ case 18: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (proposalId_ == null) {
+ ProposalId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposalId);
+ break;
+ }
+ case 18: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractCodeHashList : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractCodeHashList());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[14]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeHashList() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeHashList(ContractCodeHashList other) : this() {
+ value_ = other.value_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeHashList Clone() {
+ return new ContractCodeHashList(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.Hash.Parser);
+ private readonly pbc::RepeatedField value_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Value {
+ get { return value_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractCodeHashList);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractCodeHashList other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!value_.Equals(other.value_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= value_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ value_.WriteTo(output, _repeated_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ value_.WriteTo(ref output, _repeated_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += value_.CalculateSize(_repeated_value_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractCodeHashList other) {
+ if (other == null) {
+ return;
+ }
+ value_.Add(other.value_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(input, _repeated_value_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(ref input, _repeated_value_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractCodeHashMap : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractCodeHashMap());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[15]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeHashMap() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeHashMap(ContractCodeHashMap other) : this() {
+ value_ = other.value_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeHashMap Clone() {
+ return new ContractCodeHashMap(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.ForInt64(8, 0L), pb::FieldCodec.ForMessage(18, global::AElf.Standards.ACS0.ContractCodeHashList.Parser), 10);
+ private readonly pbc::MapField value_ = new pbc::MapField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::MapField Value {
+ get { return value_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractCodeHashMap);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractCodeHashMap other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!Value.Equals(other.Value)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ value_.WriteTo(output, _map_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ value_.WriteTo(ref output, _map_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += value_.CalculateSize(_map_value_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractCodeHashMap other) {
+ if (other == null) {
+ return;
+ }
+ value_.Add(other.value_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(input, _map_value_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(ref input, _map_value_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SetContractAuthorInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetContractAuthorInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[16]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SetContractAuthorInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SetContractAuthorInput(SetContractAuthorInput other) : this() {
+ contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null;
+ newAuthor_ = other.newAuthor_ != null ? other.newAuthor_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SetContractAuthorInput Clone() {
+ return new SetContractAuthorInput(this);
+ }
+
+ /// Field number for the "contract_address" field.
+ public const int ContractAddressFieldNumber = 1;
+ private global::AElf.Types.Address contractAddress_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address ContractAddress {
+ get { return contractAddress_; }
+ set {
+ contractAddress_ = value;
+ }
+ }
+
+ /// Field number for the "new_author" field.
+ public const int NewAuthorFieldNumber = 2;
+ private global::AElf.Types.Address newAuthor_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address NewAuthor {
+ get { return newAuthor_; }
+ set {
+ newAuthor_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SetContractAuthorInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SetContractAuthorInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(ContractAddress, other.ContractAddress)) return false;
+ if (!object.Equals(NewAuthor, other.NewAuthor)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode();
+ if (newAuthor_ != null) hash ^= NewAuthor.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (contractAddress_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ContractAddress);
+ }
+ if (newAuthor_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(NewAuthor);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (contractAddress_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ContractAddress);
+ }
+ if (newAuthor_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(NewAuthor);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (contractAddress_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress);
+ }
+ if (newAuthor_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewAuthor);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SetContractAuthorInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.contractAddress_ != null) {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ ContractAddress.MergeFrom(other.ContractAddress);
+ }
+ if (other.newAuthor_ != null) {
+ if (newAuthor_ == null) {
+ NewAuthor = new global::AElf.Types.Address();
+ }
+ NewAuthor.MergeFrom(other.NewAuthor);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(ContractAddress);
+ break;
+ }
+ case 18: {
+ if (newAuthor_ == null) {
+ NewAuthor = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(NewAuthor);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(ContractAddress);
+ break;
+ }
+ case 18: {
+ if (newAuthor_ == null) {
+ NewAuthor = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(NewAuthor);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class DeployUserSmartContractOutput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployUserSmartContractOutput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[17]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DeployUserSmartContractOutput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DeployUserSmartContractOutput(DeployUserSmartContractOutput other) : this() {
+ codeHash_ = other.codeHash_ != null ? other.codeHash_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DeployUserSmartContractOutput Clone() {
+ return new DeployUserSmartContractOutput(this);
+ }
+
+ /// Field number for the "code_hash" field.
+ public const int CodeHashFieldNumber = 1;
+ private global::AElf.Types.Hash codeHash_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash CodeHash {
+ get { return codeHash_; }
+ set {
+ codeHash_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DeployUserSmartContractOutput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DeployUserSmartContractOutput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(CodeHash, other.CodeHash)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (codeHash_ != null) hash ^= CodeHash.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (codeHash_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(CodeHash);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (codeHash_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(CodeHash);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (codeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(CodeHash);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DeployUserSmartContractOutput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.codeHash_ != null) {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ CodeHash.MergeFrom(other.CodeHash);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractOperation : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractOperation());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[18]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractOperation() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractOperation(ContractOperation other) : this() {
+ chainId_ = other.chainId_;
+ codeHash_ = other.codeHash_ != null ? other.codeHash_.Clone() : null;
+ deployer_ = other.deployer_ != null ? other.deployer_.Clone() : null;
+ salt_ = other.salt_ != null ? other.salt_.Clone() : null;
+ version_ = other.version_;
+ signature_ = other.signature_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractOperation Clone() {
+ return new ContractOperation(this);
+ }
+
+ /// Field number for the "chain_id" field.
+ public const int ChainIdFieldNumber = 1;
+ private int chainId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int ChainId {
+ get { return chainId_; }
+ set {
+ chainId_ = value;
+ }
+ }
+
+ /// Field number for the "code_hash" field.
+ public const int CodeHashFieldNumber = 2;
+ private global::AElf.Types.Hash codeHash_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash CodeHash {
+ get { return codeHash_; }
+ set {
+ codeHash_ = value;
+ }
+ }
+
+ /// Field number for the "deployer" field.
+ public const int DeployerFieldNumber = 3;
+ private global::AElf.Types.Address deployer_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Deployer {
+ get { return deployer_; }
+ set {
+ deployer_ = value;
+ }
+ }
+
+ /// Field number for the "salt" field.
+ public const int SaltFieldNumber = 4;
+ private global::AElf.Types.Hash salt_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash Salt {
+ get { return salt_; }
+ set {
+ salt_ = value;
+ }
+ }
+
+ /// Field number for the "version" field.
+ public const int VersionFieldNumber = 5;
+ private int version_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Version {
+ get { return version_; }
+ set {
+ version_ = value;
+ }
+ }
+
+ /// Field number for the "signature" field.
+ public const int SignatureFieldNumber = 10000;
+ private pb::ByteString signature_ = pb::ByteString.Empty;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Signature {
+ get { return signature_; }
+ set {
+ signature_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractOperation);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractOperation other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ChainId != other.ChainId) return false;
+ if (!object.Equals(CodeHash, other.CodeHash)) return false;
+ if (!object.Equals(Deployer, other.Deployer)) return false;
+ if (!object.Equals(Salt, other.Salt)) return false;
+ if (Version != other.Version) return false;
+ if (Signature != other.Signature) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (ChainId != 0) hash ^= ChainId.GetHashCode();
+ if (codeHash_ != null) hash ^= CodeHash.GetHashCode();
+ if (deployer_ != null) hash ^= Deployer.GetHashCode();
+ if (salt_ != null) hash ^= Salt.GetHashCode();
+ if (Version != 0) hash ^= Version.GetHashCode();
+ if (Signature.Length != 0) hash ^= Signature.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (ChainId != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(ChainId);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(CodeHash);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Deployer);
+ }
+ if (salt_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(Salt);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(Version);
+ }
+ if (Signature.Length != 0) {
+ output.WriteRawTag(130, 241, 4);
+ output.WriteBytes(Signature);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (ChainId != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(ChainId);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(CodeHash);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Deployer);
+ }
+ if (salt_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(Salt);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(Version);
+ }
+ if (Signature.Length != 0) {
+ output.WriteRawTag(130, 241, 4);
+ output.WriteBytes(Signature);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (ChainId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId);
+ }
+ if (codeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(CodeHash);
+ }
+ if (deployer_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deployer);
+ }
+ if (salt_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Salt);
+ }
+ if (Version != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version);
+ }
+ if (Signature.Length != 0) {
+ size += 3 + pb::CodedOutputStream.ComputeBytesSize(Signature);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractOperation other) {
+ if (other == null) {
+ return;
+ }
+ if (other.ChainId != 0) {
+ ChainId = other.ChainId;
+ }
+ if (other.codeHash_ != null) {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ CodeHash.MergeFrom(other.CodeHash);
+ }
+ if (other.deployer_ != null) {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ Deployer.MergeFrom(other.Deployer);
+ }
+ if (other.salt_ != null) {
+ if (salt_ == null) {
+ Salt = new global::AElf.Types.Hash();
+ }
+ Salt.MergeFrom(other.Salt);
+ }
+ if (other.Version != 0) {
+ Version = other.Version;
+ }
+ if (other.Signature.Length != 0) {
+ Signature = other.Signature;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ChainId = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 26: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ case 34: {
+ if (salt_ == null) {
+ Salt = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Salt);
+ break;
+ }
+ case 40: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 80002: {
+ Signature = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ChainId = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 26: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ case 34: {
+ if (salt_ == null) {
+ Salt = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Salt);
+ break;
+ }
+ case 40: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 80002: {
+ Signature = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/src/AElfScan.GenesisApp/Generated/AuthorityInfo.g.cs b/src/AElfScan.GenesisApp/Generated/AuthorityInfo.g.cs
new file mode 100644
index 0000000..bbfb14a
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Generated/AuthorityInfo.g.cs
@@ -0,0 +1,292 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: authority_info.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+/// Holder for reflection information generated from authority_info.proto
+public static partial class AuthorityInfoReflection {
+
+ #region Descriptor
+ /// File descriptor for authority_info.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static AuthorityInfoReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChRhdXRob3JpdHlfaW5mby5wcm90bxoPYWVsZi9jb3JlLnByb3RvIl4KDUF1",
+ "dGhvcml0eUluZm8SJwoQY29udHJhY3RfYWRkcmVzcxgBIAEoCzINLmFlbGYu",
+ "QWRkcmVzcxIkCg1vd25lcl9hZGRyZXNzGAIgASgLMg0uYWVsZi5BZGRyZXNz",
+ "YgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::AuthorityInfo), global::AuthorityInfo.Parser, new[]{ "ContractAddress", "OwnerAddress" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+}
+#region Messages
+public sealed partial class AuthorityInfo : pb::IMessage
+#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+#endif
+{
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthorityInfo());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AuthorityInfoReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AuthorityInfo() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AuthorityInfo(AuthorityInfo other) : this() {
+ contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null;
+ ownerAddress_ = other.ownerAddress_ != null ? other.ownerAddress_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AuthorityInfo Clone() {
+ return new AuthorityInfo(this);
+ }
+
+ /// Field number for the "contract_address" field.
+ public const int ContractAddressFieldNumber = 1;
+ private global::AElf.Types.Address contractAddress_;
+ ///
+ /// The contract address of the controller.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address ContractAddress {
+ get { return contractAddress_; }
+ set {
+ contractAddress_ = value;
+ }
+ }
+
+ /// Field number for the "owner_address" field.
+ public const int OwnerAddressFieldNumber = 2;
+ private global::AElf.Types.Address ownerAddress_;
+ ///
+ /// The address of the owner of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address OwnerAddress {
+ get { return ownerAddress_; }
+ set {
+ ownerAddress_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as AuthorityInfo);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(AuthorityInfo other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(ContractAddress, other.ContractAddress)) return false;
+ if (!object.Equals(OwnerAddress, other.OwnerAddress)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode();
+ if (ownerAddress_ != null) hash ^= OwnerAddress.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (contractAddress_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ContractAddress);
+ }
+ if (ownerAddress_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(OwnerAddress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (contractAddress_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ContractAddress);
+ }
+ if (ownerAddress_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(OwnerAddress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (contractAddress_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress);
+ }
+ if (ownerAddress_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(OwnerAddress);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(AuthorityInfo other) {
+ if (other == null) {
+ return;
+ }
+ if (other.contractAddress_ != null) {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ ContractAddress.MergeFrom(other.ContractAddress);
+ }
+ if (other.ownerAddress_ != null) {
+ if (ownerAddress_ == null) {
+ OwnerAddress = new global::AElf.Types.Address();
+ }
+ OwnerAddress.MergeFrom(other.OwnerAddress);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(ContractAddress);
+ break;
+ }
+ case 18: {
+ if (ownerAddress_ == null) {
+ OwnerAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(OwnerAddress);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(ContractAddress);
+ break;
+ }
+ case 18: {
+ if (ownerAddress_ == null) {
+ OwnerAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(OwnerAddress);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+}
+
+#endregion
+
+
+#endregion Designer generated code
diff --git a/src/AElfScan.GenesisApp/Generated/BasicContractZero.g.cs b/src/AElfScan.GenesisApp/Generated/BasicContractZero.g.cs
new file mode 100644
index 0000000..294401e
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Generated/BasicContractZero.g.cs
@@ -0,0 +1,817 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: basic_contract_zero.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace AElf.Contracts.Genesis {
+
+ /// Holder for reflection information generated from basic_contract_zero.proto
+ public static partial class BasicContractZeroReflection {
+
+ #region Descriptor
+ /// File descriptor for basic_contract_zero.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static BasicContractZeroReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChliYXNpY19jb250cmFjdF96ZXJvLnByb3RvEgRaZXJvGhJhZWxmL29wdGlv",
+ "bnMucHJvdG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90bxoPYWVsZi9j",
+ "b3JlLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhRh",
+ "dXRob3JpdHlfaW5mby5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJz",
+ "LnByb3RvIkEKD0luaXRpYWxpemVJbnB1dBIuCiZjb250cmFjdF9kZXBsb3lt",
+ "ZW50X2F1dGhvcml0eV9yZXF1aXJlZBgBIAEoCCK+AQoWQ29udHJhY3RQcm9w",
+ "b3NpbmdJbnB1dBIfCghwcm9wb3NlchgBIAEoCzINLmFlbGYuQWRkcmVzcxIy",
+ "CgZzdGF0dXMYAiABKA4yIi5aZXJvLkNvbnRyYWN0UHJvcG9zaW5nSW5wdXRT",
+ "dGF0dXMSMAoMZXhwaXJlZF90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVm",
+ "LlRpbWVzdGFtcBIdCgZhdXRob3IYBCABKAsyDS5hZWxmLkFkZHJlc3MiTgos",
+ "U2V0Q29udHJhY3RQcm9wb3NhbEV4cGlyYXRpb25UaW1lUGVyaW9kSW5wdXQS",
+ "HgoWZXhwaXJhdGlvbl90aW1lX3BlcmlvZBgBIAEoBSplChxDb250cmFjdFBy",
+ "b3Bvc2luZ0lucHV0U3RhdHVzEgwKCFBST1BPU0VEEAASDAoIQVBQUk9WRUQQ",
+ "ARIXChNDT0RFX0NIRUNLX1BST1BPU0VEEAISEAoMQ09ERV9DSEVDS0VEEAMy",
+ "4AUKEUJhc2ljQ29udHJhY3RaZXJvEj0KCkluaXRpYWxpemUSFS5aZXJvLklu",
+ "aXRpYWxpemVJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkYKG1Nl",
+ "dEluaXRpYWxDb250cm9sbGVyQWRkcmVzcxINLmFlbGYuQWRkcmVzcxoWLmdv",
+ "b2dsZS5wcm90b2J1Zi5FbXB0eSIAEk4KIkNoYW5nZUNvbnRyYWN0RGVwbG95",
+ "bWVudENvbnRyb2xsZXISDi5BdXRob3JpdHlJbmZvGhYuZ29vZ2xlLnByb3Rv",
+ "YnVmLkVtcHR5IgASRQoZQ2hhbmdlQ29kZUNoZWNrQ29udHJvbGxlchIOLkF1",
+ "dGhvcml0eUluZm8aFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJ3CidTZXRD",
+ "b250cmFjdFByb3Bvc2FsRXhwaXJhdGlvblRpbWVQZXJpb2QSMi5aZXJvLlNl",
+ "dENvbnRyYWN0UHJvcG9zYWxFeHBpcmF0aW9uVGltZVBlcmlvZElucHV0GhYu",
+ "Z29vZ2xlLnByb3RvYnVmLkVtcHR5IgASUAofR2V0Q29udHJhY3REZXBsb3lt",
+ "ZW50Q29udHJvbGxlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoOLkF1dGhv",
+ "cml0eUluZm8iBYiJ9wEBEkcKFkdldENvZGVDaGVja0NvbnRyb2xsZXISFi5n",
+ "b29nbGUucHJvdG9idWYuRW1wdHkaDi5BdXRob3JpdHlJbmZvIgWIifcBARJl",
+ "CidHZXRDb250cmFjdFByb3Bvc2FsRXhwaXJhdGlvblRpbWVQZXJpb2QSFi5n",
+ "b29nbGUucHJvdG9idWYuRW1wdHkaGy5nb29nbGUucHJvdG9idWYuSW50MzJW",
+ "YWx1ZSIFiIn3AQEaMrLM9gEtQUVsZi5Db250cmFjdHMuR2VuZXNpcy5CYXNp",
+ "Y0NvbnRyYWN0WmVyb1N0YXRlQhmqAhZBRWxmLkNvbnRyYWN0cy5HZW5lc2lz",
+ "YgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::AElf.Types.CoreReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::AuthorityInfoReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AElf.Contracts.Genesis.ContractProposingInputStatus), }, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Genesis.InitializeInput), global::AElf.Contracts.Genesis.InitializeInput.Parser, new[]{ "ContractDeploymentAuthorityRequired" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Genesis.ContractProposingInput), global::AElf.Contracts.Genesis.ContractProposingInput.Parser, new[]{ "Proposer", "Status", "ExpiredTime", "Author" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Genesis.SetContractProposalExpirationTimePeriodInput), global::AElf.Contracts.Genesis.SetContractProposalExpirationTimePeriodInput.Parser, new[]{ "ExpirationTimePeriod" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Enums
+ public enum ContractProposingInputStatus {
+ ///
+ /// Proposal is proposed.
+ ///
+ [pbr::OriginalName("PROPOSED")] Proposed = 0,
+ ///
+ /// Proposal is approved by parliament.
+ ///
+ [pbr::OriginalName("APPROVED")] Approved = 1,
+ ///
+ /// Code check is proposed.
+ ///
+ [pbr::OriginalName("CODE_CHECK_PROPOSED")] CodeCheckProposed = 2,
+ ///
+ /// Passed code checks.
+ ///
+ [pbr::OriginalName("CODE_CHECKED")] CodeChecked = 3,
+ }
+
+ #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(() => new InitializeInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.Genesis.BasicContractZeroReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public InitializeInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public InitializeInput(InitializeInput other) : this() {
+ contractDeploymentAuthorityRequired_ = other.contractDeploymentAuthorityRequired_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public InitializeInput Clone() {
+ return new InitializeInput(this);
+ }
+
+ /// Field number for the "contract_deployment_authority_required" field.
+ public const int ContractDeploymentAuthorityRequiredFieldNumber = 1;
+ private bool contractDeploymentAuthorityRequired_;
+ ///
+ /// Whether contract deployment/update requires authority.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool ContractDeploymentAuthorityRequired {
+ get { return contractDeploymentAuthorityRequired_; }
+ set {
+ contractDeploymentAuthorityRequired_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as InitializeInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(InitializeInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ContractDeploymentAuthorityRequired != other.ContractDeploymentAuthorityRequired) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (ContractDeploymentAuthorityRequired != false) hash ^= ContractDeploymentAuthorityRequired.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (ContractDeploymentAuthorityRequired != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(ContractDeploymentAuthorityRequired);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (ContractDeploymentAuthorityRequired != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(ContractDeploymentAuthorityRequired);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (ContractDeploymentAuthorityRequired != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(InitializeInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.ContractDeploymentAuthorityRequired != false) {
+ ContractDeploymentAuthorityRequired = other.ContractDeploymentAuthorityRequired;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ContractDeploymentAuthorityRequired = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ContractDeploymentAuthorityRequired = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractProposingInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractProposingInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.Genesis.BasicContractZeroReflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractProposingInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractProposingInput(ContractProposingInput other) : this() {
+ proposer_ = other.proposer_ != null ? other.proposer_.Clone() : null;
+ status_ = other.status_;
+ expiredTime_ = other.expiredTime_ != null ? other.expiredTime_.Clone() : null;
+ author_ = other.author_ != null ? other.author_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractProposingInput Clone() {
+ return new ContractProposingInput(this);
+ }
+
+ /// Field number for the "proposer" field.
+ public const int ProposerFieldNumber = 1;
+ private global::AElf.Types.Address proposer_;
+ ///
+ /// The address of proposer for contract deployment/update.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Proposer {
+ get { return proposer_; }
+ set {
+ proposer_ = value;
+ }
+ }
+
+ /// Field number for the "status" field.
+ public const int StatusFieldNumber = 2;
+ private global::AElf.Contracts.Genesis.ContractProposingInputStatus status_ = global::AElf.Contracts.Genesis.ContractProposingInputStatus.Proposed;
+ ///
+ /// The status of proposal.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Contracts.Genesis.ContractProposingInputStatus Status {
+ get { return status_; }
+ set {
+ status_ = value;
+ }
+ }
+
+ /// Field number for the "expired_time" field.
+ public const int ExpiredTimeFieldNumber = 3;
+ private global::Google.Protobuf.WellKnownTypes.Timestamp expiredTime_;
+ ///
+ /// The expiration time of proposal.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiredTime {
+ get { return expiredTime_; }
+ set {
+ expiredTime_ = value;
+ }
+ }
+
+ /// Field number for the "author" field.
+ public const int AuthorFieldNumber = 4;
+ private global::AElf.Types.Address author_;
+ ///
+ /// The author of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Author {
+ get { return author_; }
+ set {
+ author_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractProposingInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractProposingInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Proposer, other.Proposer)) return false;
+ if (Status != other.Status) return false;
+ if (!object.Equals(ExpiredTime, other.ExpiredTime)) return false;
+ if (!object.Equals(Author, other.Author)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (proposer_ != null) hash ^= Proposer.GetHashCode();
+ if (Status != global::AElf.Contracts.Genesis.ContractProposingInputStatus.Proposed) hash ^= Status.GetHashCode();
+ if (expiredTime_ != null) hash ^= ExpiredTime.GetHashCode();
+ if (author_ != null) hash ^= Author.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (proposer_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Proposer);
+ }
+ if (Status != global::AElf.Contracts.Genesis.ContractProposingInputStatus.Proposed) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) Status);
+ }
+ if (expiredTime_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ExpiredTime);
+ }
+ if (author_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(Author);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (proposer_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Proposer);
+ }
+ if (Status != global::AElf.Contracts.Genesis.ContractProposingInputStatus.Proposed) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) Status);
+ }
+ if (expiredTime_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ExpiredTime);
+ }
+ if (author_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(Author);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (proposer_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Proposer);
+ }
+ if (Status != global::AElf.Contracts.Genesis.ContractProposingInputStatus.Proposed) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
+ }
+ if (expiredTime_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiredTime);
+ }
+ if (author_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractProposingInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.proposer_ != null) {
+ if (proposer_ == null) {
+ Proposer = new global::AElf.Types.Address();
+ }
+ Proposer.MergeFrom(other.Proposer);
+ }
+ if (other.Status != global::AElf.Contracts.Genesis.ContractProposingInputStatus.Proposed) {
+ Status = other.Status;
+ }
+ if (other.expiredTime_ != null) {
+ if (expiredTime_ == null) {
+ ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
+ }
+ ExpiredTime.MergeFrom(other.ExpiredTime);
+ }
+ if (other.author_ != null) {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ Author.MergeFrom(other.Author);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (proposer_ == null) {
+ Proposer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Proposer);
+ break;
+ }
+ case 16: {
+ Status = (global::AElf.Contracts.Genesis.ContractProposingInputStatus) input.ReadEnum();
+ break;
+ }
+ case 26: {
+ if (expiredTime_ == null) {
+ ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
+ }
+ input.ReadMessage(ExpiredTime);
+ break;
+ }
+ case 34: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (proposer_ == null) {
+ Proposer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Proposer);
+ break;
+ }
+ case 16: {
+ Status = (global::AElf.Contracts.Genesis.ContractProposingInputStatus) input.ReadEnum();
+ break;
+ }
+ case 26: {
+ if (expiredTime_ == null) {
+ ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
+ }
+ input.ReadMessage(ExpiredTime);
+ break;
+ }
+ case 34: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SetContractProposalExpirationTimePeriodInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetContractProposalExpirationTimePeriodInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.Genesis.BasicContractZeroReflection.Descriptor.MessageTypes[2]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SetContractProposalExpirationTimePeriodInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SetContractProposalExpirationTimePeriodInput(SetContractProposalExpirationTimePeriodInput other) : this() {
+ expirationTimePeriod_ = other.expirationTimePeriod_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SetContractProposalExpirationTimePeriodInput Clone() {
+ return new SetContractProposalExpirationTimePeriodInput(this);
+ }
+
+ /// Field number for the "expiration_time_period" field.
+ public const int ExpirationTimePeriodFieldNumber = 1;
+ private int expirationTimePeriod_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int ExpirationTimePeriod {
+ get { return expirationTimePeriod_; }
+ set {
+ expirationTimePeriod_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SetContractProposalExpirationTimePeriodInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SetContractProposalExpirationTimePeriodInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ExpirationTimePeriod != other.ExpirationTimePeriod) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (ExpirationTimePeriod != 0) hash ^= ExpirationTimePeriod.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (ExpirationTimePeriod != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(ExpirationTimePeriod);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (ExpirationTimePeriod != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(ExpirationTimePeriod);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (ExpirationTimePeriod != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExpirationTimePeriod);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SetContractProposalExpirationTimePeriodInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.ExpirationTimePeriod != 0) {
+ ExpirationTimePeriod = other.ExpirationTimePeriod;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ExpirationTimePeriod = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ExpirationTimePeriod = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/src/AElfScan.GenesisApp/GenesisAppMapperProfile.cs b/src/AElfScan.GenesisApp/GenesisAppMapperProfile.cs
new file mode 100644
index 0000000..e5485a9
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GenesisAppMapperProfile.cs
@@ -0,0 +1,39 @@
+using AElfScan.GenesisApp.Entities;
+using AElfScan.GenesisApp.GraphQL;
+using AElf.Standards.ACS0;
+using AElf.Types;
+using AutoMapper;
+using Google.Protobuf;
+using Volo.Abp.AutoMapper;
+
+namespace AElfScan.GenesisApp;
+
+public class GenesisAppMapperProfile : Profile
+{
+ public GenesisAppMapperProfile()
+ {
+ // Common
+ CreateMap().ConvertUsing(s => s == null ? string.Empty : s.ToHex());
+ CreateMap().ConvertUsing(s => s.ToBase58());
+ CreateMap().ConvertUsing(s => s.ToBase64());
+
+ CreateMap();
+ CreateMap()
+ .Ignore(o => o.Id);
+ CreateMap()
+ .ForMember(d => d.NameHash, opt => opt.MapFrom(s => s.Name.ToHex()));
+ CreateMap()
+ .Ignore(o => o.Id);
+
+ CreateMap()
+ .ForMember(d => d.ContractCategory, opt => opt.MapFrom(s => s.Category))
+ .ForMember(d => d.ContractType,
+ opt => opt.MapFrom(s => s.IsSystemContract ? ContractType.SystemContract : ContractType.UserContract));
+
+ CreateMap();
+
+ CreateMap();
+ CreateMap();
+ CreateMap();
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GenesisAppModule.cs b/src/AElfScan.GenesisApp/GenesisAppModule.cs
new file mode 100644
index 0000000..f94c7d4
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GenesisAppModule.cs
@@ -0,0 +1,23 @@
+using AElfScan.GenesisApp.GraphQL;
+using AElfScan.GenesisApp.Processors;
+using AeFinder.Sdk.Processor;
+using GraphQL.Types;
+using Microsoft.Extensions.DependencyInjection;
+using Volo.Abp.AutoMapper;
+using Volo.Abp.Modularity;
+
+namespace AElfScan.GenesisApp;
+
+public class GenesisAppModule : AbpModule
+{
+ public override void ConfigureServices(ServiceConfigurationContext context)
+ {
+ Configure(options => { options.AddMaps(); });
+ context.Services.AddSingleton();
+ context.Services.AddSingleton();
+ context.Services.AddSingleton();
+ context.Services.AddSingleton();
+ context.Services.AddSingleton();
+ context.Services.AddSingleton();
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GenesisContractAddressProvider.cs b/src/AElfScan.GenesisApp/GenesisContractAddressProvider.cs
new file mode 100644
index 0000000..96b1b0d
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GenesisContractAddressProvider.cs
@@ -0,0 +1,22 @@
+using Volo.Abp.DependencyInjection;
+
+namespace AElfScan.GenesisApp;
+
+public interface IGenesisContractAddressProvider
+{
+ string GetContractAddress(string chainId);
+}
+
+public class GenesisContractAddressProvider : IGenesisContractAddressProvider, ISingletonDependency
+{
+ private readonly Dictionary _contractAddresses = new()
+ {
+ { "AELF", "" },
+ { "tDVV", "" }
+ };
+
+ public string GetContractAddress(string chainId)
+ {
+ return _contractAddresses[chainId];
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GraphQL/ContractInfoDto.cs b/src/AElfScan.GenesisApp/GraphQL/ContractInfoDto.cs
new file mode 100644
index 0000000..27d9021
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GraphQL/ContractInfoDto.cs
@@ -0,0 +1,23 @@
+using AeFinder.Sdk.Dtos;
+using AElfScan.GenesisApp.Entities;
+using AeFinder.Sdk.Dtos;
+
+namespace AElfScan.GenesisApp.GraphQL;
+
+public class ContractInfoResultDto
+{
+ public long TotalCount { get; set; }
+ public List Items { get; set; }
+}
+
+public class ContractInfoDto : AeFinderEntityDto
+{
+ public string Address { get; set; }
+ public string CodeHash { get; set; }
+ public string Author { get; set; }
+ public int Version { get; set; }
+ public string NameHash { get; set; }
+ public string ContractVersion { get; set; }
+ public int ContractCategory { get; set; }
+ public ContractType ContractType { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GraphQL/ContractRecordDto.cs b/src/AElfScan.GenesisApp/GraphQL/ContractRecordDto.cs
new file mode 100644
index 0000000..d8401ee
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GraphQL/ContractRecordDto.cs
@@ -0,0 +1,12 @@
+using AElfScan.GenesisApp.Entities;
+using AeFinder.Sdk.Dtos;
+
+namespace AElfScan.GenesisApp.GraphQL;
+
+public class ContractRecordDto : AeFinderEntityDto
+{
+ public ContractOperationType OperationType { get; set; }
+ public string Operator { get; set; }
+ public string TransactionId { get; set; }
+ public ContractInfoDto ContractInfo { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GraphQL/ContractRegistrationDto.cs b/src/AElfScan.GenesisApp/GraphQL/ContractRegistrationDto.cs
new file mode 100644
index 0000000..d69a609
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GraphQL/ContractRegistrationDto.cs
@@ -0,0 +1,13 @@
+using AElfScan.GenesisApp.Entities;
+using AeFinder.Sdk.Dtos;
+
+namespace AElfScan.GenesisApp.GraphQL;
+
+public class ContractRegistrationDto : AeFinderEntityDto
+{
+ public string CodeHash { get; set; }
+ public string Code { get; set; }
+ public string ProposedContractInputHash { get; set; }
+ public int ContractCategory { get; set; }
+ public ContractType ContractType { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GraphQL/GenesisAppSchema.cs b/src/AElfScan.GenesisApp/GraphQL/GenesisAppSchema.cs
new file mode 100644
index 0000000..211a1bf
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GraphQL/GenesisAppSchema.cs
@@ -0,0 +1,10 @@
+using AeFinder.Sdk;
+
+namespace AElfScan.GenesisApp.GraphQL;
+
+public class GenesisAppSchema : AppSchema
+{
+ public GenesisAppSchema(IServiceProvider serviceProvider) : base(serviceProvider)
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GraphQL/GetContractInfoDto.cs b/src/AElfScan.GenesisApp/GraphQL/GetContractInfoDto.cs
new file mode 100644
index 0000000..314498c
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GraphQL/GetContractInfoDto.cs
@@ -0,0 +1,12 @@
+namespace AElfScan.GenesisApp.GraphQL;
+
+public class GetContractInfoDto : PagedResultQueryDto
+{
+ public string ChainId { get; set; }
+ public string Address { get; set; }
+
+ public List AddressList { get; set; }
+ public string Author { get; set; }
+
+ public long? BlockHeight { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GraphQL/GetContractRecordDto.cs b/src/AElfScan.GenesisApp/GraphQL/GetContractRecordDto.cs
new file mode 100644
index 0000000..3d1416a
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GraphQL/GetContractRecordDto.cs
@@ -0,0 +1,8 @@
+namespace AElfScan.GenesisApp.GraphQL;
+
+public class GetContractRecordDto : PagedResultQueryDto
+{
+ public string ChainId { get; set; }
+ public string Address { get; set; }
+ public string Author { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GraphQL/GetContractRegistrationDto.cs b/src/AElfScan.GenesisApp/GraphQL/GetContractRegistrationDto.cs
new file mode 100644
index 0000000..a381e5d
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GraphQL/GetContractRegistrationDto.cs
@@ -0,0 +1,20 @@
+namespace AElfScan.GenesisApp.GraphQL;
+
+public class GetContractRegistrationDto
+{
+ public string ChainId { get; set; }
+ public string CodeHash { get; set; }
+
+ public virtual void Validate()
+ {
+ if (ChainId.IsNullOrWhiteSpace())
+ {
+ throw new ArgumentOutOfRangeException($"{nameof(ChainId)} is required.");
+ }
+
+ if (CodeHash.IsNullOrWhiteSpace())
+ {
+ throw new ArgumentOutOfRangeException($"{nameof(CodeHash)} is required.");
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GraphQL/PagedResultQueryDto.cs b/src/AElfScan.GenesisApp/GraphQL/PagedResultQueryDto.cs
new file mode 100644
index 0000000..431df02
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GraphQL/PagedResultQueryDto.cs
@@ -0,0 +1,29 @@
+
+namespace AElfScan.GenesisApp.GraphQL;
+
+public class PagedResultQueryDto
+{
+ public static int DefaultMaxResultCount { get; set; } = 10;
+ public static int MaxMaxResultCount { get; set; } = 1000;
+ public int SkipCount { get; set; } = 0;
+
+ public string OrderBy { get; set; }
+
+ public string Sort { get; set; }
+ public int MaxResultCount { get; set; } = DefaultMaxResultCount;
+
+ public virtual void Validate()
+ {
+ if (MaxResultCount > MaxMaxResultCount)
+ {
+ throw new ArgumentOutOfRangeException(nameof(MaxResultCount),
+ $"Max allowed value for {nameof(MaxResultCount)} is {MaxMaxResultCount}.");
+ }
+ }
+}
+
+public enum SortType
+{
+ Asc,
+ Desc
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/GraphQL/Query.cs b/src/AElfScan.GenesisApp/GraphQL/Query.cs
new file mode 100644
index 0000000..7823463
--- /dev/null
+++ b/src/AElfScan.GenesisApp/GraphQL/Query.cs
@@ -0,0 +1,106 @@
+using System.Linq.Expressions;
+using AeFinder.Sdk;
+using GraphQL;
+using Volo.Abp.ObjectMapping;
+
+namespace AElfScan.GenesisApp.GraphQL;
+
+public class Query
+{
+ public static async Task ContractList(
+ [FromServices] IReadOnlyRepository repository,
+ [FromServices] IObjectMapper objectMapper, GetContractInfoDto input)
+ {
+ input.Validate();
+
+
+ var queryable = await repository.GetQueryableAsync();
+ if (!input.ChainId.IsNullOrWhiteSpace())
+ {
+ queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId);
+ }
+
+ if (!input.Address.IsNullOrWhiteSpace())
+ {
+ queryable = queryable.Where(o => o.Address == input.Address);
+ }
+
+ if (!input.Author.IsNullOrWhiteSpace())
+ {
+ queryable = queryable.Where(o => o.Author == input.Author);
+ }
+
+ if (input.OrderBy == "BlockTime")
+ {
+ queryable = input.Sort.ToLower() == SortType.Asc.ToString().ToLower()
+ ? queryable.OrderBy(o => o.Metadata.Block.BlockTime)
+ : queryable.OrderByDescending(o => o.Metadata.Block.BlockHeight);
+ }
+ else
+ {
+ queryable = queryable.OrderByDescending(o => o.Metadata.Block.BlockTime);
+ }
+
+ if (!input.AddressList.IsNullOrEmpty())
+ {
+ var predicates = input.AddressList.Select(s =>
+ (Expression>)(o => o.Address == s));
+ var predicate = predicates.Aggregate((prev, next) => prev.Or(next));
+ queryable = queryable.Where(predicate);
+ }
+ if (input.BlockHeight!=null && input.BlockHeight> 0)
+ {
+ queryable = queryable.Where(o => o.Metadata.Block.BlockHeight >= input.BlockHeight);
+ }
+
+ var contractInfoResultDto = new ContractInfoResultDto();
+ contractInfoResultDto.TotalCount = queryable.Count();
+ var result = queryable.Skip(input.SkipCount)
+ .Take(input.MaxResultCount).ToList();
+ contractInfoResultDto.Items = objectMapper.Map, List>(result);
+
+ return contractInfoResultDto;
+ }
+
+ public static async Task> ContractRecord(
+ [FromServices] IReadOnlyRepository repository,
+ [FromServices] IObjectMapper objectMapper, GetContractRecordDto input)
+ {
+ input.Validate();
+
+ var queryable = await repository.GetQueryableAsync();
+
+ if (!input.ChainId.IsNullOrWhiteSpace())
+ {
+ queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId);
+ }
+
+ if (!input.Address.IsNullOrWhiteSpace())
+ {
+ queryable = queryable.Where(o => o.ContractInfo.Address == input.Address);
+ }
+
+ if (!input.Author.IsNullOrWhiteSpace())
+ {
+ queryable = queryable.Where(o => o.ContractInfo.Author == input.Author);
+ }
+
+ var result = queryable.OrderByDescending(o => o.Metadata.Block.BlockTime).Skip(input.SkipCount)
+ .Take(input.MaxResultCount).ToList();
+
+ return objectMapper.Map, List>(result);
+ }
+
+ public static async Task> ContractRegistration(
+ [FromServices] IReadOnlyRepository repository,
+ [FromServices] IObjectMapper objectMapper, GetContractRegistrationDto input)
+ {
+ input.Validate();
+
+ var queryable = await repository.GetQueryableAsync();
+
+ var result = queryable.Where(o => o.Metadata.ChainId == input.ChainId).Where(o => o.CodeHash == input.CodeHash)
+ .ToList();
+ return objectMapper.Map, List>(result);
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/IdGenerateHelper.cs b/src/AElfScan.GenesisApp/IdGenerateHelper.cs
new file mode 100644
index 0000000..99067a9
--- /dev/null
+++ b/src/AElfScan.GenesisApp/IdGenerateHelper.cs
@@ -0,0 +1,9 @@
+namespace AElfScan.GenesisApp;
+
+public static class IdGenerateHelper
+{
+ public static string GetId(params object[] inputs)
+ {
+ return inputs.JoinAsString("-");
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Processors/AuthorUpdatedProcessor.cs b/src/AElfScan.GenesisApp/Processors/AuthorUpdatedProcessor.cs
new file mode 100644
index 0000000..20d0897
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Processors/AuthorUpdatedProcessor.cs
@@ -0,0 +1,20 @@
+using AElfScan.GenesisApp.Entities;
+using AeFinder.Sdk.Processor;
+using AElf.Standards.ACS0;
+
+namespace AElfScan.GenesisApp.Processors;
+
+public class AuthorUpdatedProcessor : GenesisProcessorBase
+{
+ public override async Task ProcessAsync(AuthorUpdated logEvent, LogEventContext context)
+ {
+ var id = GetContractInfoId(context.ChainId, logEvent.Address);
+
+ var contractInfo = await GetEntityAsync(id);
+ contractInfo.Author = logEvent.NewAuthor.ToBase58();
+
+ await SaveEntityAsync(contractInfo);
+
+ await AddRecordAsync(ContractOperationType.SetAuthor, contractInfo, context);
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Processors/CodeCheckRequiredProcessor.cs b/src/AElfScan.GenesisApp/Processors/CodeCheckRequiredProcessor.cs
new file mode 100644
index 0000000..0f0dcca
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Processors/CodeCheckRequiredProcessor.cs
@@ -0,0 +1,28 @@
+using AElfScan.GenesisApp.Entities;
+using AeFinder.Sdk.Processor;
+using AElf.Standards.ACS0;
+
+namespace AElfScan.GenesisApp.Processors;
+
+public class CodeCheckRequiredProcessor : GenesisProcessorBase
+{
+ public override async Task ProcessAsync(CodeCheckRequired logEvent, LogEventContext context)
+ {
+ var codeHash = GetCodeHash(logEvent.Code);
+ var id = GetContractRegistrationId(context.ChainId, codeHash);
+
+ var contractRegistration = new ContractRegistration
+ {
+ Id = id,
+ CodeHash = codeHash
+ };
+ ObjectMapper.Map(logEvent, contractRegistration);
+
+ await SaveEntityAsync(contractRegistration);
+
+ if (logEvent.IsUserContract)
+ {
+ await AddContractProposeInfoAsync(context, logEvent.ProposedContractInputHash.ToHex());
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Processors/CodeUpdatedProcessor.cs b/src/AElfScan.GenesisApp/Processors/CodeUpdatedProcessor.cs
new file mode 100644
index 0000000..1652c39
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Processors/CodeUpdatedProcessor.cs
@@ -0,0 +1,26 @@
+using AeFinder.Sdk.Logging;
+using AElfScan.GenesisApp.Entities;
+using AeFinder.Sdk.Processor;
+using AElf.Standards.ACS0;
+
+namespace AElfScan.GenesisApp.Processors;
+
+public class CodeUpdatedProcessor : GenesisProcessorBase
+{
+ public override async Task ProcessAsync(CodeUpdated logEvent, LogEventContext context)
+ {
+ var id = GetContractInfoId(context.ChainId, logEvent.Address);
+
+ var contractInfo = await GetEntityAsync(id);
+
+ ObjectMapper.Map(logEvent, contractInfo);
+ var contractRegistration =
+ await GetEntityAsync(
+ GetContractRegistrationId(context.ChainId, logEvent.NewCodeHash.ToHex()));
+ ObjectMapper.Map(contractRegistration, contractInfo);
+
+ await SaveEntityAsync(contractInfo);
+
+ await AddRecordAsync(ContractOperationType.UpdateContract, contractInfo, context);
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Processors/ContractDeployedProcessor.cs b/src/AElfScan.GenesisApp/Processors/ContractDeployedProcessor.cs
new file mode 100644
index 0000000..5e5f61a
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Processors/ContractDeployedProcessor.cs
@@ -0,0 +1,57 @@
+using AElfScan.GenesisApp.Entities;
+using AeFinder.Sdk;
+using AeFinder.Sdk.Processor;
+using AElf.Standards.ACS0;
+using AElf.Types;
+
+namespace AElfScan.GenesisApp.Processors;
+
+public class ContractDeployedProcessor : GenesisProcessorBase
+{
+ private readonly IBlockChainService _blockChainService;
+
+ public ContractDeployedProcessor(IBlockChainService blockChainService)
+ {
+ _blockChainService = blockChainService;
+ }
+
+ public override async Task ProcessAsync(ContractDeployed logEvent, LogEventContext context)
+ {
+ var id = GetContractInfoId(context.ChainId, logEvent.Address);
+
+ var contractInfo = new Entities.ContractInfo()
+ {
+ Id = id
+ };
+
+
+ ObjectMapper.Map(logEvent, contractInfo);
+
+ var contractRegistration =
+ await GetEntityAsync(
+ GetContractRegistrationId(context.ChainId, logEvent.CodeHash.ToHex()));
+ if (contractRegistration == null)
+ {
+ // Only for system contracts
+ var smartContractRegistration = await _blockChainService.ViewContractAsync(
+ context.ChainId, GetContractAddress(context.ChainId),
+ "GetSmartContractRegistrationByCodeHash", logEvent.CodeHash);
+
+ var codeHashHex = logEvent.CodeHash.ToHex();
+ contractRegistration = new ContractRegistration
+ {
+ Id = GetContractRegistrationId(context.ChainId, codeHashHex),
+ CodeHash = codeHashHex,
+ Code = smartContractRegistration.Code.ToBase64(),
+ ContractCategory = smartContractRegistration.Category,
+ ContractType = ContractType.SystemContract
+ };
+ await SaveEntityAsync(contractRegistration);
+ }
+
+ ObjectMapper.Map(contractRegistration, contractInfo);
+ await SaveEntityAsync(contractInfo);
+
+ await AddRecordAsync(ContractOperationType.DeployContract, contractInfo, context);
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Processors/ContractProposedProcessor.cs b/src/AElfScan.GenesisApp/Processors/ContractProposedProcessor.cs
new file mode 100644
index 0000000..3dd7b51
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Processors/ContractProposedProcessor.cs
@@ -0,0 +1,12 @@
+using AeFinder.Sdk.Processor;
+using AElf.Standards.ACS0;
+
+namespace AElfScan.GenesisApp.Processors;
+
+public class ContractProposedProcessor : GenesisProcessorBase
+{
+ public override async Task ProcessAsync(ContractProposed logEvent, LogEventContext context)
+ {
+ await AddContractProposeInfoAsync(context, logEvent.ProposedContractInputHash.ToHex());
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/Processors/GenesisProcessorBase.cs b/src/AElfScan.GenesisApp/Processors/GenesisProcessorBase.cs
new file mode 100644
index 0000000..ec28c0b
--- /dev/null
+++ b/src/AElfScan.GenesisApp/Processors/GenesisProcessorBase.cs
@@ -0,0 +1,88 @@
+using AElfScan.GenesisApp.Entities;
+using AeFinder.Sdk.Processor;
+using AElf;
+using AElf.CSharp.Core;
+using AElf.Types;
+using Google.Protobuf;
+using Volo.Abp.ObjectMapping;
+
+namespace AElfScan.GenesisApp.Processors;
+
+public abstract class GenesisProcessorBase : LogEventProcessorBase where TEvent : IEvent, new()
+{
+ protected IObjectMapper ObjectMapper => LazyServiceProvider.LazyGetRequiredService();
+
+ public IGenesisContractAddressProvider ContractAddressProvider { get; set; }
+
+ public override string GetContractAddress(string chainId)
+ {
+ return ContractAddressProvider.GetContractAddress(chainId);
+ }
+
+ protected string GetCodeHash(ByteString code)
+ {
+ return HashHelper.ComputeFrom(code.ToByteArray()).ToHex();
+ }
+
+ protected string GetContractInfoId(string chainId, Address address)
+ {
+ return IdGenerateHelper.GetId(chainId, address.ToBase58());
+ }
+
+ protected string GetContractRegistrationId(string chainId, string codeHash)
+ {
+ return IdGenerateHelper.GetId(chainId, codeHash);
+ }
+
+ protected string GetContractProposeInfoId(string chainId, string proposedContractInputHash)
+ {
+ return IdGenerateHelper.GetId(chainId, proposedContractInputHash);
+ }
+
+ protected async Task AddRecordAsync(ContractOperationType type, Entities.ContractInfo contractInfo, LogEventContext context)
+ {
+ var contractRecord = new ContractRecord
+ {
+ Id = Guid.NewGuid().ToString(),
+ OperationType = type,
+ TransactionId = context.Transaction.TransactionId,
+ ContractInfo = contractInfo
+ };
+
+ if (type == ContractOperationType.SetAuthor)
+ {
+ contractRecord.Operator = context.Transaction.From;
+ }
+ else
+ {
+ contractRecord.Operator = await GetContractOperatorAsync(context, contractInfo.CodeHash);
+ }
+
+ await SaveEntityAsync(contractRecord);
+ }
+
+ protected async Task AddContractProposeInfoAsync(LogEventContext context, string proposedContractInputHash)
+ {
+ var id = GetContractProposeInfoId(context.ChainId, proposedContractInputHash);
+
+ var contractProposeInfo = new Entities.ContractProposeInfo()
+ {
+ Id = id,
+ ProposedContractInputHash = proposedContractInputHash,
+ Proposer = context.Transaction.From
+ };
+ await SaveEntityAsync(contractProposeInfo);
+ }
+
+ protected async Task GetContractOperatorAsync(LogEventContext context, string codeHash)
+ {
+ var contractRegistration =
+ await GetEntityAsync(GetContractRegistrationId(context.ChainId, codeHash));
+
+ var id = GetContractProposeInfoId(context.ChainId, contractRegistration.ProposedContractInputHash);
+ var contractProposeInfo = await GetEntityAsync(id);
+ return contractProposeInfo != null
+ ? contractProposeInfo.Proposer
+ : context.Transaction.From;
+ }
+}
\ No newline at end of file
diff --git a/src/AElfScan.GenesisApp/obj/Debug/net7.0/AElfScan.GenesisApp.AssemblyInfo.cs b/src/AElfScan.GenesisApp/obj/Debug/net7.0/AElfScan.GenesisApp.AssemblyInfo.cs
new file mode 100644
index 0000000..55e75c3
--- /dev/null
+++ b/src/AElfScan.GenesisApp/obj/Debug/net7.0/AElfScan.GenesisApp.AssemblyInfo.cs
@@ -0,0 +1,22 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("AElfScan.GenesisApp")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7b319cbcb39d4b579a61563ba28371d4b30fc25f")]
+[assembly: System.Reflection.AssemblyProductAttribute("AElfScan.GenesisApp")]
+[assembly: System.Reflection.AssemblyTitleAttribute("AElfScan.GenesisApp")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// 由 MSBuild WriteCodeFragment 类生成。
+
diff --git a/test/AElfScan.GenesisApp.Tests/AElfScan.GenesisApp.Tests.csproj b/test/AElfScan.GenesisApp.Tests/AElfScan.GenesisApp.Tests.csproj
new file mode 100644
index 0000000..ed968cf
--- /dev/null
+++ b/test/AElfScan.GenesisApp.Tests/AElfScan.GenesisApp.Tests.csproj
@@ -0,0 +1,25 @@
+
+
+
+ net8.0
+ enable
+ AElfScan.GenesisApp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
diff --git a/test/AElfScan.GenesisApp.Tests/AssemblyInfo.cs b/test/AElfScan.GenesisApp.Tests/AssemblyInfo.cs
new file mode 100644
index 0000000..41a898e
--- /dev/null
+++ b/test/AElfScan.GenesisApp.Tests/AssemblyInfo.cs
@@ -0,0 +1,3 @@
+using Xunit;
+
+[assembly: CollectionBehavior(DisableTestParallelization = true)]
\ No newline at end of file
diff --git a/test/AElfScan.GenesisApp.Tests/Generated/Acs0.c.cs b/test/AElfScan.GenesisApp.Tests/Generated/Acs0.c.cs
new file mode 100644
index 0000000..5738f5b
--- /dev/null
+++ b/test/AElfScan.GenesisApp.Tests/Generated/Acs0.c.cs
@@ -0,0 +1,140 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: acs0.proto
+//
+// Original file comments:
+// *
+// AElf Standards ACS0(Contract Deployment Standard)
+//
+// Used to manage the deployment and update of contracts.
+#pragma warning disable 0414, 1591
+#region Designer generated code
+
+using System.Collections.Generic;
+using aelf = global::AElf.CSharp.Core;
+
+namespace AElf.Standards.ACS0 {
+
+ #region Events
+ public partial class ContractProposed : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public ContractProposed GetNonIndexed()
+ {
+ return new ContractProposed
+ {
+ ProposedContractInputHash = ProposedContractInputHash,
+ };
+ }
+ }
+
+ public partial class ContractDeployed : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new ContractDeployed
+ {
+ Author = Author
+ },
+ new ContractDeployed
+ {
+ CodeHash = CodeHash
+ },
+ };
+ }
+
+ public ContractDeployed GetNonIndexed()
+ {
+ return new ContractDeployed
+ {
+ Address = Address,
+ Version = Version,
+ Name = Name,
+ ContractVersion = ContractVersion,
+ Deployer = Deployer,
+ };
+ }
+ }
+
+ public partial class CodeCheckRequired : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public CodeCheckRequired GetNonIndexed()
+ {
+ return new CodeCheckRequired
+ {
+ Code = Code,
+ ProposedContractInputHash = ProposedContractInputHash,
+ Category = Category,
+ IsSystemContract = IsSystemContract,
+ IsUserContract = IsUserContract,
+ };
+ }
+ }
+
+ public partial class CodeUpdated : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new CodeUpdated
+ {
+ Address = Address
+ },
+ };
+ }
+
+ public CodeUpdated GetNonIndexed()
+ {
+ return new CodeUpdated
+ {
+ OldCodeHash = OldCodeHash,
+ NewCodeHash = NewCodeHash,
+ Version = Version,
+ ContractVersion = ContractVersion,
+ };
+ }
+ }
+
+ public partial class AuthorUpdated : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new AuthorUpdated
+ {
+ Address = Address
+ },
+ };
+ }
+
+ public AuthorUpdated GetNonIndexed()
+ {
+ return new AuthorUpdated
+ {
+ OldAuthor = OldAuthor,
+ NewAuthor = NewAuthor,
+ };
+ }
+ }
+
+ #endregion
+}
+#endregion
+
diff --git a/test/AElfScan.GenesisApp.Tests/Generated/Acs0.g.cs b/test/AElfScan.GenesisApp.Tests/Generated/Acs0.g.cs
new file mode 100644
index 0000000..385099a
--- /dev/null
+++ b/test/AElfScan.GenesisApp.Tests/Generated/Acs0.g.cs
@@ -0,0 +1,6353 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: acs0.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace AElf.Standards.ACS0 {
+
+ /// Holder for reflection information generated from acs0.proto
+ public static partial class Acs0Reflection {
+
+ #region Descriptor
+ /// File descriptor for acs0.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static Acs0Reflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CgphY3MwLnByb3RvEgRhY3MwGg9hZWxmL2NvcmUucHJvdG8aEmFlbGYvb3B0",
+ "aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGh5nb29n",
+ "bGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8i9wEKDENvbnRyYWN0SW5mbxIV",
+ "Cg1zZXJpYWxfbnVtYmVyGAEgASgDEh0KBmF1dGhvchgCIAEoCzINLmFlbGYu",
+ "QWRkcmVzcxIQCghjYXRlZ29yeRgDIAEoERIdCgljb2RlX2hhc2gYBCABKAsy",
+ "Ci5hZWxmLkhhc2gSGgoSaXNfc3lzdGVtX2NvbnRyYWN0GAUgASgIEg8KB3Zl",
+ "cnNpb24YBiABKAUSGAoQY29udHJhY3RfdmVyc2lvbhgHIAEoCRIYChBpc191",
+ "c2VyX2NvbnRyYWN0GAggASgIEh8KCGRlcGxveWVyGAkgASgLMg0uYWVsZi5B",
+ "ZGRyZXNzIm4KF0NvbnRyYWN0RGVwbG95bWVudElucHV0EhAKCGNhdGVnb3J5",
+ "GAEgASgREgwKBGNvZGUYAiABKAwSMwoSY29udHJhY3Rfb3BlcmF0aW9uGAMg",
+ "ASgLMhcuYWNzMC5Db250cmFjdE9wZXJhdGlvbiJXChtVc2VyQ29udHJhY3RE",
+ "ZXBsb3ltZW50SW5wdXQSEAoIY2F0ZWdvcnkYASABKBESDAoEY29kZRgCIAEo",
+ "DBIYCgRzYWx0GAMgASgLMgouYWVsZi5IYXNoIkcKF1VzZXJDb250cmFjdFVw",
+ "ZGF0ZUlucHV0Eh4KB2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3MSDAoE",
+ "Y29kZRgCIAEoDCL7AgodU3lzdGVtQ29udHJhY3REZXBsb3ltZW50SW5wdXQS",
+ "EAoIY2F0ZWdvcnkYASABKBESDAoEY29kZRgCIAEoDBIYCgRuYW1lGAMgASgL",
+ "MgouYWVsZi5IYXNoEmkKHHRyYW5zYWN0aW9uX21ldGhvZF9jYWxsX2xpc3QY",
+ "BCABKAsyQy5hY3MwLlN5c3RlbUNvbnRyYWN0RGVwbG95bWVudElucHV0LlN5",
+ "c3RlbVRyYW5zYWN0aW9uTWV0aG9kQ2FsbExpc3QaQgobU3lzdGVtVHJhbnNh",
+ "Y3Rpb25NZXRob2RDYWxsEhMKC21ldGhvZF9uYW1lGAEgASgJEg4KBnBhcmFt",
+ "cxgCIAEoDBpxCh9TeXN0ZW1UcmFuc2FjdGlvbk1ldGhvZENhbGxMaXN0Ek4K",
+ "BXZhbHVlGAEgAygLMj8uYWNzMC5TeXN0ZW1Db250cmFjdERlcGxveW1lbnRJ",
+ "bnB1dC5TeXN0ZW1UcmFuc2FjdGlvbk1ldGhvZENhbGwieAoTQ29udHJhY3RV",
+ "cGRhdGVJbnB1dBIeCgdhZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRyZXNzEgwK",
+ "BGNvZGUYAiABKAwSMwoSY29udHJhY3Rfb3BlcmF0aW9uGAMgASgLMhcuYWNz",
+ "MC5Db250cmFjdE9wZXJhdGlvbiLTAQoWQ29udHJhY3RDb2RlQ2hlY2tJbnB1",
+ "dBIWCg5jb250cmFjdF9pbnB1dBgBIAEoDBIeChZpc19jb250cmFjdF9kZXBs",
+ "b3ltZW50GAIgASgIEiEKGWNvZGVfY2hlY2tfcmVsZWFzZV9tZXRob2QYAyAB",
+ "KAkSMAoccHJvcG9zZWRfY29udHJhY3RfaW5wdXRfaGFzaBgEIAEoCzIKLmFl",
+ "bGYuSGFzaBIQCghjYXRlZ29yeRgFIAEoERIaChJpc19zeXN0ZW1fY29udHJh",
+ "Y3QYBiABKAgiSgoQQ29udHJhY3RQcm9wb3NlZBIwChxwcm9wb3NlZF9jb250",
+ "cmFjdF9pbnB1dF9oYXNoGAEgASgLMgouYWVsZi5IYXNoOgSguxgBIuoBChBD",
+ "b250cmFjdERlcGxveWVkEiQKBmF1dGhvchgBIAEoCzINLmFlbGYuQWRkcmVz",
+ "c0IFiI/1AQESJAoJY29kZV9oYXNoGAIgASgLMgouYWVsZi5IYXNoQgWIj/UB",
+ "ARIeCgdhZGRyZXNzGAMgASgLMg0uYWVsZi5BZGRyZXNzEg8KB3ZlcnNpb24Y",
+ "BCABKAUSGAoETmFtZRgFIAEoCzIKLmFlbGYuSGFzaBIYChBjb250cmFjdF92",
+ "ZXJzaW9uGAYgASgJEh8KCGRlcGxveWVyGAcgASgLMg0uYWVsZi5BZGRyZXNz",
+ "OgSguxgBIqEBChFDb2RlQ2hlY2tSZXF1aXJlZBIMCgRjb2RlGAEgASgMEjAK",
+ "HHByb3Bvc2VkX2NvbnRyYWN0X2lucHV0X2hhc2gYAiABKAsyCi5hZWxmLkhh",
+ "c2gSEAoIY2F0ZWdvcnkYAyABKBESGgoSaXNfc3lzdGVtX2NvbnRyYWN0GAQg",
+ "ASgIEhgKEGlzX3VzZXJfY29udHJhY3QYBSABKAg6BKC7GAEiqwEKC0NvZGVV",
+ "cGRhdGVkEiUKB2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEB",
+ "EiEKDW9sZF9jb2RlX2hhc2gYAiABKAsyCi5hZWxmLkhhc2gSIQoNbmV3X2Nv",
+ "ZGVfaGFzaBgDIAEoCzIKLmFlbGYuSGFzaBIPCgd2ZXJzaW9uGAQgASgFEhgK",
+ "EGNvbnRyYWN0X3ZlcnNpb24YBSABKAk6BKC7GAEiggEKDUF1dGhvclVwZGF0",
+ "ZWQSJQoHYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzc0IFiI/1AQESIQoK",
+ "b2xkX2F1dGhvchgCIAEoCzINLmFlbGYuQWRkcmVzcxIhCgpuZXdfYXV0aG9y",
+ "GAMgASgLMg0uYWVsZi5BZGRyZXNzOgSguxgBInMKIlZhbGlkYXRlU3lzdGVt",
+ "Q29udHJhY3RBZGRyZXNzSW5wdXQSLQoZc3lzdGVtX2NvbnRyYWN0X2hhc2hf",
+ "bmFtZRgBIAEoCzIKLmFlbGYuSGFzaBIeCgdhZGRyZXNzGAIgASgLMg0uYWVs",
+ "Zi5BZGRyZXNzImkKFFJlbGVhc2VDb250cmFjdElucHV0Eh8KC3Byb3Bvc2Fs",
+ "X2lkGAEgASgLMgouYWVsZi5IYXNoEjAKHHByb3Bvc2VkX2NvbnRyYWN0X2lu",
+ "cHV0X2hhc2gYAiABKAsyCi5hZWxmLkhhc2giMQoUQ29udHJhY3RDb2RlSGFz",
+ "aExpc3QSGQoFdmFsdWUYASADKAsyCi5hZWxmLkhhc2gilAEKE0NvbnRyYWN0",
+ "Q29kZUhhc2hNYXASMwoFdmFsdWUYASADKAsyJC5hY3MwLkNvbnRyYWN0Q29k",
+ "ZUhhc2hNYXAuVmFsdWVFbnRyeRpICgpWYWx1ZUVudHJ5EgsKA2tleRgBIAEo",
+ "AxIpCgV2YWx1ZRgCIAEoCzIaLmFjczAuQ29udHJhY3RDb2RlSGFzaExpc3Q6",
+ "AjgBImQKFlNldENvbnRyYWN0QXV0aG9ySW5wdXQSJwoQY29udHJhY3RfYWRk",
+ "cmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxIhCgpuZXdfYXV0aG9yGAIgASgL",
+ "Mg0uYWVsZi5BZGRyZXNzIj4KHURlcGxveVVzZXJTbWFydENvbnRyYWN0T3V0",
+ "cHV0Eh0KCWNvZGVfaGFzaBgBIAEoCzIKLmFlbGYuSGFzaCKkAQoRQ29udHJh",
+ "Y3RPcGVyYXRpb24SEAoIY2hhaW5faWQYASABKAUSHQoJY29kZV9oYXNoGAIg",
+ "ASgLMgouYWVsZi5IYXNoEh8KCGRlcGxveWVyGAMgASgLMg0uYWVsZi5BZGRy",
+ "ZXNzEhgKBHNhbHQYBCABKAsyCi5hZWxmLkhhc2gSDwoHdmVyc2lvbhgFIAEo",
+ "BRISCglzaWduYXR1cmUYkE4gASgMMsMQCgRBQ1MwElEKGURlcGxveVN5c3Rl",
+ "bVNtYXJ0Q29udHJhY3QSIy5hY3MwLlN5c3RlbUNvbnRyYWN0RGVwbG95bWVu",
+ "dElucHV0Gg0uYWVsZi5BZGRyZXNzIgASRQoTRGVwbG95U21hcnRDb250cmFj",
+ "dBIdLmFjczAuQ29udHJhY3REZXBsb3ltZW50SW5wdXQaDS5hZWxmLkFkZHJl",
+ "c3MiABJBChNVcGRhdGVTbWFydENvbnRyYWN0EhkuYWNzMC5Db250cmFjdFVw",
+ "ZGF0ZUlucHV0Gg0uYWVsZi5BZGRyZXNzIgASQQoSUHJvcG9zZU5ld0NvbnRy",
+ "YWN0Eh0uYWNzMC5Db250cmFjdERlcGxveW1lbnRJbnB1dBoKLmFlbGYuSGFz",
+ "aCIAEkYKGFByb3Bvc2VDb250cmFjdENvZGVDaGVjaxIcLmFjczAuQ29udHJh",
+ "Y3RDb2RlQ2hlY2tJbnB1dBoKLmFlbGYuSGFzaCIAEkAKFVByb3Bvc2VVcGRh",
+ "dGVDb250cmFjdBIZLmFjczAuQ29udHJhY3RVcGRhdGVJbnB1dBoKLmFlbGYu",
+ "SGFzaCIAEk8KF1JlbGVhc2VBcHByb3ZlZENvbnRyYWN0EhouYWNzMC5SZWxl",
+ "YXNlQ29udHJhY3RJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElIK",
+ "GlJlbGVhc2VDb2RlQ2hlY2tlZENvbnRyYWN0EhouYWNzMC5SZWxlYXNlQ29u",
+ "dHJhY3RJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEmMKF0RlcGxv",
+ "eVVzZXJTbWFydENvbnRyYWN0EiEuYWNzMC5Vc2VyQ29udHJhY3REZXBsb3lt",
+ "ZW50SW5wdXQaIy5hY3MwLkRlcGxveVVzZXJTbWFydENvbnRyYWN0T3V0cHV0",
+ "IgASUgoXVXBkYXRlVXNlclNtYXJ0Q29udHJhY3QSHS5hY3MwLlVzZXJDb250",
+ "cmFjdFVwZGF0ZUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASWAog",
+ "UmVsZWFzZUFwcHJvdmVkVXNlclNtYXJ0Q29udHJhY3QSGi5hY3MwLlJlbGVh",
+ "c2VDb250cmFjdElucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASVAoe",
+ "UGVyZm9ybURlcGxveVVzZXJTbWFydENvbnRyYWN0EiEuYWNzMC5Vc2VyQ29u",
+ "dHJhY3REZXBsb3ltZW50SW5wdXQaDS5hZWxmLkFkZHJlc3MiABJZCh5QZXJm",
+ "b3JtVXBkYXRlVXNlclNtYXJ0Q29udHJhY3QSHS5hY3MwLlVzZXJDb250cmFj",
+ "dFVwZGF0ZUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASSwoRU2V0",
+ "Q29udHJhY3RBdXRob3ISHC5hY3MwLlNldENvbnRyYWN0QXV0aG9ySW5wdXQa",
+ "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJjCh1WYWxpZGF0ZVN5c3RlbUNv",
+ "bnRyYWN0QWRkcmVzcxIoLmFjczAuVmFsaWRhdGVTeXN0ZW1Db250cmFjdEFk",
+ "ZHJlc3NJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElgKIFNldENv",
+ "bnRyYWN0UHJvcG9zZXJSZXF1aXJlZFN0YXRlEhouZ29vZ2xlLnByb3RvYnVm",
+ "LkJvb2xWYWx1ZRoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjQKCVNldFNp",
+ "Z25lchINLmFlbGYuQWRkcmVzcxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIA",
+ "EkAKDFJlbW92ZVNpZ25lchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoWLmdv",
+ "b2dsZS5wcm90b2J1Zi5FbXB0eSIAElkKG0N1cnJlbnRDb250cmFjdFNlcmlh",
+ "bE51bWJlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRobLmdvb2dsZS5wcm90",
+ "b2J1Zi5JbnQ2NFZhbHVlIgWIifcBARI7Cg9HZXRDb250cmFjdEluZm8SDS5h",
+ "ZWxmLkFkZHJlc3MaEi5hY3MwLkNvbnRyYWN0SW5mbyIFiIn3AQESOAoRR2V0",
+ "Q29udHJhY3RBdXRob3ISDS5hZWxmLkFkZHJlc3MaDS5hZWxmLkFkZHJlc3Mi",
+ "BYiJ9wEBEjMKD0dldENvbnRyYWN0SGFzaBINLmFlbGYuQWRkcmVzcxoKLmFl",
+ "bGYuSGFzaCIFiIn3AQESPAoYR2V0Q29udHJhY3RBZGRyZXNzQnlOYW1lEgou",
+ "YWVsZi5IYXNoGg0uYWVsZi5BZGRyZXNzIgWIifcBARJeCiVHZXRTbWFydENv",
+ "bnRyYWN0UmVnaXN0cmF0aW9uQnlBZGRyZXNzEg0uYWVsZi5BZGRyZXNzGh8u",
+ "YWVsZi5TbWFydENvbnRyYWN0UmVnaXN0cmF0aW9uIgWIifcBARJcCiZHZXRT",
+ "bWFydENvbnRyYWN0UmVnaXN0cmF0aW9uQnlDb2RlSGFzaBIKLmFlbGYuSGFz",
+ "aBofLmFlbGYuU21hcnRDb250cmFjdFJlZ2lzdHJhdGlvbiIFiIn3AQESbwot",
+ "R2V0Q29udHJhY3RDb2RlSGFzaExpc3RCeURlcGxveWluZ0Jsb2NrSGVpZ2h0",
+ "EhsuZ29vZ2xlLnByb3RvYnVmLkludDY0VmFsdWUaGi5hY3MwLkNvbnRyYWN0",
+ "Q29kZUhhc2hMaXN0IgWIifcBARIwCglHZXRTaWduZXISDS5hZWxmLkFkZHJl",
+ "c3MaDS5hZWxmLkFkZHJlc3MiBYiJ9wEBQhaqAhNBRWxmLlN0YW5kYXJkcy5B",
+ "Q1MwUABiBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractInfo), global::AElf.Standards.ACS0.ContractInfo.Parser, new[]{ "SerialNumber", "Author", "Category", "CodeHash", "IsSystemContract", "Version", "ContractVersion", "IsUserContract", "Deployer" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractDeploymentInput), global::AElf.Standards.ACS0.ContractDeploymentInput.Parser, new[]{ "Category", "Code", "ContractOperation" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.UserContractDeploymentInput), global::AElf.Standards.ACS0.UserContractDeploymentInput.Parser, new[]{ "Category", "Code", "Salt" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.UserContractUpdateInput), global::AElf.Standards.ACS0.UserContractUpdateInput.Parser, new[]{ "Address", "Code" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SystemContractDeploymentInput), global::AElf.Standards.ACS0.SystemContractDeploymentInput.Parser, new[]{ "Category", "Code", "Name", "TransactionMethodCallList" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCall), global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCall.Parser, new[]{ "MethodName", "Params" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList), global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList.Parser, new[]{ "Value" }, null, null, null, null)}),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractUpdateInput), global::AElf.Standards.ACS0.ContractUpdateInput.Parser, new[]{ "Address", "Code", "ContractOperation" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractCodeCheckInput), global::AElf.Standards.ACS0.ContractCodeCheckInput.Parser, new[]{ "ContractInput", "IsContractDeployment", "CodeCheckReleaseMethod", "ProposedContractInputHash", "Category", "IsSystemContract" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractProposed), global::AElf.Standards.ACS0.ContractProposed.Parser, new[]{ "ProposedContractInputHash" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractDeployed), global::AElf.Standards.ACS0.ContractDeployed.Parser, new[]{ "Author", "CodeHash", "Address", "Version", "Name", "ContractVersion", "Deployer" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.CodeCheckRequired), global::AElf.Standards.ACS0.CodeCheckRequired.Parser, new[]{ "Code", "ProposedContractInputHash", "Category", "IsSystemContract", "IsUserContract" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.CodeUpdated), global::AElf.Standards.ACS0.CodeUpdated.Parser, new[]{ "Address", "OldCodeHash", "NewCodeHash", "Version", "ContractVersion" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.AuthorUpdated), global::AElf.Standards.ACS0.AuthorUpdated.Parser, new[]{ "Address", "OldAuthor", "NewAuthor" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ValidateSystemContractAddressInput), global::AElf.Standards.ACS0.ValidateSystemContractAddressInput.Parser, new[]{ "SystemContractHashName", "Address" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ReleaseContractInput), global::AElf.Standards.ACS0.ReleaseContractInput.Parser, new[]{ "ProposalId", "ProposedContractInputHash" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractCodeHashList), global::AElf.Standards.ACS0.ContractCodeHashList.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractCodeHashMap), global::AElf.Standards.ACS0.ContractCodeHashMap.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SetContractAuthorInput), global::AElf.Standards.ACS0.SetContractAuthorInput.Parser, new[]{ "ContractAddress", "NewAuthor" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.DeployUserSmartContractOutput), global::AElf.Standards.ACS0.DeployUserSmartContractOutput.Parser, new[]{ "CodeHash" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractOperation), global::AElf.Standards.ACS0.ContractOperation.Parser, new[]{ "ChainId", "CodeHash", "Deployer", "Salt", "Version", "Signature" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class ContractInfo : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractInfo());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractInfo() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractInfo(ContractInfo other) : this() {
+ serialNumber_ = other.serialNumber_;
+ author_ = other.author_ != null ? other.author_.Clone() : null;
+ category_ = other.category_;
+ codeHash_ = other.codeHash_ != null ? other.codeHash_.Clone() : null;
+ isSystemContract_ = other.isSystemContract_;
+ version_ = other.version_;
+ contractVersion_ = other.contractVersion_;
+ isUserContract_ = other.isUserContract_;
+ deployer_ = other.deployer_ != null ? other.deployer_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractInfo Clone() {
+ return new ContractInfo(this);
+ }
+
+ /// Field number for the "serial_number" field.
+ public const int SerialNumberFieldNumber = 1;
+ private long serialNumber_;
+ ///
+ /// The serial number of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long SerialNumber {
+ get { return serialNumber_; }
+ set {
+ serialNumber_ = value;
+ }
+ }
+
+ /// Field number for the "author" field.
+ public const int AuthorFieldNumber = 2;
+ private global::AElf.Types.Address author_;
+ ///
+ /// The author of the contract, this is the person who deployed the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Author {
+ get { return author_; }
+ set {
+ author_ = value;
+ }
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 3;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "code_hash" field.
+ public const int CodeHashFieldNumber = 4;
+ private global::AElf.Types.Hash codeHash_;
+ ///
+ /// The hash of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash CodeHash {
+ get { return codeHash_; }
+ set {
+ codeHash_ = value;
+ }
+ }
+
+ /// Field number for the "is_system_contract" field.
+ public const int IsSystemContractFieldNumber = 5;
+ private bool isSystemContract_;
+ ///
+ /// Whether it is a system contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsSystemContract {
+ get { return isSystemContract_; }
+ set {
+ isSystemContract_ = value;
+ }
+ }
+
+ /// Field number for the "version" field.
+ public const int VersionFieldNumber = 6;
+ private int version_;
+ ///
+ /// The version of the current contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Version {
+ get { return version_; }
+ set {
+ version_ = value;
+ }
+ }
+
+ /// Field number for the "contract_version" field.
+ public const int ContractVersionFieldNumber = 7;
+ private string contractVersion_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string ContractVersion {
+ get { return contractVersion_; }
+ set {
+ contractVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "is_user_contract" field.
+ public const int IsUserContractFieldNumber = 8;
+ private bool isUserContract_;
+ ///
+ /// Indicates if the contract is the user contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsUserContract {
+ get { return isUserContract_; }
+ set {
+ isUserContract_ = value;
+ }
+ }
+
+ /// Field number for the "deployer" field.
+ public const int DeployerFieldNumber = 9;
+ private global::AElf.Types.Address deployer_;
+ ///
+ /// The address for deploying the contract
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Deployer {
+ get { return deployer_; }
+ set {
+ deployer_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractInfo);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractInfo other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (SerialNumber != other.SerialNumber) return false;
+ if (!object.Equals(Author, other.Author)) return false;
+ if (Category != other.Category) return false;
+ if (!object.Equals(CodeHash, other.CodeHash)) return false;
+ if (IsSystemContract != other.IsSystemContract) return false;
+ if (Version != other.Version) return false;
+ if (ContractVersion != other.ContractVersion) return false;
+ if (IsUserContract != other.IsUserContract) return false;
+ if (!object.Equals(Deployer, other.Deployer)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (SerialNumber != 0L) hash ^= SerialNumber.GetHashCode();
+ if (author_ != null) hash ^= Author.GetHashCode();
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (codeHash_ != null) hash ^= CodeHash.GetHashCode();
+ if (IsSystemContract != false) hash ^= IsSystemContract.GetHashCode();
+ if (Version != 0) hash ^= Version.GetHashCode();
+ if (ContractVersion.Length != 0) hash ^= ContractVersion.GetHashCode();
+ if (IsUserContract != false) hash ^= IsUserContract.GetHashCode();
+ if (deployer_ != null) hash ^= Deployer.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (SerialNumber != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(SerialNumber);
+ }
+ if (author_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Author);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(24);
+ output.WriteSInt32(Category);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(CodeHash);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(IsSystemContract);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(ContractVersion);
+ }
+ if (IsUserContract != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(IsUserContract);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(74);
+ output.WriteMessage(Deployer);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (SerialNumber != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(SerialNumber);
+ }
+ if (author_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Author);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(24);
+ output.WriteSInt32(Category);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(CodeHash);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(IsSystemContract);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(ContractVersion);
+ }
+ if (IsUserContract != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(IsUserContract);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(74);
+ output.WriteMessage(Deployer);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (SerialNumber != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(SerialNumber);
+ }
+ if (author_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author);
+ }
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (codeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(CodeHash);
+ }
+ if (IsSystemContract != false) {
+ size += 1 + 1;
+ }
+ if (Version != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ContractVersion);
+ }
+ if (IsUserContract != false) {
+ size += 1 + 1;
+ }
+ if (deployer_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deployer);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractInfo other) {
+ if (other == null) {
+ return;
+ }
+ if (other.SerialNumber != 0L) {
+ SerialNumber = other.SerialNumber;
+ }
+ if (other.author_ != null) {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ Author.MergeFrom(other.Author);
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.codeHash_ != null) {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ CodeHash.MergeFrom(other.CodeHash);
+ }
+ if (other.IsSystemContract != false) {
+ IsSystemContract = other.IsSystemContract;
+ }
+ if (other.Version != 0) {
+ Version = other.Version;
+ }
+ if (other.ContractVersion.Length != 0) {
+ ContractVersion = other.ContractVersion;
+ }
+ if (other.IsUserContract != false) {
+ IsUserContract = other.IsUserContract;
+ }
+ if (other.deployer_ != null) {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ Deployer.MergeFrom(other.Deployer);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ SerialNumber = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ case 24: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 34: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 40: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ case 48: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 58: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ case 64: {
+ IsUserContract = input.ReadBool();
+ break;
+ }
+ case 74: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ SerialNumber = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ case 24: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 34: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 40: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ case 48: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 58: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ case 64: {
+ IsUserContract = input.ReadBool();
+ break;
+ }
+ case 74: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractDeploymentInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractDeploymentInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeploymentInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeploymentInput(ContractDeploymentInput other) : this() {
+ category_ = other.category_;
+ code_ = other.code_;
+ contractOperation_ = other.contractOperation_ != null ? other.contractOperation_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeploymentInput Clone() {
+ return new ContractDeploymentInput(this);
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 1;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "contract_operation" field.
+ public const int ContractOperationFieldNumber = 3;
+ private global::AElf.Standards.ACS0.ContractOperation contractOperation_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Standards.ACS0.ContractOperation ContractOperation {
+ get { return contractOperation_; }
+ set {
+ contractOperation_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractDeploymentInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractDeploymentInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Category != other.Category) return false;
+ if (Code != other.Code) return false;
+ if (!object.Equals(ContractOperation, other.ContractOperation)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (contractOperation_ != null) hash ^= ContractOperation.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (contractOperation_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (contractOperation_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (contractOperation_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractDeploymentInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ if (other.contractOperation_ != null) {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ ContractOperation.MergeFrom(other.ContractOperation);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ input.ReadMessage(ContractOperation);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ input.ReadMessage(ContractOperation);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class UserContractDeploymentInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserContractDeploymentInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[2]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractDeploymentInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractDeploymentInput(UserContractDeploymentInput other) : this() {
+ category_ = other.category_;
+ code_ = other.code_;
+ salt_ = other.salt_ != null ? other.salt_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractDeploymentInput Clone() {
+ return new UserContractDeploymentInput(this);
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 1;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = 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]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash Salt {
+ get { return salt_; }
+ set {
+ salt_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as UserContractDeploymentInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UserContractDeploymentInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Category != other.Category) return false;
+ if (Code != other.Code) return false;
+ if (!object.Equals(Salt, other.Salt)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (salt_ != null) hash ^= Salt.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (salt_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Salt);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (salt_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Salt);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (salt_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Salt);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(UserContractDeploymentInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ 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]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (salt_ == null) {
+ Salt = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Salt);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (salt_ == null) {
+ Salt = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Salt);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class UserContractUpdateInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserContractUpdateInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[3]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractUpdateInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractUpdateInput(UserContractUpdateInput other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ code_ = other.code_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserContractUpdateInput Clone() {
+ return new UserContractUpdateInput(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The contract address that needs to be updated.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the new contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as UserContractUpdateInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UserContractUpdateInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (Code != other.Code) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(UserContractUpdateInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SystemContractDeploymentInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemContractDeploymentInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[4]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemContractDeploymentInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemContractDeploymentInput(SystemContractDeploymentInput other) : this() {
+ category_ = other.category_;
+ code_ = other.code_;
+ name_ = other.name_ != null ? other.name_.Clone() : null;
+ transactionMethodCallList_ = other.transactionMethodCallList_ != null ? other.transactionMethodCallList_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemContractDeploymentInput Clone() {
+ return new SystemContractDeploymentInput(this);
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 1;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "name" field.
+ public const int NameFieldNumber = 3;
+ private global::AElf.Types.Hash name_;
+ ///
+ /// The name of the contract. It has to be unique.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash Name {
+ get { return name_; }
+ set {
+ name_ = value;
+ }
+ }
+
+ /// Field number for the "transaction_method_call_list" field.
+ public const int TransactionMethodCallListFieldNumber = 4;
+ private global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList transactionMethodCallList_;
+ ///
+ /// An initial list of transactions for the system contract,
+ /// which is executed in sequence when the contract is deployed.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList TransactionMethodCallList {
+ get { return transactionMethodCallList_; }
+ set {
+ transactionMethodCallList_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SystemContractDeploymentInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SystemContractDeploymentInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Category != other.Category) return false;
+ if (Code != other.Code) return false;
+ if (!object.Equals(Name, other.Name)) return false;
+ if (!object.Equals(TransactionMethodCallList, other.TransactionMethodCallList)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (name_ != null) hash ^= Name.GetHashCode();
+ if (transactionMethodCallList_ != null) hash ^= TransactionMethodCallList.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (name_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Name);
+ }
+ if (transactionMethodCallList_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(TransactionMethodCallList);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Category != 0) {
+ output.WriteRawTag(8);
+ output.WriteSInt32(Category);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (name_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Name);
+ }
+ if (transactionMethodCallList_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(TransactionMethodCallList);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (name_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name);
+ }
+ if (transactionMethodCallList_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransactionMethodCallList);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SystemContractDeploymentInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ if (other.name_ != null) {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ Name.MergeFrom(other.Name);
+ }
+ if (other.transactionMethodCallList_ != null) {
+ if (transactionMethodCallList_ == null) {
+ TransactionMethodCallList = new global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList();
+ }
+ TransactionMethodCallList.MergeFrom(other.TransactionMethodCallList);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Name);
+ break;
+ }
+ case 34: {
+ if (transactionMethodCallList_ == null) {
+ TransactionMethodCallList = new global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList();
+ }
+ input.ReadMessage(TransactionMethodCallList);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Name);
+ break;
+ }
+ case 34: {
+ if (transactionMethodCallList_ == null) {
+ TransactionMethodCallList = new global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList();
+ }
+ input.ReadMessage(TransactionMethodCallList);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ #region Nested types
+ /// Container for nested types declared in the SystemContractDeploymentInput message type.
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static partial class Types {
+ public sealed partial class SystemTransactionMethodCall : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemTransactionMethodCall());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.SystemContractDeploymentInput.Descriptor.NestedTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCall() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCall(SystemTransactionMethodCall other) : this() {
+ methodName_ = other.methodName_;
+ params_ = other.params_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCall Clone() {
+ return new SystemTransactionMethodCall(this);
+ }
+
+ /// Field number for the "method_name" field.
+ public const int MethodNameFieldNumber = 1;
+ private string methodName_ = "";
+ ///
+ /// The method name of system transaction.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string MethodName {
+ get { return methodName_; }
+ set {
+ methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "params" field.
+ public const int ParamsFieldNumber = 2;
+ private pb::ByteString params_ = pb::ByteString.Empty;
+ ///
+ /// The params of system transaction method.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Params {
+ get { return params_; }
+ set {
+ params_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SystemTransactionMethodCall);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SystemTransactionMethodCall other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (MethodName != other.MethodName) return false;
+ if (Params != other.Params) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (MethodName.Length != 0) hash ^= MethodName.GetHashCode();
+ if (Params.Length != 0) hash ^= Params.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (MethodName.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(MethodName);
+ }
+ if (Params.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Params);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (MethodName.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(MethodName);
+ }
+ if (Params.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Params);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (MethodName.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName);
+ }
+ if (Params.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Params);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SystemTransactionMethodCall other) {
+ if (other == null) {
+ return;
+ }
+ if (other.MethodName.Length != 0) {
+ MethodName = other.MethodName;
+ }
+ if (other.Params.Length != 0) {
+ Params = other.Params;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ MethodName = input.ReadString();
+ break;
+ }
+ case 18: {
+ Params = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ MethodName = input.ReadString();
+ break;
+ }
+ case 18: {
+ Params = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SystemTransactionMethodCallList : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemTransactionMethodCallList());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.SystemContractDeploymentInput.Descriptor.NestedTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCallList() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCallList(SystemTransactionMethodCallList other) : this() {
+ value_ = other.value_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SystemTransactionMethodCallList Clone() {
+ return new SystemTransactionMethodCallList(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.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCall.Parser);
+ private readonly pbc::RepeatedField value_ = new pbc::RepeatedField();
+ ///
+ /// The list of system transactions.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Value {
+ get { return value_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SystemTransactionMethodCallList);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SystemTransactionMethodCallList other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!value_.Equals(other.value_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= value_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ value_.WriteTo(output, _repeated_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ value_.WriteTo(ref output, _repeated_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += value_.CalculateSize(_repeated_value_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SystemTransactionMethodCallList other) {
+ if (other == null) {
+ return;
+ }
+ value_.Add(other.value_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(input, _repeated_value_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(ref input, _repeated_value_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ }
+ #endregion
+
+ }
+
+ public sealed partial class ContractUpdateInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractUpdateInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[5]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractUpdateInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractUpdateInput(ContractUpdateInput other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ code_ = other.code_;
+ contractOperation_ = other.contractOperation_ != null ? other.contractOperation_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractUpdateInput Clone() {
+ return new ContractUpdateInput(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The contract address that needs to be updated.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 2;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the new contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "contract_operation" field.
+ public const int ContractOperationFieldNumber = 3;
+ private global::AElf.Standards.ACS0.ContractOperation contractOperation_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Standards.ACS0.ContractOperation ContractOperation {
+ get { return contractOperation_; }
+ set {
+ contractOperation_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractUpdateInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractUpdateInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (Code != other.Code) return false;
+ if (!object.Equals(ContractOperation, other.ContractOperation)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (contractOperation_ != null) hash ^= ContractOperation.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (contractOperation_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Code.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteBytes(Code);
+ }
+ if (contractOperation_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (contractOperation_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractOperation);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractUpdateInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ if (other.contractOperation_ != null) {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ ContractOperation.MergeFrom(other.ContractOperation);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ input.ReadMessage(ContractOperation);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 26: {
+ if (contractOperation_ == null) {
+ ContractOperation = new global::AElf.Standards.ACS0.ContractOperation();
+ }
+ input.ReadMessage(ContractOperation);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractCodeCheckInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractCodeCheckInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[6]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeCheckInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeCheckInput(ContractCodeCheckInput other) : this() {
+ contractInput_ = other.contractInput_;
+ isContractDeployment_ = other.isContractDeployment_;
+ codeCheckReleaseMethod_ = other.codeCheckReleaseMethod_;
+ proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null;
+ category_ = other.category_;
+ isSystemContract_ = other.isSystemContract_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractCodeCheckInput Clone() {
+ return new ContractCodeCheckInput(this);
+ }
+
+ /// Field number for the "contract_input" field.
+ public const int ContractInputFieldNumber = 1;
+ private pb::ByteString contractInput_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code to be checked.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString ContractInput {
+ get { return contractInput_; }
+ set {
+ contractInput_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "is_contract_deployment" field.
+ public const int IsContractDeploymentFieldNumber = 2;
+ private bool isContractDeployment_;
+ ///
+ /// Whether the input contract is to be deployed or updated.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsContractDeployment {
+ get { return isContractDeployment_; }
+ set {
+ isContractDeployment_ = value;
+ }
+ }
+
+ /// Field number for the "code_check_release_method" field.
+ public const int CodeCheckReleaseMethodFieldNumber = 3;
+ private string codeCheckReleaseMethod_ = "";
+ ///
+ /// Method to call after code check complete(DeploySmartContract or UpdateSmartContract).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string CodeCheckReleaseMethod {
+ get { return codeCheckReleaseMethod_; }
+ set {
+ codeCheckReleaseMethod_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "proposed_contract_input_hash" field.
+ public const int ProposedContractInputHashFieldNumber = 4;
+ private global::AElf.Types.Hash proposedContractInputHash_;
+ ///
+ /// The id of the proposed contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash ProposedContractInputHash {
+ get { return proposedContractInputHash_; }
+ set {
+ proposedContractInputHash_ = value;
+ }
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 5;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "is_system_contract" field.
+ public const int IsSystemContractFieldNumber = 6;
+ private bool isSystemContract_;
+ ///
+ /// Indicates if the contract is the system contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsSystemContract {
+ get { return isSystemContract_; }
+ set {
+ isSystemContract_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractCodeCheckInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractCodeCheckInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ContractInput != other.ContractInput) return false;
+ if (IsContractDeployment != other.IsContractDeployment) return false;
+ if (CodeCheckReleaseMethod != other.CodeCheckReleaseMethod) return false;
+ if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false;
+ if (Category != other.Category) return false;
+ if (IsSystemContract != other.IsSystemContract) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (ContractInput.Length != 0) hash ^= ContractInput.GetHashCode();
+ if (IsContractDeployment != false) hash ^= IsContractDeployment.GetHashCode();
+ if (CodeCheckReleaseMethod.Length != 0) hash ^= CodeCheckReleaseMethod.GetHashCode();
+ if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode();
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (IsSystemContract != false) hash ^= IsSystemContract.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (ContractInput.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteBytes(ContractInput);
+ }
+ if (IsContractDeployment != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(IsContractDeployment);
+ }
+ if (CodeCheckReleaseMethod.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(CodeCheckReleaseMethod);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(40);
+ output.WriteSInt32(Category);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(IsSystemContract);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (ContractInput.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteBytes(ContractInput);
+ }
+ if (IsContractDeployment != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(IsContractDeployment);
+ }
+ if (CodeCheckReleaseMethod.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(CodeCheckReleaseMethod);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(40);
+ output.WriteSInt32(Category);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(IsSystemContract);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (ContractInput.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(ContractInput);
+ }
+ if (IsContractDeployment != false) {
+ size += 1 + 1;
+ }
+ if (CodeCheckReleaseMethod.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeCheckReleaseMethod);
+ }
+ if (proposedContractInputHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (IsSystemContract != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractCodeCheckInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.ContractInput.Length != 0) {
+ ContractInput = other.ContractInput;
+ }
+ if (other.IsContractDeployment != false) {
+ IsContractDeployment = other.IsContractDeployment;
+ }
+ if (other.CodeCheckReleaseMethod.Length != 0) {
+ CodeCheckReleaseMethod = other.CodeCheckReleaseMethod;
+ }
+ if (other.proposedContractInputHash_ != null) {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash);
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.IsSystemContract != false) {
+ IsSystemContract = other.IsSystemContract;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ ContractInput = input.ReadBytes();
+ break;
+ }
+ case 16: {
+ IsContractDeployment = input.ReadBool();
+ break;
+ }
+ case 26: {
+ CodeCheckReleaseMethod = input.ReadString();
+ break;
+ }
+ case 34: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ case 40: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 48: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ ContractInput = input.ReadBytes();
+ break;
+ }
+ case 16: {
+ IsContractDeployment = input.ReadBool();
+ break;
+ }
+ case 26: {
+ CodeCheckReleaseMethod = input.ReadString();
+ break;
+ }
+ case 34: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ case 40: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 48: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractProposed : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractProposed());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[7]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractProposed() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractProposed(ContractProposed other) : this() {
+ proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractProposed Clone() {
+ return new ContractProposed(this);
+ }
+
+ /// Field number for the "proposed_contract_input_hash" field.
+ public const int ProposedContractInputHashFieldNumber = 1;
+ private global::AElf.Types.Hash proposedContractInputHash_;
+ ///
+ /// The id of the proposed contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash ProposedContractInputHash {
+ get { return proposedContractInputHash_; }
+ set {
+ proposedContractInputHash_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractProposed);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractProposed other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (proposedContractInputHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractProposed other) {
+ if (other == null) {
+ return;
+ }
+ if (other.proposedContractInputHash_ != null) {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ContractDeployed : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractDeployed());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[8]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeployed() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeployed(ContractDeployed other) : this() {
+ author_ = other.author_ != null ? other.author_.Clone() : null;
+ codeHash_ = other.codeHash_ != null ? other.codeHash_.Clone() : null;
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ version_ = other.version_;
+ name_ = other.name_ != null ? other.name_.Clone() : null;
+ contractVersion_ = other.contractVersion_;
+ deployer_ = other.deployer_ != null ? other.deployer_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ContractDeployed Clone() {
+ return new ContractDeployed(this);
+ }
+
+ /// Field number for the "author" field.
+ public const int AuthorFieldNumber = 1;
+ private global::AElf.Types.Address author_;
+ ///
+ /// The author of the contract, this is the person who deployed the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Author {
+ get { return author_; }
+ set {
+ author_ = value;
+ }
+ }
+
+ /// Field number for the "code_hash" field.
+ public const int CodeHashFieldNumber = 2;
+ private global::AElf.Types.Hash codeHash_;
+ ///
+ /// The hash of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash CodeHash {
+ get { return codeHash_; }
+ set {
+ codeHash_ = value;
+ }
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 3;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The address of the contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "version" field.
+ public const int VersionFieldNumber = 4;
+ private int version_;
+ ///
+ /// The version of the current contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Version {
+ get { return version_; }
+ set {
+ version_ = value;
+ }
+ }
+
+ /// Field number for the "Name" field.
+ public const int NameFieldNumber = 5;
+ private global::AElf.Types.Hash name_;
+ ///
+ /// The name of the contract. It has to be unique.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash Name {
+ get { return name_; }
+ set {
+ name_ = value;
+ }
+ }
+
+ /// Field number for the "contract_version" field.
+ public const int ContractVersionFieldNumber = 6;
+ private string contractVersion_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string ContractVersion {
+ get { return contractVersion_; }
+ set {
+ contractVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "deployer" field.
+ public const int DeployerFieldNumber = 7;
+ private global::AElf.Types.Address deployer_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Deployer {
+ get { return deployer_; }
+ set {
+ deployer_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ContractDeployed);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ContractDeployed other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Author, other.Author)) return false;
+ if (!object.Equals(CodeHash, other.CodeHash)) return false;
+ if (!object.Equals(Address, other.Address)) return false;
+ if (Version != other.Version) return false;
+ if (!object.Equals(Name, other.Name)) return false;
+ if (ContractVersion != other.ContractVersion) return false;
+ if (!object.Equals(Deployer, other.Deployer)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (author_ != null) hash ^= Author.GetHashCode();
+ if (codeHash_ != null) hash ^= CodeHash.GetHashCode();
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (Version != 0) hash ^= Version.GetHashCode();
+ if (name_ != null) hash ^= Name.GetHashCode();
+ if (ContractVersion.Length != 0) hash ^= ContractVersion.GetHashCode();
+ if (deployer_ != null) hash ^= Deployer.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (author_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Author);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(CodeHash);
+ }
+ if (address_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Address);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Version);
+ }
+ if (name_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(Name);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(50);
+ output.WriteString(ContractVersion);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(58);
+ output.WriteMessage(Deployer);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (author_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Author);
+ }
+ if (codeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(CodeHash);
+ }
+ if (address_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Address);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Version);
+ }
+ if (name_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(Name);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(50);
+ output.WriteString(ContractVersion);
+ }
+ if (deployer_ != null) {
+ output.WriteRawTag(58);
+ output.WriteMessage(Deployer);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (author_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author);
+ }
+ if (codeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(CodeHash);
+ }
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (Version != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version);
+ }
+ if (name_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name);
+ }
+ if (ContractVersion.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ContractVersion);
+ }
+ if (deployer_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deployer);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ContractDeployed other) {
+ if (other == null) {
+ return;
+ }
+ if (other.author_ != null) {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ Author.MergeFrom(other.Author);
+ }
+ if (other.codeHash_ != null) {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ CodeHash.MergeFrom(other.CodeHash);
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.Version != 0) {
+ Version = other.Version;
+ }
+ if (other.name_ != null) {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ Name.MergeFrom(other.Name);
+ }
+ if (other.ContractVersion.Length != 0) {
+ ContractVersion = other.ContractVersion;
+ }
+ if (other.deployer_ != null) {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ Deployer.MergeFrom(other.Deployer);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ case 18: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 26: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 32: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Name);
+ break;
+ }
+ case 50: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ case 58: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (author_ == null) {
+ Author = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ case 18: {
+ if (codeHash_ == null) {
+ CodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(CodeHash);
+ break;
+ }
+ case 26: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 32: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ if (name_ == null) {
+ Name = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(Name);
+ break;
+ }
+ case 50: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ case 58: {
+ if (deployer_ == null) {
+ Deployer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Deployer);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CodeCheckRequired : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodeCheckRequired());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[9]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeCheckRequired() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeCheckRequired(CodeCheckRequired other) : this() {
+ code_ = other.code_;
+ proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null;
+ category_ = other.category_;
+ isSystemContract_ = other.isSystemContract_;
+ isUserContract_ = other.isUserContract_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeCheckRequired Clone() {
+ return new CodeCheckRequired(this);
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 1;
+ private pb::ByteString code_ = pb::ByteString.Empty;
+ ///
+ /// The byte array of the contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString Code {
+ get { return code_; }
+ set {
+ code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "proposed_contract_input_hash" field.
+ public const int ProposedContractInputHashFieldNumber = 2;
+ private global::AElf.Types.Hash proposedContractInputHash_;
+ ///
+ /// The id of the proposed contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash ProposedContractInputHash {
+ get { return proposedContractInputHash_; }
+ set {
+ proposedContractInputHash_ = value;
+ }
+ }
+
+ /// Field number for the "category" field.
+ public const int CategoryFieldNumber = 3;
+ private int category_;
+ ///
+ /// The category of contract code(0: C#).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Category {
+ get { return category_; }
+ set {
+ category_ = value;
+ }
+ }
+
+ /// Field number for the "is_system_contract" field.
+ public const int IsSystemContractFieldNumber = 4;
+ private bool isSystemContract_;
+ ///
+ /// Indicates if the contract is the system contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsSystemContract {
+ get { return isSystemContract_; }
+ set {
+ isSystemContract_ = value;
+ }
+ }
+
+ /// Field number for the "is_user_contract" field.
+ public const int IsUserContractFieldNumber = 5;
+ private bool isUserContract_;
+ ///
+ /// Indicates if the contract is the user contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsUserContract {
+ get { return isUserContract_; }
+ set {
+ isUserContract_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CodeCheckRequired);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CodeCheckRequired other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Code != other.Code) return false;
+ if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false;
+ if (Category != other.Category) return false;
+ if (IsSystemContract != other.IsSystemContract) return false;
+ if (IsUserContract != other.IsUserContract) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Code.Length != 0) hash ^= Code.GetHashCode();
+ if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode();
+ if (Category != 0) hash ^= Category.GetHashCode();
+ if (IsSystemContract != false) hash ^= IsSystemContract.GetHashCode();
+ if (IsUserContract != false) hash ^= IsUserContract.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Code.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteBytes(Code);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(24);
+ output.WriteSInt32(Category);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(IsSystemContract);
+ }
+ if (IsUserContract != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(IsUserContract);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Code.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteBytes(Code);
+ }
+ if (proposedContractInputHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ output.WriteRawTag(24);
+ output.WriteSInt32(Category);
+ }
+ if (IsSystemContract != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(IsSystemContract);
+ }
+ if (IsUserContract != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(IsUserContract);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Code.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code);
+ }
+ if (proposedContractInputHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash);
+ }
+ if (Category != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category);
+ }
+ if (IsSystemContract != false) {
+ size += 1 + 1;
+ }
+ if (IsUserContract != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CodeCheckRequired other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Code.Length != 0) {
+ Code = other.Code;
+ }
+ if (other.proposedContractInputHash_ != null) {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash);
+ }
+ if (other.Category != 0) {
+ Category = other.Category;
+ }
+ if (other.IsSystemContract != false) {
+ IsSystemContract = other.IsSystemContract;
+ }
+ if (other.IsUserContract != false) {
+ IsUserContract = other.IsUserContract;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 18: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ case 24: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 32: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ case 40: {
+ IsUserContract = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Code = input.ReadBytes();
+ break;
+ }
+ case 18: {
+ if (proposedContractInputHash_ == null) {
+ ProposedContractInputHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(ProposedContractInputHash);
+ break;
+ }
+ case 24: {
+ Category = input.ReadSInt32();
+ break;
+ }
+ case 32: {
+ IsSystemContract = input.ReadBool();
+ break;
+ }
+ case 40: {
+ IsUserContract = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CodeUpdated : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodeUpdated());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[10]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeUpdated() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeUpdated(CodeUpdated other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ oldCodeHash_ = other.oldCodeHash_ != null ? other.oldCodeHash_.Clone() : null;
+ newCodeHash_ = other.newCodeHash_ != null ? other.newCodeHash_.Clone() : null;
+ version_ = other.version_;
+ contractVersion_ = other.contractVersion_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CodeUpdated Clone() {
+ return new CodeUpdated(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The address of the updated contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "old_code_hash" field.
+ public const int OldCodeHashFieldNumber = 2;
+ private global::AElf.Types.Hash oldCodeHash_;
+ ///
+ /// The byte array of the old contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash OldCodeHash {
+ get { return oldCodeHash_; }
+ set {
+ oldCodeHash_ = value;
+ }
+ }
+
+ /// Field number for the "new_code_hash" field.
+ public const int NewCodeHashFieldNumber = 3;
+ private global::AElf.Types.Hash newCodeHash_;
+ ///
+ /// The byte array of the new contract code.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash NewCodeHash {
+ get { return newCodeHash_; }
+ set {
+ newCodeHash_ = value;
+ }
+ }
+
+ /// Field number for the "version" field.
+ public const int VersionFieldNumber = 4;
+ private int version_;
+ ///
+ /// The version of the current contract.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Version {
+ get { return version_; }
+ set {
+ version_ = value;
+ }
+ }
+
+ /// Field number for the "contract_version" field.
+ public const int ContractVersionFieldNumber = 5;
+ private string contractVersion_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string ContractVersion {
+ get { return contractVersion_; }
+ set {
+ contractVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CodeUpdated);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CodeUpdated other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (!object.Equals(OldCodeHash, other.OldCodeHash)) return false;
+ if (!object.Equals(NewCodeHash, other.NewCodeHash)) return false;
+ if (Version != other.Version) return false;
+ if (ContractVersion != other.ContractVersion) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (oldCodeHash_ != null) hash ^= OldCodeHash.GetHashCode();
+ if (newCodeHash_ != null) hash ^= NewCodeHash.GetHashCode();
+ if (Version != 0) hash ^= Version.GetHashCode();
+ if (ContractVersion.Length != 0) hash ^= ContractVersion.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (oldCodeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(OldCodeHash);
+ }
+ if (newCodeHash_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(NewCodeHash);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(ContractVersion);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (oldCodeHash_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(OldCodeHash);
+ }
+ if (newCodeHash_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(NewCodeHash);
+ }
+ if (Version != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(ContractVersion);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (oldCodeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(OldCodeHash);
+ }
+ if (newCodeHash_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewCodeHash);
+ }
+ if (Version != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version);
+ }
+ if (ContractVersion.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ContractVersion);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CodeUpdated other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.oldCodeHash_ != null) {
+ if (oldCodeHash_ == null) {
+ OldCodeHash = new global::AElf.Types.Hash();
+ }
+ OldCodeHash.MergeFrom(other.OldCodeHash);
+ }
+ if (other.newCodeHash_ != null) {
+ if (newCodeHash_ == null) {
+ NewCodeHash = new global::AElf.Types.Hash();
+ }
+ NewCodeHash.MergeFrom(other.NewCodeHash);
+ }
+ if (other.Version != 0) {
+ Version = other.Version;
+ }
+ if (other.ContractVersion.Length != 0) {
+ ContractVersion = other.ContractVersion;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (oldCodeHash_ == null) {
+ OldCodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(OldCodeHash);
+ break;
+ }
+ case 26: {
+ if (newCodeHash_ == null) {
+ NewCodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(NewCodeHash);
+ break;
+ }
+ case 32: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (oldCodeHash_ == null) {
+ OldCodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(OldCodeHash);
+ break;
+ }
+ case 26: {
+ if (newCodeHash_ == null) {
+ NewCodeHash = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(NewCodeHash);
+ break;
+ }
+ case 32: {
+ Version = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ ContractVersion = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class AuthorUpdated : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser