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..2f71850
--- /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-token-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/.gitignore b/.gitignore
new file mode 100644
index 0000000..dd17906
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,259 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+*.dll
+*.pdb
+*.mdb
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+[Ll]ogs/
+.dotnet
+
+# Visual Studio 2015 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUNIT
+*.VisualState.xml
+TestResult.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# DNX
+project.lock.json
+artifacts/
+
+*_i.c
+*_p.c
+*_i.h
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# JustCode is a .NET coding add-in
+.JustCode
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# TODO: Comment the next line if you want to checkin your web deploy settings
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# The packages folder can be ignored because of Package Restore
+**/packages/*
+# except build/, which is used as an MSBuild target.
+!**/packages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/packages/repositories.config
+# NuGet v3's project.json files produces more ignoreable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.pfx
+*.publishsettings
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+*.mdf
+*.ldf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# JetBrains Rider
+.idea/
+*.sln.iml
+
+#Codecov
+CodeCoverage
+
+*.dll
diff --git a/CodeCoverage.runsettings b/CodeCoverage.runsettings
new file mode 100644
index 0000000..77d05f0
--- /dev/null
+++ b/CodeCoverage.runsettings
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+ cobertura
+ [xunit.*]*,[*Tests]*
+ **/test/**/*.cs,**/src/AElfScan.TokenApp/Generated/*.*
+ Obsolete,GeneratedCodeAttribute
+ false
+
+
+
+
+
\ No newline at end of file
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/TokenApp.sln b/TokenApp.sln
new file mode 100644
index 0000000..43cbe47
--- /dev/null
+++ b/TokenApp.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("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AElfScan.TokenApp", "src\AElfScan.TokenApp\AElfScan.TokenApp.csproj", "{EEC6D30D-2A9F-4757-8BE0-6E6105185383}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{A9014BDC-B7BE-4290-91BF-D70E329C6E73}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AElfScan.TokenApp.Tests", "test\AElfScan.TokenApp.Tests\AElfScan.TokenApp.Tests.csproj", "{C3FF7AB3-CFFF-46E5-9EFB-0523A0B1C19D}"
+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
+ {C3FF7AB3-CFFF-46E5-9EFB-0523A0B1C19D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C3FF7AB3-CFFF-46E5-9EFB-0523A0B1C19D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C3FF7AB3-CFFF-46E5-9EFB-0523A0B1C19D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C3FF7AB3-CFFF-46E5-9EFB-0523A0B1C19D}.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}
+ {C3FF7AB3-CFFF-46E5-9EFB-0523A0B1C19D} = {A9014BDC-B7BE-4290-91BF-D70E329C6E73}
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {28315BFD-90E7-4E14-A2EA-F3D23AF4126F}
+ EndGlobalSection
+EndGlobal
+
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 0000000..a333b1c
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,95 @@
+jobs:
+ # All tasks on Windows....
+# - job: build_all_windows
+# displayName: Build all tasks (Windows)
+# timeoutInMinutes: 120
+# pool:
+# vmImage: windows-latest
+# variables:
+# CI_TEST: true
+# steps:
+# - task: UseDotNet@2
+# displayName: 'Install .NET Core SDK'
+# inputs:
+# version: 7.0.x
+# - script: PowerShell.exe -file scripts/elasticsearch-windows.ps1
+# displayName: 'Start an elasticsearch'
+# - script: PowerShell.exe -file build.ps1 --target=Test-with-Codecov
+# displayName: 'Build and Test'
+# - task: PublishTestResults@2
+# condition: always()
+# inputs:
+# testRunner: VSTest
+# testResultsFiles: '**/*.trx'
+# - task: reportgenerator@5
+# displayName: ReportGenerator
+# inputs:
+# reports: '$(Build.SourcesDirectory)/test/*/TestResults/*/coverage.cobertura.xml'
+# targetdir: '$(Build.SourcesDirectory)/CodeCoverage'
+# reporttypes: 'Cobertura'
+# assemblyfilters: '-xunit*'
+# - script: PowerShell.exe -file build.ps1 --target=Upload-Coverage-Azure
+# displayName: 'Upload data to Codecov'
+ # All tasks on Linux
+# - job: build_all_linux
+# displayName: Build all tasks (Linux)
+# timeoutInMinutes: 120
+# pool:
+# vmImage: ubuntu-latest
+# # name: Default
+# # demands:
+# # - Agent.OS -equals Linux
+# steps:
+# - task: UseDotNet@2
+# displayName: 'Install .NET Core SDK'
+# inputs:
+# version: 7.0.x
+# - script: cd scripts && bash elasticsearch-linux.sh
+# displayName: 'Start an elasticsearch'
+# - script: bash build.sh --target=Test-with-Codecov
+# displayName: 'Build and Test'
+# - task: PublishTestResults@2
+# condition: always()
+# inputs:
+# testRunner: VSTest
+# testResultsFiles: '**/*.trx'
+# - task: reportgenerator@5
+# displayName: ReportGenerator
+# inputs:
+# reports: '$(Build.SourcesDirectory)/test/*/TestResults/*/coverage.cobertura.xml'
+# targetdir: '$(Build.SourcesDirectory)/CodeCoverage'
+# reporttypes: 'Cobertura'
+# assemblyfilters: '-xunit*'
+# - script: bash build.sh --target=Upload-Coverage-Azure
+# displayName: 'Upload data to Codecov'
+ #All tasks on macOS
+ - job: build_all_darwin
+ displayName: Build all tasks (macOS)
+ timeoutInMinutes: 120
+ pool:
+ vmImage: macos-latest
+ variables:
+ CI_TEST: true
+ steps:
+ - task: UseDotNet@2
+ displayName: 'Install .NET Core SDK'
+ inputs:
+ version: 7.0.x
+ - script: cd scripts && bash elasticsearch-macOS.sh
+ displayName: 'Start an elasticsearch'
+ - script: bash build.sh --target=Test-with-Codecov
+ displayName: 'Build and Test'
+ - task: PublishTestResults@2
+ condition: always()
+ inputs:
+ testRunner: VSTest
+ testResultsFiles: '**/*.trx'
+ - task: reportgenerator@5
+ displayName: ReportGenerator
+ inputs:
+ reports: '$(Build.SourcesDirectory)/test/*/TestResults/*/coverage.cobertura.xml'
+ targetdir: '$(Build.SourcesDirectory)/CodeCoverage'
+ reporttypes: 'Cobertura'
+ assemblyfilters: '-xunit*'
+ - script: bash build.sh --target=Upload-Coverage-Azure
+ displayName: 'Upload data to Codecov'
diff --git a/build.cake b/build.cake
new file mode 100644
index 0000000..779b7df
--- /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 + "TokenApp.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 100644
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 100644
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 100644
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 100644
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.TokenApp/AElfScan.TokenApp.csproj b/src/AElfScan.TokenApp/AElfScan.TokenApp.csproj
new file mode 100644
index 0000000..82ee749
--- /dev/null
+++ b/src/AElfScan.TokenApp/AElfScan.TokenApp.csproj
@@ -0,0 +1,11 @@
+
+
+
+ net8.0
+ enable
+ AElfScan.TokenApp
+
+
+
+
+
diff --git a/src/AElfScan.TokenApp/Entities/AccountCollection.cs b/src/AElfScan.TokenApp/Entities/AccountCollection.cs
new file mode 100644
index 0000000..3bb80d6
--- /dev/null
+++ b/src/AElfScan.TokenApp/Entities/AccountCollection.cs
@@ -0,0 +1,14 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.TokenApp.Entities;
+
+public class AccountCollection : AeFinderEntity, IAeFinderEntity
+{
+ [Keyword] public string Address { get; set; }
+ [Keyword] public string LowerCaseAddress { get; set; }
+ public TokenBase Token { get; set; }
+ public decimal FormatAmount { get; set; }
+ public long TransferCount { get; set; }
+
+}
\ No newline at end of file
diff --git a/src/AElfScan.TokenApp/Entities/AccountInfo.cs b/src/AElfScan.TokenApp/Entities/AccountInfo.cs
new file mode 100644
index 0000000..3f08d98
--- /dev/null
+++ b/src/AElfScan.TokenApp/Entities/AccountInfo.cs
@@ -0,0 +1,11 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.TokenApp.Entities;
+
+public class AccountInfo : AeFinderEntity, IAeFinderEntity
+{
+ [Keyword] public string Address { get; set; }
+ public long TokenHoldingCount { get; set; }
+ public long TransferCount { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.TokenApp/Entities/AccountToken.cs b/src/AElfScan.TokenApp/Entities/AccountToken.cs
new file mode 100644
index 0000000..01d5d72
--- /dev/null
+++ b/src/AElfScan.TokenApp/Entities/AccountToken.cs
@@ -0,0 +1,16 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.TokenApp.Entities;
+
+public class AccountToken : AeFinderEntity, IAeFinderEntity
+{
+ [Keyword] public string Address { get; set; }
+ [Keyword] public string LowerCaseAddress { get; set; }
+ public TokenBase Token { get; set; }
+ public long Amount { get; set; }
+ public decimal FormatAmount { get; set; }
+ public long TransferCount { get; set; }
+ [Keyword] public string FirstNftTransactionId { get; set; }
+ public DateTime? FirstNftTime { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.TokenApp/Entities/BlockBurnFeeInfo.cs b/src/AElfScan.TokenApp/Entities/BlockBurnFeeInfo.cs
new file mode 100644
index 0000000..5441987
--- /dev/null
+++ b/src/AElfScan.TokenApp/Entities/BlockBurnFeeInfo.cs
@@ -0,0 +1,11 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.TokenApp.Entities;
+
+public class BlockBurnFeeInfo : AeFinderEntity, IAeFinderEntity
+{
+ [Keyword] public string Symbol { get; set; }
+ public long Amount { get; set; }
+ public long BlockHeight { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.TokenApp/Entities/DailyHolderInfo.cs b/src/AElfScan.TokenApp/Entities/DailyHolderInfo.cs
new file mode 100644
index 0000000..9a32401
--- /dev/null
+++ b/src/AElfScan.TokenApp/Entities/DailyHolderInfo.cs
@@ -0,0 +1,14 @@
+using AeFinder.Entities;
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.TokenApp.Entities;
+
+public class DailyHolderInfo : AeFinderEntity, IAeFinderEntity
+{
+ [Keyword] public string DateStr { get; set; }
+
+ public long Count { get; set; }
+
+ [Keyword] public string ChainId { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.TokenApp/Entities/TokenBase.cs b/src/AElfScan.TokenApp/Entities/TokenBase.cs
new file mode 100644
index 0000000..e675d3c
--- /dev/null
+++ b/src/AElfScan.TokenApp/Entities/TokenBase.cs
@@ -0,0 +1,22 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.TokenApp.Entities;
+
+public class TokenBase : AeFinderEntity
+{
+ [Keyword] public string Symbol { get; set; }
+
+ [Keyword] public string LowerCaseSymbol { get; set; }
+
+ [Keyword] public string CollectionSymbol { get; set; }
+ public SymbolType Type { get; set; }
+ public int Decimals { get; set; }
+}
+
+public enum SymbolType
+{
+ Token,
+ Nft,
+ NftCollection
+}
\ No newline at end of file
diff --git a/src/AElfScan.TokenApp/Entities/TokenInfo.cs b/src/AElfScan.TokenApp/Entities/TokenInfo.cs
new file mode 100644
index 0000000..dbeb9a6
--- /dev/null
+++ b/src/AElfScan.TokenApp/Entities/TokenInfo.cs
@@ -0,0 +1,23 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.TokenApp.Entities;
+
+public class TokenInfo : TokenBase, IAeFinderEntity
+{
+ [Keyword] public string TokenName { get; set; }
+ [Keyword] public string LowerCaseTokenName { get; set; }
+ public long TotalSupply { get; set; }
+ public long Supply { get; set; }
+ public long Issued { get; set; }
+ [Keyword] public string Issuer { get; set; }
+ [Keyword] public string Owner { get; set; }
+ public bool IsPrimaryToken { get; set; }
+ public bool IsBurnable { get; set; }
+ [Keyword] public string IssueChainId { get; set; }
+ public Dictionary ExternalInfo { get; set; } = new();
+ public long HolderCount { get; set; }
+ public long TransferCount { get; set; }
+
+ public decimal ItemCount { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.TokenApp/Entities/TransferInfo.cs b/src/AElfScan.TokenApp/Entities/TransferInfo.cs
new file mode 100644
index 0000000..7be289e
--- /dev/null
+++ b/src/AElfScan.TokenApp/Entities/TransferInfo.cs
@@ -0,0 +1,25 @@
+using AeFinder.Sdk.Entities;
+using Nest;
+
+namespace AElfScan.TokenApp.Entities;
+
+public class TransferInfo : AeFinderEntity, IAeFinderEntity
+{
+ [Keyword] public string TransactionId { get; set; }
+ [Keyword] public string From { get; set; }
+ [Keyword] public string LowerCaseFrom{ get; set; }
+ [Keyword] public string To { get; set; }
+ [Keyword] public string LowerCaseTo{ get; set; }
+ [Keyword] public string Method { get; set; }
+ public long Amount { get; set; }
+ public decimal FormatAmount { get; set; }
+ public TokenBase Token { get; set; }
+ [Keyword] public string Memo { get; set; }
+ [Keyword] public string FromChainId { get; set; }
+ [Keyword] public string ToChainId { get; set; }
+ [Keyword] public string IssueChainId { get; set; }
+ public long ParentChainHeight { get; set; }
+ [Keyword] public string TransferTransactionId { get; set; }
+ [Keyword] public string Status { get; set; }
+ public Dictionary ExtraProperties { get; set; }
+}
\ No newline at end of file
diff --git a/src/AElfScan.TokenApp/Generated/TokenContract.c.cs b/src/AElfScan.TokenApp/Generated/TokenContract.c.cs
new file mode 100644
index 0000000..e387985
--- /dev/null
+++ b/src/AElfScan.TokenApp/Generated/TokenContract.c.cs
@@ -0,0 +1,405 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: token_contract.proto
+//
+// Original file comments:
+// *
+// MultiToken contract.
+#pragma warning disable 0414, 1591
+#region Designer generated code
+
+using System.Collections.Generic;
+using aelf = global::AElf.CSharp.Core;
+
+namespace AElf.Contracts.MultiToken {
+
+ #region Events
+ public partial class ExtraTokenListModified : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public ExtraTokenListModified GetNonIndexed()
+ {
+ return new ExtraTokenListModified
+ {
+ SymbolListToPayTxSizeFee = SymbolListToPayTxSizeFee,
+ };
+ }
+ }
+
+ public partial class Transferred : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new Transferred
+ {
+ From = From
+ },
+ new Transferred
+ {
+ To = To
+ },
+ new Transferred
+ {
+ Symbol = Symbol
+ },
+ };
+ }
+
+ public Transferred GetNonIndexed()
+ {
+ return new Transferred
+ {
+ Amount = Amount,
+ Memo = Memo,
+ };
+ }
+ }
+
+ public partial class Approved : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new Approved
+ {
+ Owner = Owner
+ },
+ new Approved
+ {
+ Spender = Spender
+ },
+ new Approved
+ {
+ Symbol = Symbol
+ },
+ };
+ }
+
+ public Approved GetNonIndexed()
+ {
+ return new Approved
+ {
+ Amount = Amount,
+ };
+ }
+ }
+
+ public partial class UnApproved : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new UnApproved
+ {
+ Owner = Owner
+ },
+ new UnApproved
+ {
+ Spender = Spender
+ },
+ new UnApproved
+ {
+ Symbol = Symbol
+ },
+ };
+ }
+
+ public UnApproved GetNonIndexed()
+ {
+ return new UnApproved
+ {
+ Amount = Amount,
+ };
+ }
+ }
+
+ public partial class Burned : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new Burned
+ {
+ Burner = Burner
+ },
+ new Burned
+ {
+ Symbol = Symbol
+ },
+ };
+ }
+
+ public Burned GetNonIndexed()
+ {
+ return new Burned
+ {
+ Amount = Amount,
+ };
+ }
+ }
+
+ public partial class ChainPrimaryTokenSymbolSet : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public ChainPrimaryTokenSymbolSet GetNonIndexed()
+ {
+ return new ChainPrimaryTokenSymbolSet
+ {
+ TokenSymbol = TokenSymbol,
+ };
+ }
+ }
+
+ public partial class CalculateFeeAlgorithmUpdated : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public CalculateFeeAlgorithmUpdated GetNonIndexed()
+ {
+ return new CalculateFeeAlgorithmUpdated
+ {
+ AllTypeFeeCoefficients = AllTypeFeeCoefficients,
+ };
+ }
+ }
+
+ public partial class RentalCharged : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public RentalCharged GetNonIndexed()
+ {
+ return new RentalCharged
+ {
+ Symbol = Symbol,
+ Amount = Amount,
+ Payer = Payer,
+ Receiver = Receiver,
+ };
+ }
+ }
+
+ public partial class RentalAccountBalanceInsufficient : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public RentalAccountBalanceInsufficient GetNonIndexed()
+ {
+ return new RentalAccountBalanceInsufficient
+ {
+ Symbol = Symbol,
+ Amount = Amount,
+ };
+ }
+ }
+
+ public partial class TokenCreated : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public TokenCreated GetNonIndexed()
+ {
+ return new TokenCreated
+ {
+ Symbol = Symbol,
+ TokenName = TokenName,
+ TotalSupply = TotalSupply,
+ Decimals = Decimals,
+ Issuer = Issuer,
+ IsBurnable = IsBurnable,
+ IssueChainId = IssueChainId,
+ ExternalInfo = ExternalInfo,
+ Owner = Owner,
+ };
+ }
+ }
+
+ public partial class Issued : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public Issued GetNonIndexed()
+ {
+ return new Issued
+ {
+ Symbol = Symbol,
+ Amount = Amount,
+ Memo = Memo,
+ To = To,
+ };
+ }
+ }
+
+ public partial class CrossChainTransferred : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public CrossChainTransferred GetNonIndexed()
+ {
+ return new CrossChainTransferred
+ {
+ From = From,
+ To = To,
+ Symbol = Symbol,
+ Amount = Amount,
+ Memo = Memo,
+ ToChainId = ToChainId,
+ IssueChainId = IssueChainId,
+ };
+ }
+ }
+
+ public partial class CrossChainReceived : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public CrossChainReceived GetNonIndexed()
+ {
+ return new CrossChainReceived
+ {
+ From = From,
+ To = To,
+ Symbol = Symbol,
+ Amount = Amount,
+ Memo = Memo,
+ FromChainId = FromChainId,
+ IssueChainId = IssueChainId,
+ ParentChainHeight = ParentChainHeight,
+ TransferTransactionId = TransferTransactionId,
+ };
+ }
+ }
+
+ public partial class ExternalInfoChanged : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ };
+ }
+
+ public ExternalInfoChanged GetNonIndexed()
+ {
+ return new ExternalInfoChanged
+ {
+ Symbol = Symbol,
+ ExternalInfo = ExternalInfo,
+ };
+ }
+ }
+
+ public partial class TransactionFeeDelegationAdded : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new TransactionFeeDelegationAdded
+ {
+ Delegator = Delegator
+ },
+ new TransactionFeeDelegationAdded
+ {
+ Delegatee = Delegatee
+ },
+ new TransactionFeeDelegationAdded
+ {
+ Caller = Caller
+ },
+ };
+ }
+
+ public TransactionFeeDelegationAdded GetNonIndexed()
+ {
+ return new TransactionFeeDelegationAdded
+ {
+ };
+ }
+ }
+
+ public partial class TransactionFeeDelegationCancelled : aelf::IEvent
+ {
+ public global::System.Collections.Generic.IEnumerable GetIndexed()
+ {
+ return new List
+ {
+ new TransactionFeeDelegationCancelled
+ {
+ Delegator = Delegator
+ },
+ new TransactionFeeDelegationCancelled
+ {
+ Delegatee = Delegatee
+ },
+ new TransactionFeeDelegationCancelled
+ {
+ Caller = Caller
+ },
+ };
+ }
+
+ public TransactionFeeDelegationCancelled GetNonIndexed()
+ {
+ return new TransactionFeeDelegationCancelled
+ {
+ };
+ }
+ }
+
+ #endregion
+}
+#endregion
+
diff --git a/src/AElfScan.TokenApp/Generated/TokenContract.g.cs b/src/AElfScan.TokenApp/Generated/TokenContract.g.cs
new file mode 100644
index 0000000..53eb1a9
--- /dev/null
+++ b/src/AElfScan.TokenApp/Generated/TokenContract.g.cs
@@ -0,0 +1,19937 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: token_contract.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace AElf.Contracts.MultiToken {
+
+ /// Holder for reflection information generated from token_contract.proto
+ public static partial class TokenContractReflection {
+
+ #region Descriptor
+ /// File descriptor for token_contract.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static TokenContractReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChR0b2tlbl9jb250cmFjdC5wcm90bxIFdG9rZW4aD2FlbGYvY29yZS5wcm90",
+ "bxoSYWVsZi9vcHRpb25zLnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHku",
+ "cHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90byKNAgoJVG9r",
+ "ZW5JbmZvEg4KBnN5bWJvbBgBIAEoCRISCgp0b2tlbl9uYW1lGAIgASgJEg4K",
+ "BnN1cHBseRgDIAEoAxIUCgx0b3RhbF9zdXBwbHkYBCABKAMSEAoIZGVjaW1h",
+ "bHMYBSABKAUSHQoGaXNzdWVyGAYgASgLMg0uYWVsZi5BZGRyZXNzEhMKC2lz",
+ "X2J1cm5hYmxlGAcgASgIEhYKDmlzc3VlX2NoYWluX2lkGAggASgFEg4KBmlz",
+ "c3VlZBgJIAEoAxIqCg1leHRlcm5hbF9pbmZvGAogASgLMhMudG9rZW4uRXh0",
+ "ZXJuYWxJbmZvEhwKBW93bmVyGAsgASgLMg0uYWVsZi5BZGRyZXNzImsKDEV4",
+ "dGVybmFsSW5mbxItCgV2YWx1ZRgBIAMoCzIeLnRva2VuLkV4dGVybmFsSW5m",
+ "by5WYWx1ZUVudHJ5GiwKClZhbHVlRW50cnkSCwoDa2V5GAEgASgJEg0KBXZh",
+ "bHVlGAIgASgJOgI4ASKXAgoLQ3JlYXRlSW5wdXQSDgoGc3ltYm9sGAEgASgJ",
+ "EhIKCnRva2VuX25hbWUYAiABKAkSFAoMdG90YWxfc3VwcGx5GAMgASgDEhAK",
+ "CGRlY2ltYWxzGAQgASgFEh0KBmlzc3VlchgFIAEoCzINLmFlbGYuQWRkcmVz",
+ "cxITCgtpc19idXJuYWJsZRgGIAEoCBImCg9sb2NrX3doaXRlX2xpc3QYByAD",
+ "KAsyDS5hZWxmLkFkZHJlc3MSFgoOaXNzdWVfY2hhaW5faWQYCCABKAUSKgoN",
+ "ZXh0ZXJuYWxfaW5mbxgJIAEoCzITLnRva2VuLkV4dGVybmFsSW5mbxIcCgVv",
+ "d25lchgKIAEoCzINLmFlbGYuQWRkcmVzcyIsChpTZXRQcmltYXJ5VG9rZW5T",
+ "eW1ib2xJbnB1dBIOCgZzeW1ib2wYASABKAkiVQoKSXNzdWVJbnB1dBIOCgZz",
+ "eW1ib2wYASABKAkSDgoGYW1vdW50GAIgASgDEgwKBG1lbW8YAyABKAkSGQoC",
+ "dG8YBCABKAsyDS5hZWxmLkFkZHJlc3MiWAoNVHJhbnNmZXJJbnB1dBIZCgJ0",
+ "bxgBIAEoCzINLmFlbGYuQWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSDgoGYW1v",
+ "dW50GAMgASgDEgwKBG1lbW8YBCABKAkidwoJTG9ja0lucHV0Eh4KB2FkZHJl",
+ "c3MYASABKAsyDS5hZWxmLkFkZHJlc3MSGwoHbG9ja19pZBgCIAEoCzIKLmFl",
+ "bGYuSGFzaBIOCgZzeW1ib2wYAyABKAkSDQoFdXNhZ2UYBCABKAkSDgoGYW1v",
+ "dW50GAUgASgDInkKC1VubG9ja0lucHV0Eh4KB2FkZHJlc3MYASABKAsyDS5h",
+ "ZWxmLkFkZHJlc3MSGwoHbG9ja19pZBgCIAEoCzIKLmFlbGYuSGFzaBIOCgZz",
+ "eW1ib2wYAyABKAkSDQoFdXNhZ2UYBCABKAkSDgoGYW1vdW50GAUgASgDInkK",
+ "EVRyYW5zZmVyRnJvbUlucHV0EhsKBGZyb20YASABKAsyDS5hZWxmLkFkZHJl",
+ "c3MSGQoCdG8YAiABKAsyDS5hZWxmLkFkZHJlc3MSDgoGc3ltYm9sGAMgASgJ",
+ "Eg4KBmFtb3VudBgEIAEoAxIMCgRtZW1vGAUgASgJIk4KDEFwcHJvdmVJbnB1",
+ "dBIeCgdzcGVuZGVyGAEgASgLMg0uYWVsZi5BZGRyZXNzEg4KBnN5bWJvbBgC",
+ "IAEoCRIOCgZhbW91bnQYAyABKAMiUAoOVW5BcHByb3ZlSW5wdXQSHgoHc3Bl",
+ "bmRlchgBIAEoCzINLmFlbGYuQWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSDgoG",
+ "YW1vdW50GAMgASgDIisKCUJ1cm5JbnB1dBIOCgZzeW1ib2wYASABKAkSDgoG",
+ "YW1vdW50GAIgASgDIqkBChhDaGFyZ2VSZXNvdXJjZVRva2VuSW5wdXQSPgoI",
+ "Y29zdF9kaWMYASADKAsyLC50b2tlbi5DaGFyZ2VSZXNvdXJjZVRva2VuSW5w",
+ "dXQuQ29zdERpY0VudHJ5Eh0KBmNhbGxlchgCIAEoCzINLmFlbGYuQWRkcmVz",
+ "cxouCgxDb3N0RGljRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgD",
+ "OgI4ASJ+ChJUcmFuc2FjdGlvbkZlZUJpbGwSOAoIZmVlc19tYXAYASADKAsy",
+ "Ji50b2tlbi5UcmFuc2FjdGlvbkZlZUJpbGwuRmVlc01hcEVudHJ5Gi4KDEZl",
+ "ZXNNYXBFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAM6AjgBIsEB",
+ "Ch9UcmFuc2FjdGlvbkZyZWVGZWVBbGxvd2FuY2VCaWxsEmEKF2ZyZWVfZmVl",
+ "X2FsbG93YW5jZXNfbWFwGAEgAygLMkAudG9rZW4uVHJhbnNhY3Rpb25GcmVl",
+ "RmVlQWxsb3dhbmNlQmlsbC5GcmVlRmVlQWxsb3dhbmNlc01hcEVudHJ5GjsK",
+ "GUZyZWVGZWVBbGxvd2FuY2VzTWFwRW50cnkSCwoDa2V5GAEgASgJEg0KBXZh",
+ "bHVlGAIgASgDOgI4ASLaAQoTQ2hlY2tUaHJlc2hvbGRJbnB1dBIdCgZzZW5k",
+ "ZXIYASABKAsyDS5hZWxmLkFkZHJlc3MSTgoTc3ltYm9sX3RvX3RocmVzaG9s",
+ "ZBgCIAMoCzIxLnRva2VuLkNoZWNrVGhyZXNob2xkSW5wdXQuU3ltYm9sVG9U",
+ "aHJlc2hvbGRFbnRyeRIaChJpc19jaGVja19hbGxvd2FuY2UYAyABKAgaOAoW",
+ "U3ltYm9sVG9UaHJlc2hvbGRFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY",
+ "AiABKAM6AjgBIiMKEUdldFRva2VuSW5mb0lucHV0Eg4KBnN5bWJvbBgBIAEo",
+ "CSI/Cg9HZXRCYWxhbmNlSW5wdXQSDgoGc3ltYm9sGAEgASgJEhwKBW93bmVy",
+ "GAIgASgLMg0uYWVsZi5BZGRyZXNzIlEKEEdldEJhbGFuY2VPdXRwdXQSDgoG",
+ "c3ltYm9sGAEgASgJEhwKBW93bmVyGAIgASgLMg0uYWVsZi5BZGRyZXNzEg8K",
+ "B2JhbGFuY2UYAyABKAMiYQoRR2V0QWxsb3dhbmNlSW5wdXQSDgoGc3ltYm9s",
+ "GAEgASgJEhwKBW93bmVyGAIgASgLMg0uYWVsZi5BZGRyZXNzEh4KB3NwZW5k",
+ "ZXIYAyABKAsyDS5hZWxmLkFkZHJlc3MidQoSR2V0QWxsb3dhbmNlT3V0cHV0",
+ "Eg4KBnN5bWJvbBgBIAEoCRIcCgVvd25lchgCIAEoCzINLmFlbGYuQWRkcmVz",
+ "cxIeCgdzcGVuZGVyGAMgASgLMg0uYWVsZi5BZGRyZXNzEhEKCWFsbG93YW5j",
+ "ZRgEIAEoAyKPAQoXQ3Jvc3NDaGFpblRyYW5zZmVySW5wdXQSGQoCdG8YASAB",
+ "KAsyDS5hZWxmLkFkZHJlc3MSDgoGc3ltYm9sGAIgASgJEg4KBmFtb3VudBgD",
+ "IAEoAxIMCgRtZW1vGAQgASgJEhMKC3RvX2NoYWluX2lkGAUgASgFEhYKDmlz",
+ "c3VlX2NoYWluX2lkGAYgASgFIpwBChtDcm9zc0NoYWluUmVjZWl2ZVRva2Vu",
+ "SW5wdXQSFQoNZnJvbV9jaGFpbl9pZBgBIAEoBRIbChNwYXJlbnRfY2hhaW5f",
+ "aGVpZ2h0GAIgASgDEiIKGnRyYW5zZmVyX3RyYW5zYWN0aW9uX2J5dGVzGAMg",
+ "ASgMEiUKC21lcmtsZV9wYXRoGAQgASgLMhAuYWVsZi5NZXJrbGVQYXRoIkQK",
+ "EklzSW5XaGl0ZUxpc3RJbnB1dBIOCgZzeW1ib2wYASABKAkSHgoHYWRkcmVz",
+ "cxgCIAEoCzINLmFlbGYuQWRkcmVzcyJjChRTeW1ib2xUb1BheVR4U2l6ZUZl",
+ "ZRIUCgx0b2tlbl9zeW1ib2wYASABKAkSGQoRYmFzZV90b2tlbl93ZWlnaHQY",
+ "AiABKAUSGgoSYWRkZWRfdG9rZW5fd2VpZ2h0GAMgASgFIlsKGFN5bWJvbExp",
+ "c3RUb1BheVR4U2l6ZUZlZRI/ChpzeW1ib2xzX3RvX3BheV90eF9zaXplX2Zl",
+ "ZRgBIAMoCzIbLnRva2VuLlN5bWJvbFRvUGF5VHhTaXplRmVlIrkBChpDaGFy",
+ "Z2VUcmFuc2FjdGlvbkZlZXNJbnB1dBITCgttZXRob2RfbmFtZRgBIAEoCRIn",
+ "ChBjb250cmFjdF9hZGRyZXNzGAIgASgLMg0uYWVsZi5BZGRyZXNzEhwKFHRy",
+ "YW5zYWN0aW9uX3NpemVfZmVlGAMgASgDEj8KGnN5bWJvbHNfdG9fcGF5X3R4",
+ "X3NpemVfZmVlGAQgAygLMhsudG9rZW4uU3ltYm9sVG9QYXlUeFNpemVGZWUi",
+ "TAobQ2hhcmdlVHJhbnNhY3Rpb25GZWVzT3V0cHV0Eg8KB3N1Y2Nlc3MYASAB",
+ "KAgSHAoUY2hhcmdpbmdfaW5mb3JtYXRpb24YAiABKAkiTAoMQ2FsbGJhY2tJ",
+ "bmZvEicKEGNvbnRyYWN0X2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3MS",
+ "EwoLbWV0aG9kX25hbWUYAiABKAkiZwoWRXh0cmFUb2tlbkxpc3RNb2RpZmll",
+ "ZBJHCh5zeW1ib2xfbGlzdF90b19wYXlfdHhfc2l6ZV9mZWUYASABKAsyHy50",
+ "b2tlbi5TeW1ib2xMaXN0VG9QYXlUeFNpemVGZWU6BKC7GAEiYwoUR2V0TG9j",
+ "a2VkQW1vdW50SW5wdXQSHgoHYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVz",
+ "cxIOCgZzeW1ib2wYAiABKAkSGwoHbG9ja19pZBgDIAEoCzIKLmFlbGYuSGFz",
+ "aCJ0ChVHZXRMb2NrZWRBbW91bnRPdXRwdXQSHgoHYWRkcmVzcxgBIAEoCzIN",
+ "LmFlbGYuQWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSGwoHbG9ja19pZBgDIAEo",
+ "CzIKLmFlbGYuSGFzaBIOCgZhbW91bnQYBCABKAMiMAoNVG9rZW5JbmZvTGlz",
+ "dBIfCgV2YWx1ZRgBIAMoCzIQLnRva2VuLlRva2VuSW5mbyJBCi5HZXRDcm9z",
+ "c0NoYWluVHJhbnNmZXJUb2tlbkNvbnRyYWN0QWRkcmVzc0lucHV0Eg8KB2No",
+ "YWluSWQYASABKAUikgEKGkNyb3NzQ2hhaW5DcmVhdGVUb2tlbklucHV0EhUK",
+ "DWZyb21fY2hhaW5faWQYASABKAUSGwoTcGFyZW50X2NoYWluX2hlaWdodBgC",
+ "IAEoAxIZChF0cmFuc2FjdGlvbl9ieXRlcxgDIAEoDBIlCgttZXJrbGVfcGF0",
+ "aBgEIAEoCzIQLmFlbGYuTWVya2xlUGF0aCKuAwoeSW5pdGlhbGl6ZUZyb21Q",
+ "YXJlbnRDaGFpbklucHV0ElIKD3Jlc291cmNlX2Ftb3VudBgBIAMoCzI5LnRv",
+ "a2VuLkluaXRpYWxpemVGcm9tUGFyZW50Q2hhaW5JbnB1dC5SZXNvdXJjZUFt",
+ "b3VudEVudHJ5EoMBCilyZWdpc3RlcmVkX290aGVyX3Rva2VuX2NvbnRyYWN0",
+ "X2FkZHJlc3NlcxgCIAMoCzJQLnRva2VuLkluaXRpYWxpemVGcm9tUGFyZW50",
+ "Q2hhaW5JbnB1dC5SZWdpc3RlcmVkT3RoZXJUb2tlbkNvbnRyYWN0QWRkcmVz",
+ "c2VzRW50cnkSHgoHY3JlYXRvchgDIAEoCzINLmFlbGYuQWRkcmVzcxo1ChNS",
+ "ZXNvdXJjZUFtb3VudEVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEo",
+ "BToCOAEaWwoqUmVnaXN0ZXJlZE90aGVyVG9rZW5Db250cmFjdEFkZHJlc3Nl",
+ "c0VudHJ5EgsKA2tleRgBIAEoBRIcCgV2YWx1ZRgCIAEoCzINLmFlbGYuQWRk",
+ "cmVzczoCOAEiZwoXVXBkYXRlQ29lZmZpY2llbnRzSW5wdXQSFQoNcGllY2Vf",
+ "bnVtYmVycxgBIAMoBRI1Cgxjb2VmZmljaWVudHMYAiABKAsyHy50b2tlbi5D",
+ "YWxjdWxhdGVGZWVDb2VmZmljaWVudHMiLgodQ2FsY3VsYXRlRmVlUGllY2VD",
+ "b2VmZmljaWVudHMSDQoFdmFsdWUYASADKAUieQoYQ2FsY3VsYXRlRmVlQ29l",
+ "ZmZpY2llbnRzEhYKDmZlZV90b2tlbl90eXBlGAEgASgFEkUKF3BpZWNlX2Nv",
+ "ZWZmaWNpZW50c19saXN0GAIgAygLMiQudG9rZW4uQ2FsY3VsYXRlRmVlUGll",
+ "Y2VDb2VmZmljaWVudHMiTQobQWxsQ2FsY3VsYXRlRmVlQ29lZmZpY2llbnRz",
+ "Ei4KBXZhbHVlGAEgAygLMh8udG9rZW4uQ2FsY3VsYXRlRmVlQ29lZmZpY2ll",
+ "bnRzIrcBChdUb3RhbFRyYW5zYWN0aW9uRmVlc01hcBI4CgV2YWx1ZRgBIAMo",
+ "CzIpLnRva2VuLlRvdGFsVHJhbnNhY3Rpb25GZWVzTWFwLlZhbHVlRW50cnkS",
+ "HgoKYmxvY2tfaGFzaBgCIAEoCzIKLmFlbGYuSGFzaBIUCgxibG9ja19oZWln",
+ "aHQYAyABKAMaLAoKVmFsdWVFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY",
+ "AiABKAM6AjgBIoIBChdUb3RhbFJlc291cmNlVG9rZW5zTWFwcxIxCgV2YWx1",
+ "ZRgBIAMoCzIiLnRva2VuLkNvbnRyYWN0VG90YWxSZXNvdXJjZVRva2VucxIe",
+ "CgpibG9ja19oYXNoGAIgASgLMgouYWVsZi5IYXNoEhQKDGJsb2NrX2hlaWdo",
+ "dBgDIAEoAyJ5ChtDb250cmFjdFRvdGFsUmVzb3VyY2VUb2tlbnMSJwoQY29u",
+ "dHJhY3RfYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxIxCgp0b2tlbnNf",
+ "bWFwGAIgASgLMh0udG9rZW4uVG90YWxSZXNvdXJjZVRva2Vuc01hcCJ/ChZU",
+ "b3RhbFJlc291cmNlVG9rZW5zTWFwEjcKBXZhbHVlGAEgAygLMigudG9rZW4u",
+ "VG90YWxSZXNvdXJjZVRva2Vuc01hcC5WYWx1ZUVudHJ5GiwKClZhbHVlRW50",
+ "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4ASJRChZDaGFuZ2VU",
+ "b2tlbklzc3VlcklucHV0Eg4KBnN5bWJvbBgBIAEoCRInChBuZXdfdG9rZW5f",
+ "SXNzdWVyGAIgASgLMg0uYWVsZi5BZGRyZXNzIlQKFlJlc2V0RXh0ZXJuYWxJ",
+ "bmZvSW5wdXQSDgoGc3ltYm9sGAEgASgJEioKDWV4dGVybmFsX2luZm8YAiAB",
+ "KAsyEy50b2tlbi5FeHRlcm5hbEluZm8iGwoKU3RyaW5nTGlzdBINCgV2YWx1",
+ "ZRgBIAMoCSLKAQoZVHJhbnNhY3Rpb25GZWVEZWxlZ2F0aW9ucxJGCgtkZWxl",
+ "Z2F0aW9ucxgBIAMoCzIxLnRva2VuLlRyYW5zYWN0aW9uRmVlRGVsZWdhdGlv",
+ "bnMuRGVsZWdhdGlvbnNFbnRyeRIUCgxibG9ja19oZWlnaHQYAiABKAMSGwoT",
+ "aXNVbmxpbWl0ZWREZWxlZ2F0ZRgDIAEoCBoyChBEZWxlZ2F0aW9uc0VudHJ5",
+ "EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoAzoCOAEitAEKGFRyYW5zYWN0",
+ "aW9uRmVlRGVsZWdhdGVlcxJDCgpkZWxlZ2F0ZWVzGAEgAygLMi8udG9rZW4u",
+ "VHJhbnNhY3Rpb25GZWVEZWxlZ2F0ZWVzLkRlbGVnYXRlZXNFbnRyeRpTCg9E",
+ "ZWxlZ2F0ZWVzRW50cnkSCwoDa2V5GAEgASgJEi8KBXZhbHVlGAIgASgLMiAu",
+ "dG9rZW4uVHJhbnNhY3Rpb25GZWVEZWxlZ2F0aW9uczoCOAEi0QEKIVNldFRy",
+ "YW5zYWN0aW9uRmVlRGVsZWdhdGlvbnNJbnB1dBIoChFkZWxlZ2F0b3JfYWRk",
+ "cmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxJOCgtkZWxlZ2F0aW9ucxgCIAMo",
+ "CzI5LnRva2VuLlNldFRyYW5zYWN0aW9uRmVlRGVsZWdhdGlvbnNJbnB1dC5E",
+ "ZWxlZ2F0aW9uc0VudHJ5GjIKEERlbGVnYXRpb25zRW50cnkSCwoDa2V5GAEg",
+ "ASgJEg0KBXZhbHVlGAIgASgDOgI4ASI1CiJTZXRUcmFuc2FjdGlvbkZlZURl",
+ "bGVnYXRpb25zT3V0cHV0Eg8KB3N1Y2Nlc3MYASABKAgiTgoiUmVtb3ZlVHJh",
+ "bnNhY3Rpb25GZWVEZWxlZ2F0b3JJbnB1dBIoChFkZWxlZ2F0b3JfYWRkcmVz",
+ "cxgBIAEoCzINLmFlbGYuQWRkcmVzcyJOCiJSZW1vdmVUcmFuc2FjdGlvbkZl",
+ "ZURlbGVnYXRlZUlucHV0EigKEWRlbGVnYXRlZV9hZGRyZXNzGAEgASgLMg0u",
+ "YWVsZi5BZGRyZXNzIoMBCi1HZXRUcmFuc2FjdGlvbkZlZURlbGVnYXRpb25z",
+ "T2ZBRGVsZWdhdGVlSW5wdXQSKAoRZGVsZWdhdGVlX2FkZHJlc3MYASABKAsy",
+ "DS5hZWxmLkFkZHJlc3MSKAoRZGVsZWdhdG9yX2FkZHJlc3MYAiABKAsyDS5h",
+ "ZWxmLkFkZHJlc3MiTAogR2V0VHJhbnNhY3Rpb25GZWVEZWxlZ2F0ZWVzSW5w",
+ "dXQSKAoRZGVsZWdhdG9yX2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3Mi",
+ "TwohR2V0VHJhbnNhY3Rpb25GZWVEZWxlZ2F0ZWVzT3V0cHV0EioKE2RlbGVn",
+ "YXRlZV9hZGRyZXNzZXMYASADKAsyDS5hZWxmLkFkZHJlc3MijgEKC1RyYW5z",
+ "ZmVycmVkEiIKBGZyb20YASABKAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEBEiAK",
+ "AnRvGAIgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIVCgZzeW1ib2wYAyAB",
+ "KAlCBYiP9QEBEg4KBmFtb3VudBgEIAEoAxIMCgRtZW1vGAUgASgJOgSguxgB",
+ "IoMBCghBcHByb3ZlZBIjCgVvd25lchgBIAEoCzINLmFlbGYuQWRkcmVzc0IF",
+ "iI/1AQESJQoHc3BlbmRlchgCIAEoCzINLmFlbGYuQWRkcmVzc0IFiI/1AQES",
+ "FQoGc3ltYm9sGAMgASgJQgWIj/UBARIOCgZhbW91bnQYBCABKAM6BKC7GAEi",
+ "hQEKClVuQXBwcm92ZWQSIwoFb3duZXIYASABKAsyDS5hZWxmLkFkZHJlc3NC",
+ "BYiP9QEBEiUKB3NwZW5kZXIYAiABKAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEB",
+ "EhUKBnN5bWJvbBgDIAEoCUIFiI/1AQESDgoGYW1vdW50GAQgASgDOgSguxgB",
+ "IlsKBkJ1cm5lZBIkCgZidXJuZXIYASABKAsyDS5hZWxmLkFkZHJlc3NCBYiP",
+ "9QEBEhUKBnN5bWJvbBgCIAEoCUIFiI/1AQESDgoGYW1vdW50GAMgASgDOgSg",
+ "uxgBIjgKGkNoYWluUHJpbWFyeVRva2VuU3ltYm9sU2V0EhQKDHRva2VuX3N5",
+ "bWJvbBgBIAEoCToEoLsYASJrChxDYWxjdWxhdGVGZWVBbGdvcml0aG1VcGRh",
+ "dGVkEkUKGWFsbF90eXBlX2ZlZV9jb2VmZmljaWVudHMYASABKAsyIi50b2tl",
+ "bi5BbGxDYWxjdWxhdGVGZWVDb2VmZmljaWVudHM6BKC7GAEidAoNUmVudGFs",
+ "Q2hhcmdlZBIOCgZzeW1ib2wYASABKAkSDgoGYW1vdW50GAIgASgDEhwKBXBh",
+ "eWVyGAMgASgLMg0uYWVsZi5BZGRyZXNzEh8KCHJlY2VpdmVyGAQgASgLMg0u",
+ "YWVsZi5BZGRyZXNzOgSguxgBIkgKIFJlbnRhbEFjY291bnRCYWxhbmNlSW5z",
+ "dWZmaWNpZW50Eg4KBnN5bWJvbBgBIAEoCRIOCgZhbW91bnQYAiABKAM6BKC7",
+ "GAEi9gEKDFRva2VuQ3JlYXRlZBIOCgZzeW1ib2wYASABKAkSEgoKdG9rZW5f",
+ "bmFtZRgCIAEoCRIUCgx0b3RhbF9zdXBwbHkYAyABKAMSEAoIZGVjaW1hbHMY",
+ "BCABKAUSHQoGaXNzdWVyGAUgASgLMg0uYWVsZi5BZGRyZXNzEhMKC2lzX2J1",
+ "cm5hYmxlGAYgASgIEhYKDmlzc3VlX2NoYWluX2lkGAcgASgFEioKDWV4dGVy",
+ "bmFsX2luZm8YCCABKAsyEy50b2tlbi5FeHRlcm5hbEluZm8SHAoFb3duZXIY",
+ "CSABKAsyDS5hZWxmLkFkZHJlc3M6BKC7GAEiVwoGSXNzdWVkEg4KBnN5bWJv",
+ "bBgBIAEoCRIOCgZhbW91bnQYAiABKAMSDAoEbWVtbxgDIAEoCRIZCgJ0bxgE",
+ "IAEoCzINLmFlbGYuQWRkcmVzczoEoLsYASKwAQoVQ3Jvc3NDaGFpblRyYW5z",
+ "ZmVycmVkEhsKBGZyb20YASABKAsyDS5hZWxmLkFkZHJlc3MSGQoCdG8YAiAB",
+ "KAsyDS5hZWxmLkFkZHJlc3MSDgoGc3ltYm9sGAMgASgJEg4KBmFtb3VudBgE",
+ "IAEoAxIMCgRtZW1vGAUgASgJEhMKC3RvX2NoYWluX2lkGAYgASgFEhYKDmlz",
+ "c3VlX2NoYWluX2lkGAcgASgFOgSguxgBIvkBChJDcm9zc0NoYWluUmVjZWl2",
+ "ZWQSGwoEZnJvbRgBIAEoCzINLmFlbGYuQWRkcmVzcxIZCgJ0bxgCIAEoCzIN",
+ "LmFlbGYuQWRkcmVzcxIOCgZzeW1ib2wYAyABKAkSDgoGYW1vdW50GAQgASgD",
+ "EgwKBG1lbW8YBSABKAkSFQoNZnJvbV9jaGFpbl9pZBgGIAEoBRIWCg5pc3N1",
+ "ZV9jaGFpbl9pZBgHIAEoBRIbChNwYXJlbnRfY2hhaW5faGVpZ2h0GAggASgD",
+ "EisKF3RyYW5zZmVyX3RyYW5zYWN0aW9uX2lkGAkgASgLMgouYWVsZi5IYXNo",
+ "OgSguxgBIlcKE0V4dGVybmFsSW5mb0NoYW5nZWQSDgoGc3ltYm9sGAEgASgJ",
+ "EioKDWV4dGVybmFsX2luZm8YAiABKAsyEy50b2tlbi5FeHRlcm5hbEluZm86",
+ "BKC7GAEinQEKHVRyYW5zYWN0aW9uRmVlRGVsZWdhdGlvbkFkZGVkEicKCWRl",
+ "bGVnYXRvchgBIAEoCzINLmFlbGYuQWRkcmVzc0IFiI/1AQESJwoJZGVsZWdh",
+ "dGVlGAIgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIkCgZjYWxsZXIYAyAB",
+ "KAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEBOgSguxgBIqEBCiFUcmFuc2FjdGlv",
+ "bkZlZURlbGVnYXRpb25DYW5jZWxsZWQSJwoJZGVsZWdhdG9yGAEgASgLMg0u",
+ "YWVsZi5BZGRyZXNzQgWIj/UBARInCglkZWxlZ2F0ZWUYAiABKAsyDS5hZWxm",
+ "LkFkZHJlc3NCBYiP9QEBEiQKBmNhbGxlchgDIAEoCzINLmFlbGYuQWRkcmVz",
+ "c0IFiI/1AQE6BKC7GAEqRAoLRmVlVHlwZUVudW0SCAoEUkVBRBAAEgsKB1NU",
+ "T1JBR0UQARIJCgVXUklURRACEgsKB1RSQUZGSUMQAxIGCgJUWBAEMpYgCg1U",
+ "b2tlbkNvbnRyYWN0EjYKBkNyZWF0ZRISLnRva2VuLkNyZWF0ZUlucHV0GhYu",
+ "Z29vZ2xlLnByb3RvYnVmLkVtcHR5IgASNAoFSXNzdWUSES50b2tlbi5Jc3N1",
+ "ZUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASOgoIVHJhbnNmZXIS",
+ "FC50b2tlbi5UcmFuc2ZlcklucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5",
+ "IgASQgoMVHJhbnNmZXJGcm9tEhgudG9rZW4uVHJhbnNmZXJGcm9tSW5wdXQa",
+ "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiABI4CgdBcHByb3ZlEhMudG9rZW4u",
+ "QXBwcm92ZUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASPAoJVW5B",
+ "cHByb3ZlEhUudG9rZW4uVW5BcHByb3ZlSW5wdXQaFi5nb29nbGUucHJvdG9i",
+ "dWYuRW1wdHkiABIyCgRMb2NrEhAudG9rZW4uTG9ja0lucHV0GhYuZ29vZ2xl",
+ "LnByb3RvYnVmLkVtcHR5IgASNgoGVW5sb2NrEhIudG9rZW4uVW5sb2NrSW5w",
+ "dXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABIyCgRCdXJuEhAudG9rZW4u",
+ "QnVybklucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASVAoVU2V0UHJp",
+ "bWFyeVRva2VuU3ltYm9sEiEudG9rZW4uU2V0UHJpbWFyeVRva2VuU3ltYm9s",
+ "SW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJOChJDcm9zc0NoYWlu",
+ "VHJhbnNmZXISHi50b2tlbi5Dcm9zc0NoYWluVHJhbnNmZXJJbnB1dBoWLmdv",
+ "b2dsZS5wcm90b2J1Zi5FbXB0eSIAElYKFkNyb3NzQ2hhaW5SZWNlaXZlVG9r",
+ "ZW4SIi50b2tlbi5Dcm9zc0NoYWluUmVjZWl2ZVRva2VuSW5wdXQaFi5nb29n",
+ "bGUucHJvdG9idWYuRW1wdHkiABJUChVDcm9zc0NoYWluQ3JlYXRlVG9rZW4S",
+ "IS50b2tlbi5Dcm9zc0NoYWluQ3JlYXRlVG9rZW5JbnB1dBoWLmdvb2dsZS5w",
+ "cm90b2J1Zi5FbXB0eSIAElwKGUluaXRpYWxpemVGcm9tUGFyZW50Q2hhaW4S",
+ "JS50b2tlbi5Jbml0aWFsaXplRnJvbVBhcmVudENoYWluSW5wdXQaFi5nb29n",
+ "bGUucHJvdG9idWYuRW1wdHkiABJQChRDbGFpbVRyYW5zYWN0aW9uRmVlcxIe",
+ "LnRva2VuLlRvdGFsVHJhbnNhY3Rpb25GZWVzTWFwGhYuZ29vZ2xlLnByb3Rv",
+ "YnVmLkVtcHR5IgASYAoVQ2hhcmdlVHJhbnNhY3Rpb25GZWVzEiEudG9rZW4u",
+ "Q2hhcmdlVHJhbnNhY3Rpb25GZWVzSW5wdXQaIi50b2tlbi5DaGFyZ2VUcmFu",
+ "c2FjdGlvbkZlZXNPdXRwdXQiABJsCiFDaGFyZ2VVc2VyQ29udHJhY3RUcmFu",
+ "c2FjdGlvbkZlZXMSIS50b2tlbi5DaGFyZ2VUcmFuc2FjdGlvbkZlZXNJbnB1",
+ "dBoiLnRva2VuLkNoYXJnZVRyYW5zYWN0aW9uRmVlc091dHB1dCIAEkYKDkNo",
+ "ZWNrVGhyZXNob2xkEhoudG9rZW4uQ2hlY2tUaHJlc2hvbGRJbnB1dBoWLmdv",
+ "b2dsZS5wcm90b2J1Zi5FbXB0eSIAEkcKE0luaXRpYWxDb2VmZmljaWVudHMS",
+ "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkaFi5nb29nbGUucHJvdG9idWYuRW1w",
+ "dHkiABJPChNEb25hdGVSZXNvdXJjZVRva2VuEh4udG9rZW4uVG90YWxSZXNv",
+ "dXJjZVRva2Vuc01hcHMaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJQChND",
+ "aGFyZ2VSZXNvdXJjZVRva2VuEh8udG9rZW4uQ2hhcmdlUmVzb3VyY2VUb2tl",
+ "bklucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASRgoSQ2hlY2tSZXNv",
+ "dXJjZVRva2VuEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhYuZ29vZ2xlLnBy",
+ "b3RvYnVmLkVtcHR5IgASVQoYU2V0U3ltYm9sc1RvUGF5VHhTaXplRmVlEh8u",
+ "dG9rZW4uU3ltYm9sTGlzdFRvUGF5VHhTaXplRmVlGhYuZ29vZ2xlLnByb3Rv",
+ "YnVmLkVtcHR5IgASVwobVXBkYXRlQ29lZmZpY2llbnRzRm9yU2VuZGVyEh4u",
+ "dG9rZW4uVXBkYXRlQ29lZmZpY2llbnRzSW5wdXQaFi5nb29nbGUucHJvdG9i",
+ "dWYuRW1wdHkiABJZCh1VcGRhdGVDb2VmZmljaWVudHNGb3JDb250cmFjdBIe",
+ "LnRva2VuLlVwZGF0ZUNvZWZmaWNpZW50c0lucHV0GhYuZ29vZ2xlLnByb3Rv",
+ "YnVmLkVtcHR5IgASUgoeSW5pdGlhbGl6ZUF1dGhvcml6ZWRDb250cm9sbGVy",
+ "EhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhYuZ29vZ2xlLnByb3RvYnVmLkVt",
+ "cHR5IgASSwogQWRkQWRkcmVzc1RvQ3JlYXRlVG9rZW5XaGl0ZUxpc3QSDS5h",
+ "ZWxmLkFkZHJlc3MaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJQCiVSZW1v",
+ "dmVBZGRyZXNzRnJvbUNyZWF0ZVRva2VuV2hpdGVMaXN0Eg0uYWVsZi5BZGRy",
+ "ZXNzGhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASdQocU2V0VHJhbnNhY3Rp",
+ "b25GZWVEZWxlZ2F0aW9ucxIoLnRva2VuLlNldFRyYW5zYWN0aW9uRmVlRGVs",
+ "ZWdhdGlvbnNJbnB1dBopLnRva2VuLlNldFRyYW5zYWN0aW9uRmVlRGVsZWdh",
+ "dGlvbnNPdXRwdXQiABJkCh1SZW1vdmVUcmFuc2FjdGlvbkZlZURlbGVnYXRv",
+ "chIpLnRva2VuLlJlbW92ZVRyYW5zYWN0aW9uRmVlRGVsZWdhdG9ySW5wdXQa",
+ "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJkCh1SZW1vdmVUcmFuc2FjdGlv",
+ "bkZlZURlbGVnYXRlZRIpLnRva2VuLlJlbW92ZVRyYW5zYWN0aW9uRmVlRGVs",
+ "ZWdhdGVlSW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJ3ChtHZXRU",
+ "cmFuc2FjdGlvbkZlZURlbGVnYXRlZXMSJy50b2tlbi5HZXRUcmFuc2FjdGlv",
+ "bkZlZURlbGVnYXRlZXNJbnB1dBooLnRva2VuLkdldFRyYW5zYWN0aW9uRmVl",
+ "RGVsZWdhdGVlc091dHB1dCIFiIn3AQESQQoMR2V0VG9rZW5JbmZvEhgudG9r",
+ "ZW4uR2V0VG9rZW5JbmZvSW5wdXQaEC50b2tlbi5Ub2tlbkluZm8iBYiJ9wEB",
+ "EkUKEkdldE5hdGl2ZVRva2VuSW5mbxIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0",
+ "eRoQLnRva2VuLlRva2VuSW5mbyIFiIn3AQESSwoUR2V0UmVzb3VyY2VUb2tl",
+ "bkluZm8SFi5nb29nbGUucHJvdG9idWYuRW1wdHkaFC50b2tlbi5Ub2tlbklu",
+ "Zm9MaXN0IgWIifcBARJECgpHZXRCYWxhbmNlEhYudG9rZW4uR2V0QmFsYW5j",
+ "ZUlucHV0GhcudG9rZW4uR2V0QmFsYW5jZU91dHB1dCIFiIn3AQESSgoMR2V0",
+ "QWxsb3dhbmNlEhgudG9rZW4uR2V0QWxsb3dhbmNlSW5wdXQaGS50b2tlbi5H",
+ "ZXRBbGxvd2FuY2VPdXRwdXQiBYiJ9wEBEk0KDUlzSW5XaGl0ZUxpc3QSGS50",
+ "b2tlbi5Jc0luV2hpdGVMaXN0SW5wdXQaGi5nb29nbGUucHJvdG9idWYuQm9v",
+ "bFZhbHVlIgWIifcBARJTCg9HZXRMb2NrZWRBbW91bnQSGy50b2tlbi5HZXRM",
+ "b2NrZWRBbW91bnRJbnB1dBocLnRva2VuLkdldExvY2tlZEFtb3VudE91dHB1",
+ "dCIFiIn3AQESeAopR2V0Q3Jvc3NDaGFpblRyYW5zZmVyVG9rZW5Db250cmFj",
+ "dEFkZHJlc3MSNS50b2tlbi5HZXRDcm9zc0NoYWluVHJhbnNmZXJUb2tlbkNv",
+ "bnRyYWN0QWRkcmVzc0lucHV0Gg0uYWVsZi5BZGRyZXNzIgWIifcBARJUChVH",
+ "ZXRQcmltYXJ5VG9rZW5TeW1ib2wSFi5nb29nbGUucHJvdG9idWYuRW1wdHka",
+ "HC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUiBYiJ9wEBEm0KJkdldENh",
+ "bGN1bGF0ZUZlZUNvZWZmaWNpZW50c0ZvckNvbnRyYWN0EhsuZ29vZ2xlLnBy",
+ "b3RvYnVmLkludDMyVmFsdWUaHy50b2tlbi5DYWxjdWxhdGVGZWVDb2VmZmlj",
+ "aWVudHMiBYiJ9wEBEmYKJEdldENhbGN1bGF0ZUZlZUNvZWZmaWNpZW50c0Zv",
+ "clNlbmRlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRofLnRva2VuLkNhbGN1",
+ "bGF0ZUZlZUNvZWZmaWNpZW50cyIFiIn3AQESWgoYR2V0U3ltYm9sc1RvUGF5",
+ "VHhTaXplRmVlEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gh8udG9rZW4uU3lt",
+ "Ym9sTGlzdFRvUGF5VHhTaXplRmVlIgWIifcBARJRCiRHZXRMYXRlc3RUb3Rh",
+ "bFRyYW5zYWN0aW9uRmVlc01hcEhhc2gSFi5nb29nbGUucHJvdG9idWYuRW1w",
+ "dHkaCi5hZWxmLkhhc2giBYiJ9wEBElEKJEdldExhdGVzdFRvdGFsUmVzb3Vy",
+ "Y2VUb2tlbnNNYXBzSGFzaBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoKLmFl",
+ "bGYuSGFzaCIFiIn3AQESXwocSXNUb2tlbkF2YWlsYWJsZUZvck1ldGhvZEZl",
+ "ZRIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRoaLmdvb2dsZS5wcm90",
+ "b2J1Zi5Cb29sVmFsdWUiBYiJ9wEBElIKHkdldFJlc2VydmVkRXh0ZXJuYWxJ",
+ "bmZvS2V5TGlzdBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoRLnRva2VuLlN0",
+ "cmluZ0xpc3QiBYiJ9wEBEokBCihHZXRUcmFuc2FjdGlvbkZlZURlbGVnYXRp",
+ "b25zT2ZBRGVsZWdhdGVlEjQudG9rZW4uR2V0VHJhbnNhY3Rpb25GZWVEZWxl",
+ "Z2F0aW9uc09mQURlbGVnYXRlZUlucHV0GiAudG9rZW4uVHJhbnNhY3Rpb25G",
+ "ZWVEZWxlZ2F0aW9ucyIFiIn3AQFCHKoCGUFFbGYuQ29udHJhY3RzLk11bHRp",
+ "VG9rZW5iBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AElf.Contracts.MultiToken.FeeTypeEnum), }, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TokenInfo), global::AElf.Contracts.MultiToken.TokenInfo.Parser, new[]{ "Symbol", "TokenName", "Supply", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "Issued", "ExternalInfo", "Owner" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ExternalInfo), global::AElf.Contracts.MultiToken.ExternalInfo.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CreateInput), global::AElf.Contracts.MultiToken.CreateInput.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "LockWhiteList", "IssueChainId", "ExternalInfo", "Owner" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SetPrimaryTokenSymbolInput), global::AElf.Contracts.MultiToken.SetPrimaryTokenSymbolInput.Parser, new[]{ "Symbol" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.IssueInput), global::AElf.Contracts.MultiToken.IssueInput.Parser, new[]{ "Symbol", "Amount", "Memo", "To" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransferInput), global::AElf.Contracts.MultiToken.TransferInput.Parser, new[]{ "To", "Symbol", "Amount", "Memo" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.LockInput), global::AElf.Contracts.MultiToken.LockInput.Parser, new[]{ "Address", "LockId", "Symbol", "Usage", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UnlockInput), global::AElf.Contracts.MultiToken.UnlockInput.Parser, new[]{ "Address", "LockId", "Symbol", "Usage", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransferFromInput), global::AElf.Contracts.MultiToken.TransferFromInput.Parser, new[]{ "From", "To", "Symbol", "Amount", "Memo" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ApproveInput), global::AElf.Contracts.MultiToken.ApproveInput.Parser, new[]{ "Spender", "Symbol", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UnApproveInput), global::AElf.Contracts.MultiToken.UnApproveInput.Parser, new[]{ "Spender", "Symbol", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.BurnInput), global::AElf.Contracts.MultiToken.BurnInput.Parser, new[]{ "Symbol", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ChargeResourceTokenInput), global::AElf.Contracts.MultiToken.ChargeResourceTokenInput.Parser, new[]{ "CostDic", "Caller" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeBill), global::AElf.Contracts.MultiToken.TransactionFeeBill.Parser, new[]{ "FeesMap" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFreeFeeAllowanceBill), global::AElf.Contracts.MultiToken.TransactionFreeFeeAllowanceBill.Parser, new[]{ "FreeFeeAllowancesMap" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CheckThresholdInput), global::AElf.Contracts.MultiToken.CheckThresholdInput.Parser, new[]{ "Sender", "SymbolToThreshold", "IsCheckAllowance" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTokenInfoInput), global::AElf.Contracts.MultiToken.GetTokenInfoInput.Parser, new[]{ "Symbol" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetBalanceInput), global::AElf.Contracts.MultiToken.GetBalanceInput.Parser, new[]{ "Symbol", "Owner" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetBalanceOutput), global::AElf.Contracts.MultiToken.GetBalanceOutput.Parser, new[]{ "Symbol", "Owner", "Balance" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetAllowanceInput), global::AElf.Contracts.MultiToken.GetAllowanceInput.Parser, new[]{ "Symbol", "Owner", "Spender" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetAllowanceOutput), global::AElf.Contracts.MultiToken.GetAllowanceOutput.Parser, new[]{ "Symbol", "Owner", "Spender", "Allowance" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CrossChainTransferInput), global::AElf.Contracts.MultiToken.CrossChainTransferInput.Parser, new[]{ "To", "Symbol", "Amount", "Memo", "ToChainId", "IssueChainId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CrossChainReceiveTokenInput), global::AElf.Contracts.MultiToken.CrossChainReceiveTokenInput.Parser, new[]{ "FromChainId", "ParentChainHeight", "TransferTransactionBytes", "MerklePath" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.IsInWhiteListInput), global::AElf.Contracts.MultiToken.IsInWhiteListInput.Parser, new[]{ "Symbol", "Address" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SymbolToPayTxSizeFee), global::AElf.Contracts.MultiToken.SymbolToPayTxSizeFee.Parser, new[]{ "TokenSymbol", "BaseTokenWeight", "AddedTokenWeight" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee), global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee.Parser, new[]{ "SymbolsToPayTxSizeFee" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ChargeTransactionFeesInput), global::AElf.Contracts.MultiToken.ChargeTransactionFeesInput.Parser, new[]{ "MethodName", "ContractAddress", "TransactionSizeFee", "SymbolsToPayTxSizeFee" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ChargeTransactionFeesOutput), global::AElf.Contracts.MultiToken.ChargeTransactionFeesOutput.Parser, new[]{ "Success", "ChargingInformation" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CallbackInfo), global::AElf.Contracts.MultiToken.CallbackInfo.Parser, new[]{ "ContractAddress", "MethodName" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ExtraTokenListModified), global::AElf.Contracts.MultiToken.ExtraTokenListModified.Parser, new[]{ "SymbolListToPayTxSizeFee" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetLockedAmountInput), global::AElf.Contracts.MultiToken.GetLockedAmountInput.Parser, new[]{ "Address", "Symbol", "LockId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetLockedAmountOutput), global::AElf.Contracts.MultiToken.GetLockedAmountOutput.Parser, new[]{ "Address", "Symbol", "LockId", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TokenInfoList), global::AElf.Contracts.MultiToken.TokenInfoList.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetCrossChainTransferTokenContractAddressInput), global::AElf.Contracts.MultiToken.GetCrossChainTransferTokenContractAddressInput.Parser, new[]{ "ChainId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CrossChainCreateTokenInput), global::AElf.Contracts.MultiToken.CrossChainCreateTokenInput.Parser, new[]{ "FromChainId", "ParentChainHeight", "TransactionBytes", "MerklePath" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.InitializeFromParentChainInput), global::AElf.Contracts.MultiToken.InitializeFromParentChainInput.Parser, new[]{ "ResourceAmount", "RegisteredOtherTokenContractAddresses", "Creator" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UpdateCoefficientsInput), global::AElf.Contracts.MultiToken.UpdateCoefficientsInput.Parser, new[]{ "PieceNumbers", "Coefficients" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CalculateFeePieceCoefficients), global::AElf.Contracts.MultiToken.CalculateFeePieceCoefficients.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CalculateFeeCoefficients), global::AElf.Contracts.MultiToken.CalculateFeeCoefficients.Parser, new[]{ "FeeTokenType", "PieceCoefficientsList" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients), global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TotalTransactionFeesMap), global::AElf.Contracts.MultiToken.TotalTransactionFeesMap.Parser, new[]{ "Value", "BlockHash", "BlockHeight" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TotalResourceTokensMaps), global::AElf.Contracts.MultiToken.TotalResourceTokensMaps.Parser, new[]{ "Value", "BlockHash", "BlockHeight" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ContractTotalResourceTokens), global::AElf.Contracts.MultiToken.ContractTotalResourceTokens.Parser, new[]{ "ContractAddress", "TokensMap" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TotalResourceTokensMap), global::AElf.Contracts.MultiToken.TotalResourceTokensMap.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ChangeTokenIssuerInput), global::AElf.Contracts.MultiToken.ChangeTokenIssuerInput.Parser, new[]{ "Symbol", "NewTokenIssuer" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResetExternalInfoInput), global::AElf.Contracts.MultiToken.ResetExternalInfoInput.Parser, new[]{ "Symbol", "ExternalInfo" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.StringList), global::AElf.Contracts.MultiToken.StringList.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegations), global::AElf.Contracts.MultiToken.TransactionFeeDelegations.Parser, new[]{ "Delegations", "BlockHeight", "IsUnlimitedDelegate" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegatees), global::AElf.Contracts.MultiToken.TransactionFeeDelegatees.Parser, new[]{ "Delegatees" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsInput), global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsInput.Parser, new[]{ "DelegatorAddress", "Delegations" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsOutput), global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsOutput.Parser, new[]{ "Success" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegatorInput), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegatorInput.Parser, new[]{ "DelegatorAddress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegateeInput), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegateeInput.Parser, new[]{ "DelegateeAddress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeDelegationsOfADelegateeInput), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegationsOfADelegateeInput.Parser, new[]{ "DelegateeAddress", "DelegatorAddress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesInput), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesInput.Parser, new[]{ "DelegatorAddress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesOutput), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesOutput.Parser, new[]{ "DelegateeAddresses" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Transferred), global::AElf.Contracts.MultiToken.Transferred.Parser, new[]{ "From", "To", "Symbol", "Amount", "Memo" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Approved), global::AElf.Contracts.MultiToken.Approved.Parser, new[]{ "Owner", "Spender", "Symbol", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UnApproved), global::AElf.Contracts.MultiToken.UnApproved.Parser, new[]{ "Owner", "Spender", "Symbol", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Burned), global::AElf.Contracts.MultiToken.Burned.Parser, new[]{ "Burner", "Symbol", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ChainPrimaryTokenSymbolSet), global::AElf.Contracts.MultiToken.ChainPrimaryTokenSymbolSet.Parser, new[]{ "TokenSymbol" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CalculateFeeAlgorithmUpdated), global::AElf.Contracts.MultiToken.CalculateFeeAlgorithmUpdated.Parser, new[]{ "AllTypeFeeCoefficients" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RentalCharged), global::AElf.Contracts.MultiToken.RentalCharged.Parser, new[]{ "Symbol", "Amount", "Payer", "Receiver" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RentalAccountBalanceInsufficient), global::AElf.Contracts.MultiToken.RentalAccountBalanceInsufficient.Parser, new[]{ "Symbol", "Amount" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TokenCreated), global::AElf.Contracts.MultiToken.TokenCreated.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "ExternalInfo", "Owner" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Issued), global::AElf.Contracts.MultiToken.Issued.Parser, new[]{ "Symbol", "Amount", "Memo", "To" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CrossChainTransferred), global::AElf.Contracts.MultiToken.CrossChainTransferred.Parser, new[]{ "From", "To", "Symbol", "Amount", "Memo", "ToChainId", "IssueChainId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CrossChainReceived), global::AElf.Contracts.MultiToken.CrossChainReceived.Parser, new[]{ "From", "To", "Symbol", "Amount", "Memo", "FromChainId", "IssueChainId", "ParentChainHeight", "TransferTransactionId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ExternalInfoChanged), global::AElf.Contracts.MultiToken.ExternalInfoChanged.Parser, new[]{ "Symbol", "ExternalInfo" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegationAdded), global::AElf.Contracts.MultiToken.TransactionFeeDelegationAdded.Parser, new[]{ "Delegator", "Delegatee", "Caller" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegationCancelled), global::AElf.Contracts.MultiToken.TransactionFeeDelegationCancelled.Parser, new[]{ "Delegator", "Delegatee", "Caller" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Enums
+ public enum FeeTypeEnum {
+ [pbr::OriginalName("READ")] Read = 0,
+ [pbr::OriginalName("STORAGE")] Storage = 1,
+ [pbr::OriginalName("WRITE")] Write = 2,
+ [pbr::OriginalName("TRAFFIC")] Traffic = 3,
+ [pbr::OriginalName("TX")] Tx = 4,
+ }
+
+ #endregion
+
+ #region Messages
+ public sealed partial class TokenInfo : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenInfo());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TokenInfo() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TokenInfo(TokenInfo other) : this() {
+ symbol_ = other.symbol_;
+ tokenName_ = other.tokenName_;
+ supply_ = other.supply_;
+ totalSupply_ = other.totalSupply_;
+ decimals_ = other.decimals_;
+ issuer_ = other.issuer_ != null ? other.issuer_.Clone() : null;
+ isBurnable_ = other.isBurnable_;
+ issueChainId_ = other.issueChainId_;
+ issued_ = other.issued_;
+ externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null;
+ owner_ = other.owner_ != null ? other.owner_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TokenInfo Clone() {
+ return new TokenInfo(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of the token.f
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "token_name" field.
+ public const int TokenNameFieldNumber = 2;
+ private string tokenName_ = "";
+ ///
+ /// The full name of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string TokenName {
+ get { return tokenName_; }
+ set {
+ tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "supply" field.
+ public const int SupplyFieldNumber = 3;
+ private long supply_;
+ ///
+ /// The current supply of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Supply {
+ get { return supply_; }
+ set {
+ supply_ = value;
+ }
+ }
+
+ /// Field number for the "total_supply" field.
+ public const int TotalSupplyFieldNumber = 4;
+ private long totalSupply_;
+ ///
+ /// The total supply of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long TotalSupply {
+ get { return totalSupply_; }
+ set {
+ totalSupply_ = value;
+ }
+ }
+
+ /// Field number for the "decimals" field.
+ public const int DecimalsFieldNumber = 5;
+ private int decimals_;
+ ///
+ /// The precision of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Decimals {
+ get { return decimals_; }
+ set {
+ decimals_ = value;
+ }
+ }
+
+ /// Field number for the "issuer" field.
+ public const int IssuerFieldNumber = 6;
+ private global::AElf.Types.Address issuer_;
+ ///
+ /// The address that has permission to issue the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Issuer {
+ get { return issuer_; }
+ set {
+ issuer_ = value;
+ }
+ }
+
+ /// Field number for the "is_burnable" field.
+ public const int IsBurnableFieldNumber = 7;
+ private bool isBurnable_;
+ ///
+ /// A flag indicating if this token is burnable.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsBurnable {
+ get { return isBurnable_; }
+ set {
+ isBurnable_ = value;
+ }
+ }
+
+ /// Field number for the "issue_chain_id" field.
+ public const int IssueChainIdFieldNumber = 8;
+ private int issueChainId_;
+ ///
+ /// The chain id of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int IssueChainId {
+ get { return issueChainId_; }
+ set {
+ issueChainId_ = value;
+ }
+ }
+
+ /// Field number for the "issued" field.
+ public const int IssuedFieldNumber = 9;
+ private long issued_;
+ ///
+ /// The amount of issued tokens.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Issued {
+ get { return issued_; }
+ set {
+ issued_ = value;
+ }
+ }
+
+ /// Field number for the "external_info" field.
+ public const int ExternalInfoFieldNumber = 10;
+ private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_;
+ ///
+ /// The external information of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo {
+ get { return externalInfo_; }
+ set {
+ externalInfo_ = value;
+ }
+ }
+
+ /// Field number for the "owner" field.
+ public const int OwnerFieldNumber = 11;
+ private global::AElf.Types.Address owner_;
+ ///
+ /// The address that owns the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Owner {
+ get { return owner_; }
+ set {
+ owner_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as TokenInfo);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(TokenInfo other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ if (TokenName != other.TokenName) return false;
+ if (Supply != other.Supply) return false;
+ if (TotalSupply != other.TotalSupply) return false;
+ if (Decimals != other.Decimals) return false;
+ if (!object.Equals(Issuer, other.Issuer)) return false;
+ if (IsBurnable != other.IsBurnable) return false;
+ if (IssueChainId != other.IssueChainId) return false;
+ if (Issued != other.Issued) return false;
+ if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false;
+ if (!object.Equals(Owner, other.Owner)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (TokenName.Length != 0) hash ^= TokenName.GetHashCode();
+ if (Supply != 0L) hash ^= Supply.GetHashCode();
+ if (TotalSupply != 0L) hash ^= TotalSupply.GetHashCode();
+ if (Decimals != 0) hash ^= Decimals.GetHashCode();
+ if (issuer_ != null) hash ^= Issuer.GetHashCode();
+ if (IsBurnable != false) hash ^= IsBurnable.GetHashCode();
+ if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode();
+ if (Issued != 0L) hash ^= Issued.GetHashCode();
+ if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode();
+ if (owner_ != null) hash ^= Owner.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (TokenName.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(TokenName);
+ }
+ if (Supply != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Supply);
+ }
+ if (TotalSupply != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(TotalSupply);
+ }
+ if (Decimals != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(Decimals);
+ }
+ if (issuer_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(Issuer);
+ }
+ if (IsBurnable != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(IsBurnable);
+ }
+ if (IssueChainId != 0) {
+ output.WriteRawTag(64);
+ output.WriteInt32(IssueChainId);
+ }
+ if (Issued != 0L) {
+ output.WriteRawTag(72);
+ output.WriteInt64(Issued);
+ }
+ if (externalInfo_ != null) {
+ output.WriteRawTag(82);
+ output.WriteMessage(ExternalInfo);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(90);
+ output.WriteMessage(Owner);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (TokenName.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(TokenName);
+ }
+ if (Supply != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Supply);
+ }
+ if (TotalSupply != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(TotalSupply);
+ }
+ if (Decimals != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(Decimals);
+ }
+ if (issuer_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(Issuer);
+ }
+ if (IsBurnable != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(IsBurnable);
+ }
+ if (IssueChainId != 0) {
+ output.WriteRawTag(64);
+ output.WriteInt32(IssueChainId);
+ }
+ if (Issued != 0L) {
+ output.WriteRawTag(72);
+ output.WriteInt64(Issued);
+ }
+ if (externalInfo_ != null) {
+ output.WriteRawTag(82);
+ output.WriteMessage(ExternalInfo);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(90);
+ output.WriteMessage(Owner);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (TokenName.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName);
+ }
+ if (Supply != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Supply);
+ }
+ if (TotalSupply != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalSupply);
+ }
+ if (Decimals != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Decimals);
+ }
+ if (issuer_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Issuer);
+ }
+ if (IsBurnable != false) {
+ size += 1 + 1;
+ }
+ if (IssueChainId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId);
+ }
+ if (Issued != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Issued);
+ }
+ if (externalInfo_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo);
+ }
+ if (owner_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(TokenInfo other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.TokenName.Length != 0) {
+ TokenName = other.TokenName;
+ }
+ if (other.Supply != 0L) {
+ Supply = other.Supply;
+ }
+ if (other.TotalSupply != 0L) {
+ TotalSupply = other.TotalSupply;
+ }
+ if (other.Decimals != 0) {
+ Decimals = other.Decimals;
+ }
+ if (other.issuer_ != null) {
+ if (issuer_ == null) {
+ Issuer = new global::AElf.Types.Address();
+ }
+ Issuer.MergeFrom(other.Issuer);
+ }
+ if (other.IsBurnable != false) {
+ IsBurnable = other.IsBurnable;
+ }
+ if (other.IssueChainId != 0) {
+ IssueChainId = other.IssueChainId;
+ }
+ if (other.Issued != 0L) {
+ Issued = other.Issued;
+ }
+ if (other.externalInfo_ != null) {
+ if (externalInfo_ == null) {
+ ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo();
+ }
+ ExternalInfo.MergeFrom(other.ExternalInfo);
+ }
+ if (other.owner_ != null) {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ Owner.MergeFrom(other.Owner);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ TokenName = input.ReadString();
+ break;
+ }
+ case 24: {
+ Supply = input.ReadInt64();
+ break;
+ }
+ case 32: {
+ TotalSupply = input.ReadInt64();
+ break;
+ }
+ case 40: {
+ Decimals = input.ReadInt32();
+ break;
+ }
+ case 50: {
+ if (issuer_ == null) {
+ Issuer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Issuer);
+ break;
+ }
+ case 56: {
+ IsBurnable = input.ReadBool();
+ break;
+ }
+ case 64: {
+ IssueChainId = input.ReadInt32();
+ break;
+ }
+ case 72: {
+ Issued = input.ReadInt64();
+ break;
+ }
+ case 82: {
+ if (externalInfo_ == null) {
+ ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo();
+ }
+ input.ReadMessage(ExternalInfo);
+ break;
+ }
+ case 90: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ TokenName = input.ReadString();
+ break;
+ }
+ case 24: {
+ Supply = input.ReadInt64();
+ break;
+ }
+ case 32: {
+ TotalSupply = input.ReadInt64();
+ break;
+ }
+ case 40: {
+ Decimals = input.ReadInt32();
+ break;
+ }
+ case 50: {
+ if (issuer_ == null) {
+ Issuer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Issuer);
+ break;
+ }
+ case 56: {
+ IsBurnable = input.ReadBool();
+ break;
+ }
+ case 64: {
+ IssueChainId = input.ReadInt32();
+ break;
+ }
+ case 72: {
+ Issued = input.ReadInt64();
+ break;
+ }
+ case 82: {
+ if (externalInfo_ == null) {
+ ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo();
+ }
+ input.ReadMessage(ExternalInfo);
+ break;
+ }
+ case 90: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ExternalInfo : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalInfo());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ExternalInfo() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ExternalInfo(ExternalInfo other) : this() {
+ value_ = other.value_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ExternalInfo Clone() {
+ return new ExternalInfo(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private static readonly pbc::MapField.Codec _map_value_codec
+ = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 10);
+ private readonly pbc::MapField value_ = new pbc::MapField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::MapField Value {
+ get { return value_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ExternalInfo);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ExternalInfo other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!Value.Equals(other.Value)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ value_.WriteTo(output, _map_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ value_.WriteTo(ref output, _map_value_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += value_.CalculateSize(_map_value_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ExternalInfo other) {
+ if (other == null) {
+ return;
+ }
+ value_.Add(other.value_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(input, _map_value_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ value_.AddEntriesFrom(ref input, _map_value_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CreateInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[2]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CreateInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CreateInput(CreateInput other) : this() {
+ symbol_ = other.symbol_;
+ tokenName_ = other.tokenName_;
+ totalSupply_ = other.totalSupply_;
+ decimals_ = other.decimals_;
+ issuer_ = other.issuer_ != null ? other.issuer_.Clone() : null;
+ isBurnable_ = other.isBurnable_;
+ lockWhiteList_ = other.lockWhiteList_.Clone();
+ issueChainId_ = other.issueChainId_;
+ externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null;
+ owner_ = other.owner_ != null ? other.owner_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CreateInput Clone() {
+ return new CreateInput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "token_name" field.
+ public const int TokenNameFieldNumber = 2;
+ private string tokenName_ = "";
+ ///
+ /// The full name of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string TokenName {
+ get { return tokenName_; }
+ set {
+ tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "total_supply" field.
+ public const int TotalSupplyFieldNumber = 3;
+ private long totalSupply_;
+ ///
+ /// The total supply of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long TotalSupply {
+ get { return totalSupply_; }
+ set {
+ totalSupply_ = value;
+ }
+ }
+
+ /// Field number for the "decimals" field.
+ public const int DecimalsFieldNumber = 4;
+ private int decimals_;
+ ///
+ /// The precision of the token
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Decimals {
+ get { return decimals_; }
+ set {
+ decimals_ = value;
+ }
+ }
+
+ /// Field number for the "issuer" field.
+ public const int IssuerFieldNumber = 5;
+ private global::AElf.Types.Address issuer_;
+ ///
+ /// The address that has permission to issue the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Issuer {
+ get { return issuer_; }
+ set {
+ issuer_ = value;
+ }
+ }
+
+ /// Field number for the "is_burnable" field.
+ public const int IsBurnableFieldNumber = 6;
+ private bool isBurnable_;
+ ///
+ /// A flag indicating if this token is burnable.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsBurnable {
+ get { return isBurnable_; }
+ set {
+ isBurnable_ = value;
+ }
+ }
+
+ /// Field number for the "lock_white_list" field.
+ public const int LockWhiteListFieldNumber = 7;
+ private static readonly pb::FieldCodec _repeated_lockWhiteList_codec
+ = pb::FieldCodec.ForMessage(58, global::AElf.Types.Address.Parser);
+ private readonly pbc::RepeatedField lockWhiteList_ = new pbc::RepeatedField();
+ ///
+ /// A whitelist address list used to lock tokens.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField LockWhiteList {
+ get { return lockWhiteList_; }
+ }
+
+ /// Field number for the "issue_chain_id" field.
+ public const int IssueChainIdFieldNumber = 8;
+ private int issueChainId_;
+ ///
+ /// The chain id of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int IssueChainId {
+ get { return issueChainId_; }
+ set {
+ issueChainId_ = value;
+ }
+ }
+
+ /// Field number for the "external_info" field.
+ public const int ExternalInfoFieldNumber = 9;
+ private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_;
+ ///
+ /// The external information of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo {
+ get { return externalInfo_; }
+ set {
+ externalInfo_ = value;
+ }
+ }
+
+ /// Field number for the "owner" field.
+ public const int OwnerFieldNumber = 10;
+ private global::AElf.Types.Address owner_;
+ ///
+ /// The address that owns the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Owner {
+ get { return owner_; }
+ set {
+ owner_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CreateInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CreateInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ if (TokenName != other.TokenName) return false;
+ if (TotalSupply != other.TotalSupply) return false;
+ if (Decimals != other.Decimals) return false;
+ if (!object.Equals(Issuer, other.Issuer)) return false;
+ if (IsBurnable != other.IsBurnable) return false;
+ if(!lockWhiteList_.Equals(other.lockWhiteList_)) return false;
+ if (IssueChainId != other.IssueChainId) return false;
+ if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false;
+ if (!object.Equals(Owner, other.Owner)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (TokenName.Length != 0) hash ^= TokenName.GetHashCode();
+ if (TotalSupply != 0L) hash ^= TotalSupply.GetHashCode();
+ if (Decimals != 0) hash ^= Decimals.GetHashCode();
+ if (issuer_ != null) hash ^= Issuer.GetHashCode();
+ if (IsBurnable != false) hash ^= IsBurnable.GetHashCode();
+ hash ^= lockWhiteList_.GetHashCode();
+ if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode();
+ if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode();
+ if (owner_ != null) hash ^= Owner.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (TokenName.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(TokenName);
+ }
+ if (TotalSupply != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(TotalSupply);
+ }
+ if (Decimals != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Decimals);
+ }
+ if (issuer_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(Issuer);
+ }
+ if (IsBurnable != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(IsBurnable);
+ }
+ lockWhiteList_.WriteTo(output, _repeated_lockWhiteList_codec);
+ if (IssueChainId != 0) {
+ output.WriteRawTag(64);
+ output.WriteInt32(IssueChainId);
+ }
+ if (externalInfo_ != null) {
+ output.WriteRawTag(74);
+ output.WriteMessage(ExternalInfo);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(82);
+ output.WriteMessage(Owner);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (TokenName.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(TokenName);
+ }
+ if (TotalSupply != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(TotalSupply);
+ }
+ if (Decimals != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Decimals);
+ }
+ if (issuer_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(Issuer);
+ }
+ if (IsBurnable != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(IsBurnable);
+ }
+ lockWhiteList_.WriteTo(ref output, _repeated_lockWhiteList_codec);
+ if (IssueChainId != 0) {
+ output.WriteRawTag(64);
+ output.WriteInt32(IssueChainId);
+ }
+ if (externalInfo_ != null) {
+ output.WriteRawTag(74);
+ output.WriteMessage(ExternalInfo);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(82);
+ output.WriteMessage(Owner);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (TokenName.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName);
+ }
+ if (TotalSupply != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalSupply);
+ }
+ if (Decimals != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Decimals);
+ }
+ if (issuer_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Issuer);
+ }
+ if (IsBurnable != false) {
+ size += 1 + 1;
+ }
+ size += lockWhiteList_.CalculateSize(_repeated_lockWhiteList_codec);
+ if (IssueChainId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId);
+ }
+ if (externalInfo_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo);
+ }
+ if (owner_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CreateInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.TokenName.Length != 0) {
+ TokenName = other.TokenName;
+ }
+ if (other.TotalSupply != 0L) {
+ TotalSupply = other.TotalSupply;
+ }
+ if (other.Decimals != 0) {
+ Decimals = other.Decimals;
+ }
+ if (other.issuer_ != null) {
+ if (issuer_ == null) {
+ Issuer = new global::AElf.Types.Address();
+ }
+ Issuer.MergeFrom(other.Issuer);
+ }
+ if (other.IsBurnable != false) {
+ IsBurnable = other.IsBurnable;
+ }
+ lockWhiteList_.Add(other.lockWhiteList_);
+ if (other.IssueChainId != 0) {
+ IssueChainId = other.IssueChainId;
+ }
+ if (other.externalInfo_ != null) {
+ if (externalInfo_ == null) {
+ ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo();
+ }
+ ExternalInfo.MergeFrom(other.ExternalInfo);
+ }
+ if (other.owner_ != null) {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ Owner.MergeFrom(other.Owner);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ TokenName = input.ReadString();
+ break;
+ }
+ case 24: {
+ TotalSupply = input.ReadInt64();
+ break;
+ }
+ case 32: {
+ Decimals = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ if (issuer_ == null) {
+ Issuer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Issuer);
+ break;
+ }
+ case 48: {
+ IsBurnable = input.ReadBool();
+ break;
+ }
+ case 58: {
+ lockWhiteList_.AddEntriesFrom(input, _repeated_lockWhiteList_codec);
+ break;
+ }
+ case 64: {
+ IssueChainId = input.ReadInt32();
+ break;
+ }
+ case 74: {
+ if (externalInfo_ == null) {
+ ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo();
+ }
+ input.ReadMessage(ExternalInfo);
+ break;
+ }
+ case 82: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ TokenName = input.ReadString();
+ break;
+ }
+ case 24: {
+ TotalSupply = input.ReadInt64();
+ break;
+ }
+ case 32: {
+ Decimals = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ if (issuer_ == null) {
+ Issuer = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Issuer);
+ break;
+ }
+ case 48: {
+ IsBurnable = input.ReadBool();
+ break;
+ }
+ case 58: {
+ lockWhiteList_.AddEntriesFrom(ref input, _repeated_lockWhiteList_codec);
+ break;
+ }
+ case 64: {
+ IssueChainId = input.ReadInt32();
+ break;
+ }
+ case 74: {
+ if (externalInfo_ == null) {
+ ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo();
+ }
+ input.ReadMessage(ExternalInfo);
+ break;
+ }
+ case 82: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SetPrimaryTokenSymbolInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetPrimaryTokenSymbolInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[3]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SetPrimaryTokenSymbolInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SetPrimaryTokenSymbolInput(SetPrimaryTokenSymbolInput other) : this() {
+ symbol_ = other.symbol_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SetPrimaryTokenSymbolInput Clone() {
+ return new SetPrimaryTokenSymbolInput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SetPrimaryTokenSymbolInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SetPrimaryTokenSymbolInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SetPrimaryTokenSymbolInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class IssueInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IssueInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[4]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public IssueInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public IssueInput(IssueInput other) : this() {
+ symbol_ = other.symbol_;
+ amount_ = other.amount_;
+ memo_ = other.memo_;
+ to_ = other.to_ != null ? other.to_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public IssueInput Clone() {
+ return new IssueInput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The token symbol to issue.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 2;
+ private long amount_;
+ ///
+ /// The token amount to issue.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ /// Field number for the "memo" field.
+ public const int MemoFieldNumber = 3;
+ private string memo_ = "";
+ ///
+ /// The memo.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Memo {
+ get { return memo_; }
+ set {
+ memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "to" field.
+ public const int ToFieldNumber = 4;
+ private global::AElf.Types.Address to_;
+ ///
+ /// The target address to issue.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address To {
+ get { return to_; }
+ set {
+ to_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as IssueInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(IssueInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ if (Amount != other.Amount) return false;
+ if (Memo != other.Memo) return false;
+ if (!object.Equals(To, other.To)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (Memo.Length != 0) hash ^= Memo.GetHashCode();
+ if (to_ != null) hash ^= To.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Amount);
+ }
+ if (Memo.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Memo);
+ }
+ if (to_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(To);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Amount);
+ }
+ if (Memo.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Memo);
+ }
+ if (to_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(To);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (Memo.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo);
+ }
+ if (to_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(To);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(IssueInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ if (other.Memo.Length != 0) {
+ Memo = other.Memo;
+ }
+ if (other.to_ != null) {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ To.MergeFrom(other.To);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 16: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ Memo = input.ReadString();
+ break;
+ }
+ case 34: {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(To);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 16: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ Memo = input.ReadString();
+ break;
+ }
+ case 34: {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(To);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class TransferInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[5]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransferInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransferInput(TransferInput other) : this() {
+ to_ = other.to_ != null ? other.to_.Clone() : null;
+ symbol_ = other.symbol_;
+ amount_ = other.amount_;
+ memo_ = other.memo_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransferInput Clone() {
+ return new TransferInput(this);
+ }
+
+ /// Field number for the "to" field.
+ public const int ToFieldNumber = 1;
+ private global::AElf.Types.Address to_;
+ ///
+ /// The receiver of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address To {
+ get { return to_; }
+ set {
+ to_ = value;
+ }
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 2;
+ private string symbol_ = "";
+ ///
+ /// The token symbol to transfer.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 3;
+ private long amount_;
+ ///
+ /// The amount to to transfer.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ /// Field number for the "memo" field.
+ public const int MemoFieldNumber = 4;
+ private string memo_ = "";
+ ///
+ /// The memo.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Memo {
+ get { return memo_; }
+ set {
+ memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as TransferInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(TransferInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(To, other.To)) return false;
+ if (Symbol != other.Symbol) return false;
+ if (Amount != other.Amount) return false;
+ if (Memo != other.Memo) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (to_ != null) hash ^= To.GetHashCode();
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (Memo.Length != 0) hash ^= Memo.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (to_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(To);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Amount);
+ }
+ if (Memo.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Memo);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (to_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(To);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Amount);
+ }
+ if (Memo.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Memo);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (to_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(To);
+ }
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (Memo.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(TransferInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.to_ != null) {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ To.MergeFrom(other.To);
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ if (other.Memo.Length != 0) {
+ Memo = other.Memo;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(To);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 24: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ case 34: {
+ Memo = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(To);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 24: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ case 34: {
+ Memo = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class LockInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LockInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[6]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public LockInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public LockInput(LockInput other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null;
+ symbol_ = other.symbol_;
+ usage_ = other.usage_;
+ amount_ = other.amount_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public LockInput Clone() {
+ return new LockInput(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The one want to lock his token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "lock_id" field.
+ public const int LockIdFieldNumber = 2;
+ private global::AElf.Types.Hash lockId_;
+ ///
+ /// Id of the lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash LockId {
+ get { return lockId_; }
+ set {
+ lockId_ = value;
+ }
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 3;
+ private string symbol_ = "";
+ ///
+ /// The symbol of the token to lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "usage" field.
+ public const int UsageFieldNumber = 4;
+ private string usage_ = "";
+ ///
+ /// a memo.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Usage {
+ get { return usage_; }
+ set {
+ usage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 5;
+ private long amount_;
+ ///
+ /// The amount of tokens to lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as LockInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(LockInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (!object.Equals(LockId, other.LockId)) return false;
+ if (Symbol != other.Symbol) return false;
+ if (Usage != other.Usage) return false;
+ if (Amount != other.Amount) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (lockId_ != null) hash ^= LockId.GetHashCode();
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (Usage.Length != 0) hash ^= Usage.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (lockId_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(LockId);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Symbol);
+ }
+ if (Usage.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Usage);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (lockId_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(LockId);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Symbol);
+ }
+ if (Usage.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Usage);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (lockId_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(LockId);
+ }
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (Usage.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Usage);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(LockInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.lockId_ != null) {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ LockId.MergeFrom(other.LockId);
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.Usage.Length != 0) {
+ Usage = other.Usage;
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(LockId);
+ break;
+ }
+ case 26: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 34: {
+ Usage = input.ReadString();
+ break;
+ }
+ case 40: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(LockId);
+ break;
+ }
+ case 26: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 34: {
+ Usage = input.ReadString();
+ break;
+ }
+ case 40: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class UnlockInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[7]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UnlockInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UnlockInput(UnlockInput other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null;
+ symbol_ = other.symbol_;
+ usage_ = other.usage_;
+ amount_ = other.amount_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UnlockInput Clone() {
+ return new UnlockInput(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The one want to un-lock his token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "lock_id" field.
+ public const int LockIdFieldNumber = 2;
+ private global::AElf.Types.Hash lockId_;
+ ///
+ /// Id of the lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash LockId {
+ get { return lockId_; }
+ set {
+ lockId_ = value;
+ }
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 3;
+ private string symbol_ = "";
+ ///
+ /// The symbol of the token to un-lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "usage" field.
+ public const int UsageFieldNumber = 4;
+ private string usage_ = "";
+ ///
+ /// a memo.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Usage {
+ get { return usage_; }
+ set {
+ usage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 5;
+ private long amount_;
+ ///
+ /// The amount of tokens to un-lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as UnlockInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UnlockInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (!object.Equals(LockId, other.LockId)) return false;
+ if (Symbol != other.Symbol) return false;
+ if (Usage != other.Usage) return false;
+ if (Amount != other.Amount) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (lockId_ != null) hash ^= LockId.GetHashCode();
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (Usage.Length != 0) hash ^= Usage.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (lockId_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(LockId);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Symbol);
+ }
+ if (Usage.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Usage);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (lockId_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(LockId);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Symbol);
+ }
+ if (Usage.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Usage);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (lockId_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(LockId);
+ }
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (Usage.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Usage);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(UnlockInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.lockId_ != null) {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ LockId.MergeFrom(other.LockId);
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.Usage.Length != 0) {
+ Usage = other.Usage;
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(LockId);
+ break;
+ }
+ case 26: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 34: {
+ Usage = input.ReadString();
+ break;
+ }
+ case 40: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(LockId);
+ break;
+ }
+ case 26: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 34: {
+ Usage = input.ReadString();
+ break;
+ }
+ case 40: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class TransferFromInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferFromInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[8]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransferFromInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransferFromInput(TransferFromInput other) : this() {
+ from_ = other.from_ != null ? other.from_.Clone() : null;
+ to_ = other.to_ != null ? other.to_.Clone() : null;
+ symbol_ = other.symbol_;
+ amount_ = other.amount_;
+ memo_ = other.memo_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransferFromInput Clone() {
+ return new TransferFromInput(this);
+ }
+
+ /// Field number for the "from" field.
+ public const int FromFieldNumber = 1;
+ private global::AElf.Types.Address from_;
+ ///
+ /// The source address of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address From {
+ get { return from_; }
+ set {
+ from_ = value;
+ }
+ }
+
+ /// Field number for the "to" field.
+ public const int ToFieldNumber = 2;
+ private global::AElf.Types.Address to_;
+ ///
+ /// The destination address of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address To {
+ get { return to_; }
+ set {
+ to_ = value;
+ }
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 3;
+ private string symbol_ = "";
+ ///
+ /// The symbol of the token to transfer.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 4;
+ private long amount_;
+ ///
+ /// The amount to transfer.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ /// Field number for the "memo" field.
+ public const int MemoFieldNumber = 5;
+ private string memo_ = "";
+ ///
+ /// The memo.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Memo {
+ get { return memo_; }
+ set {
+ memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as TransferFromInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(TransferFromInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(From, other.From)) return false;
+ if (!object.Equals(To, other.To)) return false;
+ if (Symbol != other.Symbol) return false;
+ if (Amount != other.Amount) return false;
+ if (Memo != other.Memo) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (from_ != null) hash ^= From.GetHashCode();
+ if (to_ != null) hash ^= To.GetHashCode();
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (Memo.Length != 0) hash ^= Memo.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (from_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(From);
+ }
+ if (to_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(To);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(Amount);
+ }
+ if (Memo.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(Memo);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (from_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(From);
+ }
+ if (to_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(To);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(Amount);
+ }
+ if (Memo.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(Memo);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (from_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(From);
+ }
+ if (to_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(To);
+ }
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (Memo.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(TransferFromInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.from_ != null) {
+ if (from_ == null) {
+ From = new global::AElf.Types.Address();
+ }
+ From.MergeFrom(other.From);
+ }
+ if (other.to_ != null) {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ To.MergeFrom(other.To);
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ if (other.Memo.Length != 0) {
+ Memo = other.Memo;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (from_ == null) {
+ From = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(From);
+ break;
+ }
+ case 18: {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(To);
+ break;
+ }
+ case 26: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 32: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ case 42: {
+ Memo = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (from_ == null) {
+ From = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(From);
+ break;
+ }
+ case 18: {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(To);
+ break;
+ }
+ case 26: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 32: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ case 42: {
+ Memo = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ApproveInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApproveInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[9]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApproveInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApproveInput(ApproveInput other) : this() {
+ spender_ = other.spender_ != null ? other.spender_.Clone() : null;
+ symbol_ = other.symbol_;
+ amount_ = other.amount_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApproveInput Clone() {
+ return new ApproveInput(this);
+ }
+
+ /// Field number for the "spender" field.
+ public const int SpenderFieldNumber = 1;
+ private global::AElf.Types.Address spender_;
+ ///
+ /// The address that allowance will be increased.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Spender {
+ get { return spender_; }
+ set {
+ spender_ = value;
+ }
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 2;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token to approve.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 3;
+ private long amount_;
+ ///
+ /// The amount of token to approve.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ApproveInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ApproveInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Spender, other.Spender)) return false;
+ if (Symbol != other.Symbol) return false;
+ if (Amount != other.Amount) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (spender_ != null) hash ^= Spender.GetHashCode();
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (spender_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Spender);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (spender_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Spender);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (spender_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender);
+ }
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ApproveInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.spender_ != null) {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ Spender.MergeFrom(other.Spender);
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ _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 (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Spender);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 24: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Spender);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 24: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class UnApproveInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnApproveInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[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 UnApproveInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UnApproveInput(UnApproveInput other) : this() {
+ spender_ = other.spender_ != null ? other.spender_.Clone() : null;
+ symbol_ = other.symbol_;
+ amount_ = other.amount_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UnApproveInput Clone() {
+ return new UnApproveInput(this);
+ }
+
+ /// Field number for the "spender" field.
+ public const int SpenderFieldNumber = 1;
+ private global::AElf.Types.Address spender_;
+ ///
+ /// The address that allowance will be decreased.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Spender {
+ get { return spender_; }
+ set {
+ spender_ = value;
+ }
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 2;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token to un-approve.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 3;
+ private long amount_;
+ ///
+ /// The amount of token to un-approve.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as UnApproveInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UnApproveInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Spender, other.Spender)) return false;
+ if (Symbol != other.Symbol) return false;
+ if (Amount != other.Amount) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (spender_ != null) hash ^= Spender.GetHashCode();
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (spender_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Spender);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (spender_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Spender);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (spender_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender);
+ }
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(UnApproveInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.spender_ != null) {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ Spender.MergeFrom(other.Spender);
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ _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 (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Spender);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 24: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Spender);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 24: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class BurnInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BurnInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[11]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public BurnInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public BurnInput(BurnInput other) : this() {
+ symbol_ = other.symbol_;
+ amount_ = other.amount_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public BurnInput Clone() {
+ return new BurnInput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token to burn.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 2;
+ private long amount_;
+ ///
+ /// The amount of token to burn.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as BurnInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(BurnInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ if (Amount != other.Amount) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(BurnInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 16: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 16: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ChargeResourceTokenInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargeResourceTokenInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[12]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ChargeResourceTokenInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ChargeResourceTokenInput(ChargeResourceTokenInput other) : this() {
+ costDic_ = other.costDic_.Clone();
+ caller_ = other.caller_ != null ? other.caller_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ChargeResourceTokenInput Clone() {
+ return new ChargeResourceTokenInput(this);
+ }
+
+ /// Field number for the "cost_dic" field.
+ public const int CostDicFieldNumber = 1;
+ private static readonly pbc::MapField.Codec _map_costDic_codec
+ = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10);
+ private readonly pbc::MapField costDic_ = new pbc::MapField();
+ ///
+ /// Collection of charge resource token, Symbol->Amount.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::MapField CostDic {
+ get { return costDic_; }
+ }
+
+ /// Field number for the "caller" field.
+ public const int CallerFieldNumber = 2;
+ private global::AElf.Types.Address caller_;
+ ///
+ /// The sender of the transaction.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Caller {
+ get { return caller_; }
+ set {
+ caller_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ChargeResourceTokenInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ChargeResourceTokenInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!CostDic.Equals(other.CostDic)) return false;
+ if (!object.Equals(Caller, other.Caller)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= CostDic.GetHashCode();
+ if (caller_ != null) hash ^= Caller.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ costDic_.WriteTo(output, _map_costDic_codec);
+ if (caller_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Caller);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ costDic_.WriteTo(ref output, _map_costDic_codec);
+ if (caller_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Caller);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += costDic_.CalculateSize(_map_costDic_codec);
+ if (caller_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ChargeResourceTokenInput other) {
+ if (other == null) {
+ return;
+ }
+ costDic_.Add(other.costDic_);
+ if (other.caller_ != null) {
+ if (caller_ == null) {
+ Caller = new global::AElf.Types.Address();
+ }
+ Caller.MergeFrom(other.Caller);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ costDic_.AddEntriesFrom(input, _map_costDic_codec);
+ break;
+ }
+ case 18: {
+ if (caller_ == null) {
+ Caller = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Caller);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ costDic_.AddEntriesFrom(ref input, _map_costDic_codec);
+ break;
+ }
+ case 18: {
+ if (caller_ == null) {
+ Caller = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Caller);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class TransactionFeeBill : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeBill());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[13]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransactionFeeBill() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransactionFeeBill(TransactionFeeBill other) : this() {
+ feesMap_ = other.feesMap_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransactionFeeBill Clone() {
+ return new TransactionFeeBill(this);
+ }
+
+ /// Field number for the "fees_map" field.
+ public const int FeesMapFieldNumber = 1;
+ private static readonly pbc::MapField.Codec _map_feesMap_codec
+ = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10);
+ private readonly pbc::MapField feesMap_ = new pbc::MapField();
+ ///
+ /// The transaction fee dictionary, Symbol->fee.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::MapField FeesMap {
+ get { return feesMap_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as TransactionFeeBill);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(TransactionFeeBill other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!FeesMap.Equals(other.FeesMap)) 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 ^= FeesMap.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
+ feesMap_.WriteTo(output, _map_feesMap_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ feesMap_.WriteTo(ref output, _map_feesMap_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += feesMap_.CalculateSize(_map_feesMap_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(TransactionFeeBill other) {
+ if (other == null) {
+ return;
+ }
+ feesMap_.Add(other.feesMap_);
+ _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: {
+ feesMap_.AddEntriesFrom(input, _map_feesMap_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: {
+ feesMap_.AddEntriesFrom(ref input, _map_feesMap_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class TransactionFreeFeeAllowanceBill : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFreeFeeAllowanceBill());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[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 TransactionFreeFeeAllowanceBill() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransactionFreeFeeAllowanceBill(TransactionFreeFeeAllowanceBill other) : this() {
+ freeFeeAllowancesMap_ = other.freeFeeAllowancesMap_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TransactionFreeFeeAllowanceBill Clone() {
+ return new TransactionFreeFeeAllowanceBill(this);
+ }
+
+ /// Field number for the "free_fee_allowances_map" field.
+ public const int FreeFeeAllowancesMapFieldNumber = 1;
+ private static readonly pbc::MapField.Codec _map_freeFeeAllowancesMap_codec
+ = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10);
+ private readonly pbc::MapField freeFeeAllowancesMap_ = new pbc::MapField();
+ ///
+ /// The transaction free fee allowance dictionary, Symbol->fee.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::MapField FreeFeeAllowancesMap {
+ get { return freeFeeAllowancesMap_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as TransactionFreeFeeAllowanceBill);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(TransactionFreeFeeAllowanceBill other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!FreeFeeAllowancesMap.Equals(other.FreeFeeAllowancesMap)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= FreeFeeAllowancesMap.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ freeFeeAllowancesMap_.WriteTo(output, _map_freeFeeAllowancesMap_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ freeFeeAllowancesMap_.WriteTo(ref output, _map_freeFeeAllowancesMap_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += freeFeeAllowancesMap_.CalculateSize(_map_freeFeeAllowancesMap_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(TransactionFreeFeeAllowanceBill other) {
+ if (other == null) {
+ return;
+ }
+ freeFeeAllowancesMap_.Add(other.freeFeeAllowancesMap_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ freeFeeAllowancesMap_.AddEntriesFrom(input, _map_freeFeeAllowancesMap_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ freeFeeAllowancesMap_.AddEntriesFrom(ref input, _map_freeFeeAllowancesMap_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CheckThresholdInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CheckThresholdInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[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 CheckThresholdInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CheckThresholdInput(CheckThresholdInput other) : this() {
+ sender_ = other.sender_ != null ? other.sender_.Clone() : null;
+ symbolToThreshold_ = other.symbolToThreshold_.Clone();
+ isCheckAllowance_ = other.isCheckAllowance_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CheckThresholdInput Clone() {
+ return new CheckThresholdInput(this);
+ }
+
+ /// Field number for the "sender" field.
+ public const int SenderFieldNumber = 1;
+ private global::AElf.Types.Address sender_;
+ ///
+ /// The sender of the transaction.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Sender {
+ get { return sender_; }
+ set {
+ sender_ = value;
+ }
+ }
+
+ /// Field number for the "symbol_to_threshold" field.
+ public const int SymbolToThresholdFieldNumber = 2;
+ private static readonly pbc::MapField.Codec _map_symbolToThreshold_codec
+ = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 18);
+ private readonly pbc::MapField symbolToThreshold_ = new pbc::MapField();
+ ///
+ /// The threshold to set, Symbol->Threshold.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::MapField SymbolToThreshold {
+ get { return symbolToThreshold_; }
+ }
+
+ /// Field number for the "is_check_allowance" field.
+ public const int IsCheckAllowanceFieldNumber = 3;
+ private bool isCheckAllowance_;
+ ///
+ /// Whether to check the allowance.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsCheckAllowance {
+ get { return isCheckAllowance_; }
+ set {
+ isCheckAllowance_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CheckThresholdInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CheckThresholdInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Sender, other.Sender)) return false;
+ if (!SymbolToThreshold.Equals(other.SymbolToThreshold)) return false;
+ if (IsCheckAllowance != other.IsCheckAllowance) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (sender_ != null) hash ^= Sender.GetHashCode();
+ hash ^= SymbolToThreshold.GetHashCode();
+ if (IsCheckAllowance != false) hash ^= IsCheckAllowance.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (sender_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Sender);
+ }
+ symbolToThreshold_.WriteTo(output, _map_symbolToThreshold_codec);
+ if (IsCheckAllowance != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(IsCheckAllowance);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (sender_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Sender);
+ }
+ symbolToThreshold_.WriteTo(ref output, _map_symbolToThreshold_codec);
+ if (IsCheckAllowance != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(IsCheckAllowance);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (sender_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sender);
+ }
+ size += symbolToThreshold_.CalculateSize(_map_symbolToThreshold_codec);
+ if (IsCheckAllowance != 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(CheckThresholdInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.sender_ != null) {
+ if (sender_ == null) {
+ Sender = new global::AElf.Types.Address();
+ }
+ Sender.MergeFrom(other.Sender);
+ }
+ symbolToThreshold_.Add(other.symbolToThreshold_);
+ if (other.IsCheckAllowance != false) {
+ IsCheckAllowance = other.IsCheckAllowance;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (sender_ == null) {
+ Sender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Sender);
+ break;
+ }
+ case 18: {
+ symbolToThreshold_.AddEntriesFrom(input, _map_symbolToThreshold_codec);
+ break;
+ }
+ case 24: {
+ IsCheckAllowance = 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: {
+ if (sender_ == null) {
+ Sender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Sender);
+ break;
+ }
+ case 18: {
+ symbolToThreshold_.AddEntriesFrom(ref input, _map_symbolToThreshold_codec);
+ break;
+ }
+ case 24: {
+ IsCheckAllowance = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class GetTokenInfoInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTokenInfoInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[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 GetTokenInfoInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetTokenInfoInput(GetTokenInfoInput other) : this() {
+ symbol_ = other.symbol_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetTokenInfoInput Clone() {
+ return new GetTokenInfoInput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as GetTokenInfoInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(GetTokenInfoInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(GetTokenInfoInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class GetBalanceInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBalanceInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[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 GetBalanceInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetBalanceInput(GetBalanceInput other) : this() {
+ symbol_ = other.symbol_;
+ owner_ = other.owner_ != null ? other.owner_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetBalanceInput Clone() {
+ return new GetBalanceInput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "owner" field.
+ public const int OwnerFieldNumber = 2;
+ private global::AElf.Types.Address owner_;
+ ///
+ /// The target address of the query.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Owner {
+ get { return owner_; }
+ set {
+ owner_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as GetBalanceInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(GetBalanceInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ if (!object.Equals(Owner, other.Owner)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (owner_ != null) hash ^= Owner.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Owner);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Owner);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (owner_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(GetBalanceInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.owner_ != null) {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ Owner.MergeFrom(other.Owner);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class GetBalanceOutput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBalanceOutput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[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 GetBalanceOutput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetBalanceOutput(GetBalanceOutput other) : this() {
+ symbol_ = other.symbol_;
+ owner_ = other.owner_ != null ? other.owner_.Clone() : null;
+ balance_ = other.balance_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetBalanceOutput Clone() {
+ return new GetBalanceOutput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "owner" field.
+ public const int OwnerFieldNumber = 2;
+ private global::AElf.Types.Address owner_;
+ ///
+ /// The target address of the query.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Owner {
+ get { return owner_; }
+ set {
+ owner_ = value;
+ }
+ }
+
+ /// Field number for the "balance" field.
+ public const int BalanceFieldNumber = 3;
+ private long balance_;
+ ///
+ /// The balance of the owner.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Balance {
+ get { return balance_; }
+ set {
+ balance_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as GetBalanceOutput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(GetBalanceOutput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ if (!object.Equals(Owner, other.Owner)) return false;
+ if (Balance != other.Balance) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (owner_ != null) hash ^= Owner.GetHashCode();
+ if (Balance != 0L) hash ^= Balance.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Owner);
+ }
+ if (Balance != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Balance);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Owner);
+ }
+ if (Balance != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Balance);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (owner_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner);
+ }
+ if (Balance != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Balance);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(GetBalanceOutput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.owner_ != null) {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ Owner.MergeFrom(other.Owner);
+ }
+ if (other.Balance != 0L) {
+ Balance = other.Balance;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ case 24: {
+ Balance = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ case 24: {
+ Balance = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class GetAllowanceInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllowanceInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[19]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetAllowanceInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetAllowanceInput(GetAllowanceInput other) : this() {
+ symbol_ = other.symbol_;
+ owner_ = other.owner_ != null ? other.owner_.Clone() : null;
+ spender_ = other.spender_ != null ? other.spender_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetAllowanceInput Clone() {
+ return new GetAllowanceInput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "owner" field.
+ public const int OwnerFieldNumber = 2;
+ private global::AElf.Types.Address owner_;
+ ///
+ /// The address of the token owner.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Owner {
+ get { return owner_; }
+ set {
+ owner_ = value;
+ }
+ }
+
+ /// Field number for the "spender" field.
+ public const int SpenderFieldNumber = 3;
+ private global::AElf.Types.Address spender_;
+ ///
+ /// The address of the spender.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Spender {
+ get { return spender_; }
+ set {
+ spender_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as GetAllowanceInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(GetAllowanceInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ if (!object.Equals(Owner, other.Owner)) return false;
+ if (!object.Equals(Spender, other.Spender)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (owner_ != null) hash ^= Owner.GetHashCode();
+ if (spender_ != null) hash ^= Spender.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Owner);
+ }
+ if (spender_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Spender);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Owner);
+ }
+ if (spender_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Spender);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (owner_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner);
+ }
+ if (spender_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(GetAllowanceInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.owner_ != null) {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ Owner.MergeFrom(other.Owner);
+ }
+ if (other.spender_ != null) {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ Spender.MergeFrom(other.Spender);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ case 26: {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Spender);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ case 26: {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Spender);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class GetAllowanceOutput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllowanceOutput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[20]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetAllowanceOutput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetAllowanceOutput(GetAllowanceOutput other) : this() {
+ symbol_ = other.symbol_;
+ owner_ = other.owner_ != null ? other.owner_.Clone() : null;
+ spender_ = other.spender_ != null ? other.spender_.Clone() : null;
+ allowance_ = other.allowance_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetAllowanceOutput Clone() {
+ return new GetAllowanceOutput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "owner" field.
+ public const int OwnerFieldNumber = 2;
+ private global::AElf.Types.Address owner_;
+ ///
+ /// The address of the token owner.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Owner {
+ get { return owner_; }
+ set {
+ owner_ = value;
+ }
+ }
+
+ /// Field number for the "spender" field.
+ public const int SpenderFieldNumber = 3;
+ private global::AElf.Types.Address spender_;
+ ///
+ /// The address of the spender.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Spender {
+ get { return spender_; }
+ set {
+ spender_ = value;
+ }
+ }
+
+ /// Field number for the "allowance" field.
+ public const int AllowanceFieldNumber = 4;
+ private long allowance_;
+ ///
+ /// The amount of allowance.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Allowance {
+ get { return allowance_; }
+ set {
+ allowance_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as GetAllowanceOutput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(GetAllowanceOutput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) return false;
+ if (!object.Equals(Owner, other.Owner)) return false;
+ if (!object.Equals(Spender, other.Spender)) return false;
+ if (Allowance != other.Allowance) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (owner_ != null) hash ^= Owner.GetHashCode();
+ if (spender_ != null) hash ^= Spender.GetHashCode();
+ if (Allowance != 0L) hash ^= Allowance.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Owner);
+ }
+ if (spender_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Spender);
+ }
+ if (Allowance != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(Allowance);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (owner_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Owner);
+ }
+ if (spender_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Spender);
+ }
+ if (Allowance != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(Allowance);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (owner_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner);
+ }
+ if (spender_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender);
+ }
+ if (Allowance != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Allowance);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(GetAllowanceOutput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.owner_ != null) {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ Owner.MergeFrom(other.Owner);
+ }
+ if (other.spender_ != null) {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ Spender.MergeFrom(other.Spender);
+ }
+ if (other.Allowance != 0L) {
+ Allowance = other.Allowance;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ case 26: {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Spender);
+ break;
+ }
+ case 32: {
+ Allowance = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (owner_ == null) {
+ Owner = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Owner);
+ break;
+ }
+ case 26: {
+ if (spender_ == null) {
+ Spender = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Spender);
+ break;
+ }
+ case 32: {
+ Allowance = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CrossChainTransferInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainTransferInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[21]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CrossChainTransferInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CrossChainTransferInput(CrossChainTransferInput other) : this() {
+ to_ = other.to_ != null ? other.to_.Clone() : null;
+ symbol_ = other.symbol_;
+ amount_ = other.amount_;
+ memo_ = other.memo_;
+ toChainId_ = other.toChainId_;
+ issueChainId_ = other.issueChainId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CrossChainTransferInput Clone() {
+ return new CrossChainTransferInput(this);
+ }
+
+ /// Field number for the "to" field.
+ public const int ToFieldNumber = 1;
+ private global::AElf.Types.Address to_;
+ ///
+ /// The receiver of transfer.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address To {
+ get { return to_; }
+ set {
+ to_ = value;
+ }
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 2;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 3;
+ private long amount_;
+ ///
+ /// The amount of token to transfer.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ /// Field number for the "memo" field.
+ public const int MemoFieldNumber = 4;
+ private string memo_ = "";
+ ///
+ /// The memo.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Memo {
+ get { return memo_; }
+ set {
+ memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "to_chain_id" field.
+ public const int ToChainIdFieldNumber = 5;
+ private int toChainId_;
+ ///
+ /// The destination chain id.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int ToChainId {
+ get { return toChainId_; }
+ set {
+ toChainId_ = value;
+ }
+ }
+
+ /// Field number for the "issue_chain_id" field.
+ public const int IssueChainIdFieldNumber = 6;
+ private int issueChainId_;
+ ///
+ /// The chain id of the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int IssueChainId {
+ get { return issueChainId_; }
+ set {
+ issueChainId_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CrossChainTransferInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CrossChainTransferInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(To, other.To)) return false;
+ if (Symbol != other.Symbol) return false;
+ if (Amount != other.Amount) return false;
+ if (Memo != other.Memo) return false;
+ if (ToChainId != other.ToChainId) return false;
+ if (IssueChainId != other.IssueChainId) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (to_ != null) hash ^= To.GetHashCode();
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (Memo.Length != 0) hash ^= Memo.GetHashCode();
+ if (ToChainId != 0) hash ^= ToChainId.GetHashCode();
+ if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (to_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(To);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Amount);
+ }
+ if (Memo.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Memo);
+ }
+ if (ToChainId != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(ToChainId);
+ }
+ if (IssueChainId != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(IssueChainId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (to_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(To);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Amount);
+ }
+ if (Memo.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Memo);
+ }
+ if (ToChainId != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(ToChainId);
+ }
+ if (IssueChainId != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(IssueChainId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (to_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(To);
+ }
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (Memo.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo);
+ }
+ if (ToChainId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToChainId);
+ }
+ if (IssueChainId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CrossChainTransferInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.to_ != null) {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ To.MergeFrom(other.To);
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ if (other.Memo.Length != 0) {
+ Memo = other.Memo;
+ }
+ if (other.ToChainId != 0) {
+ ToChainId = other.ToChainId;
+ }
+ if (other.IssueChainId != 0) {
+ IssueChainId = other.IssueChainId;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(To);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 24: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ case 34: {
+ Memo = input.ReadString();
+ break;
+ }
+ case 40: {
+ ToChainId = input.ReadInt32();
+ break;
+ }
+ case 48: {
+ IssueChainId = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (to_ == null) {
+ To = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(To);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 24: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ case 34: {
+ Memo = input.ReadString();
+ break;
+ }
+ case 40: {
+ ToChainId = input.ReadInt32();
+ break;
+ }
+ case 48: {
+ IssueChainId = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CrossChainReceiveTokenInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainReceiveTokenInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[22]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CrossChainReceiveTokenInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CrossChainReceiveTokenInput(CrossChainReceiveTokenInput other) : this() {
+ fromChainId_ = other.fromChainId_;
+ parentChainHeight_ = other.parentChainHeight_;
+ transferTransactionBytes_ = other.transferTransactionBytes_;
+ merklePath_ = other.merklePath_ != null ? other.merklePath_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CrossChainReceiveTokenInput Clone() {
+ return new CrossChainReceiveTokenInput(this);
+ }
+
+ /// Field number for the "from_chain_id" field.
+ public const int FromChainIdFieldNumber = 1;
+ private int fromChainId_;
+ ///
+ /// The source chain id.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int FromChainId {
+ get { return fromChainId_; }
+ set {
+ fromChainId_ = value;
+ }
+ }
+
+ /// Field number for the "parent_chain_height" field.
+ public const int ParentChainHeightFieldNumber = 2;
+ private long parentChainHeight_;
+ ///
+ /// The height of the transfer transaction.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long ParentChainHeight {
+ get { return parentChainHeight_; }
+ set {
+ parentChainHeight_ = value;
+ }
+ }
+
+ /// Field number for the "transfer_transaction_bytes" field.
+ public const int TransferTransactionBytesFieldNumber = 3;
+ private pb::ByteString transferTransactionBytes_ = pb::ByteString.Empty;
+ ///
+ /// The raw bytes of the transfer transaction.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString TransferTransactionBytes {
+ get { return transferTransactionBytes_; }
+ set {
+ transferTransactionBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "merkle_path" field.
+ public const int MerklePathFieldNumber = 4;
+ private global::AElf.Types.MerklePath merklePath_;
+ ///
+ /// The merkle path created from the transfer transaction.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.MerklePath MerklePath {
+ get { return merklePath_; }
+ set {
+ merklePath_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CrossChainReceiveTokenInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CrossChainReceiveTokenInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (FromChainId != other.FromChainId) return false;
+ if (ParentChainHeight != other.ParentChainHeight) return false;
+ if (TransferTransactionBytes != other.TransferTransactionBytes) return false;
+ if (!object.Equals(MerklePath, other.MerklePath)) 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 (FromChainId != 0) hash ^= FromChainId.GetHashCode();
+ if (ParentChainHeight != 0L) hash ^= ParentChainHeight.GetHashCode();
+ if (TransferTransactionBytes.Length != 0) hash ^= TransferTransactionBytes.GetHashCode();
+ if (merklePath_ != null) hash ^= MerklePath.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 (FromChainId != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(FromChainId);
+ }
+ if (ParentChainHeight != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(ParentChainHeight);
+ }
+ if (TransferTransactionBytes.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteBytes(TransferTransactionBytes);
+ }
+ if (merklePath_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(MerklePath);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (FromChainId != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(FromChainId);
+ }
+ if (ParentChainHeight != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(ParentChainHeight);
+ }
+ if (TransferTransactionBytes.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteBytes(TransferTransactionBytes);
+ }
+ if (merklePath_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(MerklePath);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (FromChainId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromChainId);
+ }
+ if (ParentChainHeight != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(ParentChainHeight);
+ }
+ if (TransferTransactionBytes.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(TransferTransactionBytes);
+ }
+ if (merklePath_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(MerklePath);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CrossChainReceiveTokenInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.FromChainId != 0) {
+ FromChainId = other.FromChainId;
+ }
+ if (other.ParentChainHeight != 0L) {
+ ParentChainHeight = other.ParentChainHeight;
+ }
+ if (other.TransferTransactionBytes.Length != 0) {
+ TransferTransactionBytes = other.TransferTransactionBytes;
+ }
+ if (other.merklePath_ != null) {
+ if (merklePath_ == null) {
+ MerklePath = new global::AElf.Types.MerklePath();
+ }
+ MerklePath.MergeFrom(other.MerklePath);
+ }
+ _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: {
+ FromChainId = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ ParentChainHeight = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ TransferTransactionBytes = input.ReadBytes();
+ break;
+ }
+ case 34: {
+ if (merklePath_ == null) {
+ MerklePath = new global::AElf.Types.MerklePath();
+ }
+ input.ReadMessage(MerklePath);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ FromChainId = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ ParentChainHeight = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ TransferTransactionBytes = input.ReadBytes();
+ break;
+ }
+ case 34: {
+ if (merklePath_ == null) {
+ MerklePath = new global::AElf.Types.MerklePath();
+ }
+ input.ReadMessage(MerklePath);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class IsInWhiteListInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IsInWhiteListInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[23]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public IsInWhiteListInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public IsInWhiteListInput(IsInWhiteListInput other) : this() {
+ symbol_ = other.symbol_;
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public IsInWhiteListInput Clone() {
+ return new IsInWhiteListInput(this);
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 1;
+ private string symbol_ = "";
+ ///
+ /// The symbol of token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 2;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The address to check.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as IsInWhiteListInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(IsInWhiteListInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Symbol != other.Symbol) 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 (Symbol.Length != 0) hash ^= Symbol.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 (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ 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 (Symbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Symbol);
+ }
+ if (address_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Address);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ 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(IsInWhiteListInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ 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: {
+ Symbol = input.ReadString();
+ 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: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SymbolToPayTxSizeFee : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SymbolToPayTxSizeFee());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[24]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SymbolToPayTxSizeFee() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SymbolToPayTxSizeFee(SymbolToPayTxSizeFee other) : this() {
+ tokenSymbol_ = other.tokenSymbol_;
+ baseTokenWeight_ = other.baseTokenWeight_;
+ addedTokenWeight_ = other.addedTokenWeight_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SymbolToPayTxSizeFee Clone() {
+ return new SymbolToPayTxSizeFee(this);
+ }
+
+ /// Field number for the "token_symbol" field.
+ public const int TokenSymbolFieldNumber = 1;
+ private string tokenSymbol_ = "";
+ ///
+ /// The symbol of token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string TokenSymbol {
+ get { return tokenSymbol_; }
+ set {
+ tokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "base_token_weight" field.
+ public const int BaseTokenWeightFieldNumber = 2;
+ private int baseTokenWeight_;
+ ///
+ /// The charge weight of primary token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int BaseTokenWeight {
+ get { return baseTokenWeight_; }
+ set {
+ baseTokenWeight_ = value;
+ }
+ }
+
+ /// Field number for the "added_token_weight" field.
+ public const int AddedTokenWeightFieldNumber = 3;
+ private int addedTokenWeight_;
+ ///
+ /// The new added token charge weight. For example, the charge weight of primary Token is set to 1.
+ /// The newly added token charge weight is set to 10. If the transaction requires 1 unit of primary token,
+ /// the user can also pay for 10 newly added tokens.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int AddedTokenWeight {
+ get { return addedTokenWeight_; }
+ set {
+ addedTokenWeight_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SymbolToPayTxSizeFee);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SymbolToPayTxSizeFee other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (TokenSymbol != other.TokenSymbol) return false;
+ if (BaseTokenWeight != other.BaseTokenWeight) return false;
+ if (AddedTokenWeight != other.AddedTokenWeight) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (TokenSymbol.Length != 0) hash ^= TokenSymbol.GetHashCode();
+ if (BaseTokenWeight != 0) hash ^= BaseTokenWeight.GetHashCode();
+ if (AddedTokenWeight != 0) hash ^= AddedTokenWeight.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (TokenSymbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(TokenSymbol);
+ }
+ if (BaseTokenWeight != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(BaseTokenWeight);
+ }
+ if (AddedTokenWeight != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(AddedTokenWeight);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (TokenSymbol.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(TokenSymbol);
+ }
+ if (BaseTokenWeight != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(BaseTokenWeight);
+ }
+ if (AddedTokenWeight != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(AddedTokenWeight);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (TokenSymbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenSymbol);
+ }
+ if (BaseTokenWeight != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseTokenWeight);
+ }
+ if (AddedTokenWeight != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(AddedTokenWeight);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SymbolToPayTxSizeFee other) {
+ if (other == null) {
+ return;
+ }
+ if (other.TokenSymbol.Length != 0) {
+ TokenSymbol = other.TokenSymbol;
+ }
+ if (other.BaseTokenWeight != 0) {
+ BaseTokenWeight = other.BaseTokenWeight;
+ }
+ if (other.AddedTokenWeight != 0) {
+ AddedTokenWeight = other.AddedTokenWeight;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ TokenSymbol = input.ReadString();
+ break;
+ }
+ case 16: {
+ BaseTokenWeight = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ AddedTokenWeight = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ TokenSymbol = input.ReadString();
+ break;
+ }
+ case 16: {
+ BaseTokenWeight = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ AddedTokenWeight = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SymbolListToPayTxSizeFee : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SymbolListToPayTxSizeFee());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[25]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SymbolListToPayTxSizeFee() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SymbolListToPayTxSizeFee(SymbolListToPayTxSizeFee other) : this() {
+ symbolsToPayTxSizeFee_ = other.symbolsToPayTxSizeFee_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SymbolListToPayTxSizeFee Clone() {
+ return new SymbolListToPayTxSizeFee(this);
+ }
+
+ /// Field number for the "symbols_to_pay_tx_size_fee" field.
+ public const int SymbolsToPayTxSizeFeeFieldNumber = 1;
+ private static readonly pb::FieldCodec _repeated_symbolsToPayTxSizeFee_codec
+ = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.SymbolToPayTxSizeFee.Parser);
+ private readonly pbc::RepeatedField symbolsToPayTxSizeFee_ = new pbc::RepeatedField();
+ ///
+ /// Transaction fee token information.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField SymbolsToPayTxSizeFee {
+ get { return symbolsToPayTxSizeFee_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SymbolListToPayTxSizeFee);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SymbolListToPayTxSizeFee other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!symbolsToPayTxSizeFee_.Equals(other.symbolsToPayTxSizeFee_)) 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 ^= symbolsToPayTxSizeFee_.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
+ symbolsToPayTxSizeFee_.WriteTo(output, _repeated_symbolsToPayTxSizeFee_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ symbolsToPayTxSizeFee_.WriteTo(ref output, _repeated_symbolsToPayTxSizeFee_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += symbolsToPayTxSizeFee_.CalculateSize(_repeated_symbolsToPayTxSizeFee_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SymbolListToPayTxSizeFee other) {
+ if (other == null) {
+ return;
+ }
+ symbolsToPayTxSizeFee_.Add(other.symbolsToPayTxSizeFee_);
+ _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: {
+ symbolsToPayTxSizeFee_.AddEntriesFrom(input, _repeated_symbolsToPayTxSizeFee_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: {
+ symbolsToPayTxSizeFee_.AddEntriesFrom(ref input, _repeated_symbolsToPayTxSizeFee_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ChargeTransactionFeesInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargeTransactionFeesInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[26]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ChargeTransactionFeesInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ChargeTransactionFeesInput(ChargeTransactionFeesInput other) : this() {
+ methodName_ = other.methodName_;
+ contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null;
+ transactionSizeFee_ = other.transactionSizeFee_;
+ symbolsToPayTxSizeFee_ = other.symbolsToPayTxSizeFee_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ChargeTransactionFeesInput Clone() {
+ return new ChargeTransactionFeesInput(this);
+ }
+
+ /// Field number for the "method_name" field.
+ public const int MethodNameFieldNumber = 1;
+ private string methodName_ = "";
+ ///
+ /// The method name of 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 "contract_address" field.
+ public const int ContractAddressFieldNumber = 2;
+ private global::AElf.Types.Address contractAddress_;
+ ///
+ /// The contract address of transaction.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address ContractAddress {
+ get { return contractAddress_; }
+ set {
+ contractAddress_ = value;
+ }
+ }
+
+ /// Field number for the "transaction_size_fee" field.
+ public const int TransactionSizeFeeFieldNumber = 3;
+ private long transactionSizeFee_;
+ ///
+ /// The amount of transaction size fee.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long TransactionSizeFee {
+ get { return transactionSizeFee_; }
+ set {
+ transactionSizeFee_ = value;
+ }
+ }
+
+ /// Field number for the "symbols_to_pay_tx_size_fee" field.
+ public const int SymbolsToPayTxSizeFeeFieldNumber = 4;
+ private static readonly pb::FieldCodec _repeated_symbolsToPayTxSizeFee_codec
+ = pb::FieldCodec.ForMessage(34, global::AElf.Contracts.MultiToken.SymbolToPayTxSizeFee.Parser);
+ private readonly pbc::RepeatedField symbolsToPayTxSizeFee_ = new pbc::RepeatedField();
+ ///
+ /// Transaction fee token information.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField SymbolsToPayTxSizeFee {
+ get { return symbolsToPayTxSizeFee_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ChargeTransactionFeesInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ChargeTransactionFeesInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (MethodName != other.MethodName) return false;
+ if (!object.Equals(ContractAddress, other.ContractAddress)) return false;
+ if (TransactionSizeFee != other.TransactionSizeFee) return false;
+ if(!symbolsToPayTxSizeFee_.Equals(other.symbolsToPayTxSizeFee_)) 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 (contractAddress_ != null) hash ^= ContractAddress.GetHashCode();
+ if (TransactionSizeFee != 0L) hash ^= TransactionSizeFee.GetHashCode();
+ hash ^= symbolsToPayTxSizeFee_.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 (contractAddress_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(ContractAddress);
+ }
+ if (TransactionSizeFee != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(TransactionSizeFee);
+ }
+ symbolsToPayTxSizeFee_.WriteTo(output, _repeated_symbolsToPayTxSizeFee_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (MethodName.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(MethodName);
+ }
+ if (contractAddress_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(ContractAddress);
+ }
+ if (TransactionSizeFee != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(TransactionSizeFee);
+ }
+ symbolsToPayTxSizeFee_.WriteTo(ref output, _repeated_symbolsToPayTxSizeFee_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (MethodName.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName);
+ }
+ if (contractAddress_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress);
+ }
+ if (TransactionSizeFee != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(TransactionSizeFee);
+ }
+ size += symbolsToPayTxSizeFee_.CalculateSize(_repeated_symbolsToPayTxSizeFee_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ChargeTransactionFeesInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.MethodName.Length != 0) {
+ MethodName = other.MethodName;
+ }
+ if (other.contractAddress_ != null) {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ ContractAddress.MergeFrom(other.ContractAddress);
+ }
+ if (other.TransactionSizeFee != 0L) {
+ TransactionSizeFee = other.TransactionSizeFee;
+ }
+ symbolsToPayTxSizeFee_.Add(other.symbolsToPayTxSizeFee_);
+ _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: {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(ContractAddress);
+ break;
+ }
+ case 24: {
+ TransactionSizeFee = input.ReadInt64();
+ break;
+ }
+ case 34: {
+ symbolsToPayTxSizeFee_.AddEntriesFrom(input, _repeated_symbolsToPayTxSizeFee_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: {
+ MethodName = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(ContractAddress);
+ break;
+ }
+ case 24: {
+ TransactionSizeFee = input.ReadInt64();
+ break;
+ }
+ case 34: {
+ symbolsToPayTxSizeFee_.AddEntriesFrom(ref input, _repeated_symbolsToPayTxSizeFee_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ChargeTransactionFeesOutput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargeTransactionFeesOutput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[27]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ChargeTransactionFeesOutput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ChargeTransactionFeesOutput(ChargeTransactionFeesOutput other) : this() {
+ success_ = other.success_;
+ chargingInformation_ = other.chargingInformation_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ChargeTransactionFeesOutput Clone() {
+ return new ChargeTransactionFeesOutput(this);
+ }
+
+ /// Field number for the "success" field.
+ public const int SuccessFieldNumber = 1;
+ private bool success_;
+ ///
+ /// Whether the charge was successful.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Success {
+ get { return success_; }
+ set {
+ success_ = value;
+ }
+ }
+
+ /// Field number for the "charging_information" field.
+ public const int ChargingInformationFieldNumber = 2;
+ private string chargingInformation_ = "";
+ ///
+ /// The charging information.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string ChargingInformation {
+ get { return chargingInformation_; }
+ set {
+ chargingInformation_ = 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 ChargeTransactionFeesOutput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ChargeTransactionFeesOutput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Success != other.Success) return false;
+ if (ChargingInformation != other.ChargingInformation) 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 (Success != false) hash ^= Success.GetHashCode();
+ if (ChargingInformation.Length != 0) hash ^= ChargingInformation.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 (Success != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Success);
+ }
+ if (ChargingInformation.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(ChargingInformation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Success != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Success);
+ }
+ if (ChargingInformation.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(ChargingInformation);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Success != false) {
+ size += 1 + 1;
+ }
+ if (ChargingInformation.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ChargingInformation);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ChargeTransactionFeesOutput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Success != false) {
+ Success = other.Success;
+ }
+ if (other.ChargingInformation.Length != 0) {
+ ChargingInformation = other.ChargingInformation;
+ }
+ _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: {
+ Success = input.ReadBool();
+ break;
+ }
+ case 18: {
+ ChargingInformation = 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 8: {
+ Success = input.ReadBool();
+ break;
+ }
+ case 18: {
+ ChargingInformation = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CallbackInfo : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallbackInfo());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[28]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CallbackInfo() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CallbackInfo(CallbackInfo other) : this() {
+ contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null;
+ methodName_ = other.methodName_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CallbackInfo Clone() {
+ return new CallbackInfo(this);
+ }
+
+ /// Field number for the "contract_address" field.
+ public const int ContractAddressFieldNumber = 1;
+ private global::AElf.Types.Address contractAddress_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address ContractAddress {
+ get { return contractAddress_; }
+ set {
+ contractAddress_ = value;
+ }
+ }
+
+ /// Field number for the "method_name" field.
+ public const int MethodNameFieldNumber = 2;
+ private string methodName_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string MethodName {
+ get { return methodName_; }
+ set {
+ methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CallbackInfo);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CallbackInfo other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(ContractAddress, other.ContractAddress)) return false;
+ if (MethodName != other.MethodName) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode();
+ if (MethodName.Length != 0) hash ^= MethodName.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (contractAddress_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ContractAddress);
+ }
+ if (MethodName.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(MethodName);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (contractAddress_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(ContractAddress);
+ }
+ if (MethodName.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(MethodName);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (contractAddress_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress);
+ }
+ if (MethodName.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CallbackInfo other) {
+ if (other == null) {
+ return;
+ }
+ if (other.contractAddress_ != null) {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ ContractAddress.MergeFrom(other.ContractAddress);
+ }
+ if (other.MethodName.Length != 0) {
+ MethodName = other.MethodName;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(ContractAddress);
+ break;
+ }
+ case 18: {
+ MethodName = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (contractAddress_ == null) {
+ ContractAddress = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(ContractAddress);
+ break;
+ }
+ case 18: {
+ MethodName = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class ExtraTokenListModified : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtraTokenListModified());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[29]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ExtraTokenListModified() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ExtraTokenListModified(ExtraTokenListModified other) : this() {
+ symbolListToPayTxSizeFee_ = other.symbolListToPayTxSizeFee_ != null ? other.symbolListToPayTxSizeFee_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ExtraTokenListModified Clone() {
+ return new ExtraTokenListModified(this);
+ }
+
+ /// Field number for the "symbol_list_to_pay_tx_size_fee" field.
+ public const int SymbolListToPayTxSizeFeeFieldNumber = 1;
+ private global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee symbolListToPayTxSizeFee_;
+ ///
+ /// Transaction fee token information.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee SymbolListToPayTxSizeFee {
+ get { return symbolListToPayTxSizeFee_; }
+ set {
+ symbolListToPayTxSizeFee_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ExtraTokenListModified);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ExtraTokenListModified other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(SymbolListToPayTxSizeFee, other.SymbolListToPayTxSizeFee)) 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 (symbolListToPayTxSizeFee_ != null) hash ^= SymbolListToPayTxSizeFee.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 (symbolListToPayTxSizeFee_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(SymbolListToPayTxSizeFee);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (symbolListToPayTxSizeFee_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(SymbolListToPayTxSizeFee);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (symbolListToPayTxSizeFee_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(SymbolListToPayTxSizeFee);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ExtraTokenListModified other) {
+ if (other == null) {
+ return;
+ }
+ if (other.symbolListToPayTxSizeFee_ != null) {
+ if (symbolListToPayTxSizeFee_ == null) {
+ SymbolListToPayTxSizeFee = new global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee();
+ }
+ SymbolListToPayTxSizeFee.MergeFrom(other.SymbolListToPayTxSizeFee);
+ }
+ _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 (symbolListToPayTxSizeFee_ == null) {
+ SymbolListToPayTxSizeFee = new global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee();
+ }
+ input.ReadMessage(SymbolListToPayTxSizeFee);
+ 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 (symbolListToPayTxSizeFee_ == null) {
+ SymbolListToPayTxSizeFee = new global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee();
+ }
+ input.ReadMessage(SymbolListToPayTxSizeFee);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class GetLockedAmountInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLockedAmountInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[30]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetLockedAmountInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetLockedAmountInput(GetLockedAmountInput other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ symbol_ = other.symbol_;
+ lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetLockedAmountInput Clone() {
+ return new GetLockedAmountInput(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The address of the lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 2;
+ private string symbol_ = "";
+ ///
+ /// The token symbol.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "lock_id" field.
+ public const int LockIdFieldNumber = 3;
+ private global::AElf.Types.Hash lockId_;
+ ///
+ /// The id of the lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash LockId {
+ get { return lockId_; }
+ set {
+ lockId_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as GetLockedAmountInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(GetLockedAmountInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (Symbol != other.Symbol) return false;
+ if (!object.Equals(LockId, other.LockId)) 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 (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (lockId_ != null) hash ^= LockId.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 (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (lockId_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(LockId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (lockId_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(LockId);
+ }
+ if (_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 (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (lockId_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(LockId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(GetLockedAmountInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.lockId_ != null) {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ LockId.MergeFrom(other.LockId);
+ }
+ _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: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 26: {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(LockId);
+ 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: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 26: {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(LockId);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class GetLockedAmountOutput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLockedAmountOutput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[31]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetLockedAmountOutput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetLockedAmountOutput(GetLockedAmountOutput other) : this() {
+ address_ = other.address_ != null ? other.address_.Clone() : null;
+ symbol_ = other.symbol_;
+ lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null;
+ amount_ = other.amount_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetLockedAmountOutput Clone() {
+ return new GetLockedAmountOutput(this);
+ }
+
+ /// Field number for the "address" field.
+ public const int AddressFieldNumber = 1;
+ private global::AElf.Types.Address address_;
+ ///
+ /// The address of the lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Address {
+ get { return address_; }
+ set {
+ address_ = value;
+ }
+ }
+
+ /// Field number for the "symbol" field.
+ public const int SymbolFieldNumber = 2;
+ private string symbol_ = "";
+ ///
+ /// The token symbol.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Symbol {
+ get { return symbol_; }
+ set {
+ symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "lock_id" field.
+ public const int LockIdFieldNumber = 3;
+ private global::AElf.Types.Hash lockId_;
+ ///
+ /// The id of the lock.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Hash LockId {
+ get { return lockId_; }
+ set {
+ lockId_ = value;
+ }
+ }
+
+ /// Field number for the "amount" field.
+ public const int AmountFieldNumber = 4;
+ private long amount_;
+ ///
+ /// The locked amount.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Amount {
+ get { return amount_; }
+ set {
+ amount_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as GetLockedAmountOutput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(GetLockedAmountOutput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Address, other.Address)) return false;
+ if (Symbol != other.Symbol) return false;
+ if (!object.Equals(LockId, other.LockId)) return false;
+ if (Amount != other.Amount) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (address_ != null) hash ^= Address.GetHashCode();
+ if (Symbol.Length != 0) hash ^= Symbol.GetHashCode();
+ if (lockId_ != null) hash ^= LockId.GetHashCode();
+ if (Amount != 0L) hash ^= Amount.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (lockId_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(LockId);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (address_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Address);
+ }
+ if (Symbol.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Symbol);
+ }
+ if (lockId_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(LockId);
+ }
+ if (Amount != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(Amount);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (address_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
+ }
+ if (Symbol.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol);
+ }
+ if (lockId_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(LockId);
+ }
+ if (Amount != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(GetLockedAmountOutput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.address_ != null) {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ Address.MergeFrom(other.Address);
+ }
+ if (other.Symbol.Length != 0) {
+ Symbol = other.Symbol;
+ }
+ if (other.lockId_ != null) {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ LockId.MergeFrom(other.LockId);
+ }
+ if (other.Amount != 0L) {
+ Amount = other.Amount;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 26: {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(LockId);
+ break;
+ }
+ case 32: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (address_ == null) {
+ Address = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Address);
+ break;
+ }
+ case 18: {
+ Symbol = input.ReadString();
+ break;
+ }
+ case 26: {
+ if (lockId_ == null) {
+ LockId = new global::AElf.Types.Hash();
+ }
+ input.ReadMessage(LockId);
+ break;
+ }
+ case 32: {
+ Amount = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class TokenInfoList : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenInfoList());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[32]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TokenInfoList() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TokenInfoList(TokenInfoList other) : this() {
+ value_ = other.value_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TokenInfoList Clone() {
+ return new TokenInfoList(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private static readonly pb::FieldCodec _repeated_value_codec
+ = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.TokenInfo.Parser);
+ private readonly pbc::RepeatedField value_ = new pbc::RepeatedField();
+ ///
+ /// List of token information.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Value {
+ get { return value_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as TokenInfoList);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(TokenInfoList other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ 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(TokenInfoList 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 GetCrossChainTransferTokenContractAddressInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCrossChainTransferTokenContractAddressInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[33]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetCrossChainTransferTokenContractAddressInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetCrossChainTransferTokenContractAddressInput(GetCrossChainTransferTokenContractAddressInput other) : this() {
+ chainId_ = other.chainId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetCrossChainTransferTokenContractAddressInput Clone() {
+ return new GetCrossChainTransferTokenContractAddressInput(this);
+ }
+
+ /// Field number for the "chainId" field.
+ public const int ChainIdFieldNumber = 1;
+ private int chainId_;
+ ///
+ /// The chain id.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int ChainId {
+ get { return chainId_; }
+ set {
+ chainId_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as GetCrossChainTransferTokenContractAddressInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(GetCrossChainTransferTokenContractAddressInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ChainId != other.ChainId) 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 (_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 (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (ChainId != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(ChainId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (ChainId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(GetCrossChainTransferTokenContractAddressInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.ChainId != 0) {
+ ChainId = other.ChainId;
+ }
+ _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;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ChainId = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CrossChainCreateTokenInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainCreateTokenInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[34]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CrossChainCreateTokenInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CrossChainCreateTokenInput(CrossChainCreateTokenInput other) : this() {
+ fromChainId_ = other.fromChainId_;
+ parentChainHeight_ = other.parentChainHeight_;
+ transactionBytes_ = other.transactionBytes_;
+ merklePath_ = other.merklePath_ != null ? other.merklePath_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CrossChainCreateTokenInput Clone() {
+ return new CrossChainCreateTokenInput(this);
+ }
+
+ /// Field number for the "from_chain_id" field.
+ public const int FromChainIdFieldNumber = 1;
+ private int fromChainId_;
+ ///
+ /// The chain id of the chain on which the token was created.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int FromChainId {
+ get { return fromChainId_; }
+ set {
+ fromChainId_ = value;
+ }
+ }
+
+ /// Field number for the "parent_chain_height" field.
+ public const int ParentChainHeightFieldNumber = 2;
+ private long parentChainHeight_;
+ ///
+ /// The height of the transaction that created the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long ParentChainHeight {
+ get { return parentChainHeight_; }
+ set {
+ parentChainHeight_ = value;
+ }
+ }
+
+ /// Field number for the "transaction_bytes" field.
+ public const int TransactionBytesFieldNumber = 3;
+ private pb::ByteString transactionBytes_ = pb::ByteString.Empty;
+ ///
+ /// The transaction that created the token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pb::ByteString TransactionBytes {
+ get { return transactionBytes_; }
+ set {
+ transactionBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "merkle_path" field.
+ public const int MerklePathFieldNumber = 4;
+ private global::AElf.Types.MerklePath merklePath_;
+ ///
+ /// The merkle path created from the transaction that created the transaction.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.MerklePath MerklePath {
+ get { return merklePath_; }
+ set {
+ merklePath_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CrossChainCreateTokenInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CrossChainCreateTokenInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (FromChainId != other.FromChainId) return false;
+ if (ParentChainHeight != other.ParentChainHeight) return false;
+ if (TransactionBytes != other.TransactionBytes) return false;
+ if (!object.Equals(MerklePath, other.MerklePath)) 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 (FromChainId != 0) hash ^= FromChainId.GetHashCode();
+ if (ParentChainHeight != 0L) hash ^= ParentChainHeight.GetHashCode();
+ if (TransactionBytes.Length != 0) hash ^= TransactionBytes.GetHashCode();
+ if (merklePath_ != null) hash ^= MerklePath.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 (FromChainId != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(FromChainId);
+ }
+ if (ParentChainHeight != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(ParentChainHeight);
+ }
+ if (TransactionBytes.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteBytes(TransactionBytes);
+ }
+ if (merklePath_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(MerklePath);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (FromChainId != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(FromChainId);
+ }
+ if (ParentChainHeight != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(ParentChainHeight);
+ }
+ if (TransactionBytes.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteBytes(TransactionBytes);
+ }
+ if (merklePath_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(MerklePath);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (FromChainId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromChainId);
+ }
+ if (ParentChainHeight != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(ParentChainHeight);
+ }
+ if (TransactionBytes.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(TransactionBytes);
+ }
+ if (merklePath_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(MerklePath);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CrossChainCreateTokenInput other) {
+ if (other == null) {
+ return;
+ }
+ if (other.FromChainId != 0) {
+ FromChainId = other.FromChainId;
+ }
+ if (other.ParentChainHeight != 0L) {
+ ParentChainHeight = other.ParentChainHeight;
+ }
+ if (other.TransactionBytes.Length != 0) {
+ TransactionBytes = other.TransactionBytes;
+ }
+ if (other.merklePath_ != null) {
+ if (merklePath_ == null) {
+ MerklePath = new global::AElf.Types.MerklePath();
+ }
+ MerklePath.MergeFrom(other.MerklePath);
+ }
+ _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: {
+ FromChainId = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ ParentChainHeight = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ TransactionBytes = input.ReadBytes();
+ break;
+ }
+ case 34: {
+ if (merklePath_ == null) {
+ MerklePath = new global::AElf.Types.MerklePath();
+ }
+ input.ReadMessage(MerklePath);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ FromChainId = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ ParentChainHeight = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ TransactionBytes = input.ReadBytes();
+ break;
+ }
+ case 34: {
+ if (merklePath_ == null) {
+ MerklePath = new global::AElf.Types.MerklePath();
+ }
+ input.ReadMessage(MerklePath);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class InitializeFromParentChainInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializeFromParentChainInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[35]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public InitializeFromParentChainInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public InitializeFromParentChainInput(InitializeFromParentChainInput other) : this() {
+ resourceAmount_ = other.resourceAmount_.Clone();
+ registeredOtherTokenContractAddresses_ = other.registeredOtherTokenContractAddresses_.Clone();
+ creator_ = other.creator_ != null ? other.creator_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public InitializeFromParentChainInput Clone() {
+ return new InitializeFromParentChainInput(this);
+ }
+
+ /// Field number for the "resource_amount" field.
+ public const int ResourceAmountFieldNumber = 1;
+ private static readonly pbc::MapField.Codec _map_resourceAmount_codec
+ = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 10);
+ private readonly pbc::MapField resourceAmount_ = new pbc::MapField();
+ ///
+ /// The amount of resource.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::MapField ResourceAmount {
+ get { return resourceAmount_; }
+ }
+
+ /// Field number for the "registered_other_token_contract_addresses" field.
+ public const int RegisteredOtherTokenContractAddressesFieldNumber = 2;
+ private static readonly pbc::MapField.Codec _map_registeredOtherTokenContractAddresses_codec
+ = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::AElf.Types.Address.Parser), 18);
+ private readonly pbc::MapField registeredOtherTokenContractAddresses_ = new pbc::MapField();
+ ///
+ /// The token contract addresses.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::MapField RegisteredOtherTokenContractAddresses {
+ get { return registeredOtherTokenContractAddresses_; }
+ }
+
+ /// Field number for the "creator" field.
+ public const int CreatorFieldNumber = 3;
+ private global::AElf.Types.Address creator_;
+ ///
+ /// The creator the side chain.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Types.Address Creator {
+ get { return creator_; }
+ set {
+ creator_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as InitializeFromParentChainInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(InitializeFromParentChainInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!ResourceAmount.Equals(other.ResourceAmount)) return false;
+ if (!RegisteredOtherTokenContractAddresses.Equals(other.RegisteredOtherTokenContractAddresses)) return false;
+ if (!object.Equals(Creator, other.Creator)) 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 ^= ResourceAmount.GetHashCode();
+ hash ^= RegisteredOtherTokenContractAddresses.GetHashCode();
+ if (creator_ != null) hash ^= Creator.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
+ resourceAmount_.WriteTo(output, _map_resourceAmount_codec);
+ registeredOtherTokenContractAddresses_.WriteTo(output, _map_registeredOtherTokenContractAddresses_codec);
+ if (creator_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Creator);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ resourceAmount_.WriteTo(ref output, _map_resourceAmount_codec);
+ registeredOtherTokenContractAddresses_.WriteTo(ref output, _map_registeredOtherTokenContractAddresses_codec);
+ if (creator_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Creator);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += resourceAmount_.CalculateSize(_map_resourceAmount_codec);
+ size += registeredOtherTokenContractAddresses_.CalculateSize(_map_registeredOtherTokenContractAddresses_codec);
+ if (creator_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Creator);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(InitializeFromParentChainInput other) {
+ if (other == null) {
+ return;
+ }
+ resourceAmount_.Add(other.resourceAmount_);
+ registeredOtherTokenContractAddresses_.Add(other.registeredOtherTokenContractAddresses_);
+ if (other.creator_ != null) {
+ if (creator_ == null) {
+ Creator = new global::AElf.Types.Address();
+ }
+ Creator.MergeFrom(other.Creator);
+ }
+ _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: {
+ resourceAmount_.AddEntriesFrom(input, _map_resourceAmount_codec);
+ break;
+ }
+ case 18: {
+ registeredOtherTokenContractAddresses_.AddEntriesFrom(input, _map_registeredOtherTokenContractAddresses_codec);
+ break;
+ }
+ case 26: {
+ if (creator_ == null) {
+ Creator = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Creator);
+ 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: {
+ resourceAmount_.AddEntriesFrom(ref input, _map_resourceAmount_codec);
+ break;
+ }
+ case 18: {
+ registeredOtherTokenContractAddresses_.AddEntriesFrom(ref input, _map_registeredOtherTokenContractAddresses_codec);
+ break;
+ }
+ case 26: {
+ if (creator_ == null) {
+ Creator = new global::AElf.Types.Address();
+ }
+ input.ReadMessage(Creator);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class UpdateCoefficientsInput : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCoefficientsInput());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[36]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UpdateCoefficientsInput() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UpdateCoefficientsInput(UpdateCoefficientsInput other) : this() {
+ pieceNumbers_ = other.pieceNumbers_.Clone();
+ coefficients_ = other.coefficients_ != null ? other.coefficients_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UpdateCoefficientsInput Clone() {
+ return new UpdateCoefficientsInput(this);
+ }
+
+ /// Field number for the "piece_numbers" field.
+ public const int PieceNumbersFieldNumber = 1;
+ private static readonly pb::FieldCodec _repeated_pieceNumbers_codec
+ = pb::FieldCodec.ForInt32(10);
+ private readonly pbc::RepeatedField pieceNumbers_ = new pbc::RepeatedField();
+ ///
+ /// The specify pieces gonna update.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField PieceNumbers {
+ get { return pieceNumbers_; }
+ }
+
+ /// Field number for the "coefficients" field.
+ public const int CoefficientsFieldNumber = 2;
+ private global::AElf.Contracts.MultiToken.CalculateFeeCoefficients coefficients_;
+ ///
+ /// Coefficients of one single type.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::AElf.Contracts.MultiToken.CalculateFeeCoefficients Coefficients {
+ get { return coefficients_; }
+ set {
+ coefficients_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as UpdateCoefficientsInput);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UpdateCoefficientsInput other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!pieceNumbers_.Equals(other.pieceNumbers_)) return false;
+ if (!object.Equals(Coefficients, other.Coefficients)) 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 ^= pieceNumbers_.GetHashCode();
+ if (coefficients_ != null) hash ^= Coefficients.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
+ pieceNumbers_.WriteTo(output, _repeated_pieceNumbers_codec);
+ if (coefficients_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Coefficients);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ pieceNumbers_.WriteTo(ref output, _repeated_pieceNumbers_codec);
+ if (coefficients_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Coefficients);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += pieceNumbers_.CalculateSize(_repeated_pieceNumbers_codec);
+ if (coefficients_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Coefficients);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(UpdateCoefficientsInput other) {
+ if (other == null) {
+ return;
+ }
+ pieceNumbers_.Add(other.pieceNumbers_);
+ if (other.coefficients_ != null) {
+ if (coefficients_ == null) {
+ Coefficients = new global::AElf.Contracts.MultiToken.CalculateFeeCoefficients();
+ }
+ Coefficients.MergeFrom(other.Coefficients);
+ }
+ _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:
+ case 8: {
+ pieceNumbers_.AddEntriesFrom(input, _repeated_pieceNumbers_codec);
+ break;
+ }
+ case 18: {
+ if (coefficients_ == null) {
+ Coefficients = new global::AElf.Contracts.MultiToken.CalculateFeeCoefficients();
+ }
+ input.ReadMessage(Coefficients);
+ 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:
+ case 8: {
+ pieceNumbers_.AddEntriesFrom(ref input, _repeated_pieceNumbers_codec);
+ break;
+ }
+ case 18: {
+ if (coefficients_ == null) {
+ Coefficients = new global::AElf.Contracts.MultiToken.CalculateFeeCoefficients();
+ }
+ input.ReadMessage(Coefficients);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class CalculateFeePieceCoefficients : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser