From 121f81536db324f543af6a990627a0460e70ca5f Mon Sep 17 00:00:00 2001 From: kastale Date: Mon, 8 Dec 2025 11:18:03 +0800 Subject: [PATCH 1/2] code commit --- .github/ISSUE_TEMPLATE/bug_report.md | 33 + .github/ISSUE_TEMPLATE/config.yml | 10 + .github/ISSUE_TEMPLATE/feature_request.md | 27 + .github/workflows/sonarqube.yaml | 46 + .github/workflows/test-with-code-coverage.yml | 55 + .gitignore | 259 + CodeCoverage.runsettings | 17 + NuGet.Config | 8 + TokenApp.sln | 40 + azure-pipelines.yml | 95 + build.cake | 78 + build.config | 3 + build.ps1 | 154 + build.sh | 75 + codecov.sh | 12 + codecov.yml | 3 + scripts/elasticsearch-linux.sh | 7 + scripts/elasticsearch-macOS.sh | 6 + scripts/elasticsearch-windows.ps1 | 9 + .../AElfScan.TokenApp.csproj | 11 + .../Entities/AccountCollection.cs | 14 + src/AElfScan.TokenApp/Entities/AccountInfo.cs | 11 + .../Entities/AccountToken.cs | 16 + .../Entities/BlockBurnFeeInfo.cs | 11 + .../Entities/DailyHolderInfo.cs | 14 + src/AElfScan.TokenApp/Entities/TokenBase.cs | 22 + src/AElfScan.TokenApp/Entities/TokenInfo.cs | 23 + .../Entities/TransferInfo.cs | 25 + .../Generated/TokenContract.c.cs | 405 + .../Generated/TokenContract.g.cs | 19937 ++++++++++++++++ .../Generated/TransactionFee.c.cs | 121 + .../Generated/TransactionFee.g.cs | 1914 ++ .../GraphQL/AccountCollectionDto.cs | 18 + .../GraphQL/AccountInfoDto.cs | 21 + .../GraphQL/AccountTokenDto.cs | 20 + .../GraphQL/BlockBurnFeeDto.cs | 15 + .../GraphQL/DailyHolderDto.cs | 14 + .../GraphQL/GetAccountCollectionDto.cs | 13 + .../GraphQL/GetAccountInfoDto.cs | 14 + .../GraphQL/GetAccountTokenDto.cs | 28 + .../GraphQL/GetBlockBurnFeeDto.cs | 10 + .../GraphQL/GetTokenInfoDto.cs | 27 + .../GraphQL/GetTransferByBlockDto.cs | 13 + .../GraphQL/GetTransferDto.cs | 26 + .../GraphQL/PagedResultQueryDto.cs | 52 + src/AElfScan.TokenApp/GraphQL/Query.cs | 517 + .../GraphQL/QueryableExtensions.cs | 117 + .../GraphQL/TokenAppSchema.cs | 10 + src/AElfScan.TokenApp/GraphQL/TokenBaseDto.cs | 12 + src/AElfScan.TokenApp/GraphQL/TokenInfoDto.cs | 35 + .../GraphQL/TransferInfoDto.cs | 40 + src/AElfScan.TokenApp/Helper/DateHepler.cs | 15 + .../IInitialBalanceProvider.cs | 33 + .../ITokenContractAddressProvider.cs | 17 + src/AElfScan.TokenApp/IdGenerateHelper.cs | 9 + src/AElfScan.TokenApp/IndexerMapperBase.cs | 33 + .../Processors/BlockProcessor.cs | 174 + .../Processors/BurnedProcessor.cs | 53 + .../ChainPrimaryTokenSymbolSetProcessor.cs | 14 + .../Processors/CrossChainReceivedProcessor.cs | 73 + .../CrossChainTransferredProcessor.cs | 22 + .../Processors/IssuedProcessor.cs | 30 + .../Processors/RentalChargedProcessor.cs | 27 + .../ResourceTokenClaimedProcessor.cs | 20 + .../Processors/TokenCreatedProcessor.cs | 38 + .../Processors/TokenProcessorBase.cs | 299 + .../TransactionFeeChargedProcessor.cs | 16 + .../TransactionFeeClaimedProcessor.cs | 15 + .../Processors/TransferredProcessor.cs | 80 + src/AElfScan.TokenApp/TokenAppConstants.cs | 44 + .../TokenAppMapperProfile.cs | 85 + src/AElfScan.TokenApp/TokenAppModule.cs | 34 + src/AElfScan.TokenApp/TokenBalanceOptions.cs | 15 + src/AElfScan.TokenApp/TokenSymbolHelper.cs | 24 + .../AElfScan.TokenApp.Tests.csproj | 25 + .../AElfScanTokenAppTestModule.cs | 32 + test/AElfScan.TokenApp.Tests/AssemblyInfo.cs | 3 + .../Generated/TokenContract.c.cs | 405 + .../Generated/TokenContract.g.cs | 19937 ++++++++++++++++ .../Generated/TransactionFee.c.cs | 121 + .../Generated/TransactionFee.g.cs | 1914 ++ .../GraphQL/AccountInfoQueryTests.cs | 69 + .../GraphQL/AccountTokenQueryTests.cs | 101 + .../GraphQL/TokenInfoQueryTests.cs | 143 + .../GraphQL/TransferInfoQueryTests.cs | 208 + .../InitBalanceTest.cs | 115 + .../AElfScan.TokenApp.Tests/LogEventHelper.cs | 19 + .../MockBlockChainService.cs | 27 + .../MockInitialBalanceProvider.cs | 44 + ...hainPrimaryTokenSymbolSetProcessorTests.cs | 42 + .../CrossChainReceivedProcessorTests.cs | 94 + .../CrossChainTransferredProcessorTests.cs | 75 + .../IssuedAndBurnedProcessorTests.cs | 142 + .../Processors/RentalChargedProcessorTests.cs | 52 + .../ResourceTokenClaimedProcessorTests.cs | 52 + .../TokenBalanceInitBlockProcessorTests.cs | 132 + .../Processors/TokenCreatedProcessorTests.cs | 71 + .../Processors/TokenProcessorBaseTests.cs | 24 + .../TokenProcessorInitBalanceTests.cs | 133 + .../TransactionFeeChargedProcessorTests.cs | 39 + .../TransactionFeeClaimedProcessorTests.cs | 41 + .../Processors/TransferredProcessorTests.cs | 388 + .../TokenContractAppTestBase.cs | 169 + 103 files changed, 50250 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/workflows/sonarqube.yaml create mode 100644 .github/workflows/test-with-code-coverage.yml create mode 100644 .gitignore create mode 100644 CodeCoverage.runsettings create mode 100644 NuGet.Config create mode 100644 TokenApp.sln create mode 100644 azure-pipelines.yml create mode 100644 build.cake create mode 100644 build.config create mode 100644 build.ps1 create mode 100644 build.sh create mode 100644 codecov.sh create mode 100644 codecov.yml create mode 100644 scripts/elasticsearch-linux.sh create mode 100644 scripts/elasticsearch-macOS.sh create mode 100644 scripts/elasticsearch-windows.ps1 create mode 100644 src/AElfScan.TokenApp/AElfScan.TokenApp.csproj create mode 100644 src/AElfScan.TokenApp/Entities/AccountCollection.cs create mode 100644 src/AElfScan.TokenApp/Entities/AccountInfo.cs create mode 100644 src/AElfScan.TokenApp/Entities/AccountToken.cs create mode 100644 src/AElfScan.TokenApp/Entities/BlockBurnFeeInfo.cs create mode 100644 src/AElfScan.TokenApp/Entities/DailyHolderInfo.cs create mode 100644 src/AElfScan.TokenApp/Entities/TokenBase.cs create mode 100644 src/AElfScan.TokenApp/Entities/TokenInfo.cs create mode 100644 src/AElfScan.TokenApp/Entities/TransferInfo.cs create mode 100644 src/AElfScan.TokenApp/Generated/TokenContract.c.cs create mode 100644 src/AElfScan.TokenApp/Generated/TokenContract.g.cs create mode 100644 src/AElfScan.TokenApp/Generated/TransactionFee.c.cs create mode 100644 src/AElfScan.TokenApp/Generated/TransactionFee.g.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/AccountCollectionDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/AccountInfoDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/AccountTokenDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/BlockBurnFeeDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/DailyHolderDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/GetAccountCollectionDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/GetAccountInfoDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/GetAccountTokenDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/GetBlockBurnFeeDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/GetTokenInfoDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/GetTransferByBlockDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/GetTransferDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/PagedResultQueryDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/Query.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/QueryableExtensions.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/TokenAppSchema.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/TokenBaseDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/TokenInfoDto.cs create mode 100644 src/AElfScan.TokenApp/GraphQL/TransferInfoDto.cs create mode 100644 src/AElfScan.TokenApp/Helper/DateHepler.cs create mode 100644 src/AElfScan.TokenApp/IInitialBalanceProvider.cs create mode 100644 src/AElfScan.TokenApp/ITokenContractAddressProvider.cs create mode 100644 src/AElfScan.TokenApp/IdGenerateHelper.cs create mode 100644 src/AElfScan.TokenApp/IndexerMapperBase.cs create mode 100644 src/AElfScan.TokenApp/Processors/BlockProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/BurnedProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/ChainPrimaryTokenSymbolSetProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/CrossChainReceivedProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/CrossChainTransferredProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/IssuedProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/RentalChargedProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/ResourceTokenClaimedProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/TokenCreatedProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/TokenProcessorBase.cs create mode 100644 src/AElfScan.TokenApp/Processors/TransactionFeeChargedProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/TransactionFeeClaimedProcessor.cs create mode 100644 src/AElfScan.TokenApp/Processors/TransferredProcessor.cs create mode 100644 src/AElfScan.TokenApp/TokenAppConstants.cs create mode 100644 src/AElfScan.TokenApp/TokenAppMapperProfile.cs create mode 100644 src/AElfScan.TokenApp/TokenAppModule.cs create mode 100644 src/AElfScan.TokenApp/TokenBalanceOptions.cs create mode 100644 src/AElfScan.TokenApp/TokenSymbolHelper.cs create mode 100644 test/AElfScan.TokenApp.Tests/AElfScan.TokenApp.Tests.csproj create mode 100644 test/AElfScan.TokenApp.Tests/AElfScanTokenAppTestModule.cs create mode 100644 test/AElfScan.TokenApp.Tests/AssemblyInfo.cs create mode 100644 test/AElfScan.TokenApp.Tests/Generated/TokenContract.c.cs create mode 100644 test/AElfScan.TokenApp.Tests/Generated/TokenContract.g.cs create mode 100644 test/AElfScan.TokenApp.Tests/Generated/TransactionFee.c.cs create mode 100644 test/AElfScan.TokenApp.Tests/Generated/TransactionFee.g.cs create mode 100644 test/AElfScan.TokenApp.Tests/GraphQL/AccountInfoQueryTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/GraphQL/AccountTokenQueryTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/GraphQL/TokenInfoQueryTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/GraphQL/TransferInfoQueryTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/InitBalanceTest.cs create mode 100644 test/AElfScan.TokenApp.Tests/LogEventHelper.cs create mode 100644 test/AElfScan.TokenApp.Tests/MockBlockChainService.cs create mode 100644 test/AElfScan.TokenApp.Tests/MockInitialBalanceProvider.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/ChainPrimaryTokenSymbolSetProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/CrossChainReceivedProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/CrossChainTransferredProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/IssuedAndBurnedProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/RentalChargedProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/ResourceTokenClaimedProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/TokenBalanceInitBlockProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/TokenCreatedProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/TokenProcessorBaseTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/TokenProcessorInitBalanceTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/TransactionFeeChargedProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/TransactionFeeClaimedProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/Processors/TransferredProcessorTests.cs create mode 100644 test/AElfScan.TokenApp.Tests/TokenContractAppTestBase.cs 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/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 _parser = new pb::MessageParser(() => new CalculateFeePieceCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeePieceCoefficients() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeePieceCoefficients(CalculateFeePieceCoefficients other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeePieceCoefficients Clone() { + return new CalculateFeePieceCoefficients(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForInt32(10); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + /// + /// Coefficients of one single piece. + /// The first char is its type: liner / power. + /// The second char is its piece upper bound. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CalculateFeePieceCoefficients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CalculateFeePieceCoefficients other) { + if (ReferenceEquals(other, null)) { + return false; + } + 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(CalculateFeePieceCoefficients 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: + case 8: { + 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: + case 8: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CalculateFeeCoefficients : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeeCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeCoefficients() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeCoefficients(CalculateFeeCoefficients other) : this() { + feeTokenType_ = other.feeTokenType_; + pieceCoefficientsList_ = other.pieceCoefficientsList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeCoefficients Clone() { + return new CalculateFeeCoefficients(this); + } + + /// Field number for the "fee_token_type" field. + public const int FeeTokenTypeFieldNumber = 1; + private int feeTokenType_; + /// + /// The resource fee type, like READ, WRITE, etc. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FeeTokenType { + get { return feeTokenType_; } + set { + feeTokenType_ = value; + } + } + + /// Field number for the "piece_coefficients_list" field. + public const int PieceCoefficientsListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_pieceCoefficientsList_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.CalculateFeePieceCoefficients.Parser); + private readonly pbc::RepeatedField pieceCoefficientsList_ = new pbc::RepeatedField(); + /// + /// Coefficients of one single piece. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PieceCoefficientsList { + get { return pieceCoefficientsList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CalculateFeeCoefficients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CalculateFeeCoefficients other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FeeTokenType != other.FeeTokenType) return false; + if(!pieceCoefficientsList_.Equals(other.pieceCoefficientsList_)) 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 (FeeTokenType != 0) hash ^= FeeTokenType.GetHashCode(); + hash ^= pieceCoefficientsList_.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 (FeeTokenType != 0) { + output.WriteRawTag(8); + output.WriteInt32(FeeTokenType); + } + pieceCoefficientsList_.WriteTo(output, _repeated_pieceCoefficientsList_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 (FeeTokenType != 0) { + output.WriteRawTag(8); + output.WriteInt32(FeeTokenType); + } + pieceCoefficientsList_.WriteTo(ref output, _repeated_pieceCoefficientsList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FeeTokenType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FeeTokenType); + } + size += pieceCoefficientsList_.CalculateSize(_repeated_pieceCoefficientsList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CalculateFeeCoefficients other) { + if (other == null) { + return; + } + if (other.FeeTokenType != 0) { + FeeTokenType = other.FeeTokenType; + } + pieceCoefficientsList_.Add(other.pieceCoefficientsList_); + _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: { + FeeTokenType = input.ReadInt32(); + break; + } + case 18: { + pieceCoefficientsList_.AddEntriesFrom(input, _repeated_pieceCoefficientsList_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 8: { + FeeTokenType = input.ReadInt32(); + break; + } + case 18: { + pieceCoefficientsList_.AddEntriesFrom(ref input, _repeated_pieceCoefficientsList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AllCalculateFeeCoefficients : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AllCalculateFeeCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllCalculateFeeCoefficients() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllCalculateFeeCoefficients(AllCalculateFeeCoefficients other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllCalculateFeeCoefficients Clone() { + return new AllCalculateFeeCoefficients(this); + } + + /// 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.CalculateFeeCoefficients.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + /// + /// The coefficients of fee Calculation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AllCalculateFeeCoefficients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AllCalculateFeeCoefficients other) { + if (ReferenceEquals(other, null)) { + return false; + } + 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(AllCalculateFeeCoefficients 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 TotalTransactionFeesMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalTransactionFeesMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalTransactionFeesMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalTransactionFeesMap(TotalTransactionFeesMap other) : this() { + value_ = other.value_.Clone(); + blockHash_ = other.blockHash_ != null ? other.blockHash_.Clone() : null; + blockHeight_ = other.blockHeight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalTransactionFeesMap Clone() { + return new TotalTransactionFeesMap(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.ForInt64(16, 0L), 10); + private readonly pbc::MapField value_ = new pbc::MapField(); + /// + /// Token dictionary that charge transaction fee, Symbol->Amount. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Value { + get { return value_; } + } + + /// Field number for the "block_hash" field. + public const int BlockHashFieldNumber = 2; + private global::AElf.Types.Hash blockHash_; + /// + /// The hash of the block processing the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash BlockHash { + get { return blockHash_; } + set { + blockHash_ = value; + } + } + + /// Field number for the "block_height" field. + public const int BlockHeightFieldNumber = 3; + private long blockHeight_; + /// + /// The height of the block processing the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BlockHeight { + get { return blockHeight_; } + set { + blockHeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TotalTransactionFeesMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TotalTransactionFeesMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Value.Equals(other.Value)) return false; + if (!object.Equals(BlockHash, other.BlockHash)) return false; + if (BlockHeight != other.BlockHeight) 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 (blockHash_ != null) hash ^= BlockHash.GetHashCode(); + if (BlockHeight != 0L) hash ^= BlockHeight.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 (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _map_value_codec); + if (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_map_value_codec); + if (blockHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlockHash); + } + if (BlockHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BlockHeight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TotalTransactionFeesMap other) { + if (other == null) { + return; + } + value_.Add(other.value_); + if (other.blockHash_ != null) { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + BlockHash.MergeFrom(other.BlockHash); + } + if (other.BlockHeight != 0L) { + BlockHeight = other.BlockHeight; + } + _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; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = 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: { + value_.AddEntriesFrom(ref input, _map_value_codec); + break; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TotalResourceTokensMaps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalResourceTokensMaps()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMaps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMaps(TotalResourceTokensMaps other) : this() { + value_ = other.value_.Clone(); + blockHash_ = other.blockHash_ != null ? other.blockHash_.Clone() : null; + blockHeight_ = other.blockHeight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMaps Clone() { + return new TotalResourceTokensMaps(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.ContractTotalResourceTokens.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + /// + /// Resource tokens to charge. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + /// Field number for the "block_hash" field. + public const int BlockHashFieldNumber = 2; + private global::AElf.Types.Hash blockHash_; + /// + /// The hash of the block processing the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash BlockHash { + get { return blockHash_; } + set { + blockHash_ = value; + } + } + + /// Field number for the "block_height" field. + public const int BlockHeightFieldNumber = 3; + private long blockHeight_; + /// + /// The height of the block processing the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BlockHeight { + get { return blockHeight_; } + set { + blockHeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TotalResourceTokensMaps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TotalResourceTokensMaps other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + if (!object.Equals(BlockHash, other.BlockHash)) return false; + if (BlockHeight != other.BlockHeight) 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 (blockHash_ != null) hash ^= BlockHash.GetHashCode(); + if (BlockHeight != 0L) hash ^= BlockHeight.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 (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (blockHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlockHash); + } + if (BlockHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BlockHeight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TotalResourceTokensMaps other) { + if (other == null) { + return; + } + value_.Add(other.value_); + if (other.blockHash_ != null) { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + BlockHash.MergeFrom(other.BlockHash); + } + if (other.BlockHeight != 0L) { + BlockHeight = other.BlockHeight; + } + _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; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = 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: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ContractTotalResourceTokens : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractTotalResourceTokens()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContractTotalResourceTokens() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContractTotalResourceTokens(ContractTotalResourceTokens other) : this() { + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + tokensMap_ = other.tokensMap_ != null ? other.tokensMap_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContractTotalResourceTokens Clone() { + return new ContractTotalResourceTokens(this); + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 1; + private global::AElf.Types.Address contractAddress_; + /// + /// The contract address. + /// + [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 "tokens_map" field. + public const int TokensMapFieldNumber = 2; + private global::AElf.Contracts.MultiToken.TotalResourceTokensMap tokensMap_; + /// + /// Resource tokens to charge. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.TotalResourceTokensMap TokensMap { + get { return tokensMap_; } + set { + tokensMap_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ContractTotalResourceTokens); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ContractTotalResourceTokens other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (!object.Equals(TokensMap, other.TokensMap)) 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 (tokensMap_ != null) hash ^= TokensMap.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 (tokensMap_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TokensMap); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (tokensMap_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TokensMap); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (tokensMap_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TokensMap); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ContractTotalResourceTokens other) { + if (other == null) { + return; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.tokensMap_ != null) { + if (tokensMap_ == null) { + TokensMap = new global::AElf.Contracts.MultiToken.TotalResourceTokensMap(); + } + TokensMap.MergeFrom(other.TokensMap); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + if (tokensMap_ == null) { + TokensMap = new global::AElf.Contracts.MultiToken.TotalResourceTokensMap(); + } + input.ReadMessage(TokensMap); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + if (tokensMap_ == null) { + TokensMap = new global::AElf.Contracts.MultiToken.TotalResourceTokensMap(); + } + input.ReadMessage(TokensMap); + break; + } + } + } + } + #endif + + } + + public sealed partial class TotalResourceTokensMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalResourceTokensMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMap(TotalResourceTokensMap other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMap Clone() { + return new TotalResourceTokensMap(this); + } + + /// 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.ForInt64(16, 0L), 10); + private readonly pbc::MapField value_ = new pbc::MapField(); + /// + /// Resource token dictionary, Symbol->Amount. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TotalResourceTokensMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TotalResourceTokensMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + 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(TotalResourceTokensMap 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 ChangeTokenIssuerInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeTokenIssuerInput()); + 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[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeTokenIssuerInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeTokenIssuerInput(ChangeTokenIssuerInput other) : this() { + symbol_ = other.symbol_; + newTokenIssuer_ = other.newTokenIssuer_ != null ? other.newTokenIssuer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeTokenIssuerInput Clone() { + return new ChangeTokenIssuerInput(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + 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 "new_token_Issuer" field. + public const int NewTokenIssuerFieldNumber = 2; + private global::AElf.Types.Address newTokenIssuer_; + /// + /// The new token issuer for change. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address NewTokenIssuer { + get { return newTokenIssuer_; } + set { + newTokenIssuer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChangeTokenIssuerInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChangeTokenIssuerInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(NewTokenIssuer, other.NewTokenIssuer)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (newTokenIssuer_ != null) hash ^= NewTokenIssuer.GetHashCode(); + 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 (newTokenIssuer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(NewTokenIssuer); + } + 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 (newTokenIssuer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(NewTokenIssuer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (newTokenIssuer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewTokenIssuer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChangeTokenIssuerInput other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.newTokenIssuer_ != null) { + if (newTokenIssuer_ == null) { + NewTokenIssuer = new global::AElf.Types.Address(); + } + NewTokenIssuer.MergeFrom(other.NewTokenIssuer); + } + _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 (newTokenIssuer_ == null) { + NewTokenIssuer = new global::AElf.Types.Address(); + } + input.ReadMessage(NewTokenIssuer); + 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 (newTokenIssuer_ == null) { + NewTokenIssuer = new global::AElf.Types.Address(); + } + input.ReadMessage(NewTokenIssuer); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResetExternalInfoInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResetExternalInfoInput()); + 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[45]; } + } + + [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 ResetExternalInfoInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResetExternalInfoInput(ResetExternalInfoInput other) : this() { + symbol_ = other.symbol_; + externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResetExternalInfoInput Clone() { + return new ResetExternalInfoInput(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_info" field. + public const int ExternalInfoFieldNumber = 2; + private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResetExternalInfoInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResetExternalInfoInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (_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 (externalInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalInfo); + } + 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 (externalInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (externalInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResetExternalInfoInput other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.externalInfo_ != null) { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + ExternalInfo.MergeFrom(other.ExternalInfo); + } + _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 (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + 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 (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class StringList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[46]; } + } + + [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 StringList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringList(StringList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringList Clone() { + return new StringList(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [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 StringList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StringList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!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(StringList 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 TransactionFeeDelegations : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegations()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[47]; } + } + + [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 TransactionFeeDelegations() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegations(TransactionFeeDelegations other) : this() { + delegations_ = other.delegations_.Clone(); + blockHeight_ = other.blockHeight_; + isUnlimitedDelegate_ = other.isUnlimitedDelegate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegations Clone() { + return new TransactionFeeDelegations(this); + } + + /// Field number for the "delegations" field. + public const int DelegationsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_delegations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10); + private readonly pbc::MapField delegations_ = new pbc::MapField(); + /// + /// delegation, symbols and its' amount + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegations { + get { return delegations_; } + } + + /// Field number for the "block_height" field. + public const int BlockHeightFieldNumber = 2; + private long blockHeight_; + /// + /// height when added + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BlockHeight { + get { return blockHeight_; } + set { + blockHeight_ = value; + } + } + + /// Field number for the "isUnlimitedDelegate" field. + public const int IsUnlimitedDelegateFieldNumber = 3; + private bool isUnlimitedDelegate_; + /// + ///Whether to pay transaction fee continuously + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlimitedDelegate { + get { return isUnlimitedDelegate_; } + set { + isUnlimitedDelegate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegations); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegations other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Delegations.Equals(other.Delegations)) return false; + if (BlockHeight != other.BlockHeight) return false; + if (IsUnlimitedDelegate != other.IsUnlimitedDelegate) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Delegations.GetHashCode(); + if (BlockHeight != 0L) hash ^= BlockHeight.GetHashCode(); + if (IsUnlimitedDelegate != false) hash ^= IsUnlimitedDelegate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + delegations_.WriteTo(output, _map_delegations_codec); + if (BlockHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(BlockHeight); + } + if (IsUnlimitedDelegate != false) { + output.WriteRawTag(24); + output.WriteBool(IsUnlimitedDelegate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegations_.WriteTo(ref output, _map_delegations_codec); + if (BlockHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(BlockHeight); + } + if (IsUnlimitedDelegate != false) { + output.WriteRawTag(24); + output.WriteBool(IsUnlimitedDelegate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += delegations_.CalculateSize(_map_delegations_codec); + if (BlockHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BlockHeight); + } + if (IsUnlimitedDelegate != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegations other) { + if (other == null) { + return; + } + delegations_.Add(other.delegations_); + if (other.BlockHeight != 0L) { + BlockHeight = other.BlockHeight; + } + if (other.IsUnlimitedDelegate != false) { + IsUnlimitedDelegate = other.IsUnlimitedDelegate; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + delegations_.AddEntriesFrom(input, _map_delegations_codec); + break; + } + case 16: { + BlockHeight = input.ReadInt64(); + break; + } + case 24: { + IsUnlimitedDelegate = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegations_.AddEntriesFrom(ref input, _map_delegations_codec); + break; + } + case 16: { + BlockHeight = input.ReadInt64(); + break; + } + case 24: { + IsUnlimitedDelegate = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegatees : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegatees()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[48]; } + } + + [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 TransactionFeeDelegatees() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegatees(TransactionFeeDelegatees other) : this() { + delegatees_ = other.delegatees_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegatees Clone() { + return new TransactionFeeDelegatees(this); + } + + /// Field number for the "delegatees" field. + public const int DelegateesFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_delegatees_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.TransactionFeeDelegations.Parser), 10); + private readonly pbc::MapField delegatees_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegatees { + get { return delegatees_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegatees); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegatees other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Delegatees.Equals(other.Delegatees)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Delegatees.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 + delegatees_.WriteTo(output, _map_delegatees_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegatees_.WriteTo(ref output, _map_delegatees_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += delegatees_.CalculateSize(_map_delegatees_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegatees other) { + if (other == null) { + return; + } + delegatees_.Add(other.delegatees_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + delegatees_.AddEntriesFrom(input, _map_delegatees_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegatees_.AddEntriesFrom(ref input, _map_delegatees_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetTransactionFeeDelegationsInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetTransactionFeeDelegationsInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[49]; } + } + + [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 SetTransactionFeeDelegationsInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsInput(SetTransactionFeeDelegationsInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + delegations_ = other.delegations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsInput Clone() { + return new SetTransactionFeeDelegationsInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + /// + /// the delegator address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + /// Field number for the "delegations" field. + public const int DelegationsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_delegations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 18); + private readonly pbc::MapField delegations_ = new pbc::MapField(); + /// + /// delegation, symbols and its' amount + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegations { + get { return delegations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetTransactionFeeDelegationsInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetTransactionFeeDelegationsInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + if (!Delegations.Equals(other.Delegations)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + hash ^= Delegations.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + delegations_.WriteTo(output, _map_delegations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + delegations_.WriteTo(ref output, _map_delegations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + size += delegations_.CalculateSize(_map_delegations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetTransactionFeeDelegationsInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + delegations_.Add(other.delegations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + delegations_.AddEntriesFrom(input, _map_delegations_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + delegations_.AddEntriesFrom(ref input, _map_delegations_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetTransactionFeeDelegationsOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetTransactionFeeDelegationsOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[50]; } + } + + [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 SetTransactionFeeDelegationsOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsOutput(SetTransactionFeeDelegationsOutput other) : this() { + success_ = other.success_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsOutput Clone() { + return new SetTransactionFeeDelegationsOutput(this); + } + + /// Field number for the "success" field. + public const int SuccessFieldNumber = 1; + private bool success_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Success { + get { return success_; } + set { + success_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetTransactionFeeDelegationsOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetTransactionFeeDelegationsOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Success != other.Success) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Success != false) hash ^= Success.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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetTransactionFeeDelegationsOutput other) { + if (other == null) { + return; + } + if (other.Success != false) { + Success = other.Success; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Success = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Success = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveTransactionFeeDelegatorInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTransactionFeeDelegatorInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[51]; } + } + + [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 RemoveTransactionFeeDelegatorInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInput(RemoveTransactionFeeDelegatorInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInput Clone() { + return new RemoveTransactionFeeDelegatorInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + /// + /// the delegator address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveTransactionFeeDelegatorInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTransactionFeeDelegatorInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveTransactionFeeDelegatorInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveTransactionFeeDelegateeInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTransactionFeeDelegateeInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[52]; } + } + + [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 RemoveTransactionFeeDelegateeInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInput(RemoveTransactionFeeDelegateeInput other) : this() { + delegateeAddress_ = other.delegateeAddress_ != null ? other.delegateeAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInput Clone() { + return new RemoveTransactionFeeDelegateeInput(this); + } + + /// Field number for the "delegatee_address" field. + public const int DelegateeAddressFieldNumber = 1; + private global::AElf.Types.Address delegateeAddress_; + /// + /// the delegatee address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegateeAddress { + get { return delegateeAddress_; } + set { + delegateeAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveTransactionFeeDelegateeInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTransactionFeeDelegateeInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegateeAddress, other.DelegateeAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegateeAddress_ != null) hash ^= DelegateeAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegateeAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateeAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveTransactionFeeDelegateeInput other) { + if (other == null) { + return; + } + if (other.delegateeAddress_ != null) { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + DelegateeAddress.MergeFrom(other.DelegateeAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeDelegationsOfADelegateeInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegationsOfADelegateeInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[53]; } + } + + [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 GetTransactionFeeDelegationsOfADelegateeInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegationsOfADelegateeInput(GetTransactionFeeDelegationsOfADelegateeInput other) : this() { + delegateeAddress_ = other.delegateeAddress_ != null ? other.delegateeAddress_.Clone() : null; + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegationsOfADelegateeInput Clone() { + return new GetTransactionFeeDelegationsOfADelegateeInput(this); + } + + /// Field number for the "delegatee_address" field. + public const int DelegateeAddressFieldNumber = 1; + private global::AElf.Types.Address delegateeAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegateeAddress { + get { return delegateeAddress_; } + set { + delegateeAddress_ = value; + } + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 2; + private global::AElf.Types.Address delegatorAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeDelegationsOfADelegateeInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegationsOfADelegateeInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegateeAddress, other.DelegateeAddress)) return false; + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegateeAddress_ != null) hash ^= DelegateeAddress.GetHashCode(); + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + if (delegatorAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + if (delegatorAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegateeAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateeAddress); + } + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegationsOfADelegateeInput other) { + if (other == null) { + return; + } + if (other.delegateeAddress_ != null) { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + DelegateeAddress.MergeFrom(other.DelegateeAddress); + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 18: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 18: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeDelegateesInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegateesInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[54]; } + } + + [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 GetTransactionFeeDelegateesInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesInput(GetTransactionFeeDelegateesInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesInput Clone() { + return new GetTransactionFeeDelegateesInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeDelegateesInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegateesInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegateesInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeDelegateesOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegateesOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[55]; } + } + + [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 GetTransactionFeeDelegateesOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesOutput(GetTransactionFeeDelegateesOutput other) : this() { + delegateeAddresses_ = other.delegateeAddresses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesOutput Clone() { + return new GetTransactionFeeDelegateesOutput(this); + } + + /// Field number for the "delegatee_addresses" field. + public const int DelegateeAddressesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_delegateeAddresses_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Types.Address.Parser); + private readonly pbc::RepeatedField delegateeAddresses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DelegateeAddresses { + get { return delegateeAddresses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeDelegateesOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegateesOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!delegateeAddresses_.Equals(other.delegateeAddresses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= delegateeAddresses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + delegateeAddresses_.WriteTo(output, _repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegateeAddresses_.WriteTo(ref output, _repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += delegateeAddresses_.CalculateSize(_repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegateesOutput other) { + if (other == null) { + return; + } + delegateeAddresses_.Add(other.delegateeAddresses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + delegateeAddresses_.AddEntriesFrom(input, _repeated_delegateeAddresses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegateeAddresses_.AddEntriesFrom(ref input, _repeated_delegateeAddresses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class Transferred : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Transferred()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[56]; } + } + + [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 Transferred() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Transferred(Transferred other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Transferred Clone() { + return new Transferred(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 2; + private global::AElf.Types.Address to_; + /// + /// The destination address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Transferred); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Transferred other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; + if (Symbol != other.Symbol) return false; + if (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(Transferred 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 Approved : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Approved()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[57]; } + } + + [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 Approved() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Approved(Approved other) : this() { + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + spender_ = other.spender_ != null ? other.spender_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Approved Clone() { + return new Approved(this); + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; + /// + /// The address of the token owner. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 = 2; + private global::AElf.Types.Address spender_; + /// + /// The address that allowance 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 = 3; + private string symbol_ = ""; + /// + /// The symbol of approved token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of approved token. + /// + [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 Approved); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Approved other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Owner, other.Owner)) return false; + if (!object.Equals(Spender, other.Spender)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (spender_ != null) hash ^= Spender.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_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 (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + 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 (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + 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 (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (spender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Approved other) { + if (other == null) { + return; + } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } + if (other.spender_ != null) { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + Spender.MergeFrom(other.Spender); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 26: { + Symbol = input.ReadString(); + 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 (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UnApproved : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnApproved()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[58]; } + } + + [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 UnApproved() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproved(UnApproved other) : this() { + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + spender_ = other.spender_ != null ? other.spender_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproved Clone() { + return new UnApproved(this); + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; + /// + /// The address of the token owner. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 = 2; + private global::AElf.Types.Address spender_; + /// + /// The address that allowance 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 = 3; + private string symbol_ = ""; + /// + /// The symbol of un-approved token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of un-approved token. + /// + [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 UnApproved); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnApproved other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Owner, other.Owner)) return false; + if (!object.Equals(Spender, other.Spender)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (spender_ != null) hash ^= Spender.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_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 (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + 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 (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + 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 (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (spender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnApproved other) { + if (other == null) { + return; + } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } + if (other.spender_ != null) { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + Spender.MergeFrom(other.Spender); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 26: { + Symbol = input.ReadString(); + 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 (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Burned : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Burned()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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[59]; } + } + + [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 Burned() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Burned(Burned other) : this() { + burner_ = other.burner_ != null ? other.burner_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Burned Clone() { + return new Burned(this); + } + + /// Field number for the "burner" field. + public const int BurnerFieldNumber = 1; + private global::AElf.Types.Address burner_; + /// + /// The address who wants to burn token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Burner { + get { return burner_; } + set { + burner_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + private string symbol_ = ""; + /// + /// The symbol of burned token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 burned token. + /// + [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 Burned); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Burned other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Burner, other.Burner)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (burner_ != null) hash ^= Burner.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (burner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Burner); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (burner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Burner); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (burner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Burner); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Burned other) { + if (other == null) { + return; + } + if (other.burner_ != null) { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + Burner.MergeFrom(other.Burner); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + input.ReadMessage(Burner); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + input.ReadMessage(Burner); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ChainPrimaryTokenSymbolSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainPrimaryTokenSymbolSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainPrimaryTokenSymbolSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainPrimaryTokenSymbolSet(ChainPrimaryTokenSymbolSet other) : this() { + tokenSymbol_ = other.tokenSymbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainPrimaryTokenSymbolSet Clone() { + return new ChainPrimaryTokenSymbolSet(this); + } + + /// Field number for the "token_symbol" field. + public const int TokenSymbolFieldNumber = 1; + private string tokenSymbol_ = ""; + /// + /// The symbol of token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TokenSymbol { + get { return tokenSymbol_; } + set { + tokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChainPrimaryTokenSymbolSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChainPrimaryTokenSymbolSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TokenSymbol != other.TokenSymbol) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TokenSymbol.Length != 0) hash ^= TokenSymbol.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenSymbol); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChainPrimaryTokenSymbolSet other) { + if (other == null) { + return; + } + if (other.TokenSymbol.Length != 0) { + TokenSymbol = other.TokenSymbol; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TokenSymbol = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TokenSymbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CalculateFeeAlgorithmUpdated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeeAlgorithmUpdated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeAlgorithmUpdated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeAlgorithmUpdated(CalculateFeeAlgorithmUpdated other) : this() { + allTypeFeeCoefficients_ = other.allTypeFeeCoefficients_ != null ? other.allTypeFeeCoefficients_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeAlgorithmUpdated Clone() { + return new CalculateFeeAlgorithmUpdated(this); + } + + /// Field number for the "all_type_fee_coefficients" field. + public const int AllTypeFeeCoefficientsFieldNumber = 1; + private global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients allTypeFeeCoefficients_; + /// + /// All calculate fee coefficients after modification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients AllTypeFeeCoefficients { + get { return allTypeFeeCoefficients_; } + set { + allTypeFeeCoefficients_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CalculateFeeAlgorithmUpdated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CalculateFeeAlgorithmUpdated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AllTypeFeeCoefficients, other.AllTypeFeeCoefficients)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (allTypeFeeCoefficients_ != null) hash ^= AllTypeFeeCoefficients.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (allTypeFeeCoefficients_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (allTypeFeeCoefficients_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (allTypeFeeCoefficients_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CalculateFeeAlgorithmUpdated other) { + if (other == null) { + return; + } + if (other.allTypeFeeCoefficients_ != null) { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + AllTypeFeeCoefficients.MergeFrom(other.AllTypeFeeCoefficients); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + input.ReadMessage(AllTypeFeeCoefficients); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + input.ReadMessage(AllTypeFeeCoefficients); + break; + } + } + } + } + #endif + + } + + public sealed partial class RentalCharged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalCharged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalCharged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalCharged(RentalCharged other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + payer_ = other.payer_ != null ? other.payer_.Clone() : null; + receiver_ = other.receiver_ != null ? other.receiver_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalCharged Clone() { + return new RentalCharged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of rental fee charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The amount of rental fee charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "payer" field. + public const int PayerFieldNumber = 3; + private global::AElf.Types.Address payer_; + /// + /// The payer of rental fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Payer { + get { return payer_; } + set { + payer_ = value; + } + } + + /// Field number for the "receiver" field. + public const int ReceiverFieldNumber = 4; + private global::AElf.Types.Address receiver_; + /// + /// The receiver of rental fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Receiver { + get { return receiver_; } + set { + receiver_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RentalCharged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RentalCharged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Payer, other.Payer)) return false; + if (!object.Equals(Receiver, other.Receiver)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (payer_ != null) hash ^= Payer.GetHashCode(); + if (receiver_ != null) hash ^= Receiver.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (payer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payer); + } + if (receiver_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Receiver); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RentalCharged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.payer_ != null) { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + Payer.MergeFrom(other.Payer); + } + if (other.receiver_ != null) { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + Receiver.MergeFrom(other.Receiver); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + } + #endif + + } + + public sealed partial class RentalAccountBalanceInsufficient : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalAccountBalanceInsufficient()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalAccountBalanceInsufficient() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalAccountBalanceInsufficient(RentalAccountBalanceInsufficient other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalAccountBalanceInsufficient Clone() { + return new RentalAccountBalanceInsufficient(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of insufficient rental account balance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The balance of the account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RentalAccountBalanceInsufficient); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RentalAccountBalanceInsufficient other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RentalAccountBalanceInsufficient other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TokenCreated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenCreated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenCreated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenCreated(TokenCreated other) : this() { + symbol_ = other.symbol_; + tokenName_ = other.tokenName_; + totalSupply_ = other.totalSupply_; + decimals_ = other.decimals_; + issuer_ = other.issuer_ != null ? other.issuer_.Clone() : null; + isBurnable_ = other.isBurnable_; + issueChainId_ = other.issueChainId_; + externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenCreated Clone() { + return new TokenCreated(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token_name" field. + public const int TokenNameFieldNumber = 2; + private string tokenName_ = ""; + /// + /// The full name of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TokenName { + get { return tokenName_; } + set { + tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "total_supply" field. + public const int TotalSupplyFieldNumber = 3; + private long totalSupply_; + /// + /// The total supply of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TotalSupply { + get { return totalSupply_; } + set { + totalSupply_ = value; + } + } + + /// Field number for the "decimals" field. + public const int DecimalsFieldNumber = 4; + private int decimals_; + /// + /// The precision of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Decimals { + get { return decimals_; } + set { + decimals_ = value; + } + } + + /// Field number for the "issuer" field. + public const int IssuerFieldNumber = 5; + private global::AElf.Types.Address issuer_; + /// + /// The address that has permission to issue the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Issuer { + get { return issuer_; } + set { + issuer_ = value; + } + } + + /// Field number for the "is_burnable" field. + public const int IsBurnableFieldNumber = 6; + private bool isBurnable_; + /// + /// A flag indicating if this token is burnable. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBurnable { + get { return isBurnable_; } + set { + isBurnable_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + /// Field number for the "external_info" field. + public const int ExternalInfoFieldNumber = 8; + private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + /// + /// The external information of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 9; + private global::AElf.Types.Address owner_; + /// + /// The address that owns the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TokenCreated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenCreated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TokenName != other.TokenName) return false; + if (TotalSupply != other.TotalSupply) return false; + if (Decimals != other.Decimals) return false; + if (!object.Equals(Issuer, other.Issuer)) return false; + if (IsBurnable != other.IsBurnable) return false; + if (IssueChainId != other.IssueChainId) return false; + if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + if (!object.Equals(Owner, other.Owner)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (TokenName.Length != 0) hash ^= TokenName.GetHashCode(); + if (TotalSupply != 0L) hash ^= TotalSupply.GetHashCode(); + if (Decimals != 0) hash ^= Decimals.GetHashCode(); + if (issuer_ != null) hash ^= Issuer.GetHashCode(); + if (IsBurnable != false) hash ^= IsBurnable.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (externalInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ExternalInfo); + } + if (owner_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (externalInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ExternalInfo); + } + if (owner_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (TokenName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName); + } + if (TotalSupply != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalSupply); + } + if (Decimals != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Decimals); + } + if (issuer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Issuer); + } + if (IsBurnable != false) { + size += 1 + 1; + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (externalInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + } + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TokenCreated other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TokenName.Length != 0) { + TokenName = other.TokenName; + } + if (other.TotalSupply != 0L) { + TotalSupply = other.TotalSupply; + } + if (other.Decimals != 0) { + Decimals = other.Decimals; + } + if (other.issuer_ != null) { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + Issuer.MergeFrom(other.Issuer); + } + if (other.IsBurnable != false) { + IsBurnable = other.IsBurnable; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + if (other.externalInfo_ != null) { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + ExternalInfo.MergeFrom(other.ExternalInfo); + } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 42: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 66: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 74: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 42: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 66: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 74: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + } + #endif + + } + + public sealed partial class Issued : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Issued()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Issued() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Issued(Issued other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + to_ = other.to_ != null ? other.to_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Issued Clone() { + return new Issued(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of issued token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The amount of issued token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 3; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 4; + private global::AElf.Types.Address to_; + /// + /// The issued target address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Issued); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Issued other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; + if (!object.Equals(To, other.To)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (to_ != null) { + output.WriteRawTag(34); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (to_ != null) { + output.WriteRawTag(34); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Issued other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Memo.Length != 0) { + Memo = other.Memo; + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Memo = input.ReadString(); + break; + } + case 34: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Memo = input.ReadString(); + break; + } + case 34: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + } + } + } + #endif + + } + + public sealed partial class CrossChainTransferred : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainTransferred()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainTransferred() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainTransferred(CrossChainTransferred other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + toChainId_ = other.toChainId_; + issueChainId_ = other.issueChainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainTransferred Clone() { + return new CrossChainTransferred(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 2; + private global::AElf.Types.Address to_; + /// + /// The destination address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to_chain_id" field. + public const int ToChainIdFieldNumber = 6; + private int toChainId_; + /// + /// The destination chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToChainId { + get { return toChainId_; } + set { + toChainId_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CrossChainTransferred); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CrossChainTransferred other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; + if (ToChainId != other.ToChainId) return false; + if (IssueChainId != other.IssueChainId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (from_ != null) hash ^= From.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (ToChainId != 0) hash ^= ToChainId.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (ToChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ToChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (ToChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ToChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (from_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + } + if (ToChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToChainId); + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CrossChainTransferred other) { + if (other == null) { + return; + } + if (other.from_ != null) { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + From.MergeFrom(other.From); + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Memo.Length != 0) { + Memo = other.Memo; + } + if (other.ToChainId != 0) { + ToChainId = other.ToChainId; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + ToChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + ToChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CrossChainReceived : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainReceived()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainReceived() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainReceived(CrossChainReceived other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + fromChainId_ = other.fromChainId_; + issueChainId_ = other.issueChainId_; + parentChainHeight_ = other.parentChainHeight_; + transferTransactionId_ = other.transferTransactionId_ != null ? other.transferTransactionId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainReceived Clone() { + return new CrossChainReceived(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 2; + private global::AElf.Types.Address to_; + /// + /// The destination address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of the received token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of the received token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 6; + private int fromChainId_; + /// + /// The destination chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + /// Field number for the "parent_chain_height" field. + public const int ParentChainHeightFieldNumber = 8; + private long parentChainHeight_; + /// + /// The parent chain height of the transfer transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ParentChainHeight { + get { return parentChainHeight_; } + set { + parentChainHeight_ = value; + } + } + + /// Field number for the "transfer_transaction_id" field. + public const int TransferTransactionIdFieldNumber = 9; + private global::AElf.Types.Hash transferTransactionId_; + /// + /// The id of transfer transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash TransferTransactionId { + get { return transferTransactionId_; } + set { + transferTransactionId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CrossChainReceived); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CrossChainReceived other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; + if (FromChainId != other.FromChainId) return false; + if (IssueChainId != other.IssueChainId) return false; + if (ParentChainHeight != other.ParentChainHeight) return false; + if (!object.Equals(TransferTransactionId, other.TransferTransactionId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (from_ != null) hash ^= From.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (FromChainId != 0) hash ^= FromChainId.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (ParentChainHeight != 0L) hash ^= ParentChainHeight.GetHashCode(); + if (transferTransactionId_ != null) hash ^= TransferTransactionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (FromChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(64); + output.WriteInt64(ParentChainHeight); + } + if (transferTransactionId_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TransferTransactionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (FromChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(64); + output.WriteInt64(ParentChainHeight); + } + if (transferTransactionId_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TransferTransactionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (from_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + } + if (FromChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromChainId); + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (ParentChainHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ParentChainHeight); + } + if (transferTransactionId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransferTransactionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CrossChainReceived other) { + if (other == null) { + return; + } + if (other.from_ != null) { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + From.MergeFrom(other.From); + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Memo.Length != 0) { + Memo = other.Memo; + } + if (other.FromChainId != 0) { + FromChainId = other.FromChainId; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + if (other.ParentChainHeight != 0L) { + ParentChainHeight = other.ParentChainHeight; + } + if (other.transferTransactionId_ != null) { + if (transferTransactionId_ == null) { + TransferTransactionId = new global::AElf.Types.Hash(); + } + TransferTransactionId.MergeFrom(other.TransferTransactionId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + FromChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 64: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 74: { + if (transferTransactionId_ == null) { + TransferTransactionId = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransferTransactionId); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + FromChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 64: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 74: { + if (transferTransactionId_ == null) { + TransferTransactionId = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransferTransactionId); + break; + } + } + } + } + #endif + + } + + public sealed partial class ExternalInfoChanged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalInfoChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalInfoChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalInfoChanged(ExternalInfoChanged other) : this() { + symbol_ = other.symbol_; + externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalInfoChanged Clone() { + return new ExternalInfoChanged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_info" field. + public const int ExternalInfoFieldNumber = 2; + private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExternalInfoChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExternalInfoChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (_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 (externalInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalInfo); + } + 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 (externalInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (externalInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExternalInfoChanged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.externalInfo_ != null) { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + ExternalInfo.MergeFrom(other.ExternalInfo); + } + _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 (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + 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 (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegationAdded : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegationAdded()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationAdded() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationAdded(TransactionFeeDelegationAdded other) : this() { + delegator_ = other.delegator_ != null ? other.delegator_.Clone() : null; + delegatee_ = other.delegatee_ != null ? other.delegatee_.Clone() : null; + caller_ = other.caller_ != null ? other.caller_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationAdded Clone() { + return new TransactionFeeDelegationAdded(this); + } + + /// Field number for the "delegator" field. + public const int DelegatorFieldNumber = 1; + private global::AElf.Types.Address delegator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegator { + get { return delegator_; } + set { + delegator_ = value; + } + } + + /// Field number for the "delegatee" field. + public const int DelegateeFieldNumber = 2; + private global::AElf.Types.Address delegatee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegatee { + get { return delegatee_; } + set { + delegatee_ = value; + } + } + + /// Field number for the "caller" field. + public const int CallerFieldNumber = 3; + private global::AElf.Types.Address caller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegationAdded); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegationAdded other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delegator, other.Delegator)) return false; + if (!object.Equals(Delegatee, other.Delegatee)) return false; + if (!object.Equals(Caller, other.Caller)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegator_ != null) hash ^= Delegator.GetHashCode(); + if (delegatee_ != null) hash ^= Delegatee.GetHashCode(); + if (caller_ != null) hash ^= Caller.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegator); + } + if (delegatee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegatee); + } + if (caller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegationAdded other) { + if (other == null) { + return; + } + if (other.delegator_ != null) { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + Delegator.MergeFrom(other.Delegator); + } + if (other.delegatee_ != null) { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + Delegatee.MergeFrom(other.Delegatee); + } + if (other.caller_ != null) { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + Caller.MergeFrom(other.Caller); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegationCancelled : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegationCancelled()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationCancelled() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationCancelled(TransactionFeeDelegationCancelled other) : this() { + delegator_ = other.delegator_ != null ? other.delegator_.Clone() : null; + delegatee_ = other.delegatee_ != null ? other.delegatee_.Clone() : null; + caller_ = other.caller_ != null ? other.caller_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationCancelled Clone() { + return new TransactionFeeDelegationCancelled(this); + } + + /// Field number for the "delegator" field. + public const int DelegatorFieldNumber = 1; + private global::AElf.Types.Address delegator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegator { + get { return delegator_; } + set { + delegator_ = value; + } + } + + /// Field number for the "delegatee" field. + public const int DelegateeFieldNumber = 2; + private global::AElf.Types.Address delegatee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegatee { + get { return delegatee_; } + set { + delegatee_ = value; + } + } + + /// Field number for the "caller" field. + public const int CallerFieldNumber = 3; + private global::AElf.Types.Address caller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegationCancelled); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegationCancelled other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delegator, other.Delegator)) return false; + if (!object.Equals(Delegatee, other.Delegatee)) return false; + if (!object.Equals(Caller, other.Caller)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegator_ != null) hash ^= Delegator.GetHashCode(); + if (delegatee_ != null) hash ^= Delegatee.GetHashCode(); + if (caller_ != null) hash ^= Caller.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegator); + } + if (delegatee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegatee); + } + if (caller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegationCancelled other) { + if (other == null) { + return; + } + if (other.delegator_ != null) { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + Delegator.MergeFrom(other.Delegator); + } + if (other.delegatee_ != null) { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + Delegatee.MergeFrom(other.Delegatee); + } + if (other.caller_ != null) { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + Caller.MergeFrom(other.Caller); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/AElfScan.TokenApp/Generated/TransactionFee.c.cs b/src/AElfScan.TokenApp/Generated/TransactionFee.c.cs new file mode 100644 index 0000000..d1331ee --- /dev/null +++ b/src/AElfScan.TokenApp/Generated/TransactionFee.c.cs @@ -0,0 +1,121 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: transaction_fee.proto +// +#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 TransactionFeeCharged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new TransactionFeeCharged + { + ChargingAddress = ChargingAddress + }, + }; + } + + public TransactionFeeCharged GetNonIndexed() + { + return new TransactionFeeCharged + { + Symbol = Symbol, + Amount = Amount, + }; + } + } + + public partial class ResourceTokenCharged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ResourceTokenCharged GetNonIndexed() + { + return new ResourceTokenCharged + { + Symbol = Symbol, + Amount = Amount, + ContractAddress = ContractAddress, + }; + } + } + + public partial class ResourceTokenOwned : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ResourceTokenOwned GetNonIndexed() + { + return new ResourceTokenOwned + { + Symbol = Symbol, + Amount = Amount, + ContractAddress = ContractAddress, + }; + } + } + + public partial class TransactionFeeClaimed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public TransactionFeeClaimed GetNonIndexed() + { + return new TransactionFeeClaimed + { + Symbol = Symbol, + Amount = Amount, + Receiver = Receiver, + }; + } + } + + public partial class ResourceTokenClaimed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ResourceTokenClaimed GetNonIndexed() + { + return new ResourceTokenClaimed + { + Symbol = Symbol, + Amount = Amount, + Payer = Payer, + Receiver = Receiver, + }; + } + } + + #endregion +} +#endregion + diff --git a/src/AElfScan.TokenApp/Generated/TransactionFee.g.cs b/src/AElfScan.TokenApp/Generated/TransactionFee.g.cs new file mode 100644 index 0000000..e48903c --- /dev/null +++ b/src/AElfScan.TokenApp/Generated/TransactionFee.g.cs @@ -0,0 +1,1914 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: transaction_fee.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 transaction_fee.proto + public static partial class TransactionFeeReflection { + + #region Descriptor + /// File descriptor for transaction_fee.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TransactionFeeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0cmFuc2FjdGlvbl9mZWUucHJvdG8SBGFlbGYaD2FlbGYvY29yZS5wcm90", + "bxoSYWVsZi9vcHRpb25zLnByb3RvImUKGVRyYW5zYWN0aW9uU2l6ZUZlZVN5", + "bWJvbHMSSAogdHJhbnNhY3Rpb25fc2l6ZV9mZWVfc3ltYm9sX2xpc3QYASAD", + "KAsyHi5hZWxmLlRyYW5zYWN0aW9uU2l6ZUZlZVN5bWJvbCJnChhUcmFuc2Fj", + "dGlvblNpemVGZWVTeW1ib2wSFAoMdG9rZW5fc3ltYm9sGAEgASgJEhkKEWJh", + "c2VfdG9rZW5fd2VpZ2h0GAIgASgFEhoKEmFkZGVkX3Rva2VuX3dlaWdodBgD", + "IAEoBSJsChVUcmFuc2FjdGlvbkZlZUNoYXJnZWQSDgoGc3ltYm9sGAEgASgJ", + "Eg4KBmFtb3VudBgCIAEoAxItCg9jaGFyZ2luZ0FkZHJlc3MYAyABKAsyDS5h", + "ZWxmLkFkZHJlc3NCBYiP9QEBOgSguxgBImUKFFJlc291cmNlVG9rZW5DaGFy", + "Z2VkEg4KBnN5bWJvbBgBIAEoCRIOCgZhbW91bnQYAiABKAMSJwoQY29udHJh", + "Y3RfYWRkcmVzcxgDIAEoCzINLmFlbGYuQWRkcmVzczoEoLsYASJjChJSZXNv", + "dXJjZVRva2VuT3duZWQSDgoGc3ltYm9sGAEgASgJEg4KBmFtb3VudBgCIAEo", + "AxInChBjb250cmFjdF9hZGRyZXNzGAMgASgLMg0uYWVsZi5BZGRyZXNzOgSg", + "uxgBIl4KFVRyYW5zYWN0aW9uRmVlQ2xhaW1lZBIOCgZzeW1ib2wYASABKAkS", + "DgoGYW1vdW50GAIgASgDEh8KCHJlY2VpdmVyGAMgASgLMg0uYWVsZi5BZGRy", + "ZXNzOgSguxgBInsKFFJlc291cmNlVG9rZW5DbGFpbWVkEg4KBnN5bWJvbBgB", + "IAEoCRIOCgZhbW91bnQYAiABKAMSHAoFcGF5ZXIYAyABKAsyDS5hZWxmLkFk", + "ZHJlc3MSHwoIcmVjZWl2ZXIYBCABKAsyDS5hZWxmLkFkZHJlc3M6BKC7GAEy", + "EAoOVHJhbnNhY3Rpb25GZWVCHKoCGUFFbGYuQ29udHJhY3RzLk11bHRpVG9r", + "ZW5iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbols), global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbols.Parser, new[]{ "TransactionSizeFeeSymbolList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbol), global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbol.Parser, new[]{ "TokenSymbol", "BaseTokenWeight", "AddedTokenWeight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeCharged), global::AElf.Contracts.MultiToken.TransactionFeeCharged.Parser, new[]{ "Symbol", "Amount", "ChargingAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResourceTokenCharged), global::AElf.Contracts.MultiToken.ResourceTokenCharged.Parser, new[]{ "Symbol", "Amount", "ContractAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResourceTokenOwned), global::AElf.Contracts.MultiToken.ResourceTokenOwned.Parser, new[]{ "Symbol", "Amount", "ContractAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeClaimed), global::AElf.Contracts.MultiToken.TransactionFeeClaimed.Parser, new[]{ "Symbol", "Amount", "Receiver" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResourceTokenClaimed), global::AElf.Contracts.MultiToken.ResourceTokenClaimed.Parser, new[]{ "Symbol", "Amount", "Payer", "Receiver" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class TransactionSizeFeeSymbols : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionSizeFeeSymbols()); + 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.TransactionFeeReflection.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 TransactionSizeFeeSymbols() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionSizeFeeSymbols(TransactionSizeFeeSymbols other) : this() { + transactionSizeFeeSymbolList_ = other.transactionSizeFeeSymbolList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionSizeFeeSymbols Clone() { + return new TransactionSizeFeeSymbols(this); + } + + /// Field number for the "transaction_size_fee_symbol_list" field. + public const int TransactionSizeFeeSymbolListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_transactionSizeFeeSymbolList_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbol.Parser); + private readonly pbc::RepeatedField transactionSizeFeeSymbolList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TransactionSizeFeeSymbolList { + get { return transactionSizeFeeSymbolList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionSizeFeeSymbols); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionSizeFeeSymbols other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!transactionSizeFeeSymbolList_.Equals(other.transactionSizeFeeSymbolList_)) 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 ^= transactionSizeFeeSymbolList_.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 + transactionSizeFeeSymbolList_.WriteTo(output, _repeated_transactionSizeFeeSymbolList_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) { + transactionSizeFeeSymbolList_.WriteTo(ref output, _repeated_transactionSizeFeeSymbolList_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 += transactionSizeFeeSymbolList_.CalculateSize(_repeated_transactionSizeFeeSymbolList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionSizeFeeSymbols other) { + if (other == null) { + return; + } + transactionSizeFeeSymbolList_.Add(other.transactionSizeFeeSymbolList_); + _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: { + transactionSizeFeeSymbolList_.AddEntriesFrom(input, _repeated_transactionSizeFeeSymbolList_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: { + transactionSizeFeeSymbolList_.AddEntriesFrom(ref input, _repeated_transactionSizeFeeSymbolList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionSizeFeeSymbol : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionSizeFeeSymbol()); + 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.TransactionFeeReflection.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 TransactionSizeFeeSymbol() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionSizeFeeSymbol(TransactionSizeFeeSymbol 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 TransactionSizeFeeSymbol Clone() { + return new TransactionSizeFeeSymbol(this); + } + + /// Field number for the "token_symbol" field. + public const int TokenSymbolFieldNumber = 1; + private string tokenSymbol_ = ""; + [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_; + [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_; + [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 TransactionSizeFeeSymbol); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionSizeFeeSymbol 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(TransactionSizeFeeSymbol 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 TransactionFeeCharged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeCharged()); + 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.TransactionFeeReflection.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 TransactionFeeCharged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeCharged(TransactionFeeCharged other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + chargingAddress_ = other.chargingAddress_ != null ? other.chargingAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeCharged Clone() { + return new TransactionFeeCharged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "chargingAddress" field. + public const int ChargingAddressFieldNumber = 3; + private global::AElf.Types.Address chargingAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ChargingAddress { + get { return chargingAddress_; } + set { + chargingAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeCharged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeCharged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(ChargingAddress, other.ChargingAddress)) 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 (chargingAddress_ != null) hash ^= ChargingAddress.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 (chargingAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ChargingAddress); + } + 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 (chargingAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ChargingAddress); + } + 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 (chargingAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChargingAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeCharged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.chargingAddress_ != null) { + if (chargingAddress_ == null) { + ChargingAddress = new global::AElf.Types.Address(); + } + ChargingAddress.MergeFrom(other.ChargingAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (chargingAddress_ == null) { + ChargingAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ChargingAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (chargingAddress_ == null) { + ChargingAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ChargingAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResourceTokenCharged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceTokenCharged()); + 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.TransactionFeeReflection.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 ResourceTokenCharged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenCharged(ResourceTokenCharged other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenCharged Clone() { + return new ResourceTokenCharged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 3; + private global::AElf.Types.Address contractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResourceTokenCharged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceTokenCharged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(ContractAddress, other.ContractAddress)) 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 (contractAddress_ != null) hash ^= ContractAddress.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 (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + 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 (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + 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 (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceTokenCharged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResourceTokenOwned : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceTokenOwned()); + 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.TransactionFeeReflection.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 ResourceTokenOwned() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenOwned(ResourceTokenOwned other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenOwned Clone() { + return new ResourceTokenOwned(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 3; + private global::AElf.Types.Address contractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResourceTokenOwned); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceTokenOwned other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(ContractAddress, other.ContractAddress)) 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 (contractAddress_ != null) hash ^= ContractAddress.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 (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + 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 (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + 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 (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceTokenOwned other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeClaimed : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeClaimed()); + 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.TransactionFeeReflection.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 TransactionFeeClaimed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeClaimed(TransactionFeeClaimed other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + receiver_ = other.receiver_ != null ? other.receiver_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeClaimed Clone() { + return new TransactionFeeClaimed(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "receiver" field. + public const int ReceiverFieldNumber = 3; + private global::AElf.Types.Address receiver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Receiver { + get { return receiver_; } + set { + receiver_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeClaimed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeClaimed other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Receiver, other.Receiver)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (receiver_ != null) hash ^= Receiver.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (receiver_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (receiver_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (receiver_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Receiver); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeClaimed other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.receiver_ != null) { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + Receiver.MergeFrom(other.Receiver); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResourceTokenClaimed : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceTokenClaimed()); + 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.TransactionFeeReflection.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 ResourceTokenClaimed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenClaimed(ResourceTokenClaimed other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + payer_ = other.payer_ != null ? other.payer_.Clone() : null; + receiver_ = other.receiver_ != null ? other.receiver_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenClaimed Clone() { + return new ResourceTokenClaimed(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "payer" field. + public const int PayerFieldNumber = 3; + private global::AElf.Types.Address payer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Payer { + get { return payer_; } + set { + payer_ = value; + } + } + + /// Field number for the "receiver" field. + public const int ReceiverFieldNumber = 4; + private global::AElf.Types.Address receiver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Receiver { + get { return receiver_; } + set { + receiver_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResourceTokenClaimed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceTokenClaimed other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Payer, other.Payer)) return false; + if (!object.Equals(Receiver, other.Receiver)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (payer_ != null) hash ^= Payer.GetHashCode(); + if (receiver_ != null) hash ^= Receiver.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (payer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payer); + } + if (receiver_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Receiver); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceTokenClaimed other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.payer_ != null) { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + Payer.MergeFrom(other.Payer); + } + if (other.receiver_ != null) { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + Receiver.MergeFrom(other.Receiver); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/AElfScan.TokenApp/GraphQL/AccountCollectionDto.cs b/src/AElfScan.TokenApp/GraphQL/AccountCollectionDto.cs new file mode 100644 index 0000000..7fa7841 --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/AccountCollectionDto.cs @@ -0,0 +1,18 @@ +using AeFinder.Sdk.Dtos; + +namespace AElfScan.TokenApp.GraphQL; + +public class AccountCollectionDto : AeFinderEntityDto +{ + public string Address { get; set; } + public TokenBaseDto Token { get; set; } + public decimal FormatAmount { get; set; } + public long TransferCount { get; set; } + +} + +public class AccountCollectionPageResultDto +{ + public long TotalCount { get; set; } + public List Items { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/AccountInfoDto.cs b/src/AElfScan.TokenApp/GraphQL/AccountInfoDto.cs new file mode 100644 index 0000000..1e76488 --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/AccountInfoDto.cs @@ -0,0 +1,21 @@ +using AeFinder.Sdk.Dtos; + +namespace AElfScan.TokenApp.GraphQL; + +public class AccountInfoDto : AeFinderEntityDto +{ + public string Address { get; set; } + public long TokenHoldingCount { get; set; } + public long TransferCount { get; set; } +} + +public class AccountCountDto +{ + public int Count { get; set; } +} + +public class AccountInfoPageResultDto +{ + public long TotalCount { get; set; } + public List Items { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/AccountTokenDto.cs b/src/AElfScan.TokenApp/GraphQL/AccountTokenDto.cs new file mode 100644 index 0000000..986a1cb --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/AccountTokenDto.cs @@ -0,0 +1,20 @@ +using AeFinder.Sdk.Dtos; + +namespace AElfScan.TokenApp.GraphQL; + +public class AccountTokenDto : AeFinderEntityDto +{ + public string Address { get; set; } + public TokenBaseDto Token { get; set; } + public long Amount { get; set; } + public decimal FormatAmount { get; set; } + public long TransferCount { get; set; } + public string FirstNftTransactionId { get; set; } + public DateTime? FirstNftTime { get; set; } +} + +public class AccountTokenPageResultDto +{ + public long TotalCount { get; set; } + public List Items { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/BlockBurnFeeDto.cs b/src/AElfScan.TokenApp/GraphQL/BlockBurnFeeDto.cs new file mode 100644 index 0000000..d8786ec --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/BlockBurnFeeDto.cs @@ -0,0 +1,15 @@ +using AeFinder.Sdk.Dtos; + +namespace AElfScan.TokenApp.GraphQL; + +public class BlockBurnFeeDto :AeFinderEntityDto +{ + public string Symbol { get; set; } + public long Amount { get; set; } + public long BlockHeight { get; set; } +} + +public class BlockBurnFeeListDto +{ + public List Items { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/DailyHolderDto.cs b/src/AElfScan.TokenApp/GraphQL/DailyHolderDto.cs new file mode 100644 index 0000000..416951d --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/DailyHolderDto.cs @@ -0,0 +1,14 @@ +using AeFinder.Sdk.Dtos; + +namespace AElfScan.TokenApp.GraphQL; + +public class GetDailyHolderDto +{ + public string ChainId { get; set; } +} + +public class DailyHolderDto +{ + public string DateStr { get; set; } + public long Count { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/GetAccountCollectionDto.cs b/src/AElfScan.TokenApp/GraphQL/GetAccountCollectionDto.cs new file mode 100644 index 0000000..43b040b --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/GetAccountCollectionDto.cs @@ -0,0 +1,13 @@ +using AElfScan.TokenApp.Entities; + +namespace AElfScan.TokenApp.GraphQL; + +public class GetAccountCollectionDto : PagedResultQueryDto +{ + public string ChainId { get; set; } + public string Address { get; set; } + public string Symbol { get; set; } + + public List AddressList { get; set; } = new(); + public bool? AmountGreaterThanZero { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/GetAccountInfoDto.cs b/src/AElfScan.TokenApp/GraphQL/GetAccountInfoDto.cs new file mode 100644 index 0000000..5922502 --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/GetAccountInfoDto.cs @@ -0,0 +1,14 @@ +namespace AElfScan.TokenApp.GraphQL; + +public class GetAccountInfoDto : PagedResultQueryDto +{ + public string ChainId { get; set; } + public string Address { get; set; } +} + + +public class GetAccountCountDto +{ + public string ChainId { get; set; } +} + diff --git a/src/AElfScan.TokenApp/GraphQL/GetAccountTokenDto.cs b/src/AElfScan.TokenApp/GraphQL/GetAccountTokenDto.cs new file mode 100644 index 0000000..67f32ef --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/GetAccountTokenDto.cs @@ -0,0 +1,28 @@ +using AElfScan.TokenApp.Entities; + +namespace AElfScan.TokenApp.GraphQL; + +public class GetAccountTokenDto : PagedResultQueryDto +{ + public string ChainId { get; set; } + public string Address { get; set; } + public string Symbol { get; set; } + + public string CollectionSymbol { get; set; } + + public string PartialSymbol { get; set; } + public List Types { get; set; } = new(); + + public List Symbols { get; set; } = new(); + + public List SearchSymbols { get; set; } = new(); + + public List AddressList { get; set; } = new(); + + public string Search { get; set; } = ""; + + //support txId, address, symbol + public string FuzzySearch { get; set; } = ""; + + public bool? AmountGreaterThanZero { get; set; } = true; +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/GetBlockBurnFeeDto.cs b/src/AElfScan.TokenApp/GraphQL/GetBlockBurnFeeDto.cs new file mode 100644 index 0000000..966908f --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/GetBlockBurnFeeDto.cs @@ -0,0 +1,10 @@ +using JetBrains.Annotations; + +namespace AElfScan.TokenApp.GraphQL; + +public class GetBlockBurnFeeDto +{ + [NotNull] public string ChainId { get; set; } + public long BeginBlockHeight { get; set; } + public long EndBlockHeight { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/GetTokenInfoDto.cs b/src/AElfScan.TokenApp/GraphQL/GetTokenInfoDto.cs new file mode 100644 index 0000000..411b2b7 --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/GetTokenInfoDto.cs @@ -0,0 +1,27 @@ +using AElfScan.TokenApp.Entities; + +namespace AElfScan.TokenApp.GraphQL; + +public class GetTokenInfoDto : PagedResultQueryDto +{ + public string ChainId { get; set; } + + public string Symbol { get; set; } + public List Symbols { get; set; } = new(); + public string PartialSymbol { get; set; } + public string TokenName { get; set; } + public string PartialTokenName { get; set; } + public string Owner { get; set; } + public string Issuer { get; set; } + public List Types { get; set; } = new(); + + public List CollectionSymbols { get; set; } = new(); + + public string Search { get; set; } = ""; + + public string ExactSearch { get; set; } = ""; + + public string FuzzySearch { get; set; } = ""; + + public DateTime? BeginBlockTime { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/GetTransferByBlockDto.cs b/src/AElfScan.TokenApp/GraphQL/GetTransferByBlockDto.cs new file mode 100644 index 0000000..2b43732 --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/GetTransferByBlockDto.cs @@ -0,0 +1,13 @@ + +namespace AElfScan.TokenApp.GraphQL; + +public class GetTransferByBlockDto : PagedResultQueryDto +{ + public string ChainId { get; set; } + public List FromList { get; set; } + public List ToList { get; set; } + public List Methods { get; set; } = new(); + public List SymbolList { get; set; } + public long BeginBlockHeight { get; set; } + public long? EndBlockHeight { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/GetTransferDto.cs b/src/AElfScan.TokenApp/GraphQL/GetTransferDto.cs new file mode 100644 index 0000000..dfa23f8 --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/GetTransferDto.cs @@ -0,0 +1,26 @@ +using AElfScan.TokenApp.Entities; + +namespace AElfScan.TokenApp.GraphQL; + +public class GetTransferDto : PagedResultQueryDto +{ + public string ChainId { get; set; } + public string TransactionId { get; set; } + public string From { get; set; } + public string To { get; set; } + public string Address { get; set; } + public List Methods { get; set; } = new(); + public string Symbol { get; set; } + + public string CollectionSymbol { get; set; } + + public List Types { get; set; } = new(); + + public string Search { get; set; } = ""; + + //support txId, address, symbol + public string FuzzySearch { get; set; } = ""; + + public DateTime? BeginBlockTime { get; set; } + +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/PagedResultQueryDto.cs b/src/AElfScan.TokenApp/GraphQL/PagedResultQueryDto.cs new file mode 100644 index 0000000..8b334cd --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/PagedResultQueryDto.cs @@ -0,0 +1,52 @@ +namespace AElfScan.TokenApp.GraphQL; + +public class PagedResultQueryDto : OrderInfo +{ + public static int DefaultMaxResultCount { get; set; } = 10; + public static int MaxMaxResultCount { get; set; } = 1000; + public int SkipCount { get; set; } = 0; + public int MaxResultCount { get; set; } = DefaultMaxResultCount; + + public List OrderInfos { get; set; } + public List SearchAfter { get; set; } + + public virtual void Validate() + { + if (MaxResultCount > MaxMaxResultCount) + { + throw new ArgumentOutOfRangeException(nameof(MaxResultCount), + $"Max allowed value for {nameof(MaxResultCount)} is {MaxMaxResultCount}."); + } + } + + //For compatibility + public List GetAdaptableOrderInfos() + { + if (OrderBy.IsNullOrEmpty()) + { + return OrderInfos; + } + + return new List + { + new() + { + OrderBy = OrderBy, + Sort = Sort + } + }; + } +} + +public enum SortType +{ + Asc, + Desc +} + +public class OrderInfo +{ + public string OrderBy { get; set; } + + public string Sort { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/Query.cs b/src/AElfScan.TokenApp/GraphQL/Query.cs new file mode 100644 index 0000000..b7098cc --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/Query.cs @@ -0,0 +1,517 @@ +using System.Linq.Expressions; +using AeFinder.Sdk; +using AElfScan.TokenApp.Entities; +using GraphQL; +using Volo.Abp.ObjectMapping; + +namespace AElfScan.TokenApp.GraphQL; + +public class Query +{ + private static readonly List InitSymbolList = new() + { + "ELF", "SHARE", "VOTE", "CPU", "WRITE", "READ", "NET", "RAM", "STORAGE" + }; + + + public static async Task TokenInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetTokenInfoDto input) + { + input.Validate(); + + var queryable = await repository.GetQueryableAsync(); + + if (input.BeginBlockTime != null) + { + queryable = queryable.Where(o => o.Metadata.Block.BlockTime > input.BeginBlockTime); + queryable = queryable.Where(o => o.TransferCount == 0); + } + + if (!input.ChainId.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId); + } + + if (!input.Symbol.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Symbol == input.Symbol); + } + + if (!input.Symbols.IsNullOrEmpty()) + { + var predicates = input.Symbols.Select(s => + (Expression>)(o => o.Symbol == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + if (!input.TokenName.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.TokenName == input.TokenName); + } + + if (!input.Owner.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Owner == input.Owner); + } + + if (!input.Issuer.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Issuer == input.Issuer); + } + + if (!input.CollectionSymbols.IsNullOrEmpty()) + { + var predicates = input.CollectionSymbols.Select(s => + (Expression>)(o => o.CollectionSymbol == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + + queryable = queryable.Where(predicate); + } + + if (!input.Types.IsNullOrEmpty()) + { + var predicates = input.Types.Select(s => + (Expression>)(o => o.Type == s)); + + if (input.Types.Contains(SymbolType.Token)) + { + predicates = predicates.Concat(new Expression>[] + { + o => o.Type == SymbolType.Token + }); + + // Add A new condition to check whether o.Symbol is equal to the element A or B in the list + var symbolPredicates = TokenAppConstants.SpecialSymbolList.Select(s => + (Expression>)(o => o.Symbol == s)); + + predicates = predicates.Concat(symbolPredicates); + } + + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + + if (!input.Search.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Symbol.Contains(input.Search) || o.TokenName.Contains(input.Search)); + } + + if (!input.ExactSearch.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Symbol == input.ExactSearch || o.TokenName == input.ExactSearch); + } + + var totalCount = 0; + if (!input.FuzzySearch.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.LowerCaseSymbol.Contains(input.FuzzySearch) + || o.LowerCaseTokenName.Contains(input.FuzzySearch)); + } + else + { + totalCount = await QueryableExtensions.CountAsync(queryable); + } + + //add order by + queryable = QueryableExtensions.TokenInfoSort(queryable, input); + + var result = queryable.Skip(input.SkipCount) + .Take(input.MaxResultCount).ToList(); + // not needed after resubscribing + if (!result.IsNullOrEmpty()) + { + foreach (var token in result) + { + if (token.Metadata.ChainId != "AELF" && InitSymbolList.Contains(token.Symbol)) + { + token.Supply -= token.TotalSupply; + } + } + } + + return new TokenInfoPageResultDto + { + TotalCount = totalCount, + Items = objectMapper.Map, List>(result) + }; + } + + public static async Task> AccountInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetAccountInfoDto input) + { + input.Validate(); + + var queryable = await repository.GetQueryableAsync(); + + if (!input.ChainId.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId); + } + + if (!input.Address.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Address == input.Address); + } + + + var result = queryable.Skip(input.SkipCount) + .Take(input.MaxResultCount).ToList(); + return objectMapper.Map, List>(result); + } + + + public static async Task> DailyHolder( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetDailyHolderDto input) + { + var queryable = await repository.GetQueryableAsync(); + + if (!input.ChainId.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.ChainId == input.ChainId); + } + + + var result = queryable.Take(10000).ToList(); + return objectMapper.Map, List>(result); + } + + + public static async Task AccountCount( + [FromServices] IReadOnlyRepository repository, GetAccountCountDto input) + { + var queryable = await repository.GetQueryableAsync(); + + if (!input.ChainId.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId); + } + + + var count = queryable.Count(); + + return new AccountCountDto() { Count = count }; + } + + public static async Task AccountToken( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetAccountTokenDto input) + { + input.Validate(); + + var queryable = await repository.GetQueryableAsync(); + + if (!input.ChainId.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId); + } + + if (!input.Address.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Address == input.Address); + } + + if (!input.Symbol.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Token.Symbol == input.Symbol); + } + + if (!input.CollectionSymbol.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Token.CollectionSymbol == input.CollectionSymbol); + } + + if (!input.Types.IsNullOrEmpty()) + { + var predicates = input.Types.Select(s => + (Expression>)(o => o.Token.Type == s)); + + if (input.Types.Contains(SymbolType.Token)) + { + predicates = predicates.Concat(new Expression>[] + { + o => o.Token.Type == SymbolType.Token + }); + + // Add A new condition to check whether o.Symbol is equal to the element A or B in the list + var symbolPredicates = TokenAppConstants.SpecialSymbolList.Select(s => + (Expression>)(o => o.Token.Symbol == s)); + + predicates = predicates.Concat(symbolPredicates); + } + + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + if (!input.Symbols.IsNullOrEmpty()) + { + var predicates = input.Symbols.Select(s => + (Expression>)(o => o.Token.Symbol == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + if (!input.AddressList.IsNullOrEmpty()) + { + var predicates = input.AddressList.Select(s => + (Expression>)(o => o.Address == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + if (!input.SearchSymbols.IsNullOrEmpty()) + { + var predicates = input.SearchSymbols.Select(s => + (Expression>)(o => o.Token.Symbol == s || o.Token.CollectionSymbol == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + if (!input.Search.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Token.Symbol == input.Search || o.Address == input.Search); + } + + if (!input.FuzzySearch.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Token.LowerCaseSymbol.Contains(input.FuzzySearch) + || o.LowerCaseAddress.Contains(input.FuzzySearch)); + } + + + queryable = QueryableExtensions.AccountTokenSort(queryable, input); + + if (input.AmountGreaterThanZero != null && input.AmountGreaterThanZero.Value) + { + queryable = queryable.Where(o => o.Amount > 0); + } + + + var totalCount = await QueryableExtensions.CountAsync(queryable); + var result = queryable.Skip(input.SkipCount) + .Take(input.MaxResultCount).ToList(); + return new AccountTokenPageResultDto + { + TotalCount = totalCount, + Items = objectMapper.Map, List>(result) + }; + } + + public static async Task TransferInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetTransferDto input) + { + input.Validate(); + + var queryable = await repository.GetQueryableAsync(); + if (input.BeginBlockTime != null) + { + queryable = queryable.Where(o => o.Metadata.Block.BlockTime > input.BeginBlockTime); + } + + if (!input.ChainId.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId); + } + + if (!input.Address.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.From == input.Address || o.To == input.Address); + } + + if (!input.From.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.From == input.From); + } + + if (!input.To.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.From == input.From); + } + + if (!input.Symbol.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Token.Symbol == input.Symbol); + } + + if (!input.CollectionSymbol.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Token.CollectionSymbol == input.CollectionSymbol); + } + + if (!input.TransactionId.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.TransactionId == input.TransactionId); + } + + if (!input.Search.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.TransactionId == input.Search || o.From == input.Search || + o.To == input.Search + || o.Token.Symbol == input.Search); + } + + if (!input.FuzzySearch.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.TransactionId.Contains(input.FuzzySearch) || + o.LowerCaseFrom.Contains(input.FuzzySearch) || + o.LowerCaseTo.Contains(input.FuzzySearch) + || o.Token.LowerCaseSymbol.Contains(input.FuzzySearch)); + } + + if (!input.Types.IsNullOrEmpty()) + { + var predicates = input.Types.Select(s => + (Expression>)(o => o.Token.Type == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + //add order by + queryable = QueryableExtensions.TransferInfoSort(queryable, input); + + var totalCount = await QueryableExtensions.CountAsync(queryable); + var result = queryable.Skip(input.SkipCount) + .Take(input.MaxResultCount).ToList(); + return new TransferInfoPageResultDto + { + TotalCount = totalCount, + Items = objectMapper.Map, List>(result) + }; + } + + + public static async Task TransferInfoByBlock( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetTransferByBlockDto input) + { + input.Validate(); + var queryable = await repository.GetQueryableAsync(); + queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId); + queryable = queryable.Where(o => o.Metadata.Block.BlockHeight >= input.BeginBlockHeight); + if (input.EndBlockHeight is > 0) + { + queryable = queryable.Where(o => o.Metadata.Block.BlockHeight <= input.EndBlockHeight); + } + + if (!input.SymbolList.IsNullOrEmpty()) + { + var predicates = input.SymbolList.Select(s => + (Expression>)(o => o.Token.Symbol == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + if (!input.FromList.IsNullOrEmpty()) + { + var predicates = input.FromList.Select(s => + (Expression>)(o => o.From == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + if (!input.ToList.IsNullOrEmpty()) + { + var predicates = input.ToList.Select(s => + (Expression>)(o => o.To == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + if (!input.Methods.IsNullOrEmpty()) + { + var predicates = input.Methods.Select(s => + (Expression>)(o => o.Method == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + //add order by + queryable = QueryableExtensions.TransferInfoSort(queryable, input); + + var totalCount = await QueryableExtensions.CountAsync(queryable); + var result = queryable.Skip(input.SkipCount) + .Take(input.MaxResultCount).ToList(); + return new TransferInfoByBlockPageResultDto() + { + TotalCount = totalCount, + Items = objectMapper.Map, List>(result) + }; + } + + public static async Task BlockBurnFeeInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetBlockBurnFeeDto input) + { + var queryable = await repository.GetQueryableAsync(); + var rangeLimit = 100; + if (input.EndBlockHeight > input.BeginBlockHeight + rangeLimit) + { + throw new ArgumentOutOfRangeException( + $"Max block range limit for block height is {rangeLimit}."); + } + + queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId); + queryable = queryable.Where(o => o.BlockHeight >= input.BeginBlockHeight); + queryable = queryable.Where(o => o.BlockHeight <= input.EndBlockHeight); + queryable = queryable.Where(o => o.Symbol == TokenAppConstants.BaseTokenSymbol); + var result = queryable.ToList(); + return new BlockBurnFeeListDto + { + Items = objectMapper.Map, List>(result) + }; + } + + + public static async Task AccountCollection( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetAccountCollectionDto input) + { + input.Validate(); + + var queryable = await repository.GetQueryableAsync(); + + if (!input.ChainId.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Metadata.ChainId == input.ChainId); + } + + if (!input.Address.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Address == input.Address); + } + + if (!input.AddressList.IsNullOrEmpty()) + { + var predicates = input.AddressList.Select(s => + (Expression>)(o => o.Address == s)); + var predicate = predicates.Aggregate((prev, next) => prev.Or(next)); + queryable = queryable.Where(predicate); + } + + if (!input.Symbol.IsNullOrWhiteSpace()) + { + queryable = queryable.Where(o => o.Token.Symbol == input.Symbol); + } + + if (input.AmountGreaterThanZero != null && input.AmountGreaterThanZero.Value) + { + queryable = queryable.Where(o => o.FormatAmount > 0); + } + queryable = QueryableExtensions.AccountCollectionSort(queryable, input); + + var totalCount = await QueryableExtensions.CountAsync(queryable); + var result = queryable.Skip(input.SkipCount) + .Take(input.MaxResultCount).ToList(); + return new AccountCollectionPageResultDto() + { + TotalCount = totalCount, + Items = objectMapper.Map, List>(result) + }; + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/QueryableExtensions.cs b/src/AElfScan.TokenApp/GraphQL/QueryableExtensions.cs new file mode 100644 index 0000000..684d08d --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/QueryableExtensions.cs @@ -0,0 +1,117 @@ +using System.Linq.Expressions; +using AElfScan.TokenApp.Entities; + +namespace AElfScan.TokenApp.GraphQL; + +public class QueryableExtensions +{ + public static Task CountAsync(IQueryable query) + { + return Task.Run(query.Count); + } + + public static IQueryable TokenInfoSort(IQueryable queryable, GetTokenInfoDto input) + { + return ApplySortingAndPaging(queryable, input.GetAdaptableOrderInfos(), input.SearchAfter); + } + + public static IQueryable TransferInfoSort(IQueryable queryable, GetTransferDto input) + { + return ApplySortingAndPaging(queryable, input.GetAdaptableOrderInfos(), input.SearchAfter); + } + + public static IQueryable TransferInfoSort(IQueryable queryable, GetTransferByBlockDto input) + { + return ApplySortingAndPaging(queryable, input.GetAdaptableOrderInfos(), input.SearchAfter); + } + + public static IQueryable AccountTokenSort(IQueryable queryable, + GetAccountTokenDto input) + { + return ApplySortingAndPaging(queryable, input.GetAdaptableOrderInfos(), input.SearchAfter); + } + + public static IQueryable AccountCollectionSort(IQueryable queryable, + GetAccountCollectionDto input) + { + return ApplySortingAndPaging(queryable, input.GetAdaptableOrderInfos(), input.SearchAfter); + } + + private static IQueryable ApplySortingAndPaging(IQueryable queryable, List orderInfos, + List searchAfter) + { + if (!orderInfos.IsNullOrEmpty()) + { + foreach (var orderInfo in orderInfos) + { + queryable = AddSort(queryable, orderInfo.OrderBy, orderInfo.Sort); + } + } + + if (searchAfter != null && searchAfter.Any()) + { + queryable = queryable.After(searchAfter.Cast().ToArray()); + } + + return queryable; + } + + private static IQueryable AddSort(IQueryable queryable, string orderBy, string sort) + { + var parameter = Expression.Parameter(typeof(T), "o"); + Expression property = null; + switch (orderBy) + { + case "Id": + property = GetNestedPropertyExpression(parameter, "Id"); + break; + case "BlockTime": + property = GetNestedPropertyExpression(parameter, "Metadata.Block.BlockTime"); + break; + case "BlockHeight": + property = GetNestedPropertyExpression(parameter, "Metadata.Block.BlockHeight"); + break; + case "HolderCount": + property = GetNestedPropertyExpression(parameter, "HolderCount"); + break; + case "TransferCount": + property = GetNestedPropertyExpression(parameter, "TransferCount"); + break; + case "Symbol": + property = GetNestedPropertyExpression(parameter, typeof(T) != typeof(TokenInfo) ? "Token.Symbol" : "Symbol"); + break; + case "FormatAmount": + property = GetNestedPropertyExpression(parameter, "FormatAmount"); + break; + case "Address": + property = GetNestedPropertyExpression(parameter, "Address"); + break; + case "TransactionId": + property = GetNestedPropertyExpression(parameter, "TransactionId"); + break; + case "ChainId": + property = GetNestedPropertyExpression(parameter, "Metadata.ChainId"); + break; + default: + throw new Exception("Invalid order by field"); + } + + var lambda = Expression.Lambda(property, parameter); + string methodName = sort == SortType.Asc.ToString() ? "OrderBy" : "OrderByDescending"; + var resultExpression = Expression.Call(typeof(Queryable), methodName, new Type[] { typeof(T), property.Type }, + queryable.Expression, Expression.Quote(lambda)); + + return queryable.Provider.CreateQuery(resultExpression); + } + + private static Expression GetNestedPropertyExpression(Expression parameter, string propertyPath) + { + var properties = propertyPath.Split('.'); + Expression property = parameter; + foreach (var prop in properties) + { + property = Expression.Property(property, prop); + } + return property; + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/TokenAppSchema.cs b/src/AElfScan.TokenApp/GraphQL/TokenAppSchema.cs new file mode 100644 index 0000000..226bea7 --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/TokenAppSchema.cs @@ -0,0 +1,10 @@ +using AeFinder.Sdk; + +namespace AElfScan.TokenApp.GraphQL; + +public class TokenAppSchema : AppSchema +{ + public TokenAppSchema(IServiceProvider serviceProvider) : base(serviceProvider) + { + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/TokenBaseDto.cs b/src/AElfScan.TokenApp/GraphQL/TokenBaseDto.cs new file mode 100644 index 0000000..29cba7a --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/TokenBaseDto.cs @@ -0,0 +1,12 @@ +using AeFinder.Sdk.Dtos; +using AElfScan.TokenApp.Entities; + +namespace AElfScan.TokenApp.GraphQL; + +public class TokenBaseDto : AeFinderEntityDto +{ + public string Symbol { get; set; } + public string CollectionSymbol { get; set; } + public SymbolType Type { get; set; } + public int Decimals { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/GraphQL/TokenInfoDto.cs b/src/AElfScan.TokenApp/GraphQL/TokenInfoDto.cs new file mode 100644 index 0000000..f0fe595 --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/TokenInfoDto.cs @@ -0,0 +1,35 @@ +using AElfScan.TokenApp.Entities; + +namespace AElfScan.TokenApp.GraphQL; + +public class TokenInfoDto : TokenBaseDto +{ + public string TokenName { get; set; } + public long TotalSupply { get; set; } + public long Supply { get; set; } + public long Issued { get; set; } + public string Issuer { get; set; } + public string Owner { get; set; } + public bool IsPrimaryToken { get; set; } + public bool IsBurnable { get; set; } + public string IssueChainId { get; set; } + public List ExternalInfo { get; set; } = new(); + public long HolderCount { get; set; } + public long TransferCount { get; set; } + + public SymbolType Type { get; set; } + + public decimal ItemCount { get; set; } +} + +public class TokenExternalInfoDto +{ + public string Key { get; set; } + public string Value { get; set; } +} + +public class TokenInfoPageResultDto +{ + public long TotalCount { get; set; } + public List Items { get; set; } +} diff --git a/src/AElfScan.TokenApp/GraphQL/TransferInfoDto.cs b/src/AElfScan.TokenApp/GraphQL/TransferInfoDto.cs new file mode 100644 index 0000000..a6699f8 --- /dev/null +++ b/src/AElfScan.TokenApp/GraphQL/TransferInfoDto.cs @@ -0,0 +1,40 @@ +using AeFinder.Sdk.Dtos; + +namespace AElfScan.TokenApp.GraphQL; + +public class TransferInfoDto : AeFinderEntityDto +{ + public string TransactionId { get; set; } + public string From { get; set; } + public string To { get; set; } + public string Method { get; set; } + public long Amount { get; set; } + public decimal FormatAmount { get; set; } + public TokenBaseDto Token { get; set; } + public string Memo { get; set; } + public string FromChainId { get; set; } + public string ToChainId { get; set; } + public string IssueChainId { get; set; } + public long ParentChainHeight { get; set; } + public string TransferTransactionId { get; set; } + public string Status { get; set; } + public List ExtraProperties { get; set; } = new(); +} + +public class ExtraProperty +{ + public string Key { get; set; } + public string Value { get; set; } +} + +public class TransferInfoPageResultDto +{ + public long TotalCount { get; set; } + public List Items { get; set; } +} + +public class TransferInfoByBlockPageResultDto +{ + public long TotalCount { get; set; } + public List Items { get; set; } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Helper/DateHepler.cs b/src/AElfScan.TokenApp/Helper/DateHepler.cs new file mode 100644 index 0000000..e76b5aa --- /dev/null +++ b/src/AElfScan.TokenApp/Helper/DateHepler.cs @@ -0,0 +1,15 @@ +using System.Globalization; + +namespace AElfScan.TokenApp.Helper; + +public static class DateTimeHelper +{ + public static string GetBeforeDate(DateTime date) + { + date = new DateTime(date.Year, date.Month, date.Day); + + var days = date.AddDays(-1); + + return days.ToString("yyyy-MM-dd"); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/IInitialBalanceProvider.cs b/src/AElfScan.TokenApp/IInitialBalanceProvider.cs new file mode 100644 index 0000000..e720ec8 --- /dev/null +++ b/src/AElfScan.TokenApp/IInitialBalanceProvider.cs @@ -0,0 +1,33 @@ + +namespace AElfScan.TokenApp; + +public interface IInitialBalanceProvider +{ + List GetInitialBalances(string chainId, long blockHeight); +} + +public class InitialBalanceProvider : IInitialBalanceProvider +{ + public readonly Dictionary>> _initialBalances = new(); + + public InitialBalanceProvider() + { + InitBalance(); + } + + public List GetInitialBalances(string chainId, long blockHeight) + { + if (_initialBalances.TryGetValue(chainId, out var chainBalances) && + chainBalances.TryGetValue(blockHeight, out var balances)) + { + return balances; + } + + return new List(); + } + + private void InitBalance() + { + + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/ITokenContractAddressProvider.cs b/src/AElfScan.TokenApp/ITokenContractAddressProvider.cs new file mode 100644 index 0000000..5f24c0e --- /dev/null +++ b/src/AElfScan.TokenApp/ITokenContractAddressProvider.cs @@ -0,0 +1,17 @@ + +namespace AElfScan.TokenApp; + +public interface ITokenContractAddressProvider +{ + string GetContractAddress(string chainId); +} + +public class TokenContractAddressProvider : ITokenContractAddressProvider +{ + private readonly Dictionary _contractAddresses = TokenAppConstants.ContractAddresses; + + public string GetContractAddress(string chainId) + { + return _contractAddresses[chainId]; + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/IdGenerateHelper.cs b/src/AElfScan.TokenApp/IdGenerateHelper.cs new file mode 100644 index 0000000..ee23e1f --- /dev/null +++ b/src/AElfScan.TokenApp/IdGenerateHelper.cs @@ -0,0 +1,9 @@ +namespace AElfScan.TokenApp; + +public static class IdGenerateHelper +{ + public static string GetId(params object[] inputs) + { + return inputs.JoinAsString("-"); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/IndexerMapperBase.cs b/src/AElfScan.TokenApp/IndexerMapperBase.cs new file mode 100644 index 0000000..5d3cc6c --- /dev/null +++ b/src/AElfScan.TokenApp/IndexerMapperBase.cs @@ -0,0 +1,33 @@ +using AutoMapper; + +namespace AElfScan.TokenApp; + +public class IndexerMapperBase : Profile +{ + + protected static string MapLowerCaseString(string value) + { + return value?.ToLower(); + } + + + protected static string MapHash(AElf.Types.Hash hash) + { + return hash?.ToHex(); + } + + protected static string MapAddress(AElf.Types.Address address) + { + return address?.ToBase58(); + } + + protected static string MapLowerCaseAddress(AElf.Types.Address address) + { + return address?.ToBase58().ToLower(); + } + + protected static DateTime? MapDateTime(Google.Protobuf.WellKnownTypes.Timestamp timestamp) + { + return timestamp?.ToDateTime(); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/BlockProcessor.cs b/src/AElfScan.TokenApp/Processors/BlockProcessor.cs new file mode 100644 index 0000000..1fb24c2 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/BlockProcessor.cs @@ -0,0 +1,174 @@ +using AeFinder.Sdk; +using AeFinder.Sdk.Processor; +using AElfScan.TokenApp.Entities; +using AElf.Contracts.MultiToken; +using Volo.Abp.ObjectMapping; +using TokenInfo = AElfScan.TokenApp.Entities.TokenInfo; + +namespace AElfScan.TokenApp.Processors; + +public class BlockProcessor : BlockProcessorBase +{ + private readonly IInitialBalanceProvider _initialBalanceProvider; + private readonly IBlockChainService _blockChainService; + private readonly ITokenContractAddressProvider _tokenContractAddressProvider; + private readonly IObjectMapper _objectMapper; + + public BlockProcessor(IInitialBalanceProvider initialBalanceProvider, IBlockChainService blockChainService, + ITokenContractAddressProvider tokenContractAddressProvider, IObjectMapper objectMapper) + { + _initialBalanceProvider = initialBalanceProvider; + _blockChainService = blockChainService; + _tokenContractAddressProvider = tokenContractAddressProvider; + _objectMapper = objectMapper; + } + + public override async Task ProcessAsync(Block block, BlockContext context) + { + await ProcessInitialBalanceAsync(block, context); + } + + private async Task ProcessInitialBalanceAsync(Block block, BlockContext context) + { + if (!TokenAppConstants.InitialBalanceEndHeight.TryGetValue(context.ChainId, out var height) || + block.BlockHeight > height) + { + return; + } + + var balances = _initialBalanceProvider.GetInitialBalances(context.ChainId, block.BlockHeight); + + foreach (var balance in balances) + { + var initialBalance = balance.Split(','); + var address = initialBalance[0]; + var symbol = initialBalance[1]; + var amount = long.Parse(initialBalance[2]); + + var token = await GetTokenAsync(context, symbol); + var id = IdGenerateHelper.GetId(context.ChainId, address, symbol); + var accountToken = await GetEntityAsync(id); + if (accountToken == null) + { + accountToken = new AccountToken + { + Id = id, + Token = _objectMapper.Map(token), + Address = address, + LowerCaseAddress = address.ToLower() + }; + } + + var firstInitAccountToken = accountToken.Amount == 0; + var changeAmount = amount - accountToken.Amount; + + accountToken.Amount = amount; + accountToken.FormatAmount = accountToken.Amount / (decimal)Math.Pow(10, accountToken.Token.Decimals); + + await SaveEntityAsync(accountToken); + if (token.Type == SymbolType.Nft) + { + await ChangeCollectionBalanceAndChangeHoldingCountAsync(context,TokenSymbolHelper.GetCollectionSymbol(symbol),address,changeAmount / (decimal)Math.Pow(10, accountToken.Token.Decimals)); + } + if (!firstInitAccountToken) + continue; + + if(token.Type == SymbolType.NftCollection) + { + continue; + } + await IncreaseHolderCountAsync(context, token); + var accountId = IdGenerateHelper.GetId(context.ChainId, address); + var accountInfo = await GetEntityAsync(accountId); + if (accountInfo == null) + { + accountInfo = new AccountInfo + { + Id = IdGenerateHelper.GetId(context.ChainId, address), + Address = address + }; + } + + accountInfo.TokenHoldingCount += 1; + await SaveEntityAsync(accountInfo); + } + } + + private async Task ChangeCollectionBalanceAndChangeHoldingCountAsync(BlockContext context, string symbol, string address, + decimal amount) + { + + decimal originalBalance = 0; + var accountTokenId = IdGenerateHelper.GetId(context.ChainId, address, symbol); + var accountToken = await GetEntityAsync(accountTokenId); + var token = await GetTokenAsync(context, symbol); + if (accountToken == null) + { + accountToken = new AccountCollection() + { + Id = accountTokenId, + Address = address, + Token = _objectMapper.Map(token), + LowerCaseAddress = address.ToLower(), + FormatAmount = amount + }; + } + else + { + originalBalance = accountToken.FormatAmount; + accountToken.FormatAmount += amount ; + } + await SaveEntityAsync(accountToken); + switch (originalBalance) + { + case 0 when accountToken.FormatAmount > 0: + await IncreaseHolderCountAsync(context, token); + break; + } + + } + + private async Task GetTokenAsync(BlockContext context, string symbol) + { + List InitSymbolList = new() + { + "ELF","SHARE","VOTE","CPU","WRITE","READ","NET","RAM","DISK","STORAGE","TRAFFIC" + }; + var tokenId = IdGenerateHelper.GetId(context.ChainId, symbol); + var token = await GetEntityAsync(tokenId); + if (token == null) + { + var tokenFromChain = await _blockChainService.ViewContractAsync(context.ChainId, + _tokenContractAddressProvider.GetContractAddress(context.ChainId), "GetTokenInfo", + new GetTokenInfoInput + { + Symbol = symbol + }); + token = new Entities.TokenInfo + { + Id = tokenId, + Supply = InitSymbolList.Contains(symbol) && context.ChainId == "AELF" ? tokenFromChain.TotalSupply : 0, + TotalSupply = tokenFromChain.TotalSupply, + Symbol = symbol, + LowerCaseSymbol = symbol.ToLower(), + Decimals = tokenFromChain.Decimals, + TokenName = tokenFromChain.TokenName, + LowerCaseTokenName = tokenFromChain.TokenName.ToLower(), + Issuer = tokenFromChain.Issuer?.ToBase58(), + Owner = tokenFromChain.Owner?.ToBase58(), + Type = TokenSymbolHelper.GetSymbolType(symbol), + CollectionSymbol = TokenSymbolHelper.GetCollectionSymbol(symbol), + ExternalInfo = tokenFromChain.ExternalInfo?.Value?.ToDictionary(o => o.Key, o => o.Value) + }; + await SaveEntityAsync(token); + } + + return token; + } + + protected async Task IncreaseHolderCountAsync(BlockContext context, Entities.TokenInfo tokenInfo, bool ignoreCollection = true) + { + tokenInfo.HolderCount += 1; + await SaveEntityAsync(tokenInfo); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/BurnedProcessor.cs b/src/AElfScan.TokenApp/Processors/BurnedProcessor.cs new file mode 100644 index 0000000..e49c952 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/BurnedProcessor.cs @@ -0,0 +1,53 @@ +using AeFinder.Sdk.Processor; +using AElfScan.TokenApp.Entities; +using AElf.Contracts.MultiToken; + +namespace AElfScan.TokenApp.Processors; + +public class BurnedProcessor : TokenProcessorBase +{ + public override async Task ProcessAsync(Burned logEvent, LogEventContext context) + { + var token = await GetTokenAsync(context.ChainId, logEvent.Symbol); + token.Supply -= logEvent.Amount; + await SaveEntityAsync(token); + await ChangeCollectionItemCountAsync(context, token, -logEvent.Amount); + + var transfer = new TransferInfo(); + ObjectMapper.Map(logEvent, transfer); + transfer.Method = "Burn"; + transfer.Token = ObjectMapper.Map(token); + transfer.From = logEvent.Burner.ToBase58(); + if (context.Transaction.MethodName != "CrossChainTransfer") + { + await AddTransferAsync(transfer, context); + await IncreaseTokenInfoTransferCountAsync(context, logEvent.Symbol); + await IncreaseAccountTransferCountAsync(context, logEvent.Burner.ToBase58(), logEvent.Symbol); + } + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.Burner.ToBase58(), -logEvent.Amount); + await SaveBurnFeeAsync(context, logEvent); + } + + private async Task SaveBurnFeeAsync(LogEventContext context,Burned burned) + { + if(TokenSymbolHelper.GetSymbolType(burned.Symbol) == SymbolType.Nft && + "SEED-0".Equals(TokenSymbolHelper.GetCollectionSymbol(burned.Symbol))) + { + return; + } + if (TokenAppConstants.AddressListMap.TryGetValue(context.ChainId, out var addressList) && addressList.Contains(burned.Burner.ToBase58())) + { + var burnFeeInfoId= IdGenerateHelper.GetId(context.ChainId, context.Block.BlockHeight,burned.Symbol); + var burnFeeInfo = await GetEntityAsync(burnFeeInfoId); + if (burnFeeInfo == null) + { + burnFeeInfo = new BlockBurnFeeInfo(); + burnFeeInfo.Id = burnFeeInfoId; + burnFeeInfo.Symbol = burned.Symbol; + } + burnFeeInfo.Amount += burned.Amount; + burnFeeInfo.BlockHeight = context.Block.BlockHeight; + await SaveEntityAsync(burnFeeInfo); + } + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/ChainPrimaryTokenSymbolSetProcessor.cs b/src/AElfScan.TokenApp/Processors/ChainPrimaryTokenSymbolSetProcessor.cs new file mode 100644 index 0000000..d2787bd --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/ChainPrimaryTokenSymbolSetProcessor.cs @@ -0,0 +1,14 @@ +using AeFinder.Sdk.Processor; +using AElf.Contracts.MultiToken; + +namespace AElfScan.TokenApp.Processors; + +public class ChainPrimaryTokenSymbolSetProcessor : TokenProcessorBase +{ + public override async Task ProcessAsync(ChainPrimaryTokenSymbolSet logEvent, LogEventContext context) + { + var token = await GetTokenAsync(context.ChainId, logEvent.TokenSymbol); + token.IsPrimaryToken = true; + await SaveEntityAsync(token); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/CrossChainReceivedProcessor.cs b/src/AElfScan.TokenApp/Processors/CrossChainReceivedProcessor.cs new file mode 100644 index 0000000..73bb600 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/CrossChainReceivedProcessor.cs @@ -0,0 +1,73 @@ +using AeFinder.Sdk; +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElfScan.TokenApp.Entities; +using AElf.Contracts.MultiToken; +using Microsoft.Extensions.Logging; + +namespace AElfScan.TokenApp.Processors; + +public class CrossChainReceivedProcessor : TokenProcessorBase +{ + private readonly IBlockChainService _blockChainService; + public CrossChainReceivedProcessor(IBlockChainService blockChainService) + { + _blockChainService = blockChainService; + } + public override async Task ProcessAsync(CrossChainReceived logEvent, LogEventContext context) + { + var token = await GetTokenAsync(context.ChainId, logEvent.Symbol); + if (token == null) + { + var tokenInfo = await _blockChainService.ViewContractAsync( + context.ChainId, GetContractAddress(context.ChainId), + "GetTokenInfo", new GetTokenInfoInput + { + Symbol = logEvent.Symbol + }); + token = new Entities.TokenInfo + { + Id = IdGenerateHelper.GetId(context.ChainId, + logEvent.Symbol), + Type = TokenSymbolHelper.GetSymbolType(logEvent.Symbol), + CollectionSymbol = TokenSymbolHelper.GetCollectionSymbol(logEvent.Symbol), + Symbol = tokenInfo.Symbol, + LowerCaseSymbol = tokenInfo.Symbol.ToLower(), + Decimals = tokenInfo.Decimals, + TokenName = tokenInfo.TokenName, + TotalSupply = tokenInfo.TotalSupply, + Supply = 0, + Issued = tokenInfo.Issued, + Issuer = tokenInfo.Issuer?.ToBase58(), + Owner = tokenInfo.Owner?.ToBase58(), + IsBurnable = tokenInfo.IsBurnable, + IssueChainId = tokenInfo.IssueChainId.ToString(), + ExternalInfo = tokenInfo.ExternalInfo?.Value?.ToDictionary(o => o.Key, o => o.Value) + }; + + if (token.Owner.IsNullOrWhiteSpace()) + { + token.Owner = token.Issuer; + } + + if (!token.TokenName.IsNullOrWhiteSpace()) + { + token.LowerCaseTokenName = token.TokenName.ToLower(); + } + } + token.Supply += logEvent.Amount; + await SaveEntityAsync(token); + await ChangeCollectionItemCountAsync(context, token, logEvent.Amount); + + var transfer = new TransferInfo(); + ObjectMapper.Map(logEvent, transfer); + transfer.Method = "CrossChainReceive"; + transfer.Token = ObjectMapper.Map(token); + transfer.ToChainId = context.ChainId; + await AddTransferAsync(transfer, context); + + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.To.ToBase58(), logEvent.Amount); + await IncreaseTokenInfoTransferCountAsync(context, logEvent.Symbol); + await IncreaseAccountTransferCountAsync(context, logEvent.To.ToBase58(), logEvent.Symbol); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/CrossChainTransferredProcessor.cs b/src/AElfScan.TokenApp/Processors/CrossChainTransferredProcessor.cs new file mode 100644 index 0000000..b5c5203 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/CrossChainTransferredProcessor.cs @@ -0,0 +1,22 @@ +using AeFinder.Sdk.Processor; +using AElfScan.TokenApp.Entities; +using AElf.Contracts.MultiToken; + +namespace AElfScan.TokenApp.Processors; + +public class CrossChainTransferredProcessor : TokenProcessorBase +{ + public override async Task ProcessAsync(CrossChainTransferred logEvent, LogEventContext context) + { + var token = await GetTokenAsync(context.ChainId, logEvent.Symbol); + var transfer = new TransferInfo(); + ObjectMapper.Map(logEvent, transfer); + transfer.Method = "CrossChainTransfer"; + transfer.Token = ObjectMapper.Map(token); + transfer.FromChainId = context.ChainId; + await AddTransferAsync(transfer, context); + + await IncreaseTokenInfoTransferCountAsync(context, logEvent.Symbol); + await IncreaseAccountTransferCountAsync(context, logEvent.From.ToBase58(), logEvent.Symbol); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/IssuedProcessor.cs b/src/AElfScan.TokenApp/Processors/IssuedProcessor.cs new file mode 100644 index 0000000..0c37fd7 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/IssuedProcessor.cs @@ -0,0 +1,30 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElfScan.TokenApp.Entities; +using AElf.Contracts.MultiToken; +using Newtonsoft.Json; + +namespace AElfScan.TokenApp.Processors; + +public class IssuedProcessor : TokenProcessorBase +{ + public override async Task ProcessAsync(Issued logEvent, LogEventContext context) + { + var token = await GetTokenAsync(context.ChainId, logEvent.Symbol); + token.Supply += logEvent.Amount; + token.Issued += logEvent.Amount; + + await SaveEntityAsync(token); + await ChangeCollectionItemCountAsync(context, token, logEvent.Amount); + + var transfer = new TransferInfo(); + ObjectMapper.Map(logEvent, transfer); + transfer.Method = "Issue"; + transfer.Token = ObjectMapper.Map(token); + await AddTransferAsync(transfer, context); + + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.To.ToBase58(), logEvent.Amount); + await IncreaseTokenInfoTransferCountAsync(context, logEvent.Symbol); + await IncreaseAccountTransferCountAsync(context, logEvent.To.ToBase58(), logEvent.Symbol); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/RentalChargedProcessor.cs b/src/AElfScan.TokenApp/Processors/RentalChargedProcessor.cs new file mode 100644 index 0000000..5183d95 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/RentalChargedProcessor.cs @@ -0,0 +1,27 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElf.Contracts.MultiToken; + +namespace AElfScan.TokenApp.Processors; + +public class RentalChargedProcessor : TokenProcessorBase +{ + public override async Task ProcessAsync(RentalCharged logEvent, LogEventContext context) + { + + if (logEvent.Amount == 0) + { + return; + } + + if (logEvent.Payer != null) + { + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.Payer.ToBase58(), -logEvent.Amount); + } + + if (logEvent.Receiver != null) + { + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.Receiver.ToBase58(), logEvent.Amount); + } + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/ResourceTokenClaimedProcessor.cs b/src/AElfScan.TokenApp/Processors/ResourceTokenClaimedProcessor.cs new file mode 100644 index 0000000..3dce217 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/ResourceTokenClaimedProcessor.cs @@ -0,0 +1,20 @@ +using AeFinder.Sdk.Processor; +using AElf.Contracts.MultiToken; + +namespace AElfScan.TokenApp.Processors; + +public class ResourceTokenClaimedProcessor : TokenProcessorBase +{ + public override async Task ProcessAsync(ResourceTokenClaimed logEvent, LogEventContext context) + { + if (logEvent.Payer != null) + { + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.Payer.ToBase58(), -logEvent.Amount); + } + + if (logEvent.Receiver != null) + { + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.Receiver.ToBase58(), logEvent.Amount); + } + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/TokenCreatedProcessor.cs b/src/AElfScan.TokenApp/Processors/TokenCreatedProcessor.cs new file mode 100644 index 0000000..179a980 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/TokenCreatedProcessor.cs @@ -0,0 +1,38 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElf.Contracts.MultiToken; +using Newtonsoft.Json; + +namespace AElfScan.TokenApp.Processors; + +public class TokenCreatedProcessor : TokenProcessorBase +{ + public override async Task ProcessAsync(TokenCreated logEvent, LogEventContext context) + { + var id = IdGenerateHelper.GetId(context.ChainId, logEvent.Symbol); + var token = await GetTokenAsync(context.ChainId, logEvent.Symbol); + if (token == null) + { + token = new Entities.TokenInfo + { + Id = id, + Type = TokenSymbolHelper.GetSymbolType(logEvent.Symbol), + CollectionSymbol = TokenSymbolHelper.GetCollectionSymbol(logEvent.Symbol) + }; + } + + ObjectMapper.Map(logEvent, token); + + if (token.Owner.IsNullOrWhiteSpace()) + { + token.Owner = token.Issuer; + } + + if (!token.TokenName.IsNullOrWhiteSpace()) + { + token.LowerCaseTokenName = token.TokenName.ToLower(); + } + + await SaveEntityAsync(token); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/TokenProcessorBase.cs b/src/AElfScan.TokenApp/Processors/TokenProcessorBase.cs new file mode 100644 index 0000000..8d676eb --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/TokenProcessorBase.cs @@ -0,0 +1,299 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElfScan.TokenApp.Entities; +using AElf.CSharp.Core; +using AElfScan.TokenApp.Helper; +using Newtonsoft.Json; +using Volo.Abp.ObjectMapping; + +namespace AElfScan.TokenApp.Processors; + +public abstract class TokenProcessorBase : LogEventProcessorBase where TEvent : IEvent, new() +{ + protected IObjectMapper ObjectMapper => LazyServiceProvider.LazyGetRequiredService(); + + public ITokenContractAddressProvider ContractAddressProvider { get; set; } + + + public override string GetContractAddress(string chainId) + { + return ContractAddressProvider.GetContractAddress(chainId); + } + + protected async Task GetTokenAsync(string chainId, string symbol) + { + var tokenId = IdGenerateHelper.GetId(chainId, symbol); + return await GetEntityAsync(tokenId); + } + + protected async Task GetAccountInfoAsync(string chainId, string address) + { + var accountId = IdGenerateHelper.GetId(chainId, address); + return await GetEntityAsync(accountId); + } + + protected async Task GetAccountTokenAsync(string chainId, string address, string symbol) + { + var accountTokenId = IdGenerateHelper.GetId(chainId, address, symbol); + return await GetEntityAsync(accountTokenId); + } + + protected async Task IncreaseTokenInfoTransferCountAsync(LogEventContext context, string symbol, + bool ignoreCollection = true) + { + var token = await GetTokenAsync(context.ChainId, symbol); + if (ignoreCollection && token.Type == SymbolType.NftCollection) + { + return; + } + + token.TransferCount += 1; + await SaveEntityAsync(token); + if (token.Type == SymbolType.Nft) + { + await IncreaseTokenInfoTransferCountAsync(context, token.CollectionSymbol, false); + } + } + + protected async Task IncreaseAccountTokenTransferCountAsync(LogEventContext context, string address, string symbol) + { + var accountToken = await GetAccountToken(context, symbol, address); + accountToken.TransferCount += 1; + await SaveEntityAsync(accountToken); + if (accountToken.Token.Type == SymbolType.Nft) + { + var accountCollection = await GetAccountCollection(context, accountToken.Token.CollectionSymbol, address); + accountCollection.TransferCount += 1; + await SaveEntityAsync(accountCollection); + } + } + + protected async Task IncreaseAccountTransferCountAsync(LogEventContext context, string address) + { + var accountInfo = await GetAccountInfoAsync(context.ChainId, address); + if (accountInfo == null) + { + accountInfo = new AccountInfo + { + Id = IdGenerateHelper.GetId(context.ChainId, address), + Address = address + }; + } + + accountInfo.TransferCount += 1; + await SaveEntityAsync(accountInfo); + } + + protected async Task IncreaseAccountTransferCountAsync(LogEventContext context, string address, string symbol) + { + await IncreaseAccountTokenTransferCountAsync(context, address, symbol); + await IncreaseAccountTransferCountAsync(context, address); + } + + protected async Task ChangeTokenInfoHolderCountAsync(LogEventContext context, string symbol, long changeValue) + { + var token = await GetTokenAsync(context.ChainId, symbol); + token.HolderCount += changeValue; + await SaveEntityAsync(token); + } + + protected async Task ChangeAccountHoldingCountAsync(LogEventContext context, string address, long changeValue) + { + var accountInfo = await GetAccountInfoAsync(context.ChainId, address); + if (accountInfo == null) + { + accountInfo = new AccountInfo + { + Id = IdGenerateHelper.GetId(context.ChainId, address), + Address = address + }; + } + + accountInfo.TokenHoldingCount += changeValue; + await SaveEntityAsync(accountInfo); + } + + protected async Task ModifyBalanceAsync(LogEventContext context, string symbol, string address, long amount) + { + await RecordFirstNftInfoAsync(context, symbol, address); + + var beforeDate = DateTimeHelper.GetBeforeDate(context.Block.BlockTime); + if (TokenAppConstants.InitialBalanceEndHeight.TryGetValue(context.ChainId, out var h) && + context.Block.BlockHeight > h) + { + var id = IdGenerateHelper.GetId(context.ChainId, beforeDate); + var beforeData = await GetEntityAsync(id); + var token = await GetTokenAsync(context.ChainId, "ELF"); + if (beforeData == null && token != null) + { + var dailyHolder = new DailyHolderInfo() + { + Id = id, + ChainId = context.ChainId, + Count = token.HolderCount, + DateStr = beforeDate + }; + Logger.LogInformation("Add daily holder:chainId:{c},date:{d},count:{c}", context.ChainId, beforeDate, + token.HolderCount); + + await SaveEntityAsync(dailyHolder); + } + } + + + if (TokenAppConstants.StartProcessBalanceEventHeight.TryGetValue(context.ChainId, out var height) && + context.Block.BlockHeight < height) + { + return; + } + + + await ModifyBalanceAndChangeHoldingCountAsync(context, symbol, address, amount); + } + + private async Task RecordFirstNftInfoAsync(LogEventContext context, string symbol, string address) + { + var token = await GetTokenAsync(context.ChainId, symbol); + if (token?.Type != SymbolType.Nft) + return; + + var accountToken = await GetAccountToken(context, symbol, address); + + if (!accountToken.FirstNftTransactionId.IsNullOrWhiteSpace()) + { + return; + } + + accountToken.FirstNftTransactionId = context.Transaction.TransactionId; + accountToken.FirstNftTime = context.Block.BlockTime; + await SaveEntityAsync(accountToken); + } + + protected async Task GetAccountToken(LogEventContext context, string symbol, string address) + { + var accountTokenId = IdGenerateHelper.GetId(context.ChainId, address, symbol); + var accountToken = await GetEntityAsync(accountTokenId); + if (accountToken == null) + { + var token = await GetTokenAsync(context.ChainId, symbol); + accountToken = new AccountToken + { + Id = accountTokenId, + Address = address, + Token = ObjectMapper.Map(token), + LowerCaseAddress = address.ToLower() + }; + } + + return accountToken; + } + + protected async Task GetAccountCollection(LogEventContext context, string symbol, string address) + { + var accountTokenId = IdGenerateHelper.GetId(context.ChainId, address, symbol); + var accountCollection = await GetEntityAsync(accountTokenId); + if (accountCollection == null) + { + var token = await GetTokenAsync(context.ChainId, symbol); + accountCollection = new AccountCollection + { + Id = accountTokenId, + Address = address, + Token = ObjectMapper.Map(token), + LowerCaseAddress = address.ToLower() + }; + } + + return accountCollection; + } + + private async Task ModifyBalanceAndChangeHoldingCountAsync(LogEventContext context, string symbol, string address, + long amount) + { + var accountToken = await GetAccountToken(context, symbol, address); + var originalBalance = accountToken.Amount; + accountToken.Amount += amount; + accountToken.FormatAmount = accountToken.Amount / (decimal)Math.Pow(10, accountToken.Token.Decimals); + await SaveEntityAsync(accountToken); + if (accountToken.Token.Type == SymbolType.NftCollection) + { + return; + } + + switch (originalBalance) + { + case > 0 when accountToken.Amount == 0: + await ChangeAccountHoldingCountAsync(context, address, -1); + await ChangeTokenInfoHolderCountAsync(context, symbol, -1); + break; + case 0 when accountToken.Amount > 0: + await ChangeAccountHoldingCountAsync(context, address, 1); + await ChangeTokenInfoHolderCountAsync(context, symbol, 1); + break; + } + + if (accountToken.Token.Type == SymbolType.Nft) + { + await ChangeCollectionBalanceAndChangeHoldingCountAsync(context, + TokenSymbolHelper.GetCollectionSymbol(symbol), + address, amount / (decimal)Math.Pow(10, accountToken.Token.Decimals)); + } + } + + private async Task ChangeCollectionBalanceAndChangeHoldingCountAsync(LogEventContext context, string symbol, + string address, + decimal amount) + { + decimal originalBalance = 0; + var accountTokenId = IdGenerateHelper.GetId(context.ChainId, address, symbol); + var accountToken = await GetEntityAsync(accountTokenId); + if (accountToken == null) + { + var token = await GetTokenAsync(context.ChainId, symbol); + accountToken = new AccountCollection() + { + Id = accountTokenId, + Address = address, + Token = ObjectMapper.Map(token), + LowerCaseAddress = address.ToLower(), + FormatAmount = amount + }; + } + else + { + originalBalance = accountToken.FormatAmount; + accountToken.FormatAmount += amount; + } + + await SaveEntityAsync(accountToken); + switch (originalBalance) + { + case > 0 when accountToken.FormatAmount == 0: + await ChangeTokenInfoHolderCountAsync(context, symbol, -1); + break; + case 0 when accountToken.FormatAmount > 0: + await ChangeTokenInfoHolderCountAsync(context, symbol, 1); + break; + } + } + + protected async Task AddTransferAsync(TransferInfo transferInfo, LogEventContext context) + { + transferInfo.Id = Guid.NewGuid().ToString(); + transferInfo.FormatAmount = transferInfo.Amount / (decimal)Math.Pow(10, transferInfo.Token.Decimals); + transferInfo.TransactionId = context.Transaction.TransactionId; + transferInfo.ExtraProperties = context.Transaction.ExtraProperties; + transferInfo.Status = context.Transaction.Status.ToString(); + await SaveEntityAsync(transferInfo); + } + + protected async Task ChangeCollectionItemCountAsync(LogEventContext context, TokenInfo tokenInfo, long changeValue) + { + if (tokenInfo.Type == SymbolType.Nft) + { + var collection = await GetTokenAsync(context.ChainId, tokenInfo.CollectionSymbol); + collection.ItemCount += changeValue / (decimal)Math.Pow(10, tokenInfo.Decimals); + await SaveEntityAsync(collection); + } + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/TransactionFeeChargedProcessor.cs b/src/AElfScan.TokenApp/Processors/TransactionFeeChargedProcessor.cs new file mode 100644 index 0000000..38812f8 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/TransactionFeeChargedProcessor.cs @@ -0,0 +1,16 @@ +using AeFinder.Sdk.Processor; +using AElf.Contracts.MultiToken; + +namespace AElfScan.TokenApp.Processors; + +public class TransactionFeeChargedProcessor : TokenProcessorBase +{ + public override async Task ProcessAsync(TransactionFeeCharged logEvent, LogEventContext context) + { + if (logEvent.ChargingAddress != null) + { + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.ChargingAddress.ToBase58(), + -logEvent.Amount); + } + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/TransactionFeeClaimedProcessor.cs b/src/AElfScan.TokenApp/Processors/TransactionFeeClaimedProcessor.cs new file mode 100644 index 0000000..a87f7bc --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/TransactionFeeClaimedProcessor.cs @@ -0,0 +1,15 @@ +using AeFinder.Sdk.Processor; +using AElf.Contracts.MultiToken; + +namespace AElfScan.TokenApp.Processors; + +public class TransactionFeeClaimedProcessor : TokenProcessorBase +{ + public override async Task ProcessAsync(TransactionFeeClaimed logEvent, LogEventContext context) + { + if (logEvent.Receiver != null) + { + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.Receiver.ToBase58(), logEvent.Amount); + } + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/Processors/TransferredProcessor.cs b/src/AElfScan.TokenApp/Processors/TransferredProcessor.cs new file mode 100644 index 0000000..259cc55 --- /dev/null +++ b/src/AElfScan.TokenApp/Processors/TransferredProcessor.cs @@ -0,0 +1,80 @@ +using AeFinder.Sdk; +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElfScan.TokenApp.Entities; +using AElf.Contracts.MultiToken; +using AutoMapper.Internal.Mappers; + +namespace AElfScan.TokenApp.Processors; + +public class TransferredProcessor : TokenProcessorBase +{ + private readonly IBlockChainService _blockChainService; + public TransferredProcessor(IBlockChainService blockChainService) + { + _blockChainService = blockChainService; + } + public override async Task ProcessAsync(Transferred logEvent, LogEventContext context) + { + var token = await GetTokenAsync(context.ChainId, logEvent.Symbol); + if (token == null) + { + Logger.LogError($"start TransferredProcessor ProcessAsync symbol:{logEvent.Symbol} token is null" ); + var tokenInfo = await _blockChainService.ViewContractAsync( + context.ChainId, GetContractAddress(context.ChainId), + "GetTokenInfo", new GetTokenInfoInput + { + Symbol = logEvent.Symbol + }); + if (tokenInfo.Decimals != 0 || tokenInfo.TotalSupply != 1) + { + return; + } + + token = new Entities.TokenInfo + { + Id = IdGenerateHelper.GetId(context.ChainId, + logEvent.Symbol), + Type = TokenSymbolHelper.GetSymbolType(logEvent.Symbol), + CollectionSymbol = TokenSymbolHelper.GetCollectionSymbol(logEvent.Symbol), + Symbol = tokenInfo.Symbol, + LowerCaseSymbol = tokenInfo.Symbol.ToLower(), + Decimals = tokenInfo.Decimals, + TokenName = tokenInfo.TokenName, + TotalSupply = tokenInfo.TotalSupply, + Supply = logEvent.Amount, + Issued = tokenInfo.Issued, + Issuer = tokenInfo.Issuer?.ToBase58(), + Owner = tokenInfo.Owner?.ToBase58(), + IsBurnable = tokenInfo.IsBurnable, + IssueChainId = tokenInfo.IssueChainId.ToString(), + ExternalInfo = tokenInfo.ExternalInfo?.Value?.ToDictionary(o => o.Key, o => o.Value) + }; + + if (token.Owner.IsNullOrWhiteSpace()) + { + token.Owner = token.Issuer; + } + + if (!token.TokenName.IsNullOrWhiteSpace()) + { + token.LowerCaseTokenName = token.TokenName.ToLower(); + } + } + await SaveEntityAsync(token); + + + var transfer = new TransferInfo(); + ObjectMapper.Map(logEvent, transfer); + transfer.Method = "Transfer"; + transfer.Token = ObjectMapper.Map(token); + await AddTransferAsync(transfer, context); + + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.From.ToBase58(), -logEvent.Amount); + await ModifyBalanceAsync(context, logEvent.Symbol, logEvent.To.ToBase58(), logEvent.Amount); + + await IncreaseTokenInfoTransferCountAsync(context, logEvent.Symbol); + await IncreaseAccountTransferCountAsync(context, logEvent.From.ToBase58(), logEvent.Symbol); + await IncreaseAccountTransferCountAsync(context, logEvent.To.ToBase58(), logEvent.Symbol); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/TokenAppConstants.cs b/src/AElfScan.TokenApp/TokenAppConstants.cs new file mode 100644 index 0000000..10e8e7d --- /dev/null +++ b/src/AElfScan.TokenApp/TokenAppConstants.cs @@ -0,0 +1,44 @@ +namespace AElfScan.TokenApp; + +public class TokenAppConstants +{ + public static string BaseTokenSymbol ="ELF"; + public static Dictionary ContractAddresses = new() + { + { "AELF", "JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE" }, + { "tDVV", "7RzVGiuVWkvL4VfVHdZfQF2Tri3sgLe9U991bohHFfSRZXuGX" } + }; + + public static Dictionary InitialBalanceEndHeight = new Dictionary + { + { "AELF", 4100 }, + { "tDVV", 5500 } + }; + public static Dictionary StartProcessBalanceEventHeight = new Dictionary + { + { "AELF", 193837741 }, + { "tDVV", 182214194 } + }; + // Token Address、Profit Address、TokenConvert Address + public static readonly Dictionary> AddressListMap = new() + { + { + "AELF", new List(){ + "JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE", + "2ZUgaDqWSh4aJ5s5Ker2tRczhJSNep4bVVfrRBRJTRQdMTbA5W", + "SietKh9cArYub9ox6E4rU94LrzPad6TB72rCwe3X1jQ5m1C34" + } + + }, + { + "tDVV",new List(){ + "7RzVGiuVWkvL4VfVHdZfQF2Tri3sgLe9U991bohHFfSRZXuGX", + "2YkY2kjG7dTPJuHcTP3fQyMqat2CMfo7kZoRr7QdejyHHbT4rk" + } + } + }; + public static readonly List SpecialSymbolList = new() + { + "SGR-1" + }; +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/TokenAppMapperProfile.cs b/src/AElfScan.TokenApp/TokenAppMapperProfile.cs new file mode 100644 index 0000000..2423f46 --- /dev/null +++ b/src/AElfScan.TokenApp/TokenAppMapperProfile.cs @@ -0,0 +1,85 @@ +using AElfScan.TokenApp.Entities; +using AElfScan.TokenApp.GraphQL; +using AElf; +using AElf.Contracts.MultiToken; +using AElf.Types; +using AutoMapper; + +namespace AElfScan.TokenApp; + +public class TokenAppMapperProfile : IndexerMapperBase +{ + public TokenAppMapperProfile() + { + // Common + CreateMap().ConvertUsing(s => s == null ? string.Empty : s.ToHex()); + CreateMap().ConvertUsing(s => s == null ? string.Empty : s.ToBase58()); + + // TokenInfo + CreateMap() + .ForMember(d => d.LowerCaseSymbol, + opt => opt.MapFrom(s => MapLowerCaseString(s.Symbol))) + .ForMember(d => d.ExternalInfo, + opt => opt.MapFrom(s => s.ExternalInfo.Value.Where(o => !o.Key.IsNullOrEmpty()).ToDictionary(o => o.Key, o => o.Value))) + .ForMember(d => d.IssueChainId, + opt => opt.MapFrom(s => + s.IssueChainId == 0 ? null : ChainHelper.ConvertChainIdToBase58(s.IssueChainId))); + CreateMap() + .ForMember(d => d.ExternalInfo, + opt => opt.MapFrom(s => s.ExternalInfo == null + ? new List() + : s.ExternalInfo.Select(o => new TokenExternalInfoDto + { + Key = o.Key, + Value = o.Value + }).ToList())); + CreateMap() + .ForMember(d => d.LowerCaseSymbol, + opt => opt.MapFrom(s => MapLowerCaseString(s.Symbol))); + CreateMap(); + + // Transfer + CreateMap() + .ForMember(d => d.LowerCaseFrom, opt => opt.MapFrom(s => MapLowerCaseAddress(s.From))) + .ForMember(d => d.LowerCaseTo, opt => opt.MapFrom(s => MapLowerCaseAddress(s.To))); + CreateMap() + .ForMember(d => d.IssueChainId, + opt => opt.MapFrom(s => + s.IssueChainId == 0 ? null : ChainHelper.ConvertChainIdToBase58(s.IssueChainId))) + .ForMember(d => d.ToChainId, + opt => opt.MapFrom(s => s.ToChainId == 0 ? null : ChainHelper.ConvertChainIdToBase58(s.ToChainId))) + .ForMember(d => d.LowerCaseFrom, opt => opt.MapFrom(s => MapLowerCaseAddress(s.From))) + .ForMember(d => d.LowerCaseTo, opt => opt.MapFrom(s => MapLowerCaseAddress(s.To))); + CreateMap() + .ForMember(d => d.IssueChainId, + opt => opt.MapFrom(s => + s.IssueChainId == 0 ? null : ChainHelper.ConvertChainIdToBase58(s.IssueChainId))) + .ForMember(d => d.FromChainId, + opt => opt.MapFrom(s => s.FromChainId == 0 ? null : ChainHelper.ConvertChainIdToBase58(s.FromChainId))) + .ForMember(d => d.LowerCaseFrom, opt => opt.MapFrom(s => MapLowerCaseAddress(s.From))) + .ForMember(d => d.LowerCaseTo, opt => opt.MapFrom(s => MapLowerCaseAddress(s.To))); + CreateMap() + .ForMember(d => d.ExtraProperties, + opt => opt.MapFrom(s => s.ExtraProperties == null + ? new List() + : s.ExtraProperties.Select(o => new ExtraProperty + { + Key = o.Key, + Value = o.Value + }).ToList())); + CreateMap() + .ForMember(d => d.LowerCaseTo, opt => opt.MapFrom(s => MapLowerCaseAddress(s.To))); + + CreateMap() + .ForMember(d => d.LowerCaseFrom, opt => opt.MapFrom(s => MapLowerCaseAddress(s.Burner))); + + // Account Token + CreateMap(); + + // Account Info + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/TokenAppModule.cs b/src/AElfScan.TokenApp/TokenAppModule.cs new file mode 100644 index 0000000..d2f76ee --- /dev/null +++ b/src/AElfScan.TokenApp/TokenAppModule.cs @@ -0,0 +1,34 @@ +using AeFinder.Sdk.Processor; +using AElfScan.TokenApp.GraphQL; +using AElfScan.TokenApp.Processors; +using GraphQL.Types; +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp.AutoMapper; +using Volo.Abp.Modularity; + +namespace AElfScan.TokenApp; + +public class TokenAppModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + Configure(options => { options.AddMaps(); }); + context.Services.AddSingleton(); + + context.Services.AddSingleton(); + context.Services.AddSingleton(); + + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + } +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/TokenBalanceOptions.cs b/src/AElfScan.TokenApp/TokenBalanceOptions.cs new file mode 100644 index 0000000..384159a --- /dev/null +++ b/src/AElfScan.TokenApp/TokenBalanceOptions.cs @@ -0,0 +1,15 @@ +namespace AElfScan.TokenApp; + +public class TokenBalanceOptions +{ + public Dictionary InitBalances { get; set; } = new(); +} + +public class TokenBalanceOption +{ + public long InitStartHeight { get; set; } + public long InitEndHeight { get; set; } + public long InitIntervalHeight { get; set; } = 100; + public string InitFilePath { get; set; } + public long StartIndexHeight { get; set; } = 1; +} \ No newline at end of file diff --git a/src/AElfScan.TokenApp/TokenSymbolHelper.cs b/src/AElfScan.TokenApp/TokenSymbolHelper.cs new file mode 100644 index 0000000..afde54a --- /dev/null +++ b/src/AElfScan.TokenApp/TokenSymbolHelper.cs @@ -0,0 +1,24 @@ +using AElfScan.TokenApp.Entities; + +namespace AElfScan.TokenApp; + +public class TokenSymbolHelper +{ + public const char NFTSymbolSeparator = '-'; + public const string CollectionSymbolSuffix = "0"; + + public static SymbolType GetSymbolType(string symbol) + { + var words = symbol.Split(NFTSymbolSeparator); + if (words.Length == 1) return SymbolType.Token; + return words[1] == CollectionSymbolSuffix ? SymbolType.NftCollection : SymbolType.Nft; + } + + public static string GetCollectionSymbol(string symbol) + { + var words = symbol.Split(NFTSymbolSeparator); + return words.Length == 1 || words[1] == CollectionSymbolSuffix + ? null + : $"{words[0]}{NFTSymbolSeparator}{CollectionSymbolSuffix}"; + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/AElfScan.TokenApp.Tests.csproj b/test/AElfScan.TokenApp.Tests/AElfScan.TokenApp.Tests.csproj new file mode 100644 index 0000000..442bb86 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/AElfScan.TokenApp.Tests.csproj @@ -0,0 +1,25 @@ + + + + net8.0 + enable + AElfScan.TokenApp + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/test/AElfScan.TokenApp.Tests/AElfScanTokenAppTestModule.cs b/test/AElfScan.TokenApp.Tests/AElfScanTokenAppTestModule.cs new file mode 100644 index 0000000..e44186f --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/AElfScanTokenAppTestModule.cs @@ -0,0 +1,32 @@ + +using AeFinder.App.TestBase; +using AElfScan.TokenApp.Processors; +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp.AutoMapper; +using Volo.Abp.Modularity; + +namespace AElfScan.TokenApp; + +[DependsOn( + typeof(AeFinderAppTestBaseModule), + typeof(TokenAppModule))] +public class AElfScanTokenAppTestModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + Configure(options => { options.AddTypes(); }); + + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + } + +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/AssemblyInfo.cs b/test/AElfScan.TokenApp.Tests/AssemblyInfo.cs new file mode 100644 index 0000000..41a898e --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using Xunit; + +[assembly: CollectionBehavior(DisableTestParallelization = true)] \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Generated/TokenContract.c.cs b/test/AElfScan.TokenApp.Tests/Generated/TokenContract.c.cs new file mode 100644 index 0000000..e387985 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/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/test/AElfScan.TokenApp.Tests/Generated/TokenContract.g.cs b/test/AElfScan.TokenApp.Tests/Generated/TokenContract.g.cs new file mode 100644 index 0000000..53eb1a9 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/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 _parser = new pb::MessageParser(() => new CalculateFeePieceCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeePieceCoefficients() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeePieceCoefficients(CalculateFeePieceCoefficients other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeePieceCoefficients Clone() { + return new CalculateFeePieceCoefficients(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForInt32(10); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + /// + /// Coefficients of one single piece. + /// The first char is its type: liner / power. + /// The second char is its piece upper bound. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CalculateFeePieceCoefficients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CalculateFeePieceCoefficients other) { + if (ReferenceEquals(other, null)) { + return false; + } + 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(CalculateFeePieceCoefficients 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: + case 8: { + 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: + case 8: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CalculateFeeCoefficients : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeeCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeCoefficients() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeCoefficients(CalculateFeeCoefficients other) : this() { + feeTokenType_ = other.feeTokenType_; + pieceCoefficientsList_ = other.pieceCoefficientsList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeCoefficients Clone() { + return new CalculateFeeCoefficients(this); + } + + /// Field number for the "fee_token_type" field. + public const int FeeTokenTypeFieldNumber = 1; + private int feeTokenType_; + /// + /// The resource fee type, like READ, WRITE, etc. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FeeTokenType { + get { return feeTokenType_; } + set { + feeTokenType_ = value; + } + } + + /// Field number for the "piece_coefficients_list" field. + public const int PieceCoefficientsListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_pieceCoefficientsList_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.CalculateFeePieceCoefficients.Parser); + private readonly pbc::RepeatedField pieceCoefficientsList_ = new pbc::RepeatedField(); + /// + /// Coefficients of one single piece. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PieceCoefficientsList { + get { return pieceCoefficientsList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CalculateFeeCoefficients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CalculateFeeCoefficients other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FeeTokenType != other.FeeTokenType) return false; + if(!pieceCoefficientsList_.Equals(other.pieceCoefficientsList_)) 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 (FeeTokenType != 0) hash ^= FeeTokenType.GetHashCode(); + hash ^= pieceCoefficientsList_.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 (FeeTokenType != 0) { + output.WriteRawTag(8); + output.WriteInt32(FeeTokenType); + } + pieceCoefficientsList_.WriteTo(output, _repeated_pieceCoefficientsList_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 (FeeTokenType != 0) { + output.WriteRawTag(8); + output.WriteInt32(FeeTokenType); + } + pieceCoefficientsList_.WriteTo(ref output, _repeated_pieceCoefficientsList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FeeTokenType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FeeTokenType); + } + size += pieceCoefficientsList_.CalculateSize(_repeated_pieceCoefficientsList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CalculateFeeCoefficients other) { + if (other == null) { + return; + } + if (other.FeeTokenType != 0) { + FeeTokenType = other.FeeTokenType; + } + pieceCoefficientsList_.Add(other.pieceCoefficientsList_); + _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: { + FeeTokenType = input.ReadInt32(); + break; + } + case 18: { + pieceCoefficientsList_.AddEntriesFrom(input, _repeated_pieceCoefficientsList_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 8: { + FeeTokenType = input.ReadInt32(); + break; + } + case 18: { + pieceCoefficientsList_.AddEntriesFrom(ref input, _repeated_pieceCoefficientsList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AllCalculateFeeCoefficients : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AllCalculateFeeCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllCalculateFeeCoefficients() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllCalculateFeeCoefficients(AllCalculateFeeCoefficients other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllCalculateFeeCoefficients Clone() { + return new AllCalculateFeeCoefficients(this); + } + + /// 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.CalculateFeeCoefficients.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + /// + /// The coefficients of fee Calculation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AllCalculateFeeCoefficients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AllCalculateFeeCoefficients other) { + if (ReferenceEquals(other, null)) { + return false; + } + 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(AllCalculateFeeCoefficients 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 TotalTransactionFeesMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalTransactionFeesMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalTransactionFeesMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalTransactionFeesMap(TotalTransactionFeesMap other) : this() { + value_ = other.value_.Clone(); + blockHash_ = other.blockHash_ != null ? other.blockHash_.Clone() : null; + blockHeight_ = other.blockHeight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalTransactionFeesMap Clone() { + return new TotalTransactionFeesMap(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.ForInt64(16, 0L), 10); + private readonly pbc::MapField value_ = new pbc::MapField(); + /// + /// Token dictionary that charge transaction fee, Symbol->Amount. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Value { + get { return value_; } + } + + /// Field number for the "block_hash" field. + public const int BlockHashFieldNumber = 2; + private global::AElf.Types.Hash blockHash_; + /// + /// The hash of the block processing the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash BlockHash { + get { return blockHash_; } + set { + blockHash_ = value; + } + } + + /// Field number for the "block_height" field. + public const int BlockHeightFieldNumber = 3; + private long blockHeight_; + /// + /// The height of the block processing the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BlockHeight { + get { return blockHeight_; } + set { + blockHeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TotalTransactionFeesMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TotalTransactionFeesMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Value.Equals(other.Value)) return false; + if (!object.Equals(BlockHash, other.BlockHash)) return false; + if (BlockHeight != other.BlockHeight) 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 (blockHash_ != null) hash ^= BlockHash.GetHashCode(); + if (BlockHeight != 0L) hash ^= BlockHeight.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 (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _map_value_codec); + if (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_map_value_codec); + if (blockHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlockHash); + } + if (BlockHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BlockHeight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TotalTransactionFeesMap other) { + if (other == null) { + return; + } + value_.Add(other.value_); + if (other.blockHash_ != null) { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + BlockHash.MergeFrom(other.BlockHash); + } + if (other.BlockHeight != 0L) { + BlockHeight = other.BlockHeight; + } + _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; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = 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: { + value_.AddEntriesFrom(ref input, _map_value_codec); + break; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TotalResourceTokensMaps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalResourceTokensMaps()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMaps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMaps(TotalResourceTokensMaps other) : this() { + value_ = other.value_.Clone(); + blockHash_ = other.blockHash_ != null ? other.blockHash_.Clone() : null; + blockHeight_ = other.blockHeight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMaps Clone() { + return new TotalResourceTokensMaps(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.ContractTotalResourceTokens.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + /// + /// Resource tokens to charge. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + /// Field number for the "block_hash" field. + public const int BlockHashFieldNumber = 2; + private global::AElf.Types.Hash blockHash_; + /// + /// The hash of the block processing the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash BlockHash { + get { return blockHash_; } + set { + blockHash_ = value; + } + } + + /// Field number for the "block_height" field. + public const int BlockHeightFieldNumber = 3; + private long blockHeight_; + /// + /// The height of the block processing the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BlockHeight { + get { return blockHeight_; } + set { + blockHeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TotalResourceTokensMaps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TotalResourceTokensMaps other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + if (!object.Equals(BlockHash, other.BlockHash)) return false; + if (BlockHeight != other.BlockHeight) 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 (blockHash_ != null) hash ^= BlockHash.GetHashCode(); + if (BlockHeight != 0L) hash ^= BlockHeight.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 (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (blockHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlockHash); + } + if (BlockHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BlockHeight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TotalResourceTokensMaps other) { + if (other == null) { + return; + } + value_.Add(other.value_); + if (other.blockHash_ != null) { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + BlockHash.MergeFrom(other.BlockHash); + } + if (other.BlockHeight != 0L) { + BlockHeight = other.BlockHeight; + } + _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; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = 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: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ContractTotalResourceTokens : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractTotalResourceTokens()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContractTotalResourceTokens() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContractTotalResourceTokens(ContractTotalResourceTokens other) : this() { + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + tokensMap_ = other.tokensMap_ != null ? other.tokensMap_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContractTotalResourceTokens Clone() { + return new ContractTotalResourceTokens(this); + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 1; + private global::AElf.Types.Address contractAddress_; + /// + /// The contract address. + /// + [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 "tokens_map" field. + public const int TokensMapFieldNumber = 2; + private global::AElf.Contracts.MultiToken.TotalResourceTokensMap tokensMap_; + /// + /// Resource tokens to charge. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.TotalResourceTokensMap TokensMap { + get { return tokensMap_; } + set { + tokensMap_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ContractTotalResourceTokens); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ContractTotalResourceTokens other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (!object.Equals(TokensMap, other.TokensMap)) 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 (tokensMap_ != null) hash ^= TokensMap.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 (tokensMap_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TokensMap); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (tokensMap_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TokensMap); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (tokensMap_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TokensMap); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ContractTotalResourceTokens other) { + if (other == null) { + return; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.tokensMap_ != null) { + if (tokensMap_ == null) { + TokensMap = new global::AElf.Contracts.MultiToken.TotalResourceTokensMap(); + } + TokensMap.MergeFrom(other.TokensMap); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + if (tokensMap_ == null) { + TokensMap = new global::AElf.Contracts.MultiToken.TotalResourceTokensMap(); + } + input.ReadMessage(TokensMap); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + if (tokensMap_ == null) { + TokensMap = new global::AElf.Contracts.MultiToken.TotalResourceTokensMap(); + } + input.ReadMessage(TokensMap); + break; + } + } + } + } + #endif + + } + + public sealed partial class TotalResourceTokensMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalResourceTokensMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMap(TotalResourceTokensMap other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalResourceTokensMap Clone() { + return new TotalResourceTokensMap(this); + } + + /// 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.ForInt64(16, 0L), 10); + private readonly pbc::MapField value_ = new pbc::MapField(); + /// + /// Resource token dictionary, Symbol->Amount. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TotalResourceTokensMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TotalResourceTokensMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + 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(TotalResourceTokensMap 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 ChangeTokenIssuerInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeTokenIssuerInput()); + 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[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeTokenIssuerInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeTokenIssuerInput(ChangeTokenIssuerInput other) : this() { + symbol_ = other.symbol_; + newTokenIssuer_ = other.newTokenIssuer_ != null ? other.newTokenIssuer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeTokenIssuerInput Clone() { + return new ChangeTokenIssuerInput(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + 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 "new_token_Issuer" field. + public const int NewTokenIssuerFieldNumber = 2; + private global::AElf.Types.Address newTokenIssuer_; + /// + /// The new token issuer for change. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address NewTokenIssuer { + get { return newTokenIssuer_; } + set { + newTokenIssuer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChangeTokenIssuerInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChangeTokenIssuerInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(NewTokenIssuer, other.NewTokenIssuer)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (newTokenIssuer_ != null) hash ^= NewTokenIssuer.GetHashCode(); + 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 (newTokenIssuer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(NewTokenIssuer); + } + 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 (newTokenIssuer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(NewTokenIssuer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (newTokenIssuer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewTokenIssuer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChangeTokenIssuerInput other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.newTokenIssuer_ != null) { + if (newTokenIssuer_ == null) { + NewTokenIssuer = new global::AElf.Types.Address(); + } + NewTokenIssuer.MergeFrom(other.NewTokenIssuer); + } + _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 (newTokenIssuer_ == null) { + NewTokenIssuer = new global::AElf.Types.Address(); + } + input.ReadMessage(NewTokenIssuer); + 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 (newTokenIssuer_ == null) { + NewTokenIssuer = new global::AElf.Types.Address(); + } + input.ReadMessage(NewTokenIssuer); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResetExternalInfoInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResetExternalInfoInput()); + 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[45]; } + } + + [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 ResetExternalInfoInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResetExternalInfoInput(ResetExternalInfoInput other) : this() { + symbol_ = other.symbol_; + externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResetExternalInfoInput Clone() { + return new ResetExternalInfoInput(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_info" field. + public const int ExternalInfoFieldNumber = 2; + private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResetExternalInfoInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResetExternalInfoInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (_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 (externalInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalInfo); + } + 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 (externalInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (externalInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResetExternalInfoInput other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.externalInfo_ != null) { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + ExternalInfo.MergeFrom(other.ExternalInfo); + } + _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 (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + 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 (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class StringList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[46]; } + } + + [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 StringList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringList(StringList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringList Clone() { + return new StringList(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [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 StringList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StringList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!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(StringList 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 TransactionFeeDelegations : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegations()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[47]; } + } + + [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 TransactionFeeDelegations() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegations(TransactionFeeDelegations other) : this() { + delegations_ = other.delegations_.Clone(); + blockHeight_ = other.blockHeight_; + isUnlimitedDelegate_ = other.isUnlimitedDelegate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegations Clone() { + return new TransactionFeeDelegations(this); + } + + /// Field number for the "delegations" field. + public const int DelegationsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_delegations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10); + private readonly pbc::MapField delegations_ = new pbc::MapField(); + /// + /// delegation, symbols and its' amount + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegations { + get { return delegations_; } + } + + /// Field number for the "block_height" field. + public const int BlockHeightFieldNumber = 2; + private long blockHeight_; + /// + /// height when added + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BlockHeight { + get { return blockHeight_; } + set { + blockHeight_ = value; + } + } + + /// Field number for the "isUnlimitedDelegate" field. + public const int IsUnlimitedDelegateFieldNumber = 3; + private bool isUnlimitedDelegate_; + /// + ///Whether to pay transaction fee continuously + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlimitedDelegate { + get { return isUnlimitedDelegate_; } + set { + isUnlimitedDelegate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegations); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegations other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Delegations.Equals(other.Delegations)) return false; + if (BlockHeight != other.BlockHeight) return false; + if (IsUnlimitedDelegate != other.IsUnlimitedDelegate) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Delegations.GetHashCode(); + if (BlockHeight != 0L) hash ^= BlockHeight.GetHashCode(); + if (IsUnlimitedDelegate != false) hash ^= IsUnlimitedDelegate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + delegations_.WriteTo(output, _map_delegations_codec); + if (BlockHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(BlockHeight); + } + if (IsUnlimitedDelegate != false) { + output.WriteRawTag(24); + output.WriteBool(IsUnlimitedDelegate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegations_.WriteTo(ref output, _map_delegations_codec); + if (BlockHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(BlockHeight); + } + if (IsUnlimitedDelegate != false) { + output.WriteRawTag(24); + output.WriteBool(IsUnlimitedDelegate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += delegations_.CalculateSize(_map_delegations_codec); + if (BlockHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BlockHeight); + } + if (IsUnlimitedDelegate != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegations other) { + if (other == null) { + return; + } + delegations_.Add(other.delegations_); + if (other.BlockHeight != 0L) { + BlockHeight = other.BlockHeight; + } + if (other.IsUnlimitedDelegate != false) { + IsUnlimitedDelegate = other.IsUnlimitedDelegate; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + delegations_.AddEntriesFrom(input, _map_delegations_codec); + break; + } + case 16: { + BlockHeight = input.ReadInt64(); + break; + } + case 24: { + IsUnlimitedDelegate = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegations_.AddEntriesFrom(ref input, _map_delegations_codec); + break; + } + case 16: { + BlockHeight = input.ReadInt64(); + break; + } + case 24: { + IsUnlimitedDelegate = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegatees : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegatees()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[48]; } + } + + [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 TransactionFeeDelegatees() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegatees(TransactionFeeDelegatees other) : this() { + delegatees_ = other.delegatees_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegatees Clone() { + return new TransactionFeeDelegatees(this); + } + + /// Field number for the "delegatees" field. + public const int DelegateesFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_delegatees_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.TransactionFeeDelegations.Parser), 10); + private readonly pbc::MapField delegatees_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegatees { + get { return delegatees_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegatees); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegatees other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Delegatees.Equals(other.Delegatees)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Delegatees.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 + delegatees_.WriteTo(output, _map_delegatees_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegatees_.WriteTo(ref output, _map_delegatees_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += delegatees_.CalculateSize(_map_delegatees_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegatees other) { + if (other == null) { + return; + } + delegatees_.Add(other.delegatees_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + delegatees_.AddEntriesFrom(input, _map_delegatees_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegatees_.AddEntriesFrom(ref input, _map_delegatees_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetTransactionFeeDelegationsInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetTransactionFeeDelegationsInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[49]; } + } + + [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 SetTransactionFeeDelegationsInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsInput(SetTransactionFeeDelegationsInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + delegations_ = other.delegations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsInput Clone() { + return new SetTransactionFeeDelegationsInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + /// + /// the delegator address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + /// Field number for the "delegations" field. + public const int DelegationsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_delegations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 18); + private readonly pbc::MapField delegations_ = new pbc::MapField(); + /// + /// delegation, symbols and its' amount + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegations { + get { return delegations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetTransactionFeeDelegationsInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetTransactionFeeDelegationsInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + if (!Delegations.Equals(other.Delegations)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + hash ^= Delegations.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + delegations_.WriteTo(output, _map_delegations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + delegations_.WriteTo(ref output, _map_delegations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + size += delegations_.CalculateSize(_map_delegations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetTransactionFeeDelegationsInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + delegations_.Add(other.delegations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + delegations_.AddEntriesFrom(input, _map_delegations_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + delegations_.AddEntriesFrom(ref input, _map_delegations_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetTransactionFeeDelegationsOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetTransactionFeeDelegationsOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[50]; } + } + + [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 SetTransactionFeeDelegationsOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsOutput(SetTransactionFeeDelegationsOutput other) : this() { + success_ = other.success_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsOutput Clone() { + return new SetTransactionFeeDelegationsOutput(this); + } + + /// Field number for the "success" field. + public const int SuccessFieldNumber = 1; + private bool success_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Success { + get { return success_; } + set { + success_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetTransactionFeeDelegationsOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetTransactionFeeDelegationsOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Success != other.Success) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Success != false) hash ^= Success.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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetTransactionFeeDelegationsOutput other) { + if (other == null) { + return; + } + if (other.Success != false) { + Success = other.Success; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Success = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Success = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveTransactionFeeDelegatorInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTransactionFeeDelegatorInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[51]; } + } + + [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 RemoveTransactionFeeDelegatorInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInput(RemoveTransactionFeeDelegatorInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInput Clone() { + return new RemoveTransactionFeeDelegatorInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + /// + /// the delegator address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveTransactionFeeDelegatorInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTransactionFeeDelegatorInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveTransactionFeeDelegatorInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveTransactionFeeDelegateeInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTransactionFeeDelegateeInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[52]; } + } + + [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 RemoveTransactionFeeDelegateeInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInput(RemoveTransactionFeeDelegateeInput other) : this() { + delegateeAddress_ = other.delegateeAddress_ != null ? other.delegateeAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInput Clone() { + return new RemoveTransactionFeeDelegateeInput(this); + } + + /// Field number for the "delegatee_address" field. + public const int DelegateeAddressFieldNumber = 1; + private global::AElf.Types.Address delegateeAddress_; + /// + /// the delegatee address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegateeAddress { + get { return delegateeAddress_; } + set { + delegateeAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveTransactionFeeDelegateeInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTransactionFeeDelegateeInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegateeAddress, other.DelegateeAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegateeAddress_ != null) hash ^= DelegateeAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegateeAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateeAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveTransactionFeeDelegateeInput other) { + if (other == null) { + return; + } + if (other.delegateeAddress_ != null) { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + DelegateeAddress.MergeFrom(other.DelegateeAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeDelegationsOfADelegateeInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegationsOfADelegateeInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[53]; } + } + + [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 GetTransactionFeeDelegationsOfADelegateeInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegationsOfADelegateeInput(GetTransactionFeeDelegationsOfADelegateeInput other) : this() { + delegateeAddress_ = other.delegateeAddress_ != null ? other.delegateeAddress_.Clone() : null; + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegationsOfADelegateeInput Clone() { + return new GetTransactionFeeDelegationsOfADelegateeInput(this); + } + + /// Field number for the "delegatee_address" field. + public const int DelegateeAddressFieldNumber = 1; + private global::AElf.Types.Address delegateeAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegateeAddress { + get { return delegateeAddress_; } + set { + delegateeAddress_ = value; + } + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 2; + private global::AElf.Types.Address delegatorAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeDelegationsOfADelegateeInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegationsOfADelegateeInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegateeAddress, other.DelegateeAddress)) return false; + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegateeAddress_ != null) hash ^= DelegateeAddress.GetHashCode(); + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + if (delegatorAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + if (delegatorAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegateeAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateeAddress); + } + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegationsOfADelegateeInput other) { + if (other == null) { + return; + } + if (other.delegateeAddress_ != null) { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + DelegateeAddress.MergeFrom(other.DelegateeAddress); + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 18: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 18: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeDelegateesInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegateesInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[54]; } + } + + [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 GetTransactionFeeDelegateesInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesInput(GetTransactionFeeDelegateesInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesInput Clone() { + return new GetTransactionFeeDelegateesInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeDelegateesInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegateesInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegateesInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeDelegateesOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegateesOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[55]; } + } + + [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 GetTransactionFeeDelegateesOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesOutput(GetTransactionFeeDelegateesOutput other) : this() { + delegateeAddresses_ = other.delegateeAddresses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesOutput Clone() { + return new GetTransactionFeeDelegateesOutput(this); + } + + /// Field number for the "delegatee_addresses" field. + public const int DelegateeAddressesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_delegateeAddresses_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Types.Address.Parser); + private readonly pbc::RepeatedField delegateeAddresses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DelegateeAddresses { + get { return delegateeAddresses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeDelegateesOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegateesOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!delegateeAddresses_.Equals(other.delegateeAddresses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= delegateeAddresses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + delegateeAddresses_.WriteTo(output, _repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegateeAddresses_.WriteTo(ref output, _repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += delegateeAddresses_.CalculateSize(_repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegateesOutput other) { + if (other == null) { + return; + } + delegateeAddresses_.Add(other.delegateeAddresses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + delegateeAddresses_.AddEntriesFrom(input, _repeated_delegateeAddresses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegateeAddresses_.AddEntriesFrom(ref input, _repeated_delegateeAddresses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class Transferred : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Transferred()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[56]; } + } + + [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 Transferred() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Transferred(Transferred other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Transferred Clone() { + return new Transferred(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 2; + private global::AElf.Types.Address to_; + /// + /// The destination address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Transferred); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Transferred other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; + if (Symbol != other.Symbol) return false; + if (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(Transferred 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 Approved : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Approved()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[57]; } + } + + [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 Approved() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Approved(Approved other) : this() { + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + spender_ = other.spender_ != null ? other.spender_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Approved Clone() { + return new Approved(this); + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; + /// + /// The address of the token owner. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 = 2; + private global::AElf.Types.Address spender_; + /// + /// The address that allowance 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 = 3; + private string symbol_ = ""; + /// + /// The symbol of approved token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of approved token. + /// + [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 Approved); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Approved other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Owner, other.Owner)) return false; + if (!object.Equals(Spender, other.Spender)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (spender_ != null) hash ^= Spender.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_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 (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + 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 (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + 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 (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (spender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Approved other) { + if (other == null) { + return; + } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } + if (other.spender_ != null) { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + Spender.MergeFrom(other.Spender); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 26: { + Symbol = input.ReadString(); + 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 (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UnApproved : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnApproved()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[58]; } + } + + [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 UnApproved() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproved(UnApproved other) : this() { + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + spender_ = other.spender_ != null ? other.spender_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproved Clone() { + return new UnApproved(this); + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; + /// + /// The address of the token owner. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 = 2; + private global::AElf.Types.Address spender_; + /// + /// The address that allowance 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 = 3; + private string symbol_ = ""; + /// + /// The symbol of un-approved token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of un-approved token. + /// + [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 UnApproved); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnApproved other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Owner, other.Owner)) return false; + if (!object.Equals(Spender, other.Spender)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (spender_ != null) hash ^= Spender.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_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 (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + 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 (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + 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 (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (spender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnApproved other) { + if (other == null) { + return; + } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } + if (other.spender_ != null) { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + Spender.MergeFrom(other.Spender); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 26: { + Symbol = input.ReadString(); + 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 (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Burned : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Burned()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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[59]; } + } + + [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 Burned() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Burned(Burned other) : this() { + burner_ = other.burner_ != null ? other.burner_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Burned Clone() { + return new Burned(this); + } + + /// Field number for the "burner" field. + public const int BurnerFieldNumber = 1; + private global::AElf.Types.Address burner_; + /// + /// The address who wants to burn token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Burner { + get { return burner_; } + set { + burner_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + private string symbol_ = ""; + /// + /// The symbol of burned token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 burned token. + /// + [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 Burned); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Burned other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Burner, other.Burner)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (burner_ != null) hash ^= Burner.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (burner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Burner); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (burner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Burner); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (burner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Burner); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Burned other) { + if (other == null) { + return; + } + if (other.burner_ != null) { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + Burner.MergeFrom(other.Burner); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + input.ReadMessage(Burner); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + input.ReadMessage(Burner); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ChainPrimaryTokenSymbolSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainPrimaryTokenSymbolSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainPrimaryTokenSymbolSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainPrimaryTokenSymbolSet(ChainPrimaryTokenSymbolSet other) : this() { + tokenSymbol_ = other.tokenSymbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainPrimaryTokenSymbolSet Clone() { + return new ChainPrimaryTokenSymbolSet(this); + } + + /// Field number for the "token_symbol" field. + public const int TokenSymbolFieldNumber = 1; + private string tokenSymbol_ = ""; + /// + /// The symbol of token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TokenSymbol { + get { return tokenSymbol_; } + set { + tokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChainPrimaryTokenSymbolSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChainPrimaryTokenSymbolSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TokenSymbol != other.TokenSymbol) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TokenSymbol.Length != 0) hash ^= TokenSymbol.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenSymbol); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChainPrimaryTokenSymbolSet other) { + if (other == null) { + return; + } + if (other.TokenSymbol.Length != 0) { + TokenSymbol = other.TokenSymbol; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TokenSymbol = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TokenSymbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CalculateFeeAlgorithmUpdated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeeAlgorithmUpdated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeAlgorithmUpdated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeAlgorithmUpdated(CalculateFeeAlgorithmUpdated other) : this() { + allTypeFeeCoefficients_ = other.allTypeFeeCoefficients_ != null ? other.allTypeFeeCoefficients_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeAlgorithmUpdated Clone() { + return new CalculateFeeAlgorithmUpdated(this); + } + + /// Field number for the "all_type_fee_coefficients" field. + public const int AllTypeFeeCoefficientsFieldNumber = 1; + private global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients allTypeFeeCoefficients_; + /// + /// All calculate fee coefficients after modification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients AllTypeFeeCoefficients { + get { return allTypeFeeCoefficients_; } + set { + allTypeFeeCoefficients_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CalculateFeeAlgorithmUpdated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CalculateFeeAlgorithmUpdated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AllTypeFeeCoefficients, other.AllTypeFeeCoefficients)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (allTypeFeeCoefficients_ != null) hash ^= AllTypeFeeCoefficients.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (allTypeFeeCoefficients_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (allTypeFeeCoefficients_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (allTypeFeeCoefficients_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CalculateFeeAlgorithmUpdated other) { + if (other == null) { + return; + } + if (other.allTypeFeeCoefficients_ != null) { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + AllTypeFeeCoefficients.MergeFrom(other.AllTypeFeeCoefficients); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + input.ReadMessage(AllTypeFeeCoefficients); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + input.ReadMessage(AllTypeFeeCoefficients); + break; + } + } + } + } + #endif + + } + + public sealed partial class RentalCharged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalCharged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalCharged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalCharged(RentalCharged other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + payer_ = other.payer_ != null ? other.payer_.Clone() : null; + receiver_ = other.receiver_ != null ? other.receiver_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalCharged Clone() { + return new RentalCharged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of rental fee charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The amount of rental fee charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "payer" field. + public const int PayerFieldNumber = 3; + private global::AElf.Types.Address payer_; + /// + /// The payer of rental fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Payer { + get { return payer_; } + set { + payer_ = value; + } + } + + /// Field number for the "receiver" field. + public const int ReceiverFieldNumber = 4; + private global::AElf.Types.Address receiver_; + /// + /// The receiver of rental fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Receiver { + get { return receiver_; } + set { + receiver_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RentalCharged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RentalCharged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Payer, other.Payer)) return false; + if (!object.Equals(Receiver, other.Receiver)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (payer_ != null) hash ^= Payer.GetHashCode(); + if (receiver_ != null) hash ^= Receiver.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (payer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payer); + } + if (receiver_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Receiver); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RentalCharged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.payer_ != null) { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + Payer.MergeFrom(other.Payer); + } + if (other.receiver_ != null) { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + Receiver.MergeFrom(other.Receiver); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + } + #endif + + } + + public sealed partial class RentalAccountBalanceInsufficient : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalAccountBalanceInsufficient()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalAccountBalanceInsufficient() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalAccountBalanceInsufficient(RentalAccountBalanceInsufficient other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalAccountBalanceInsufficient Clone() { + return new RentalAccountBalanceInsufficient(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of insufficient rental account balance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The balance of the account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RentalAccountBalanceInsufficient); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RentalAccountBalanceInsufficient other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RentalAccountBalanceInsufficient other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TokenCreated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenCreated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenCreated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenCreated(TokenCreated other) : this() { + symbol_ = other.symbol_; + tokenName_ = other.tokenName_; + totalSupply_ = other.totalSupply_; + decimals_ = other.decimals_; + issuer_ = other.issuer_ != null ? other.issuer_.Clone() : null; + isBurnable_ = other.isBurnable_; + issueChainId_ = other.issueChainId_; + externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenCreated Clone() { + return new TokenCreated(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token_name" field. + public const int TokenNameFieldNumber = 2; + private string tokenName_ = ""; + /// + /// The full name of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TokenName { + get { return tokenName_; } + set { + tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "total_supply" field. + public const int TotalSupplyFieldNumber = 3; + private long totalSupply_; + /// + /// The total supply of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TotalSupply { + get { return totalSupply_; } + set { + totalSupply_ = value; + } + } + + /// Field number for the "decimals" field. + public const int DecimalsFieldNumber = 4; + private int decimals_; + /// + /// The precision of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Decimals { + get { return decimals_; } + set { + decimals_ = value; + } + } + + /// Field number for the "issuer" field. + public const int IssuerFieldNumber = 5; + private global::AElf.Types.Address issuer_; + /// + /// The address that has permission to issue the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Issuer { + get { return issuer_; } + set { + issuer_ = value; + } + } + + /// Field number for the "is_burnable" field. + public const int IsBurnableFieldNumber = 6; + private bool isBurnable_; + /// + /// A flag indicating if this token is burnable. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBurnable { + get { return isBurnable_; } + set { + isBurnable_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + /// Field number for the "external_info" field. + public const int ExternalInfoFieldNumber = 8; + private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + /// + /// The external information of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 9; + private global::AElf.Types.Address owner_; + /// + /// The address that owns the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TokenCreated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenCreated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TokenName != other.TokenName) return false; + if (TotalSupply != other.TotalSupply) return false; + if (Decimals != other.Decimals) return false; + if (!object.Equals(Issuer, other.Issuer)) return false; + if (IsBurnable != other.IsBurnable) return false; + if (IssueChainId != other.IssueChainId) return false; + if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + if (!object.Equals(Owner, other.Owner)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (TokenName.Length != 0) hash ^= TokenName.GetHashCode(); + if (TotalSupply != 0L) hash ^= TotalSupply.GetHashCode(); + if (Decimals != 0) hash ^= Decimals.GetHashCode(); + if (issuer_ != null) hash ^= Issuer.GetHashCode(); + if (IsBurnable != false) hash ^= IsBurnable.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (externalInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ExternalInfo); + } + if (owner_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (externalInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ExternalInfo); + } + if (owner_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (TokenName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName); + } + if (TotalSupply != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalSupply); + } + if (Decimals != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Decimals); + } + if (issuer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Issuer); + } + if (IsBurnable != false) { + size += 1 + 1; + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (externalInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + } + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TokenCreated other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TokenName.Length != 0) { + TokenName = other.TokenName; + } + if (other.TotalSupply != 0L) { + TotalSupply = other.TotalSupply; + } + if (other.Decimals != 0) { + Decimals = other.Decimals; + } + if (other.issuer_ != null) { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + Issuer.MergeFrom(other.Issuer); + } + if (other.IsBurnable != false) { + IsBurnable = other.IsBurnable; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + if (other.externalInfo_ != null) { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + ExternalInfo.MergeFrom(other.ExternalInfo); + } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 42: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 66: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 74: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 42: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 66: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 74: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + } + #endif + + } + + public sealed partial class Issued : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Issued()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Issued() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Issued(Issued other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + to_ = other.to_ != null ? other.to_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Issued Clone() { + return new Issued(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of issued token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The amount of issued token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 3; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 4; + private global::AElf.Types.Address to_; + /// + /// The issued target address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Issued); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Issued other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; + if (!object.Equals(To, other.To)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (to_ != null) { + output.WriteRawTag(34); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (to_ != null) { + output.WriteRawTag(34); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Issued other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Memo.Length != 0) { + Memo = other.Memo; + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Memo = input.ReadString(); + break; + } + case 34: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Memo = input.ReadString(); + break; + } + case 34: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + } + } + } + #endif + + } + + public sealed partial class CrossChainTransferred : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainTransferred()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainTransferred() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainTransferred(CrossChainTransferred other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + toChainId_ = other.toChainId_; + issueChainId_ = other.issueChainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainTransferred Clone() { + return new CrossChainTransferred(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 2; + private global::AElf.Types.Address to_; + /// + /// The destination address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to_chain_id" field. + public const int ToChainIdFieldNumber = 6; + private int toChainId_; + /// + /// The destination chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToChainId { + get { return toChainId_; } + set { + toChainId_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CrossChainTransferred); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CrossChainTransferred other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; + if (ToChainId != other.ToChainId) return false; + if (IssueChainId != other.IssueChainId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (from_ != null) hash ^= From.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (ToChainId != 0) hash ^= ToChainId.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (ToChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ToChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (ToChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ToChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (from_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + } + if (ToChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToChainId); + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CrossChainTransferred other) { + if (other == null) { + return; + } + if (other.from_ != null) { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + From.MergeFrom(other.From); + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Memo.Length != 0) { + Memo = other.Memo; + } + if (other.ToChainId != 0) { + ToChainId = other.ToChainId; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + ToChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + ToChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CrossChainReceived : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainReceived()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainReceived() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainReceived(CrossChainReceived other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + fromChainId_ = other.fromChainId_; + issueChainId_ = other.issueChainId_; + parentChainHeight_ = other.parentChainHeight_; + transferTransactionId_ = other.transferTransactionId_ != null ? other.transferTransactionId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainReceived Clone() { + return new CrossChainReceived(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 2; + private global::AElf.Types.Address to_; + /// + /// The destination address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of the received token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of the received token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 6; + private int fromChainId_; + /// + /// The destination chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + /// Field number for the "parent_chain_height" field. + public const int ParentChainHeightFieldNumber = 8; + private long parentChainHeight_; + /// + /// The parent chain height of the transfer transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ParentChainHeight { + get { return parentChainHeight_; } + set { + parentChainHeight_ = value; + } + } + + /// Field number for the "transfer_transaction_id" field. + public const int TransferTransactionIdFieldNumber = 9; + private global::AElf.Types.Hash transferTransactionId_; + /// + /// The id of transfer transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash TransferTransactionId { + get { return transferTransactionId_; } + set { + transferTransactionId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CrossChainReceived); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CrossChainReceived other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; + if (FromChainId != other.FromChainId) return false; + if (IssueChainId != other.IssueChainId) return false; + if (ParentChainHeight != other.ParentChainHeight) return false; + if (!object.Equals(TransferTransactionId, other.TransferTransactionId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (from_ != null) hash ^= From.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (FromChainId != 0) hash ^= FromChainId.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (ParentChainHeight != 0L) hash ^= ParentChainHeight.GetHashCode(); + if (transferTransactionId_ != null) hash ^= TransferTransactionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (FromChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(64); + output.WriteInt64(ParentChainHeight); + } + if (transferTransactionId_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TransferTransactionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (FromChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(64); + output.WriteInt64(ParentChainHeight); + } + if (transferTransactionId_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TransferTransactionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (from_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + } + if (FromChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromChainId); + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (ParentChainHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ParentChainHeight); + } + if (transferTransactionId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransferTransactionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CrossChainReceived other) { + if (other == null) { + return; + } + if (other.from_ != null) { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + From.MergeFrom(other.From); + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Memo.Length != 0) { + Memo = other.Memo; + } + if (other.FromChainId != 0) { + FromChainId = other.FromChainId; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + if (other.ParentChainHeight != 0L) { + ParentChainHeight = other.ParentChainHeight; + } + if (other.transferTransactionId_ != null) { + if (transferTransactionId_ == null) { + TransferTransactionId = new global::AElf.Types.Hash(); + } + TransferTransactionId.MergeFrom(other.TransferTransactionId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + FromChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 64: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 74: { + if (transferTransactionId_ == null) { + TransferTransactionId = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransferTransactionId); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + FromChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 64: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 74: { + if (transferTransactionId_ == null) { + TransferTransactionId = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransferTransactionId); + break; + } + } + } + } + #endif + + } + + public sealed partial class ExternalInfoChanged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalInfoChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalInfoChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalInfoChanged(ExternalInfoChanged other) : this() { + symbol_ = other.symbol_; + externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalInfoChanged Clone() { + return new ExternalInfoChanged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_info" field. + public const int ExternalInfoFieldNumber = 2; + private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExternalInfoChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExternalInfoChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (_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 (externalInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalInfo); + } + 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 (externalInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (externalInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExternalInfoChanged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.externalInfo_ != null) { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + ExternalInfo.MergeFrom(other.ExternalInfo); + } + _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 (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + 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 (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegationAdded : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegationAdded()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationAdded() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationAdded(TransactionFeeDelegationAdded other) : this() { + delegator_ = other.delegator_ != null ? other.delegator_.Clone() : null; + delegatee_ = other.delegatee_ != null ? other.delegatee_.Clone() : null; + caller_ = other.caller_ != null ? other.caller_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationAdded Clone() { + return new TransactionFeeDelegationAdded(this); + } + + /// Field number for the "delegator" field. + public const int DelegatorFieldNumber = 1; + private global::AElf.Types.Address delegator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegator { + get { return delegator_; } + set { + delegator_ = value; + } + } + + /// Field number for the "delegatee" field. + public const int DelegateeFieldNumber = 2; + private global::AElf.Types.Address delegatee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegatee { + get { return delegatee_; } + set { + delegatee_ = value; + } + } + + /// Field number for the "caller" field. + public const int CallerFieldNumber = 3; + private global::AElf.Types.Address caller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegationAdded); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegationAdded other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delegator, other.Delegator)) return false; + if (!object.Equals(Delegatee, other.Delegatee)) return false; + if (!object.Equals(Caller, other.Caller)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegator_ != null) hash ^= Delegator.GetHashCode(); + if (delegatee_ != null) hash ^= Delegatee.GetHashCode(); + if (caller_ != null) hash ^= Caller.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegator); + } + if (delegatee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegatee); + } + if (caller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegationAdded other) { + if (other == null) { + return; + } + if (other.delegator_ != null) { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + Delegator.MergeFrom(other.Delegator); + } + if (other.delegatee_ != null) { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + Delegatee.MergeFrom(other.Delegatee); + } + if (other.caller_ != null) { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + Caller.MergeFrom(other.Caller); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegationCancelled : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegationCancelled()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationCancelled() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationCancelled(TransactionFeeDelegationCancelled other) : this() { + delegator_ = other.delegator_ != null ? other.delegator_.Clone() : null; + delegatee_ = other.delegatee_ != null ? other.delegatee_.Clone() : null; + caller_ = other.caller_ != null ? other.caller_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationCancelled Clone() { + return new TransactionFeeDelegationCancelled(this); + } + + /// Field number for the "delegator" field. + public const int DelegatorFieldNumber = 1; + private global::AElf.Types.Address delegator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegator { + get { return delegator_; } + set { + delegator_ = value; + } + } + + /// Field number for the "delegatee" field. + public const int DelegateeFieldNumber = 2; + private global::AElf.Types.Address delegatee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegatee { + get { return delegatee_; } + set { + delegatee_ = value; + } + } + + /// Field number for the "caller" field. + public const int CallerFieldNumber = 3; + private global::AElf.Types.Address caller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegationCancelled); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegationCancelled other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delegator, other.Delegator)) return false; + if (!object.Equals(Delegatee, other.Delegatee)) return false; + if (!object.Equals(Caller, other.Caller)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegator_ != null) hash ^= Delegator.GetHashCode(); + if (delegatee_ != null) hash ^= Delegatee.GetHashCode(); + if (caller_ != null) hash ^= Caller.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegator); + } + if (delegatee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegatee); + } + if (caller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegationCancelled other) { + if (other == null) { + return; + } + if (other.delegator_ != null) { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + Delegator.MergeFrom(other.Delegator); + } + if (other.delegatee_ != null) { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + Delegatee.MergeFrom(other.Delegatee); + } + if (other.caller_ != null) { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + Caller.MergeFrom(other.Caller); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/test/AElfScan.TokenApp.Tests/Generated/TransactionFee.c.cs b/test/AElfScan.TokenApp.Tests/Generated/TransactionFee.c.cs new file mode 100644 index 0000000..d1331ee --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Generated/TransactionFee.c.cs @@ -0,0 +1,121 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: transaction_fee.proto +// +#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 TransactionFeeCharged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new TransactionFeeCharged + { + ChargingAddress = ChargingAddress + }, + }; + } + + public TransactionFeeCharged GetNonIndexed() + { + return new TransactionFeeCharged + { + Symbol = Symbol, + Amount = Amount, + }; + } + } + + public partial class ResourceTokenCharged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ResourceTokenCharged GetNonIndexed() + { + return new ResourceTokenCharged + { + Symbol = Symbol, + Amount = Amount, + ContractAddress = ContractAddress, + }; + } + } + + public partial class ResourceTokenOwned : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ResourceTokenOwned GetNonIndexed() + { + return new ResourceTokenOwned + { + Symbol = Symbol, + Amount = Amount, + ContractAddress = ContractAddress, + }; + } + } + + public partial class TransactionFeeClaimed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public TransactionFeeClaimed GetNonIndexed() + { + return new TransactionFeeClaimed + { + Symbol = Symbol, + Amount = Amount, + Receiver = Receiver, + }; + } + } + + public partial class ResourceTokenClaimed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ResourceTokenClaimed GetNonIndexed() + { + return new ResourceTokenClaimed + { + Symbol = Symbol, + Amount = Amount, + Payer = Payer, + Receiver = Receiver, + }; + } + } + + #endregion +} +#endregion + diff --git a/test/AElfScan.TokenApp.Tests/Generated/TransactionFee.g.cs b/test/AElfScan.TokenApp.Tests/Generated/TransactionFee.g.cs new file mode 100644 index 0000000..e48903c --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Generated/TransactionFee.g.cs @@ -0,0 +1,1914 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: transaction_fee.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 transaction_fee.proto + public static partial class TransactionFeeReflection { + + #region Descriptor + /// File descriptor for transaction_fee.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TransactionFeeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0cmFuc2FjdGlvbl9mZWUucHJvdG8SBGFlbGYaD2FlbGYvY29yZS5wcm90", + "bxoSYWVsZi9vcHRpb25zLnByb3RvImUKGVRyYW5zYWN0aW9uU2l6ZUZlZVN5", + "bWJvbHMSSAogdHJhbnNhY3Rpb25fc2l6ZV9mZWVfc3ltYm9sX2xpc3QYASAD", + "KAsyHi5hZWxmLlRyYW5zYWN0aW9uU2l6ZUZlZVN5bWJvbCJnChhUcmFuc2Fj", + "dGlvblNpemVGZWVTeW1ib2wSFAoMdG9rZW5fc3ltYm9sGAEgASgJEhkKEWJh", + "c2VfdG9rZW5fd2VpZ2h0GAIgASgFEhoKEmFkZGVkX3Rva2VuX3dlaWdodBgD", + "IAEoBSJsChVUcmFuc2FjdGlvbkZlZUNoYXJnZWQSDgoGc3ltYm9sGAEgASgJ", + "Eg4KBmFtb3VudBgCIAEoAxItCg9jaGFyZ2luZ0FkZHJlc3MYAyABKAsyDS5h", + "ZWxmLkFkZHJlc3NCBYiP9QEBOgSguxgBImUKFFJlc291cmNlVG9rZW5DaGFy", + "Z2VkEg4KBnN5bWJvbBgBIAEoCRIOCgZhbW91bnQYAiABKAMSJwoQY29udHJh", + "Y3RfYWRkcmVzcxgDIAEoCzINLmFlbGYuQWRkcmVzczoEoLsYASJjChJSZXNv", + "dXJjZVRva2VuT3duZWQSDgoGc3ltYm9sGAEgASgJEg4KBmFtb3VudBgCIAEo", + "AxInChBjb250cmFjdF9hZGRyZXNzGAMgASgLMg0uYWVsZi5BZGRyZXNzOgSg", + "uxgBIl4KFVRyYW5zYWN0aW9uRmVlQ2xhaW1lZBIOCgZzeW1ib2wYASABKAkS", + "DgoGYW1vdW50GAIgASgDEh8KCHJlY2VpdmVyGAMgASgLMg0uYWVsZi5BZGRy", + "ZXNzOgSguxgBInsKFFJlc291cmNlVG9rZW5DbGFpbWVkEg4KBnN5bWJvbBgB", + "IAEoCRIOCgZhbW91bnQYAiABKAMSHAoFcGF5ZXIYAyABKAsyDS5hZWxmLkFk", + "ZHJlc3MSHwoIcmVjZWl2ZXIYBCABKAsyDS5hZWxmLkFkZHJlc3M6BKC7GAEy", + "EAoOVHJhbnNhY3Rpb25GZWVCHKoCGUFFbGYuQ29udHJhY3RzLk11bHRpVG9r", + "ZW5iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbols), global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbols.Parser, new[]{ "TransactionSizeFeeSymbolList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbol), global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbol.Parser, new[]{ "TokenSymbol", "BaseTokenWeight", "AddedTokenWeight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeCharged), global::AElf.Contracts.MultiToken.TransactionFeeCharged.Parser, new[]{ "Symbol", "Amount", "ChargingAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResourceTokenCharged), global::AElf.Contracts.MultiToken.ResourceTokenCharged.Parser, new[]{ "Symbol", "Amount", "ContractAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResourceTokenOwned), global::AElf.Contracts.MultiToken.ResourceTokenOwned.Parser, new[]{ "Symbol", "Amount", "ContractAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeClaimed), global::AElf.Contracts.MultiToken.TransactionFeeClaimed.Parser, new[]{ "Symbol", "Amount", "Receiver" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResourceTokenClaimed), global::AElf.Contracts.MultiToken.ResourceTokenClaimed.Parser, new[]{ "Symbol", "Amount", "Payer", "Receiver" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class TransactionSizeFeeSymbols : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionSizeFeeSymbols()); + 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.TransactionFeeReflection.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 TransactionSizeFeeSymbols() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionSizeFeeSymbols(TransactionSizeFeeSymbols other) : this() { + transactionSizeFeeSymbolList_ = other.transactionSizeFeeSymbolList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionSizeFeeSymbols Clone() { + return new TransactionSizeFeeSymbols(this); + } + + /// Field number for the "transaction_size_fee_symbol_list" field. + public const int TransactionSizeFeeSymbolListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_transactionSizeFeeSymbolList_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.TransactionSizeFeeSymbol.Parser); + private readonly pbc::RepeatedField transactionSizeFeeSymbolList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TransactionSizeFeeSymbolList { + get { return transactionSizeFeeSymbolList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionSizeFeeSymbols); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionSizeFeeSymbols other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!transactionSizeFeeSymbolList_.Equals(other.transactionSizeFeeSymbolList_)) 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 ^= transactionSizeFeeSymbolList_.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 + transactionSizeFeeSymbolList_.WriteTo(output, _repeated_transactionSizeFeeSymbolList_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) { + transactionSizeFeeSymbolList_.WriteTo(ref output, _repeated_transactionSizeFeeSymbolList_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 += transactionSizeFeeSymbolList_.CalculateSize(_repeated_transactionSizeFeeSymbolList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionSizeFeeSymbols other) { + if (other == null) { + return; + } + transactionSizeFeeSymbolList_.Add(other.transactionSizeFeeSymbolList_); + _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: { + transactionSizeFeeSymbolList_.AddEntriesFrom(input, _repeated_transactionSizeFeeSymbolList_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: { + transactionSizeFeeSymbolList_.AddEntriesFrom(ref input, _repeated_transactionSizeFeeSymbolList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionSizeFeeSymbol : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionSizeFeeSymbol()); + 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.TransactionFeeReflection.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 TransactionSizeFeeSymbol() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionSizeFeeSymbol(TransactionSizeFeeSymbol 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 TransactionSizeFeeSymbol Clone() { + return new TransactionSizeFeeSymbol(this); + } + + /// Field number for the "token_symbol" field. + public const int TokenSymbolFieldNumber = 1; + private string tokenSymbol_ = ""; + [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_; + [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_; + [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 TransactionSizeFeeSymbol); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionSizeFeeSymbol 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(TransactionSizeFeeSymbol 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 TransactionFeeCharged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeCharged()); + 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.TransactionFeeReflection.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 TransactionFeeCharged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeCharged(TransactionFeeCharged other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + chargingAddress_ = other.chargingAddress_ != null ? other.chargingAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeCharged Clone() { + return new TransactionFeeCharged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "chargingAddress" field. + public const int ChargingAddressFieldNumber = 3; + private global::AElf.Types.Address chargingAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ChargingAddress { + get { return chargingAddress_; } + set { + chargingAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeCharged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeCharged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(ChargingAddress, other.ChargingAddress)) 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 (chargingAddress_ != null) hash ^= ChargingAddress.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 (chargingAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ChargingAddress); + } + 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 (chargingAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ChargingAddress); + } + 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 (chargingAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChargingAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeCharged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.chargingAddress_ != null) { + if (chargingAddress_ == null) { + ChargingAddress = new global::AElf.Types.Address(); + } + ChargingAddress.MergeFrom(other.ChargingAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (chargingAddress_ == null) { + ChargingAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ChargingAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (chargingAddress_ == null) { + ChargingAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ChargingAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResourceTokenCharged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceTokenCharged()); + 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.TransactionFeeReflection.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 ResourceTokenCharged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenCharged(ResourceTokenCharged other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenCharged Clone() { + return new ResourceTokenCharged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 3; + private global::AElf.Types.Address contractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResourceTokenCharged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceTokenCharged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(ContractAddress, other.ContractAddress)) 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 (contractAddress_ != null) hash ^= ContractAddress.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 (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + 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 (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + 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 (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceTokenCharged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResourceTokenOwned : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceTokenOwned()); + 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.TransactionFeeReflection.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 ResourceTokenOwned() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenOwned(ResourceTokenOwned other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenOwned Clone() { + return new ResourceTokenOwned(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 3; + private global::AElf.Types.Address contractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResourceTokenOwned); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceTokenOwned other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(ContractAddress, other.ContractAddress)) 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 (contractAddress_ != null) hash ^= ContractAddress.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 (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + 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 (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + 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 (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceTokenOwned other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeClaimed : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeClaimed()); + 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.TransactionFeeReflection.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 TransactionFeeClaimed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeClaimed(TransactionFeeClaimed other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + receiver_ = other.receiver_ != null ? other.receiver_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeClaimed Clone() { + return new TransactionFeeClaimed(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "receiver" field. + public const int ReceiverFieldNumber = 3; + private global::AElf.Types.Address receiver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Receiver { + get { return receiver_; } + set { + receiver_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeClaimed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeClaimed other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Receiver, other.Receiver)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (receiver_ != null) hash ^= Receiver.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (receiver_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (receiver_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (receiver_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Receiver); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeClaimed other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.receiver_ != null) { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + Receiver.MergeFrom(other.Receiver); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResourceTokenClaimed : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceTokenClaimed()); + 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.TransactionFeeReflection.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 ResourceTokenClaimed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenClaimed(ResourceTokenClaimed other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + payer_ = other.payer_ != null ? other.payer_.Clone() : null; + receiver_ = other.receiver_ != null ? other.receiver_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTokenClaimed Clone() { + return new ResourceTokenClaimed(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "payer" field. + public const int PayerFieldNumber = 3; + private global::AElf.Types.Address payer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Payer { + get { return payer_; } + set { + payer_ = value; + } + } + + /// Field number for the "receiver" field. + public const int ReceiverFieldNumber = 4; + private global::AElf.Types.Address receiver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Receiver { + get { return receiver_; } + set { + receiver_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResourceTokenClaimed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceTokenClaimed other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Payer, other.Payer)) return false; + if (!object.Equals(Receiver, other.Receiver)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (payer_ != null) hash ^= Payer.GetHashCode(); + if (receiver_ != null) hash ^= Receiver.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (payer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payer); + } + if (receiver_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Receiver); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceTokenClaimed other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.payer_ != null) { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + Payer.MergeFrom(other.Payer); + } + if (other.receiver_ != null) { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + Receiver.MergeFrom(other.Receiver); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/test/AElfScan.TokenApp.Tests/GraphQL/AccountInfoQueryTests.cs b/test/AElfScan.TokenApp.Tests/GraphQL/AccountInfoQueryTests.cs new file mode 100644 index 0000000..e753467 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/GraphQL/AccountInfoQueryTests.cs @@ -0,0 +1,69 @@ +using AElfScan.TokenApp.Processors; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.GraphQL; + +public class AccountInfoQueryTests : TokenContractAppTestBase +{ + private readonly TransferredProcessor _transferredProcessor; + + public AccountInfoQueryTests() + { + _transferredProcessor = GetRequiredService(); + } + + [Fact] + public async Task AccountInfo_WrongMaxResultCount_Test() + { + await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto() + { + ChainId = ChainId, + MaxResultCount = 1001 + }).ShouldThrowAsync(); + } + + [Fact] + public async Task AccountInfo_Test() + { + await CreateTokenAsync(); + + var addresses = new List + { + "xUgvBLughMpZp1w2E1GmgACU9h8EzqY5X4ZBqSKRRc4g9QL72", + "zBVzvebV9CvyFAcmzZ7uj9MZLMHf2t1xfkECEEpvcUyTa3XU8" + }; + + foreach (var address in addresses) + { + var transferred = new Transferred + { + Amount = 1, + From = TestAddress, + Symbol = "ELF", + To = Address.FromBase58(address), + Memo = "memo" + }; + var logEventContext = GenerateLogEventContext(transferred); + await _transferredProcessor.ProcessAsync(logEventContext); + } + + var list = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto() + { + ChainId = ChainId, + SkipCount = 0, + MaxResultCount = 10 + }); + list.Count.ShouldBe(3); + + list = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto() + { + Address = addresses[0], + SkipCount = 0, + MaxResultCount = 10 + }); + list.Count.ShouldBe(1); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/GraphQL/AccountTokenQueryTests.cs b/test/AElfScan.TokenApp.Tests/GraphQL/AccountTokenQueryTests.cs new file mode 100644 index 0000000..f419568 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/GraphQL/AccountTokenQueryTests.cs @@ -0,0 +1,101 @@ +using AeFinder.Sdk; +using AElfScan.TokenApp.Entities; +using AElfScan.TokenApp.Processors; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.GraphQL; + +public class AccountTokenQueryTests : TokenContractAppTestBase +{ + private readonly TransferredProcessor _transferredProcessor; + + public AccountTokenQueryTests() + { + _transferredProcessor = GetRequiredService(); + } + + [Fact] + public async Task AccountToken_WrongMaxResultCount_Test() + { + await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper, new GetAccountTokenDto() + { + ChainId = ChainId, + MaxResultCount = 1001 + }).ShouldThrowAsync(); + } + + [Fact] + public async Task AccountToken_Test() + { + await CreateTokenAsync(); + await CreateCollectionTokenAsync(); + await CreateNftTokenAsync(); + + var addresses = new List + { + "xUgvBLughMpZp1w2E1GmgACU9h8EzqY5X4ZBqSKRRc4g9QL72", + "zBVzvebV9CvyFAcmzZ7uj9MZLMHf2t1xfkECEEpvcUyTa3XU8" + }; + + foreach (var address in addresses) + { + var transferred = new Transferred + { + Amount = 1, + From = TestAddress, + Symbol = "ELF", + To = Address.FromBase58(address), + Memo = "memo" + }; + var logEventContext = GenerateLogEventContext(transferred); + await _transferredProcessor.ProcessAsync(logEventContext); + } + + var list = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper, new GetAccountTokenDto() + { + ChainId = ChainId, + SkipCount = 0, + MaxResultCount = 10 + }); + list.Items.Count.ShouldBe(5); + + list = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper, new GetAccountTokenDto() + { + Address = TestAddress.ToBase58(), + AddressList = new List() + { + TestAddress.ToBase58() + }, + SkipCount = 0, + MaxResultCount = 10, + AmountGreaterThanZero = true + }); + list.Items.Count.ShouldBe(3); + + list = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper, new GetAccountTokenDto() + { + Symbol = "ELF", + SkipCount = 0, + MaxResultCount = 10, + Types = new List() + { + SymbolType.Token + }, + Symbols = new List() + { + "ELF" + }, + SearchSymbols = new List() + { + "ELF" + }, + Search = "ELF", + FuzzySearch ="f" + }); + list.Items.Count.ShouldBe(3); + + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/GraphQL/TokenInfoQueryTests.cs b/test/AElfScan.TokenApp.Tests/GraphQL/TokenInfoQueryTests.cs new file mode 100644 index 0000000..e3ff222 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/GraphQL/TokenInfoQueryTests.cs @@ -0,0 +1,143 @@ +using AeFinder.Sdk; +using AElfScan.TokenApp.Entities; +using AElfScan.TokenApp.Processors; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.GraphQL; + +public class TokenInfoQueryTests : TokenContractAppTestBase +{ + private readonly TokenCreatedProcessor _tokenCreatedProcessor; + + public TokenInfoQueryTests() + { + _tokenCreatedProcessor = GetRequiredService(); + } + + [Fact] + public async Task TokenInfo_WrongMaxResultCount_Test() + { + await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + { + ChainId = ChainId, + MaxResultCount = 1001 + }).ShouldThrowAsync(); + } + + [Fact] + public async Task TokenInfo_Test() + { + await CreateCollectionTokenAsync(); + await CreateNftTokenAsync(); + + for (var i = 0; i < 6; i++) + { + var tokenCreated = new TokenCreated + { + Symbol = "SGR-" + i, + Decimals = 8, + IsBurnable = true, + Issuer = Address.FromBase58("xUgvBLughMpZp1w2E1GmgACU9h8EzqY5X4ZBqSKRRc4g9QL72"), + Owner = Address.FromBase58("zBVzvebV9CvyFAcmzZ7uj9MZLMHf2t1xfkECEEpvcUyTa3XU8"), + IssueChainId = 9999721, + TotalSupply = 1000, + TokenName = "TokenName" + i, + ExternalInfo = new ExternalInfo + { + Value = { { "key1", "value1" } } + } + }; + + var logEventContext = GenerateLogEventContext(tokenCreated); + + await _tokenCreatedProcessor.ProcessAsync(logEventContext); + } + + + var list = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + { + ChainId = ChainId, + SkipCount = 0, + MaxResultCount = 10 + }); + list.Items.Count.ShouldBe(8); + + list = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + { + ChainId = ChainId, + Symbol = "SGR-0", + SkipCount = 0, + MaxResultCount = 10 + }); + list.Items.Count.ShouldBe(1); + + list = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + { + ChainId = ChainId, + TokenName = "TokenName0", + Search= "TokenName", + ExactSearch ="TokenName0", + FuzzySearch ="tokenname", + SkipCount = 0, + MaxResultCount = 10 + }); + list.Items.Count.ShouldBe(1); + + list = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + { + ChainId = ChainId, + Issuer = "xUgvBLughMpZp1w2E1GmgACU9h8EzqY5X4ZBqSKRRc4g9QL72", + SkipCount = 0, + MaxResultCount = 10 + }); + list.Items.Count.ShouldBe(6); + + list = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + { + ChainId = ChainId, + Owner = "zBVzvebV9CvyFAcmzZ7uj9MZLMHf2t1xfkECEEpvcUyTa3XU8", + SkipCount = 0, + MaxResultCount = 10 + }); + list.Items.Count.ShouldBe(6); + + list = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + { + ChainId = ChainId, + Types = new List { SymbolType.Nft, SymbolType.NftCollection }, + SkipCount = 0, + MaxResultCount = 10 + }); + list.Items.Count.ShouldBe(8); + + // list = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + // { + // ChainId = ChainId, + // PartialSymbol = "BOL0", + // SkipCount = 0, + // MaxResultCount = 10 + // }); + // list.Count.ShouldBe(1); + // + // list = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + // { + // ChainId = ChainId, + // PartialTokenName = "NAME0", + // SkipCount = 0, + // MaxResultCount = 10 + // }); + // list.Count.ShouldBe(1); + // + // list = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto() + // { + // ChainId = ChainId, + // PartialTokenName = "Name0", + // SkipCount = 0, + // MaxResultCount = 10 + // }); + // list.Count.ShouldBe(1); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/GraphQL/TransferInfoQueryTests.cs b/test/AElfScan.TokenApp.Tests/GraphQL/TransferInfoQueryTests.cs new file mode 100644 index 0000000..6038c3f --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/GraphQL/TransferInfoQueryTests.cs @@ -0,0 +1,208 @@ +using AeFinder.Sdk; +using AElfScan.TokenApp.Entities; +using AElfScan.TokenApp.Processors; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.GraphQL; + +public class TransferInfoQueryTests : TokenContractAppTestBase +{ + private readonly TransferredProcessor _transferredProcessor; + + public TransferInfoQueryTests() + { + _transferredProcessor = GetRequiredService(); + } + + [Fact] + public async Task TransferInfo_WrongMaxResultCount_Test() + { + await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + ChainId = ChainId, + MaxResultCount = 1001 + }).ShouldThrowAsync(); + } + + [Fact] + public async Task AccountToken_Test() + { + await CreateTokenAsync(); + await CreateCollectionTokenAsync(); + + var addresses = new List + { + "xUgvBLughMpZp1w2E1GmgACU9h8EzqY5X4ZBqSKRRc4g9QL72", + "zBVzvebV9CvyFAcmzZ7uj9MZLMHf2t1xfkECEEpvcUyTa3XU8" + }; + + foreach (var address in addresses) + { + var transferred = new Transferred + { + Amount = 10, + From = TestAddress, + Symbol = "ELF", + To = Address.FromBase58(address), + Memo = "memo" + }; + var logEventContext = GenerateLogEventContext(transferred); + await _transferredProcessor.ProcessAsync(logEventContext); + } + { + var transferred = new Transferred + { + Amount = 1, + From = Address.FromBase58(addresses[0]), + Symbol = "ELF", + To = Address.FromBase58(addresses[1]), + Memo = "memo" + }; + var logEventContext = GenerateLogEventContext(transferred); + await _transferredProcessor.ProcessAsync(logEventContext); + } + + var list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + ChainId = ChainId, + SkipCount = 0, + MaxResultCount = 100 + }); + list.Items.Count.ShouldBe(5); + list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + Address = TestAddress.ToBase58(), + SkipCount = 0, + MaxResultCount = 100, + OrderBy = "BlockHeight", + Sort = "Asc", + SearchAfter = new List { "200000001" } + }); + list.Items.Count.ShouldBe(0); + list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + Address = TestAddress.ToBase58(), + SkipCount = 0, + MaxResultCount = 100, + OrderInfos = new List() + { + new OrderInfo() + { + OrderBy = "BlockHeight", + Sort = "Asc" + } + }, + SearchAfter = new List { "200000001" } + }); + list.Items.Count.ShouldBe(0); + + list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + Address = TestAddress.ToBase58(), + SkipCount = 0, + MaxResultCount = 100, + OrderInfos = new List() + { + new OrderInfo() + { + OrderBy = "BlockHeight", + Sort = "Desc" + }, + new OrderInfo() + { + OrderBy = "FormatAmount", + Sort = "Desc" + } + }, + SearchAfter = new List { "100", "1" } + }); + list.Items.Count.ShouldBe(3); + + list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + Address = TestAddress.ToBase58(), + SkipCount = 0, + MaxResultCount = 100 + }); + list.Items.Count.ShouldBe(4); + + list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + Address = addresses[1], + SkipCount = 0, + MaxResultCount = 100 + }); + list.Items.Count.ShouldBe(2); + + list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + From = TestAddress.ToBase58(), + SkipCount = 0, + MaxResultCount = 100 + }); + list.Items.Count.ShouldBe(2); + + list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + To = TestAddress.ToBase58(), + SkipCount = 0, + MaxResultCount = 100 + }); + list.Items.Count.ShouldBe(2); + + list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + Symbol = "ELF", + SkipCount = 0, + MaxResultCount = 100, + Search = "ELF", + FuzzySearch="el", + Types = new List() + { + SymbolType.Token + } + }); + list.Items.Count.ShouldBe(4); + + list = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto() + { + TransactionId = TransactionId, + SkipCount = 0, + MaxResultCount = 100 + }); + list.Items.Count.ShouldBe(5); + + var listByBlock = await Query.TransferInfoByBlock(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferByBlockDto() + { + ChainId = "AELF", + SkipCount = 0, + MaxResultCount = 100, + BeginBlockHeight = 98, + EndBlockHeight = 101, + SymbolList = new List() + { + "ELF" + }, + FromList = new List() + { + TestAddress.ToBase58() + }, + ToList = new List() + { + "zBVzvebV9CvyFAcmzZ7uj9MZLMHf2t1xfkECEEpvcUyTa3XU8" + }, + Methods = new List() + { + "Transfer" + } + + }); + listByBlock.Items.Count.ShouldBe(1); + } + + + +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/InitBalanceTest.cs b/test/AElfScan.TokenApp.Tests/InitBalanceTest.cs new file mode 100644 index 0000000..b776a6d --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/InitBalanceTest.cs @@ -0,0 +1,115 @@ +using System.Text; +using Xunit; + +namespace AElfScan.TokenApp; + +public class InitBalanceTest +{ + private const string PrePath = "/Users/weihubin/Desktop/explore2_data/MainChain/"; + + [Fact] + public async Task HandleEvent_Test() + { + Process("tDVV"); + Process("AELF"); + } + + [Fact] + public async Task InitBalance_Test() + { + //'tDVV' addressSet count: 41921 + //'AELF' addressSet count: 29891 + var provider = new InitialBalanceProvider(); + foreach (var (chainId, value) in provider._initialBalances) + { + HashSet addressSet = new HashSet(); + foreach (var pair in value) + { + foreach (var line in pair.Value) + { + //Console.WriteLine($"line: {line}"); + var initialBalance = line.Split(','); + var address = initialBalance[0]; + var symbol = initialBalance[1]; + var amount = long.Parse(initialBalance[2]); + addressSet.Add(line.Split(",")[0]); + } + } + Console.WriteLine($"'{chainId}' count: {addressSet.Count}"); + } + } + + + public async Task Process(string chainId) + { + string directoryPath = PrePath + chainId; + + var aggregatedContents = AggregateContent(chainId, directoryPath); + + string outputFile = PrePath + chainId + ".txt"; + if (File.Exists(outputFile)) + { + File.Delete(outputFile); + } + WriteToFile(outputFile, aggregatedContents); + } + + + public List AggregateContent(string chainId, string directoryPath, int batchSize = 10) + { + string[] fileEntries = Directory.GetFiles(directoryPath, "*.*", SearchOption.AllDirectories); + List results = new List(); + List currentBatch = new List(); + int batchNumber = 1001; + + HashSet addressSet = new HashSet(); + foreach (string fileName in fileEntries) + { + string[] lines = File.ReadAllLines(fileName); + foreach (string line in lines) + { + addressSet.Add(line.Split(",")[0]); + currentBatch.Add(line); + if (currentBatch.Count == batchSize) + { + var num = batchNumber++; + /*if (num == 1535) + { + Console.WriteLine($"'{num}' fileName: {fileName}"); + }*/ + string aggregatedContent = FormatBatchContent(num, currentBatch); + results.Add(aggregatedContent); + currentBatch.Clear(); + } + } + } + + Console.WriteLine($"'{chainId}' addressSet count: {addressSet.Count}"); + // Handle any remaining lines + if (currentBatch.Count > 0) + { + string aggregatedContent = FormatBatchContent(batchNumber, currentBatch); + results.Add(aggregatedContent); + } + + return results; + } + + private string FormatBatchContent(int batchNumber, List batchContent) + { + StringBuilder sb = new StringBuilder(); + sb.AppendLine(" {"); + sb.AppendLine($" {batchNumber}, new List"); + sb.AppendLine(" {"); + sb.Append(string.Join(",\n", batchContent.Select(line => $" \"{line}\""))); + sb.AppendLine(); + sb.AppendLine(" }"); + sb.AppendLine(" },"); + return sb.ToString(); + } + + public void WriteToFile(string filePath, List content) + { + File.WriteAllText(filePath, "[\n" + string.Join("\n", content) + "\n]"); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/LogEventHelper.cs b/test/AElfScan.TokenApp.Tests/LogEventHelper.cs new file mode 100644 index 0000000..0db8fc5 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/LogEventHelper.cs @@ -0,0 +1,19 @@ +using AElf.Types; + +namespace AElfScan.TokenApp; + +public static class LogEventHelper +{ + public static AeFinder.Sdk.Processor.LogEvent ToSdkLogEvent(this LogEvent logEvent) + { + var sdkLogEvent = new AeFinder.Sdk.Processor.LogEvent + { + ExtraProperties = new Dictionary + { + {"Indexed", logEvent.Indexed.ToString()}, + {"NonIndexed", logEvent.NonIndexed.ToBase64()} + } + }; + return sdkLogEvent; + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/MockBlockChainService.cs b/test/AElfScan.TokenApp.Tests/MockBlockChainService.cs new file mode 100644 index 0000000..404a99f --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/MockBlockChainService.cs @@ -0,0 +1,27 @@ +using AeFinder.Sdk; +using AElf.Contracts.MultiToken; +using Google.Protobuf; +using Volo.Abp.DependencyInjection; + +namespace AElfScan.TokenApp; + +public class MockBlockChainService : IBlockChainService, ITransientDependency +{ + public async Task ViewContractAsync(string chainId, string contractAddress, string methodName, IMessage parameter) where T : IMessage, new() + { + switch (methodName) + { + case "GetTokenInfo": + var result = new T(); + var input = GetTokenInfoInput.Parser.ParseFrom(parameter.ToByteArray()); + result.MergeFrom(new AElf.Contracts.MultiToken.TokenInfo + { + TokenName = input.Symbol + " Token", + Symbol = input.Symbol, + Decimals = input.Symbol=="ELF"? 8 : 0 + }.ToByteArray()); + return result; + } + throw new NotImplementedException(); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/MockInitialBalanceProvider.cs b/test/AElfScan.TokenApp.Tests/MockInitialBalanceProvider.cs new file mode 100644 index 0000000..a3441be --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/MockInitialBalanceProvider.cs @@ -0,0 +1,44 @@ +using Volo.Abp.DependencyInjection; + +namespace AElfScan.TokenApp; + +public class MockInitialBalanceProvider : IInitialBalanceProvider, ISingletonDependency +{ + private readonly Dictionary>> _initialBalances = new(); + + public MockInitialBalanceProvider() + { + InitBalance(); + } + + public List GetInitialBalances(string chainId, long blockHeight) + { + if (_initialBalances.TryGetValue(chainId, out var chainBalances) && + chainBalances.TryGetValue(blockHeight, out var balances)) + { + return balances; + } + + return new List(); + } + + private void InitBalance() + { + var balance = new Dictionary> + { + { + 99, new List + { + "Address1,ELF,100000000", + "Address2,ELF,200000000", + "Address3,NFT-0,1", + "Address4,NFT-1,100", + "Address4,NFT-1,200", + "Address1,NFT-2,300" + } + } + }; + + _initialBalances["AELF"] = balance; + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/ChainPrimaryTokenSymbolSetProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/ChainPrimaryTokenSymbolSetProcessorTests.cs new file mode 100644 index 0000000..86a4f5c --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/ChainPrimaryTokenSymbolSetProcessorTests.cs @@ -0,0 +1,42 @@ +using AElfScan.TokenApp.GraphQL; +using AElf.Contracts.MultiToken; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class ChainPrimaryTokenSymbolSetProcessorTests: TokenContractAppTestBase +{ + private readonly ChainPrimaryTokenSymbolSetProcessor _chainPrimaryTokenSymbolSetProcessor; + + public ChainPrimaryTokenSymbolSetProcessorTests() + { + _chainPrimaryTokenSymbolSetProcessor = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + await CreateTokenAsync(); + var token = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbols = new List() {"ELF"} + }); + token.Items[0].IsPrimaryToken.ShouldBeFalse(); + + var chainPrimaryTokenSymbolSet = new ChainPrimaryTokenSymbolSet + { + TokenSymbol = "ELF" + }; + var logEventContext = GenerateLogEventContext(chainPrimaryTokenSymbolSet); + await _chainPrimaryTokenSymbolSetProcessor.ProcessAsync(logEventContext); + + token = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbols = new List() {"ELF"} + }); + token.Items[0].IsPrimaryToken.ShouldBeTrue(); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/CrossChainReceivedProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/CrossChainReceivedProcessorTests.cs new file mode 100644 index 0000000..4fad0bf --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/CrossChainReceivedProcessorTests.cs @@ -0,0 +1,94 @@ +using AElfScan.TokenApp.GraphQL; +using AElf; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class CrossChainReceivedProcessorTests : TokenContractAppTestBase +{ + private readonly CrossChainReceivedProcessor _crossChainReceivedProcessor; + + public CrossChainReceivedProcessorTests() + { + _crossChainReceivedProcessor = GetRequiredService(); + } + + [Fact] + public async Task HandleEvent_Test() + { + await CreateTokenAsync(); + + var @event = new CrossChainReceived + { + Amount = 1, + From = TestAddress, + Symbol = "ELF", + To = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG"), + Memo = "memo", + IssueChainId = 1, + FromChainId = 1, + ParentChainHeight = 100, + TransferTransactionId = Hash.LoadFromHex("cd29ff43ce541c76752638cbc67ce8d4723fd5142cacffa36a95a40c93d30a4c") + }; + var logEventContext = GenerateLogEventContext(@event); + await _crossChainReceivedProcessor.ProcessAsync(logEventContext); + + var token = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbols = new List() { @event.Symbol } + }); + token.Items[0].Supply.ShouldBe(101); + token.Items[0].TransferCount.ShouldBe(2); + token.Items[0].HolderCount.ShouldBe(2); + + var transfer = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto + { + ChainId = ChainId, + Address = @event.To.ToBase58() + }); + transfer.Items.Count.ShouldBe(1); + transfer.Items[0].TransactionId.ShouldBe(TransactionId); + transfer.Items[0].From.ShouldBe(TestAddress.ToBase58()); + transfer.Items[0].To.ShouldBe(@event.To.ToBase58()); + transfer.Items[0].Method.ShouldBe("CrossChainReceive"); + transfer.Items[0].Amount.ShouldBe(1); + transfer.Items[0].FormatAmount.ShouldBe((decimal)0.00000001); + transfer.Items[0].Token.Symbol.ShouldBe(@event.Symbol); + transfer.Items[0].Memo.ShouldBe(@event.Memo); + transfer.Items[0].FromChainId.ShouldBe(ChainHelper.ConvertChainIdToBase58(@event.FromChainId)); + transfer.Items[0].ToChainId.ShouldBe(logEventContext.ChainId); + transfer.Items[0].IssueChainId.ShouldBe(ChainHelper.ConvertChainIdToBase58(@event.IssueChainId)); + transfer.Items[0].ParentChainHeight.ShouldBe(@event.ParentChainHeight); + transfer.Items[0].TransferTransactionId.ShouldBe(@event.TransferTransactionId.ToHex()); + + var count = await Query.AccountCount(AccountInfoReadOnlyRepository, new GetAccountCountDto() + { + ChainId = ChainId, + }); + + count.Count.ShouldBe(2); + + var account = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = @event.To.ToBase58() + }); + account[0].TransferCount.ShouldBe(1); + account[0].TokenHoldingCount.ShouldBe(1); + + var accountToken = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper, new GetAccountTokenDto + { + ChainId = ChainId, + Address = @event.To.ToBase58(), + Symbol = @event.Symbol + }); + accountToken.Items[0].Amount.ShouldBe(1); + accountToken.Items[0].FormatAmount.ShouldBe((decimal)0.00000001); + accountToken.Items[0].TransferCount.ShouldBe(1); + accountToken.Items[0].Token.Symbol.ShouldBe(@event.Symbol); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/CrossChainTransferredProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/CrossChainTransferredProcessorTests.cs new file mode 100644 index 0000000..3982aa7 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/CrossChainTransferredProcessorTests.cs @@ -0,0 +1,75 @@ +using AElfScan.TokenApp.GraphQL; +using AElf; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class CrossChainTransferredProcessorTests: TokenContractAppTestBase +{ + private readonly CrossChainTransferredProcessor _crossChainTransferredProcessor; + + public CrossChainTransferredProcessorTests() + { + _crossChainTransferredProcessor = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + await CreateTokenAsync(); + + + var @event = new CrossChainTransferred + { + Amount = 1, + From = TestAddress, + Symbol = "ELF", + To = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG"), + Memo = "memo", + IssueChainId = 1, + ToChainId = 2 + }; + var logEventContext = GenerateLogEventContext(@event); + await _crossChainTransferredProcessor.ProcessAsync(logEventContext); + + var transfer = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + transfer.Items.Count.ShouldBe(2); + transfer.Items[1].TransactionId.ShouldBe(TransactionId); + transfer.Items[1].From.ShouldBe(TestAddress.ToBase58()); + transfer.Items[1].To.ShouldBe(@event.To.ToBase58()); + transfer.Items[1].Method.ShouldBe("CrossChainTransfer"); + transfer.Items[1].Amount.ShouldBe(1); + transfer.Items[1].FormatAmount.ShouldBe((decimal)0.00000001); + transfer.Items[1].Token.Symbol.ShouldBe(@event.Symbol); + transfer.Items[1].Memo.ShouldBe(@event.Memo); + transfer.Items[1].FromChainId.ShouldBe(logEventContext.ChainId); + transfer.Items[1].ToChainId.ShouldBe(ChainHelper.ConvertChainIdToBase58(@event.ToChainId)); + transfer.Items[1].IssueChainId.ShouldBe(ChainHelper.ConvertChainIdToBase58(@event.IssueChainId)); + transfer.Items[1].ParentChainHeight.ShouldBe(0); + transfer.Items[1].TransferTransactionId.ShouldBeNull(); + + var account = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + account[0].TransferCount.ShouldBe(2); + account[0].TokenHoldingCount.ShouldBe(1); + + var accountToken = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = @event.Symbol + }); + accountToken.Items[0].TransferCount.ShouldBe(2); + accountToken.Items[0].Token.Symbol.ShouldBe(@event.Symbol); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/IssuedAndBurnedProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/IssuedAndBurnedProcessorTests.cs new file mode 100644 index 0000000..f7bfcd5 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/IssuedAndBurnedProcessorTests.cs @@ -0,0 +1,142 @@ +using AElfScan.TokenApp.GraphQL; +using AElf.Contracts.MultiToken; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class IssuedAndBurnedProcessorTests : TokenContractAppTestBase +{ + private readonly BurnedProcessor _burnedProcessor; + + public IssuedAndBurnedProcessorTests() + { + _burnedProcessor = GetRequiredService(); + TokenAppConstants.InitialBalanceEndHeight = new Dictionary + { + { "AELF", 99 } + }; + } + + [Fact] + public async Task HandleEventAsync_Test() + { + await CreateTokenAsync(); + var token = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbols = new List() { "ELF"} + }); + token.Items[0].Supply.ShouldBe(100); + token.Items[0].Issued.ShouldBe(100); + token.Items[0].HolderCount.ShouldBe(1); + token.Items[0].TransferCount.ShouldBe(1); + + var account = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + account[0].TransferCount.ShouldBe(1); + account[0].TokenHoldingCount.ShouldBe(1); + + var accountToken = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = "ELF" + }); + accountToken.Items[0].Amount.ShouldBe(100); + accountToken.Items[0].FormatAmount.ShouldBe(0.000001m); + accountToken.Items[0].TransferCount.ShouldBe(1); + + var transfer = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + transfer.Items.Count.ShouldBe(1); + transfer.Items[0].TransactionId.ShouldBe(TransactionId); + transfer.Items[0].From.ShouldBeNull(); + transfer.Items[0].To.ShouldBe(TestAddress.ToBase58()); + transfer.Items[0].Method.ShouldBe("Issue"); + transfer.Items[0].Amount.ShouldBe(100); + transfer.Items[0].FormatAmount.ShouldBe(0.000001m); + transfer.Items[0].Token.Symbol.ShouldBe("ELF"); + transfer.Items[0].Memo.ShouldBe("memo"); + transfer.Items[0].FromChainId.ShouldBeNull(); + transfer.Items[0].ToChainId.ShouldBeNull(); + transfer.Items[0].IssueChainId.ShouldBeNull(); + transfer.Items[0].ParentChainHeight.ShouldBe(0); + transfer.Items[0].TransferTransactionId.ShouldBeNull(); + var dailyHolder = await Query.DailyHolder(DailyHolderInfoReadOnlyRepository, ObjectMapper, new GetDailyHolderDto + { + ChainId = ChainId + }); + dailyHolder.Count.ShouldBeGreaterThan(0); + var burned = new Burned + { + Amount = 10, + Symbol = "ELF", + Burner = TestAddress + }; + var logEventContext = GenerateLogEventContext(burned); + await _burnedProcessor.ProcessAsync(logEventContext); + + token = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = logEventContext.ChainId, + Symbols = new List() {burned.Symbol} + }); + token.Items[0].Supply.ShouldBe(90); + token.Items[0].Issued.ShouldBe(100); + token.Items[0].HolderCount.ShouldBe(1); + token.Items[0].TransferCount.ShouldBe(2); + + account = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + account[0].TransferCount.ShouldBe(2); + account[0].TokenHoldingCount.ShouldBe(1); + + accountToken = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = "ELF" + }); + accountToken.Items[0].Amount.ShouldBe(90); + accountToken.Items[0].FormatAmount.ShouldBe(0.0000009m); + accountToken.Items[0].TransferCount.ShouldBe(2); + + transfer = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + transfer.Items.Count.ShouldBe(2); + transfer.Items[1].TransactionId.ShouldBe(TransactionId); + transfer.Items[1].From.ShouldBe(TestAddress.ToBase58()); + transfer.Items[1].To.ShouldBeNull(); + transfer.Items[1].Method.ShouldBe("Burn"); + transfer.Items[1].Amount.ShouldBe(10); + transfer.Items[1].FormatAmount.ShouldBe(0.0000001m); + transfer.Items[1].Token.Symbol.ShouldBe("ELF"); + transfer.Items[1].Memo.ShouldBeNull(); + transfer.Items[1].FromChainId.ShouldBeNull(); + transfer.Items[1].ToChainId.ShouldBeNull(); + transfer.Items[1].IssueChainId.ShouldBeNull(); + transfer.Items[1].ParentChainHeight.ShouldBe(0); + transfer.Items[1].TransferTransactionId.ShouldBeNull(); + + var blockBurnFeeListDto = await Query.BlockBurnFeeInfo(BlockBurnFeeInfoReadOnlyRepository, ObjectMapper, new GetBlockBurnFeeDto() + { + ChainId = logEventContext.ChainId, + BeginBlockHeight =BlockHeight, + EndBlockHeight = BlockHeight + 1 + }); + blockBurnFeeListDto.Items.Count.ShouldBe(1); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/RentalChargedProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/RentalChargedProcessorTests.cs new file mode 100644 index 0000000..fb1091f --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/RentalChargedProcessorTests.cs @@ -0,0 +1,52 @@ +using AElfScan.TokenApp.GraphQL; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class RentalChargedProcessorTests: TokenContractAppTestBase +{ + private readonly RentalChargedProcessor _rentalChargedProcessor; + + public RentalChargedProcessorTests() + { + _rentalChargedProcessor = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + await CreateTokenAsync(); + + + var @event = new RentalCharged + { + Amount = 1, + Symbol = "ELF", + Payer = TestAddress, + Receiver = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG") + }; + var logEventContext = GenerateLogEventContext(@event); + await _rentalChargedProcessor.ProcessAsync(logEventContext); + + var balancePayer = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = "ELF" + }); + balancePayer.Items[0].Amount.ShouldBe(99); + balancePayer.Items[0].FormatAmount.ShouldBe(0.00000099m); + + var balanceReceiver = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = @event.Receiver.ToBase58(), + Symbol = "ELF" + }); + balanceReceiver.Items[0].Amount.ShouldBe(1); + balanceReceiver.Items[0].FormatAmount.ShouldBe(0.00000001m); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/ResourceTokenClaimedProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/ResourceTokenClaimedProcessorTests.cs new file mode 100644 index 0000000..a885519 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/ResourceTokenClaimedProcessorTests.cs @@ -0,0 +1,52 @@ +using AElfScan.TokenApp.GraphQL; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class ResourceTokenClaimedProcessorTests : TokenContractAppTestBase +{ + private readonly ResourceTokenClaimedProcessor _resourceTokenClaimedProcessor; + + public ResourceTokenClaimedProcessorTests() + { + _resourceTokenClaimedProcessor = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + await CreateTokenAsync(); + + var @event = new ResourceTokenClaimed + { + Amount = 1, + Symbol = "ELF", + Payer = TestAddress, + Receiver = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG") + }; + var logEventContext = GenerateLogEventContext(@event); + + await _resourceTokenClaimedProcessor.ProcessAsync(logEventContext); + + var balancePayer = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper, new GetAccountTokenDto + { + ChainId = ChainId, + Address = @event.Payer.ToBase58(), + Symbol = "ELF" + }); + balancePayer.Items[0].Amount.ShouldBe(99); + balancePayer.Items[0].FormatAmount.ShouldBe(0.00000099m); + + var balanceReceiver = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper, new GetAccountTokenDto + { + ChainId = ChainId, + Address = @event.Receiver.ToBase58(), + Symbol = "ELF" + }); + balanceReceiver.Items[0].Amount.ShouldBe(1); + balanceReceiver.Items[0].FormatAmount.ShouldBe(0.00000001m); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/TokenBalanceInitBlockProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/TokenBalanceInitBlockProcessorTests.cs new file mode 100644 index 0000000..2653490 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/TokenBalanceInitBlockProcessorTests.cs @@ -0,0 +1,132 @@ +using AeFinder.Sdk.Processor; +using AElfScan.TokenApp.Entities; +using AElfScan.TokenApp.GraphQL; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class TokenBalanceInitBlockProcessorTests : TokenContractAppTestBase +{ + private readonly IBlockProcessor _blockDataProcessor; + + public TokenBalanceInitBlockProcessorTests() + { + _blockDataProcessor = GetRequiredService(); + TokenAppConstants.InitialBalanceEndHeight = new Dictionary + { + { "AELF", 99 } + }; + } + + [Fact] + public async Task Handle_Test() + { + await _blockDataProcessor.ProcessAsync( + new Block + { + BlockHeight = 100 + }, + new BlockContext { ChainId = "AELF" }); + + var accountTokens = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + SkipCount = 0, + MaxResultCount = 100 + }); + accountTokens.Items.Count.ShouldBe(0); + + await _blockDataProcessor.ProcessAsync( + new Block + { + BlockHeight = 99 + }, + new BlockContext { ChainId = "AELF" }); + + var tokens = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper,new GetTokenInfoDto + { + ChainId = ChainId, + SkipCount = 0, + MaxResultCount = 100 + }); + tokens.Items.Count.ShouldBe(4); + tokens.Items.First(o => o.Symbol=="ELF").HolderCount.ShouldBe(2); + tokens.Items.First(o => o.Symbol=="NFT-0").HolderCount.ShouldBe(2); + tokens.Items.First(o => o.Symbol=="NFT-1").HolderCount.ShouldBe(1); + tokens.Items.First(o => o.Symbol=="NFT-2").HolderCount.ShouldBe(1); + + accountTokens = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + SkipCount = 0, + MaxResultCount = 100 + }); + accountTokens.Items.Count.ShouldBe(5); + var accountToken1 = accountTokens.Items.Where(o => o.Address=="Address1").ToList(); + accountToken1.Count.ShouldBe(2); + + var accountToken = accountToken1.First(o => o.Token.Symbol=="ELF"); + accountToken.Token.Decimals.ShouldBe(8); + accountToken.Token.Symbol.ShouldBe("ELF"); + accountToken.Token.Type.ShouldBe( SymbolType.Token); + accountToken.Token.CollectionSymbol.ShouldBeNull(); + accountToken.Amount.ShouldBe(100000000); + accountToken.FormatAmount.ShouldBe(1); + + accountToken = accountToken1.First(o => o.Token.Symbol=="NFT-2"); + accountToken.Token.Decimals.ShouldBe(0); + accountToken.Token.Symbol.ShouldBe("NFT-2"); + accountToken.Token.Type.ShouldBe( SymbolType.Nft); + accountToken.Token.CollectionSymbol.ShouldBe("NFT-0"); + accountToken.Amount.ShouldBe(300); + accountToken.FormatAmount.ShouldBe(300); + + accountToken = accountTokens.Items.First(o => o.Address=="Address2"); + accountToken.Token.Decimals.ShouldBe(8); + accountToken.Token.Symbol.ShouldBe("ELF"); + accountToken.Token.Type.ShouldBe( SymbolType.Token); + accountToken.Token.CollectionSymbol.ShouldBeNull(); + accountToken.Amount.ShouldBe(200000000); + accountToken.FormatAmount.ShouldBe(2); + + accountToken = accountTokens.Items.First(o => o.Address=="Address3"); + accountToken.Token.Decimals.ShouldBe(0); + accountToken.Token.Symbol.ShouldBe("NFT-0"); + accountToken.Token.Type.ShouldBe( SymbolType.NftCollection); + accountToken.Token.CollectionSymbol.ShouldBeNull(); + accountToken.Amount.ShouldBe(1); + accountToken.FormatAmount.ShouldBe(1); + + accountToken = accountTokens.Items.First(o => o.Address=="Address4"); + accountToken.Token.Decimals.ShouldBe(0); + accountToken.Token.Symbol.ShouldBe("NFT-1"); + accountToken.Token.Type.ShouldBe( SymbolType.Nft); + accountToken.Token.CollectionSymbol.ShouldBe("NFT-0"); + accountToken.Amount.ShouldBe(200); + accountToken.FormatAmount.ShouldBe(200); + + var accounts = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper,new GetAccountInfoDto + { + ChainId = ChainId, + SkipCount = 0, + MaxResultCount = 100 + }); + accounts.Count.ShouldBe(3); + + accounts.First(o => o.Address=="Address1").TokenHoldingCount.ShouldBe(2); + accounts.First(o => o.Address=="Address2").TokenHoldingCount.ShouldBe(1); + accounts.First(o => o.Address=="Address4").TokenHoldingCount.ShouldBe(1); + + var accountCollections = await Query.AccountCollection(AccountCollectionReadOnlyRepository, ObjectMapper,new GetAccountCollectionDto() + { + ChainId = ChainId, + SkipCount = 0, + MaxResultCount = 100 + }); + accountCollections.Items.Count.ShouldBe(2); + accountCollections.Items[0].FormatAmount.ShouldBe(200); + accountCollections.Items[1].FormatAmount.ShouldBe(300); + + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/TokenCreatedProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/TokenCreatedProcessorTests.cs new file mode 100644 index 0000000..215ae80 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/TokenCreatedProcessorTests.cs @@ -0,0 +1,71 @@ +using AElfScan.TokenApp.Entities; +using AElfScan.TokenApp.GraphQL; +using AElf; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class TokenCreatedProcessorTests : TokenContractAppTestBase +{ + private readonly TokenCreatedProcessor _tokenCreatedProcessor; + + public TokenCreatedProcessorTests() + { + _tokenCreatedProcessor = GetRequiredService(); + } + + [Theory] + [InlineData("ELF", SymbolType.Token)] + [InlineData("NFT-1", SymbolType.Nft)] + [InlineData("NFT-0", SymbolType.NftCollection)] + public async Task HandleEventAsync_Test(string symbol, SymbolType type) + { + var tokenCreated = new TokenCreated + { + Symbol = symbol, + Decimals = 8, + IsBurnable = true, + Issuer = Address.FromBase58("ooCSxQ7zPw1d4rhQPBqGKB6myvuWbicCiw3jdcoWEMMpa54ea"), + IssueChainId = 9999721, + TotalSupply = 1000, + TokenName = "ELF Token", + ExternalInfo = new ExternalInfo + { + Value = { { "key1", "value1" } } + } + }; + + var logEventContext = GenerateLogEventContext(tokenCreated); + + await _tokenCreatedProcessor.ProcessAsync(logEventContext); + + var token = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbols = new List() {tokenCreated.Symbol} + }); + token.Items[0].Symbol.ShouldBe(tokenCreated.Symbol); + token.Items[0].Decimals.ShouldBe(tokenCreated.Decimals); + token.Items[0].IsBurnable.ShouldBe(tokenCreated.IsBurnable); + token.Items[0].Issuer.ShouldBe(tokenCreated.Issuer.ToBase58()); + token.Items[0].IssueChainId.ShouldBe(ChainHelper.ConvertChainIdToBase58(tokenCreated.IssueChainId)); + token.Items[0].TotalSupply.ShouldBe(tokenCreated.TotalSupply); + token.Items[0].TokenName.ShouldBe(tokenCreated.TokenName); + token.Items[0].Type.ShouldBe(type); + token.Items[0].Supply.ShouldBe(0); + token.Items[0].Issued.ShouldBe(0); + token.Items[0].HolderCount.ShouldBe(0); + token.Items[0].TransferCount.ShouldBe(0); + token.Items[0].ExternalInfo.Count.ShouldBe(1); + token.Items[0].ExternalInfo[0].Key.ShouldBe("key1"); + token.Items[0].ExternalInfo[0].Value.ShouldBe("value1"); + token.Items[0].IsPrimaryToken.ShouldBe(false); + if (type == SymbolType.Nft) + token.Items[0].CollectionSymbol.ShouldBe("NFT-0"); + else + token.Items[0].CollectionSymbol.ShouldBeNull(); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/TokenProcessorBaseTests.cs b/test/AElfScan.TokenApp.Tests/Processors/TokenProcessorBaseTests.cs new file mode 100644 index 0000000..ab44ce0 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/TokenProcessorBaseTests.cs @@ -0,0 +1,24 @@ +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class TokenProcessorBaseTests: TokenContractAppTestBase +{ + private readonly TransferredProcessor _transferredProcessor; + + public TokenProcessorBaseTests() + { + _transferredProcessor = GetRequiredService(); + } + + [Fact] + public async Task GetContractAddressTest() + { + var contractAddress = _transferredProcessor.GetContractAddress(ChainId); + contractAddress.ShouldBe("JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE"); + + contractAddress = _transferredProcessor.GetContractAddress("tDVV"); + contractAddress.ShouldBe("7RzVGiuVWkvL4VfVHdZfQF2Tri3sgLe9U991bohHFfSRZXuGX"); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/TokenProcessorInitBalanceTests.cs b/test/AElfScan.TokenApp.Tests/Processors/TokenProcessorInitBalanceTests.cs new file mode 100644 index 0000000..bdfbcdf --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/TokenProcessorInitBalanceTests.cs @@ -0,0 +1,133 @@ +using AElfScan.TokenApp.GraphQL; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class TokenProcessorInitBalanceTests : TokenContractAppTestBase +{ + private readonly TransferredProcessor _transferredProcessor; + public TokenProcessorInitBalanceTests() + { + _transferredProcessor = GetRequiredService(); + } + + [Fact] + public async Task ModifyBalanceTest() + { + await CreateCollectionTokenAsync(); + await CreateNftTokenAsync(); + + var collectionSymbol = "NFT-0"; + var transferred = new Transferred + { + Amount = 1, + From = TestAddress, + Symbol = "NFT-1", + To = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG"), + Memo = "memo" + }; + + TokenAppConstants.StartProcessBalanceEventHeight = new Dictionary + { + { "AELF", 200000111 } + }; + + var logEventContext = GenerateLogEventContext(transferred); + await _transferredProcessor.ProcessAsync(logEventContext); + + //modify back + TokenAppConstants.StartProcessBalanceEventHeight = new Dictionary + { + { "AELF", BlockHeight } + }; + + var tokenNftPage = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbol = transferred.Symbol + }); + var tokenNft = tokenNftPage.Items; + tokenNft[0].HolderCount.ShouldBe(1); + tokenNft[0].TransferCount.ShouldBe(2); + tokenNft[0].ItemCount.ShouldBe(0); + + var tokenCollection = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbol = collectionSymbol + }); + tokenCollection.Items[0].HolderCount.ShouldBe(1); + tokenCollection.Items[0].TransferCount.ShouldBe(2); + tokenCollection.Items[0].ItemCount.ShouldBe(100); + + var accountFrom = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + accountFrom[0].TransferCount.ShouldBe(3); + accountFrom[0].TokenHoldingCount.ShouldBe(1); + + var accountTo = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58() + }); + accountTo[0].TransferCount.ShouldBe(1); + accountTo[0].TokenHoldingCount.ShouldBe(0); + + var accountNftTokenFrom = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = transferred.Symbol + }); + accountNftTokenFrom.Items[0].TransferCount.ShouldBe(2); + accountNftTokenFrom.Items[0].FirstNftTransactionId.ShouldBe(TransactionId); + accountNftTokenFrom.Items[0].FirstNftTime.ShouldNotBeNull(); + accountNftTokenFrom.Items[0].Amount.ShouldBe(100); + accountNftTokenFrom.Items[0].FormatAmount.ShouldBe(100); + + var accountCollectionTokenFrom = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = collectionSymbol + }); + accountCollectionTokenFrom.Items[0].TransferCount.ShouldBe(1); + accountCollectionTokenFrom.Items[0].FirstNftTransactionId.ShouldBeNull(); + accountCollectionTokenFrom.Items[0].FirstNftTime.ShouldBeNull(); + accountCollectionTokenFrom.Items[0].Amount.ShouldBe(1000); + accountCollectionTokenFrom.Items[0].FormatAmount.ShouldBe(1000); + + var accountCollectionTokenFrom1 = await Query.AccountCollection(AccountCollectionReadOnlyRepository, ObjectMapper,new GetAccountCollectionDto() + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = collectionSymbol, + AmountGreaterThanZero = true + }); + accountCollectionTokenFrom1.Items[0].TransferCount.ShouldBe(2); + accountCollectionTokenFrom1.Items[0].FormatAmount.ShouldBe(100); + + var accountNftTokenTo = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = transferred.Symbol, + AmountGreaterThanZero = true + }); + accountNftTokenTo.Items.ShouldBeEmpty(); + + var accountCollectionTokenTo = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = collectionSymbol + }); + accountCollectionTokenTo.Items.ShouldBeEmpty(); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/TransactionFeeChargedProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/TransactionFeeChargedProcessorTests.cs new file mode 100644 index 0000000..5a88115 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/TransactionFeeChargedProcessorTests.cs @@ -0,0 +1,39 @@ +using AElf.Contracts.MultiToken; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class TransactionFeeChargedProcessorTests: TokenContractAppTestBase +{ + private readonly TransactionFeeChargedProcessor _transactionFeeChargedProcessor; + + public TransactionFeeChargedProcessorTests() + { + _transactionFeeChargedProcessor = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + await CreateTokenAsync(); + + var @event = new TransactionFeeCharged + { + Amount = 1, + Symbol = "ELF", + ChargingAddress = TestAddress + }; + + //before + var accountTokenBefore = await GetAccountTokenAsync(ChainId, TestAddress.ToBase58(), @event.Symbol); + + var logEventContext = GenerateLogEventContext(@event); + await _transactionFeeChargedProcessor.ProcessAsync(logEventContext); + + //check + var accountToken = await GetAccountTokenAsync(ChainId, TestAddress.ToBase58(), @event.Symbol); + (accountTokenBefore.Amount - accountToken.Amount).ShouldBe(1); + (accountTokenBefore.FormatAmount - accountToken.FormatAmount).ShouldBe(0.00000001m); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/TransactionFeeClaimedProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/TransactionFeeClaimedProcessorTests.cs new file mode 100644 index 0000000..cc4b800 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/TransactionFeeClaimedProcessorTests.cs @@ -0,0 +1,41 @@ +using AElfScan.TokenApp.GraphQL; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class TransactionFeeClaimedProcessorTests: TokenContractAppTestBase +{ + private readonly TransactionFeeClaimedProcessor _transactionFeeClaimedProcessor; + + public TransactionFeeClaimedProcessorTests() + { + _transactionFeeClaimedProcessor = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + await CreateTokenAsync(); + + var @event = new TransactionFeeClaimed + { + Amount = 1, + Symbol = "ELF", + Receiver = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG") + }; + //before + var accountTokenBefore = await GetAccountTokenAsync(ChainId, @event.Receiver.ToBase58(), @event.Symbol); + + var logEventContext = GenerateLogEventContext(@event); + await _transactionFeeClaimedProcessor.ProcessAsync(logEventContext); + + var accountToken = await GetAccountTokenAsync(ChainId, @event.Receiver.ToBase58(), @event.Symbol); + + //check + (accountToken.Amount - (accountTokenBefore?.Amount ?? 0)).ShouldBe(1); + (accountToken.FormatAmount - (accountTokenBefore?.FormatAmount ?? 0)).ShouldBe(0.00000001m); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/Processors/TransferredProcessorTests.cs b/test/AElfScan.TokenApp.Tests/Processors/TransferredProcessorTests.cs new file mode 100644 index 0000000..a65c138 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/Processors/TransferredProcessorTests.cs @@ -0,0 +1,388 @@ +using AElfScan.TokenApp.GraphQL; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Shouldly; +using Xunit; + +namespace AElfScan.TokenApp.Processors; + +public class TransferredProcessorTests: TokenContractAppTestBase +{ + private readonly TransferredProcessor _transferredProcessor; + + public TransferredProcessorTests() + { + _transferredProcessor = GetRequiredService(); + } + + [Fact] + public async Task HandleEvent_Test() + { + await CreateTokenAsync(); + + + var transferred = new Transferred + { + Amount = 1, + From = TestAddress, + Symbol = "ELF", + To = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG"), + Memo = "memo" + }; + var logEventContext = GenerateLogEventContext(transferred); + await _transferredProcessor.ProcessAsync(logEventContext); + + var token = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbol = "ELF" + }); + token.Items[0].HolderCount.ShouldBe(2); + token.Items[0].TransferCount.ShouldBe(2); + + var accountFrom = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + accountFrom[0].TransferCount.ShouldBe(2); + accountFrom[0].TokenHoldingCount.ShouldBe(1); + + var accountTo = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58() + }); + accountTo[0].TransferCount.ShouldBe(1); + accountTo[0].TokenHoldingCount.ShouldBe(1); + + var accountTokenFrom = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = "ELF" + }); + accountTokenFrom.Items[0].Amount.ShouldBe(99); + accountTokenFrom.Items[0].FormatAmount.ShouldBe(0.00000099m); + accountTokenFrom.Items[0].TransferCount.ShouldBe(2); + accountTokenFrom.Items[0].FirstNftTransactionId.ShouldBeNull(); + accountTokenFrom.Items[0].FirstNftTime.ShouldBeNull(); + + var accountTokenToPage = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = "ELF" + }); + var accountTokenTo = accountTokenToPage.Items; + accountTokenTo[0].Amount.ShouldBe(1); + accountTokenTo[0].FormatAmount.ShouldBe(0.00000001m); + accountTokenTo[0].TransferCount.ShouldBe(1); + accountTokenTo[0].FirstNftTransactionId.ShouldBeNull(); + accountTokenTo[0].FirstNftTime.ShouldBeNull(); + + var transferFromPage = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + var transferFrom = transferFromPage.Items; + transferFrom.Count.ShouldBe(2); + transferFrom[1].TransactionId.ShouldBe(TransactionId); + transferFrom[1].From.ShouldBe(transferred.From.ToBase58()); + transferFrom[1].To.ShouldBe(transferred.To.ToBase58()); + transferFrom[1].Method.ShouldBe("Transfer"); + transferFrom[1].Amount.ShouldBe(transferred.Amount); + transferFrom[1].FormatAmount.ShouldBe(0.00000001m); + transferFrom[1].Token.Symbol.ShouldBe(transferred.Symbol); + transferFrom[1].Memo.ShouldBe(transferred.Memo); + transferFrom[1].FromChainId.ShouldBeNull(); + transferFrom[1].ToChainId.ShouldBeNull(); + transferFrom[1].IssueChainId.ShouldBeNull(); + transferFrom[1].ParentChainHeight.ShouldBe(0); + transferFrom[1].TransferTransactionId.ShouldBeNull(); + + var transferToPage = await Query.TransferInfo(TransferInfoReadOnlyRepository, ObjectMapper, new GetTransferDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58() + }); + var transferTo = transferToPage.Items; + transferTo.Count.ShouldBe(1); + transferTo[0].TransactionId.ShouldBe(TransactionId); + transferTo[0].From.ShouldBe(transferred.From.ToBase58()); + transferTo[0].To.ShouldBe(transferred.To.ToBase58()); + transferTo[0].Method.ShouldBe("Transfer"); + transferTo[0].Amount.ShouldBe(transferred.Amount); + transferTo[0].FormatAmount.ShouldBe(0.00000001m); + transferTo[0].Token.Symbol.ShouldBe(transferred.Symbol); + transferTo[0].Memo.ShouldBe(transferred.Memo); + transferTo[0].FromChainId.ShouldBeNull(); + transferTo[0].ToChainId.ShouldBeNull(); + transferTo[0].IssueChainId.ShouldBeNull(); + transferTo[0].ParentChainHeight.ShouldBe(0); + transferTo[0].TransferTransactionId.ShouldBeNull(); + } + + [Fact] + public async Task HandleEvent_Collection_Test() + { + await CreateCollectionTokenAsync(); + var transferred = new Transferred + { + Amount = 1, + From = TestAddress, + Symbol = "NFT-0", + To = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG"), + Memo = "memo" + }; + var logEventContext = GenerateLogEventContext(transferred); + await _transferredProcessor.ProcessAsync(logEventContext); + + var token = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbol = transferred.Symbol + }); + token.Items[0].HolderCount.ShouldBe(0); + token.Items[0].TransferCount.ShouldBe(0); + token.Items[0].ItemCount.ShouldBe(0); + + var accountFrom = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + accountFrom[0].TransferCount.ShouldBe(2); + accountFrom[0].TokenHoldingCount.ShouldBe(0); + + var accountTo = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58() + }); + accountTo[0].TransferCount.ShouldBe(1); + accountTo[0].TokenHoldingCount.ShouldBe(0); + + var accountTokenFrom = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = transferred.Symbol + }); + accountTokenFrom.Items[0].TransferCount.ShouldBe(2); + accountTokenFrom.Items[0].FirstNftTransactionId.ShouldBeNull(); + accountTokenFrom.Items[0].FirstNftTime.ShouldBeNull(); + + var accountTokenTo = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = transferred.Symbol + }); + accountTokenTo.Items[0].TransferCount.ShouldBe(1); + accountTokenFrom.Items[0].FirstNftTransactionId.ShouldBeNull(); + accountTokenFrom.Items[0].FirstNftTime.ShouldBeNull(); + + var accountCollectionFrom = await Query.AccountCollection(AccountCollectionReadOnlyRepository, ObjectMapper,new GetAccountCollectionDto() + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = transferred.Symbol + }); + accountCollectionFrom.Items.ShouldBeEmpty(); + + var accountCollectionTo = await Query.AccountCollection(AccountCollectionReadOnlyRepository, ObjectMapper,new GetAccountCollectionDto() + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = transferred.Symbol + }); + accountCollectionTo.Items.ShouldBeEmpty(); + } + + [Fact] + public async Task HandleEvent_Nft_Test() + { + await CreateCollectionTokenAsync(); + await CreateNftTokenAsync(); + + + var collectionSymbol = "NFT-0"; + var transferred = new Transferred + { + Amount = 1, + From = TestAddress, + Symbol = "NFT-1", + To = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG"), + Memo = "memo" + }; + var logEventContext = GenerateLogEventContext(transferred); + await _transferredProcessor.ProcessAsync(logEventContext); + + var tokenNft = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbol = transferred.Symbol + }); + tokenNft.Items[0].HolderCount.ShouldBe(2); + tokenNft.Items[0].TransferCount.ShouldBe(2); + + var tokenCollection = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbol = collectionSymbol + }); + tokenCollection.Items[0].HolderCount.ShouldBe(2); + tokenCollection.Items[0].TransferCount.ShouldBe(2); + + var accountFrom = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + accountFrom[0].TransferCount.ShouldBe(3); + accountFrom[0].TokenHoldingCount.ShouldBe(1); + + var accountTo = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58() + }); + accountTo[0].TransferCount.ShouldBe(1); + accountTo[0].TokenHoldingCount.ShouldBe(1); + + var accountNftTokenFrom = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = transferred.Symbol + }); + accountNftTokenFrom.Items[0].TransferCount.ShouldBe(2); + accountNftTokenFrom.Items[0].FirstNftTransactionId.ShouldBe(TransactionId); + accountNftTokenFrom.Items[0].FirstNftTime.ShouldNotBeNull(); + + var accountCollectionTokenFrom = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = collectionSymbol + }); + accountCollectionTokenFrom.Items[0].TransferCount.ShouldBe(1); + accountCollectionTokenFrom.Items[0].FirstNftTransactionId.ShouldBeNull(); + accountCollectionTokenFrom.Items[0].FirstNftTime.ShouldBeNull(); + + var accountNftTokenTo = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = transferred.Symbol + }); + accountNftTokenTo.Items[0].TransferCount.ShouldBe(1); + accountNftTokenTo.Items[0].FirstNftTransactionId.ShouldBe(TransactionId); + accountNftTokenTo.Items[0].FirstNftTime.ShouldBe(logEventContext.Block.BlockTime); + + var accountCollectionTokenTo = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = collectionSymbol + }); + accountCollectionTokenTo.Items.ShouldBeEmpty(); + + var accountCollectionFrom1 = await Query.AccountCollection(AccountCollectionReadOnlyRepository, ObjectMapper,new GetAccountCollectionDto() + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = transferred.Symbol + }); + accountCollectionFrom1.Items.ShouldBeEmpty(); + + var accountCollectionTo1 = await Query.AccountCollection(AccountCollectionReadOnlyRepository, ObjectMapper,new GetAccountCollectionDto() + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = transferred.Symbol + }); + accountCollectionTo1.Items.ShouldBeEmpty(); + + var accountCollectionFrom2 = await Query.AccountCollection(AccountCollectionReadOnlyRepository, ObjectMapper,new GetAccountCollectionDto() + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = collectionSymbol + }); + accountCollectionFrom2.Items[0].TransferCount.ShouldBe(2); + accountCollectionFrom2.Items[0].FormatAmount.ShouldBe(99); + + var accountCollectionTo2 = await Query.AccountCollection(AccountCollectionReadOnlyRepository, ObjectMapper,new GetAccountCollectionDto() + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = collectionSymbol + }); + accountCollectionTo2.Items[0].TransferCount.ShouldBe(1); + accountCollectionTo2.Items[0].FormatAmount.ShouldBe(1); + + } + + [Fact] + public async Task HandleEvent_BalanceTo0_Test() + { + await CreateTokenAsync(); + + + var transferred = new Transferred + { + Amount = 100, + From = TestAddress, + Symbol = "ELF", + To = Address.FromBase58("2XDRhxzMbaYRCTe3NxRpARkBpjfQpyWdBKscQpc3Tph3m6dqHG"), + Memo = "memo" + }; + var logEventContext = GenerateLogEventContext(transferred); + await _transferredProcessor.ProcessAsync(logEventContext); + + var token = await Query.TokenInfo(TokenInfoReadOnlyRepository, ObjectMapper, new GetTokenInfoDto + { + ChainId = ChainId, + Symbol = "ELF" + }); + token.Items[0].HolderCount.ShouldBe(1); + token.Items[0].TransferCount.ShouldBe(2); + + var accountFrom = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58() + }); + accountFrom[0].TransferCount.ShouldBe(2); + accountFrom[0].TokenHoldingCount.ShouldBe(0); + + var accountTo = await Query.AccountInfo(AccountInfoReadOnlyRepository, ObjectMapper, new GetAccountInfoDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58() + }); + accountTo[0].TransferCount.ShouldBe(1); + accountTo[0].TokenHoldingCount.ShouldBe(1); + + var accountTokenFrom = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = TestAddress.ToBase58(), + Symbol = "ELF" + }); + accountTokenFrom.Items.ShouldBeEmpty(); + + var accountTokenTo = await Query.AccountToken(AccountTokenReadOnlyRepository, ObjectMapper,new GetAccountTokenDto + { + ChainId = ChainId, + Address = transferred.To.ToBase58(), + Symbol = "ELF" + }); + accountTokenTo.Items[0].Amount.ShouldBe(100); + accountTokenTo.Items[0].FormatAmount.ShouldBe(0.000001m); + accountTokenTo.Items[0].TransferCount.ShouldBe(1); + } +} \ No newline at end of file diff --git a/test/AElfScan.TokenApp.Tests/TokenContractAppTestBase.cs b/test/AElfScan.TokenApp.Tests/TokenContractAppTestBase.cs new file mode 100644 index 0000000..3d395f4 --- /dev/null +++ b/test/AElfScan.TokenApp.Tests/TokenContractAppTestBase.cs @@ -0,0 +1,169 @@ +using AeFinder.App.BlockProcessing; +using AeFinder.App.BlockState; +using AeFinder.App.OperationLimits; +using AeFinder.App.TestBase; +using AeFinder.Sdk; +using AElfScan.TokenApp.Entities; +using AElfScan.TokenApp.Processors; +using AElf.Contracts.MultiToken; +using AElf.Types; +using Volo.Abp.ObjectMapping; + +namespace AElfScan.TokenApp; + +public abstract class TokenContractAppTestBase: AeFinderAppTestBase +{ + private readonly IAppDataIndexManagerProvider _appDataIndexManagerProvider; + private readonly IAppBlockStateSetProvider _appBlockStateSetProvider; + private readonly IOperationLimitManager _operationLimitManager; + private readonly IBlockProcessingContext _blockProcessingContext; + protected readonly TokenCreatedProcessor TokenCreatedProcessor; + protected readonly IssuedProcessor IssuedProcessor; + protected readonly IObjectMapper ObjectMapper; + + protected IRepository TokenRepository; + protected IRepository AccountTokenRepository; + protected IRepository AccountInfoRepository; + protected IRepository TransferInfoRepository; + + protected readonly IReadOnlyRepository AccountInfoReadOnlyRepository; + protected readonly IReadOnlyRepository AccountTokenReadOnlyRepository; + protected readonly IReadOnlyRepository TokenInfoReadOnlyRepository; + protected readonly IReadOnlyRepository TransferInfoReadOnlyRepository; + protected readonly IReadOnlyRepository BlockBurnFeeInfoReadOnlyRepository; + protected readonly IReadOnlyRepository DailyHolderInfoReadOnlyRepository; + protected readonly IReadOnlyRepository AccountCollectionReadOnlyRepository; + + + protected Address TestAddress = Address.FromBase58("SietKh9cArYub9ox6E4rU94LrzPad6TB72rCwe3X1jQ5m1C34"); + protected string ChainId = "AELF"; + protected string BlockHash = "dac5cd67a2783d0a3d843426c2d45f1178f4d052235a907a0d796ae4659103b1"; + protected string PreviousBlockHash = "e38c4fb1cf6af05878657cb3f7b5fc8a5fcfb2eec19cd76b73abb831973fbf4e"; + protected string TransactionId = "4e07408562bedb8b60ce05c1decfe3ad16b72230967de01f640b7e4729b49fce"; + protected long BlockHeight = 99; + + public TokenContractAppTestBase() + { + + TokenCreatedProcessor = GetRequiredService(); + IssuedProcessor = GetRequiredService(); + ObjectMapper = GetRequiredService(); + TokenRepository = GetRequiredService>(); + AccountTokenRepository = GetRequiredService>(); + AccountInfoRepository = GetRequiredService>(); + TransferInfoRepository = GetRequiredService>(); + AccountInfoReadOnlyRepository = GetRequiredService>(); + AccountTokenReadOnlyRepository = GetRequiredService>(); + TokenInfoReadOnlyRepository = GetRequiredService>(); + TransferInfoReadOnlyRepository = GetRequiredService>(); + BlockBurnFeeInfoReadOnlyRepository = GetRequiredService>(); + DailyHolderInfoReadOnlyRepository = GetRequiredService>(); + AccountCollectionReadOnlyRepository = GetRequiredService>(); + TokenAppConstants.StartProcessBalanceEventHeight = new Dictionary + { + { "AELF", BlockHeight } + }; + } + + + protected async Task GetTokenAsync(string chainId, string symbol) + { + var tokenId = IdGenerateHelper.GetId(chainId, symbol); + return await TokenRepository.GetAsync(tokenId); + } + + protected async Task GetAccountInfoAsync(string chainId, string address) + { + var accountId = IdGenerateHelper.GetId(chainId, address); + return await AccountInfoRepository.GetAsync(accountId); + } + + protected async Task GetAccountTokenAsync(string chainId, string address, string symbol) + { + var accountTokenId = IdGenerateHelper.GetId(chainId, address, symbol); + return await AccountTokenRepository.GetAsync(accountTokenId); + } + + protected async Task CreateTokenAsync() + { + var tokenCreated = new TokenCreated + { + Symbol = "ELF", + Decimals = 8, + IsBurnable = true, + Issuer = TestAddress, + IssueChainId = 9999721, + TotalSupply = 1000, + TokenName = "ELF Token", + ExternalInfo = new ExternalInfo + { + Value = { {"key1","value1"} } + } + }; + var logEventContext = GenerateLogEventContext(tokenCreated); + await TokenCreatedProcessor.ProcessAsync(logEventContext); + + var issued = new Issued + { + Amount = 100, + Symbol = "ELF", + To = TestAddress, + Memo = "memo" + }; + logEventContext = GenerateLogEventContext(issued); + await IssuedProcessor.ProcessAsync(logEventContext); + } + + protected async Task CreateCollectionTokenAsync() + { + + var tokenCreated = new TokenCreated + { + Symbol = "NFT-0", + Decimals = 0, + IsBurnable = true, + Issuer = TestAddress, + IssueChainId = 9999721, + TotalSupply = 1000, + TokenName = "Collection Token" + }; + var logEventContext = GenerateLogEventContext(tokenCreated); + await TokenCreatedProcessor.ProcessAsync(logEventContext); + + var issued = new Issued + { + Amount = 1000, + Symbol = "NFT-0", + To = TestAddress, + Memo = "memo" + }; + logEventContext = GenerateLogEventContext(issued); + await IssuedProcessor.ProcessAsync(logEventContext); + } + + protected async Task CreateNftTokenAsync() + { + var tokenCreated = new TokenCreated + { + Symbol = "NFT-1", + Decimals = 0, + IsBurnable = true, + Issuer = TestAddress, + IssueChainId = 9999721, + TotalSupply = 1000, + TokenName = "NFT Token" + }; + var logEventContext = GenerateLogEventContext(tokenCreated); + await TokenCreatedProcessor.ProcessAsync(logEventContext); + + var issued = new Issued + { + Amount = 100, + Symbol = "NFT-1", + To = TestAddress, + Memo = "memo" + }; + logEventContext = GenerateLogEventContext(issued); + await IssuedProcessor.ProcessAsync(logEventContext); + } +} \ No newline at end of file From 818b8d062377412630704d7c295eea4593424458 Mon Sep 17 00:00:00 2001 From: kastale <160573283+kastale@users.noreply.github.com> Date: Mon, 8 Dec 2025 11:18:31 +0800 Subject: [PATCH 2/2] Create security.yml --- .github/workflows/security.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/security.yml 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