From 5e67e095ec328093f0a1ea3cd6a186ac6c41d0cb Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 8 Dec 2025 18:45:05 +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 | 42 + .github/workflows/test-with-code-coverage.yml | 55 + .gitignore | 264 + CodeCoverage.runsettings | 17 + EbridgeIndexer.sln | 30 + NuGet.Config | 7 + azure-pipelines.yml | 103 + build.cake | 78 + build.config | 3 + build.ps1 | 154 + build.sh | 75 + codecov.sh | 12 + codecov.yml | 3 + common.props | 15 + scripts/elasticsearch-linux.sh | 7 + scripts/elasticsearch-macOS.sh | 6 + scripts/elasticsearch-windows.ps1 | 9 + src/EbridgeIndexer/Contracts/Acs0.c.cs | 113 + src/EbridgeIndexer/Contracts/Acs0.g.cs | 3988 +++++ src/EbridgeIndexer/Contracts/Acs1.g.cs | 405 + src/EbridgeIndexer/Contracts/Acs11.c.cs | 75 + src/EbridgeIndexer/Contracts/Acs11.g.cs | 47 + src/EbridgeIndexer/Contracts/Acs12.c.cs | 54 + src/EbridgeIndexer/Contracts/Acs12.g.cs | 506 + src/EbridgeIndexer/Contracts/Acs13.g.cs | 291 + src/EbridgeIndexer/Contracts/Acs3.c.cs | 270 + src/EbridgeIndexer/Contracts/Acs3.g.cs | 2927 ++++ src/EbridgeIndexer/Contracts/Acs7.c.cs | 58 + src/EbridgeIndexer/Contracts/Acs7.g.cs | 4686 ++++++ .../Contracts/AuthorityInfo.g.cs | 217 + .../Contracts/BridgeContract.c.cs | 193 + .../Contracts/BridgeContract.g.cs | 12442 ++++++++++++++++ .../Contracts/BridgeContractImpl.c.cs | 1133 ++ .../Contracts/BridgeContractImpl.g.cs | 6003 ++++++++ .../Contracts/CallbackInput.g.cs | 303 + .../Contracts/CrossChainContract.c.cs | 159 + .../Contracts/CrossChainContract.g.cs | 3573 +++++ .../Contracts/ReceiptMaker.g.cs | 743 + .../Contracts/TokenContract.c.cs | 344 + .../Contracts/TokenContract.g.cs | 12202 +++++++++++++++ .../Contracts/TokenContractImpl.c.cs | 24 + .../Contracts/TokenContractImpl.g.cs | 2151 +++ .../Contracts/TokenPoolContract.c.cs | 236 + .../Contracts/TokenPoolContract.g.cs | 3671 +++++ src/EbridgeIndexer/EbridgeConst.cs | 32 + src/EbridgeIndexer/EbridgeIndexer.csproj | 13 + .../EbridgeIndexerAutoMapperProfile.cs | 149 + src/EbridgeIndexer/EbridgeIndexerModule.cs | 41 + .../Entities/CrossChainIndexingInfoIndex.cs | 10 + .../Entities/CrossChainLimitInfoIndex.cs | 45 + .../Entities/CrossChainTransferInfoIndex.cs | 37 + .../Entities/PoolLiquidityRecordIndex.cs | 15 + .../Entities/UserLiquidityRecordIndex.cs | 22 + src/EbridgeIndexer/GraphQL/AeIndexerSchema.cs | 10 + .../GraphQL/CrossChainIndexingInfoDto.cs | 7 + .../GraphQL/CrossChainLimitInfoDto.cs | 41 + .../CrossChainLimitInfoPageResultDto.cs | 8 + .../GraphQL/CrossChainTransferInfoDto.cs | 24 + .../GraphQL/GetCrossChainInfoInput.cs | 7 + .../GraphQL/GetCrossChainLimitInfoInput.cs | 12 + ...tCrossChainTransferInfoByReceiptIdInput.cs | 7 + src/EbridgeIndexer/GraphQL/GraphQLDto.cs | 10 + .../GraphQL/PoolLiquidityRecordDto.cs | 12 + src/EbridgeIndexer/GraphQL/Query.cs | 171 + src/EbridgeIndexer/GraphQL/QueryInput.cs | 18 + src/EbridgeIndexer/GraphQL/SyncStateDto.cs | 6 + .../GraphQL/UserLiquidityRecordDto.cs | 12 + src/EbridgeIndexer/IdGenerateHelper.cs | 9 + .../Processors/Bridge/BridgeProcessorBase.cs | 26 + .../Bridge/ReceiptCreatedProcessor.cs | 30 + .../Bridge/ReceiptDailyLimitSetProcessor.cs | 24 + .../Bridge/ReceiptLimitChangedProcessor.cs | 24 + .../Bridge/ReceiptTokenBucketSetProcessor.cs | 24 + .../Bridge/SwapDailyLimitSetProcessor.cs | 24 + .../Bridge/SwapLimitChangedProcessor.cs | 24 + .../Bridge/SwapTokenBucketSetProcessor.cs | 24 + .../Bridge/TokenSwappedProcessor.cs | 32 + .../CrossChain/CrossChainProcessorBase.cs | 22 + .../CrossChain/ParentChainIndexedProcessor.cs | 26 + .../CrossChain/SideChainIndexedProcessor.cs | 26 + .../Token/CrossChainReceivedProcessor.cs | 31 + .../Token/CrossChainTransferredProcessor.cs | 32 + .../Processors/Token/TokenProcessorBase.cs | 23 + .../TokenPool/LiquidityAddedProcessor.cs | 32 + .../TokenPool/LiquidityRemovedProcessor.cs | 33 + .../Processors/TokenPool/LockedProcessor.cs | 20 + .../Processors/TokenPool/ReleasedProcessor.cs | 20 + .../TokenPool/TokenPoolProcessorBase.cs | 43 + test/EbridgeIndexer.Tests/AssemblyInfo.cs | 3 + .../EbridgeIndexer.Tests.csproj | 34 + .../EbridgeIndexerTestBase.cs | 8 + .../EbridgeIndexerTestModule.cs | 43 + .../Bridge/ReceiptCreatedProcessorTests.cs | 88 + .../Bridge/TokenSwappedProcessorTests.cs | 82 + .../ParentChainIndexedProcessorTests.cs | 48 + .../SideChainIndexedProcessorTests.cs | 48 + .../ReceiptDailyLimitSetProcessorTest.cs | 54 + .../Limit/ReceiptLimitChangedProcessorTest.cs | 54 + .../ReceiptTokenBucketSetProcessorTest.cs | 52 + .../Limit/SwapDailyLimitSetProcessorTest.cs | 51 + .../Limit/SwapLimitChangedProcessorTest.cs | 51 + .../Limit/SwapTokenBucketSetProcessorTest.cs | 48 + .../Token/CrossChainReceivedProcessorTests.cs | 67 + .../CrossChainTransferredProcessorTests.cs | 62 + .../TokenPool/LiquidityAddedProcessorTests.cs | 83 + .../LiquidityRemovedProcessorTests.cs | 83 + .../TokenPool/LockedProcessorTests.cs | 60 + .../TokenPool/ReleasedProcessorTests.cs | 60 + 111 files changed, 60101 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 100755 CodeCoverage.runsettings create mode 100644 EbridgeIndexer.sln create mode 100644 NuGet.Config create mode 100755 azure-pipelines.yml create mode 100755 build.cake create mode 100644 build.config create mode 100755 build.ps1 create mode 100755 build.sh create mode 100755 codecov.sh create mode 100755 codecov.yml create mode 100644 common.props 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/EbridgeIndexer/Contracts/Acs0.c.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs0.g.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs1.g.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs11.c.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs11.g.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs12.c.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs12.g.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs13.g.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs3.c.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs3.g.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs7.c.cs create mode 100644 src/EbridgeIndexer/Contracts/Acs7.g.cs create mode 100644 src/EbridgeIndexer/Contracts/AuthorityInfo.g.cs create mode 100644 src/EbridgeIndexer/Contracts/BridgeContract.c.cs create mode 100644 src/EbridgeIndexer/Contracts/BridgeContract.g.cs create mode 100644 src/EbridgeIndexer/Contracts/BridgeContractImpl.c.cs create mode 100644 src/EbridgeIndexer/Contracts/BridgeContractImpl.g.cs create mode 100644 src/EbridgeIndexer/Contracts/CallbackInput.g.cs create mode 100644 src/EbridgeIndexer/Contracts/CrossChainContract.c.cs create mode 100644 src/EbridgeIndexer/Contracts/CrossChainContract.g.cs create mode 100644 src/EbridgeIndexer/Contracts/ReceiptMaker.g.cs create mode 100644 src/EbridgeIndexer/Contracts/TokenContract.c.cs create mode 100644 src/EbridgeIndexer/Contracts/TokenContract.g.cs create mode 100644 src/EbridgeIndexer/Contracts/TokenContractImpl.c.cs create mode 100644 src/EbridgeIndexer/Contracts/TokenContractImpl.g.cs create mode 100644 src/EbridgeIndexer/Contracts/TokenPoolContract.c.cs create mode 100644 src/EbridgeIndexer/Contracts/TokenPoolContract.g.cs create mode 100644 src/EbridgeIndexer/EbridgeConst.cs create mode 100644 src/EbridgeIndexer/EbridgeIndexer.csproj create mode 100644 src/EbridgeIndexer/EbridgeIndexerAutoMapperProfile.cs create mode 100644 src/EbridgeIndexer/EbridgeIndexerModule.cs create mode 100644 src/EbridgeIndexer/Entities/CrossChainIndexingInfoIndex.cs create mode 100644 src/EbridgeIndexer/Entities/CrossChainLimitInfoIndex.cs create mode 100644 src/EbridgeIndexer/Entities/CrossChainTransferInfoIndex.cs create mode 100644 src/EbridgeIndexer/Entities/PoolLiquidityRecordIndex.cs create mode 100644 src/EbridgeIndexer/Entities/UserLiquidityRecordIndex.cs create mode 100644 src/EbridgeIndexer/GraphQL/AeIndexerSchema.cs create mode 100644 src/EbridgeIndexer/GraphQL/CrossChainIndexingInfoDto.cs create mode 100644 src/EbridgeIndexer/GraphQL/CrossChainLimitInfoDto.cs create mode 100644 src/EbridgeIndexer/GraphQL/CrossChainLimitInfoPageResultDto.cs create mode 100644 src/EbridgeIndexer/GraphQL/CrossChainTransferInfoDto.cs create mode 100644 src/EbridgeIndexer/GraphQL/GetCrossChainInfoInput.cs create mode 100644 src/EbridgeIndexer/GraphQL/GetCrossChainLimitInfoInput.cs create mode 100644 src/EbridgeIndexer/GraphQL/GetCrossChainTransferInfoByReceiptIdInput.cs create mode 100644 src/EbridgeIndexer/GraphQL/GraphQLDto.cs create mode 100644 src/EbridgeIndexer/GraphQL/PoolLiquidityRecordDto.cs create mode 100644 src/EbridgeIndexer/GraphQL/Query.cs create mode 100644 src/EbridgeIndexer/GraphQL/QueryInput.cs create mode 100644 src/EbridgeIndexer/GraphQL/SyncStateDto.cs create mode 100644 src/EbridgeIndexer/GraphQL/UserLiquidityRecordDto.cs create mode 100644 src/EbridgeIndexer/IdGenerateHelper.cs create mode 100644 src/EbridgeIndexer/Processors/Bridge/BridgeProcessorBase.cs create mode 100644 src/EbridgeIndexer/Processors/Bridge/ReceiptCreatedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Bridge/ReceiptDailyLimitSetProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Bridge/ReceiptLimitChangedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Bridge/ReceiptTokenBucketSetProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Bridge/SwapDailyLimitSetProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Bridge/SwapLimitChangedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Bridge/SwapTokenBucketSetProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Bridge/TokenSwappedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/CrossChain/CrossChainProcessorBase.cs create mode 100644 src/EbridgeIndexer/Processors/CrossChain/ParentChainIndexedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/CrossChain/SideChainIndexedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Token/CrossChainReceivedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Token/CrossChainTransferredProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/Token/TokenProcessorBase.cs create mode 100644 src/EbridgeIndexer/Processors/TokenPool/LiquidityAddedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/TokenPool/LiquidityRemovedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/TokenPool/LockedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/TokenPool/ReleasedProcessor.cs create mode 100644 src/EbridgeIndexer/Processors/TokenPool/TokenPoolProcessorBase.cs create mode 100644 test/EbridgeIndexer.Tests/AssemblyInfo.cs create mode 100644 test/EbridgeIndexer.Tests/EbridgeIndexer.Tests.csproj create mode 100644 test/EbridgeIndexer.Tests/EbridgeIndexerTestBase.cs create mode 100644 test/EbridgeIndexer.Tests/EbridgeIndexerTestModule.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Bridge/ReceiptCreatedProcessorTests.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Bridge/TokenSwappedProcessorTests.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/CrossChain/ParentChainIndexedProcessorTests.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/CrossChain/SideChainIndexedProcessorTests.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Limit/ReceiptDailyLimitSetProcessorTest.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Limit/ReceiptLimitChangedProcessorTest.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Limit/ReceiptTokenBucketSetProcessorTest.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Limit/SwapDailyLimitSetProcessorTest.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Limit/SwapLimitChangedProcessorTest.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Limit/SwapTokenBucketSetProcessorTest.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Token/CrossChainReceivedProcessorTests.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/Token/CrossChainTransferredProcessorTests.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/TokenPool/LiquidityAddedProcessorTests.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/TokenPool/LiquidityRemovedProcessorTests.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/TokenPool/LockedProcessorTests.cs create mode 100644 test/EbridgeIndexer.Tests/Processors/TokenPool/ReleasedProcessorTests.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..93fe278 --- /dev/null +++ b/.github/workflows/sonarqube.yaml @@ -0,0 +1,42 @@ +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: 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:"ebridge-indexer" /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..3178120 --- /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..d89b5a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,264 @@ +gi## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# 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 +node_modules/ +orleans.codegen.cs + +# 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 + +**/wwwroot/libs/* +bootstrap-datepicker.en-CA.min.js + +*.DS_Store \ No newline at end of file diff --git a/CodeCoverage.runsettings b/CodeCoverage.runsettings new file mode 100755 index 0000000..16918eb --- /dev/null +++ b/CodeCoverage.runsettings @@ -0,0 +1,17 @@ + + + + + + + + cobertura + [xunit.*]*,[*Tests]* + **/test/**/*.cs,**/src/EbridgeIndexer/Contracts/*.cs + Obsolete,GeneratedCodeAttribute + false + + + + + \ No newline at end of file diff --git a/EbridgeIndexer.sln b/EbridgeIndexer.sln new file mode 100644 index 0000000..33666c9 --- /dev/null +++ b/EbridgeIndexer.sln @@ -0,0 +1,30 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F07E638D-DEC9-4D0B-A815-791C0AED81C0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EbridgeIndexer", "src\EbridgeIndexer\EbridgeIndexer.csproj", "{C00C5349-FF95-41F5-A56B-299986F157EB}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{CF8ECC12-55BE-457D-A3EE-D4283041B686}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EbridgeIndexer.Tests", "test\EbridgeIndexer.Tests\EbridgeIndexer.Tests.csproj", "{1DA69092-9C61-4660-8A61-3BA30ED892E0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {C00C5349-FF95-41F5-A56B-299986F157EB} = {F07E638D-DEC9-4D0B-A815-791C0AED81C0} + {1DA69092-9C61-4660-8A61-3BA30ED892E0} = {CF8ECC12-55BE-457D-A3EE-D4283041B686} + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C00C5349-FF95-41F5-A56B-299986F157EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C00C5349-FF95-41F5-A56B-299986F157EB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C00C5349-FF95-41F5-A56B-299986F157EB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C00C5349-FF95-41F5-A56B-299986F157EB}.Release|Any CPU.Build.0 = Release|Any CPU + {1DA69092-9C61-4660-8A61-3BA30ED892E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1DA69092-9C61-4660-8A61-3BA30ED892E0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1DA69092-9C61-4660-8A61-3BA30ED892E0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1DA69092-9C61-4660-8A61-3BA30ED892E0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/NuGet.Config b/NuGet.Config new file mode 100644 index 0000000..cf3e58d --- /dev/null +++ b/NuGet.Config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100755 index 0000000..4dfbc97 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,103 @@ +trigger: + branches: + include: + - master +pr: + branches: + include: + - master +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 100755 index 0000000..4fa267c --- /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 + "EbridgeIndexer.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..b55ec20 --- /dev/null +++ b/build.config @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +CAKE_VERSION=0.37.0 +DOTNET_VERSION=8.0.303 \ No newline at end of file diff --git a/build.ps1 b/build.ps1 new file mode 100755 index 0000000..e48d09a --- /dev/null +++ b/build.ps1 @@ -0,0 +1,154 @@ +#!/usr/bin/env pwsh +$DotNetInstallerUri = 'https://dot.net/v1/dotnet-install.ps1'; +$DotNetUnixInstallerUri = 'https://dot.net/v1/dotnet-install.sh' +$DotNetChannel = 'LTS' +$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent + +[string] $CakeVersion = '' +[string] $DotNetVersion= '' +foreach($line in Get-Content (Join-Path $PSScriptRoot 'build.config')) +{ + if ($line -like 'CAKE_VERSION=*') { + $CakeVersion = $line.SubString(13) + } + elseif ($line -like 'DOTNET_VERSION=*') { + $DotNetVersion =$line.SubString(15) + } +} + + +if ([string]::IsNullOrEmpty($CakeVersion) -or [string]::IsNullOrEmpty($DotNetVersion)) { + 'Failed to parse Cake / .NET Core SDK Version' + exit 1 +} + +# Make sure tools folder exists +$ToolPath = Join-Path $PSScriptRoot "tools" +if (!(Test-Path $ToolPath)) { + Write-Verbose "Creating tools directory..." + New-Item -Path $ToolPath -Type Directory -Force | out-null +} + + +if ($PSVersionTable.PSEdition -ne 'Core') { + # Attempt to set highest encryption available for SecurityProtocol. + # PowerShell will not set this by default (until maybe .NET 4.6.x). This + # will typically produce a message for PowerShell v2 (just an info + # message though) + try { + # Set TLS 1.2 (3072), then TLS 1.1 (768), then TLS 1.0 (192), finally SSL 3.0 (48) + # Use integers because the enumeration values for TLS 1.2 and TLS 1.1 won't + # exist in .NET 4.0, even though they are addressable if .NET 4.5+ is + # installed (.NET 4.5 is an in-place upgrade). + [System.Net.ServicePointManager]::SecurityProtocol = 3072 -bor 768 -bor 192 -bor 48 + } catch { + Write-Output 'Unable to set PowerShell to use TLS 1.2 and TLS 1.1 due to old .NET Framework installed. If you see underlying connection closed or trust errors, you may need to upgrade to .NET Framework 4.5+ and PowerShell v3' + } +} + +########################################################################### +# INSTALL .NET CORE CLI +########################################################################### + +$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 +$env:DOTNET_CLI_TELEMETRY_OPTOUT=1 +$env:DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2 + + +Function Remove-PathVariable([string]$VariableToRemove) +{ + $SplitChar = ';' + if ($IsMacOS -or $IsLinux) { + $SplitChar = ':' + } + + $path = [Environment]::GetEnvironmentVariable("PATH", "User") + if ($path -ne $null) + { + $newItems = $path.Split($SplitChar, [StringSplitOptions]::RemoveEmptyEntries) | Where-Object { "$($_)" -inotlike $VariableToRemove } + [Environment]::SetEnvironmentVariable("PATH", [System.String]::Join($SplitChar, $newItems), "User") + } + + $path = [Environment]::GetEnvironmentVariable("PATH", "Process") + if ($path -ne $null) + { + $newItems = $path.Split($SplitChar, [StringSplitOptions]::RemoveEmptyEntries) | Where-Object { "$($_)" -inotlike $VariableToRemove } + [Environment]::SetEnvironmentVariable("PATH", [System.String]::Join($SplitChar, $newItems), "Process") + } +} + +# Get .NET Core CLI path if installed. +$FoundDotNetCliVersion = $null; +if (Get-Command dotnet -ErrorAction SilentlyContinue) { + $FoundDotNetCliVersion = dotnet --version; +} + +if($FoundDotNetCliVersion -ne $DotNetVersion) { + $InstallPath = Join-Path $PSScriptRoot ".dotnet" + if (!(Test-Path $InstallPath)) { + New-Item -Path $InstallPath -ItemType Directory -Force | Out-Null; + } + + if ($IsMacOS -or $IsLinux) { + $ScriptPath = Join-Path $InstallPath 'dotnet-install.sh' + (New-Object System.Net.WebClient).DownloadFile($DotNetUnixInstallerUri, $ScriptPath); + & bash $ScriptPath --version "$DotNetVersion" --install-dir "$InstallPath" --channel "$DotNetChannel" --no-path + + Remove-PathVariable "$InstallPath" + $env:PATH = "$($InstallPath):$env:PATH" + } + else { + $ScriptPath = Join-Path $InstallPath 'dotnet-install.ps1' + (New-Object System.Net.WebClient).DownloadFile($DotNetInstallerUri, $ScriptPath); + & $ScriptPath -Channel $DotNetChannel -Version $DotNetVersion -InstallDir $InstallPath; + + Remove-PathVariable "$InstallPath" + $env:PATH = "$InstallPath;$env:PATH" + } + $env:DOTNET_ROOT=$InstallPath +} + +########################################################################### +# INSTALL CAKE +########################################################################### + +# Make sure Cake has been installed. +[string] $CakeExePath = '' +[string] $CakeInstalledVersion = Get-Command dotnet-cake -ErrorAction SilentlyContinue | % {&$_.Source --version} + +if ($CakeInstalledVersion -eq $CakeVersion) { + # Cake found locally + $CakeExePath = (Get-Command dotnet-cake).Source +} +else { + $CakePath = [System.IO.Path]::Combine($ToolPath,'.store', 'cake.tool', $CakeVersion) # Old PowerShell versions Join-Path only supports one child path + + $CakeExePath = (Get-ChildItem -Path $ToolPath -Filter "dotnet-cake*" -File| ForEach-Object FullName | Select-Object -First 1) + + + if ((!(Test-Path -Path $CakePath -PathType Container)) -or (!(Test-Path $CakeExePath -PathType Leaf))) { + + if ((![string]::IsNullOrEmpty($CakeExePath)) -and (Test-Path $CakeExePath -PathType Leaf)) + { + & dotnet tool uninstall --tool-path $ToolPath Cake.Tool + } + + & dotnet tool install --tool-path $ToolPath --version $CakeVersion Cake.Tool + if ($LASTEXITCODE -ne 0) + { + 'Failed to install cake' + exit 1 + } + $CakeExePath = (Get-ChildItem -Path $ToolPath -Filter "dotnet-cake*" -File| ForEach-Object FullName | Select-Object -First 1) + } +} + +########################################################################### +# RUN BUILD SCRIPT +########################################################################### +& "$CakeExePath" ./build.cake --bootstrap +if ($LASTEXITCODE -eq 0) +{ + & "$CakeExePath" ./build.cake $args +} +exit $LASTEXITCODE \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..06bcee8 --- /dev/null +++ b/build.sh @@ -0,0 +1,75 @@ +#!/usr/bin/env bash +# Define varibles +SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +source $SCRIPT_DIR/build.config +TOOLS_DIR=$SCRIPT_DIR/tools +CAKE_EXE=$TOOLS_DIR/dotnet-cake +CAKE_PATH=$TOOLS_DIR/.store/cake.tool/$CAKE_VERSION + +if [ "$CAKE_VERSION" = "" ] || [ "$DOTNET_VERSION" = "" ]; then + echo "An error occured while parsing Cake / .NET Core SDK version." + exit 1 +fi + +# Make sure the tools folder exist. +if [ ! -d "$TOOLS_DIR" ]; then + mkdir "$TOOLS_DIR" +fi + +########################################################################### +# INSTALL .NET CORE CLI +########################################################################### + +export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 +export DOTNET_CLI_TELEMETRY_OPTOUT=1 +export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0 +export DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2 + +DOTNET_INSTALLED_VERSION=$(dotnet --version 2>&1) + +if [ "$DOTNET_VERSION" != "$DOTNET_INSTALLED_VERSION" ]; then + echo "Installing .NET CLI..." + if [ ! -d "$SCRIPT_DIR/.dotnet" ]; then + mkdir "$SCRIPT_DIR/.dotnet" + fi + curl -Lsfo "$SCRIPT_DIR/.dotnet/dotnet-install.sh" https://dot.net/v1/dotnet-install.sh + bash "$SCRIPT_DIR/.dotnet/dotnet-install.sh" --version $DOTNET_VERSION --install-dir .dotnet --no-path + export PATH="$SCRIPT_DIR/.dotnet":$PATH + export DOTNET_ROOT="$SCRIPT_DIR/.dotnet" +fi + +########################################################################### +# INSTALL CAKE +########################################################################### + +CAKE_INSTALLED_VERSION=$(dotnet-cake --version 2>&1) + +if [ "$CAKE_VERSION" != "$CAKE_INSTALLED_VERSION" ]; then + if [ ! -f "$CAKE_EXE" ] || [ ! -d "$CAKE_PATH" ]; then + if [ -f "$CAKE_EXE" ]; then + dotnet tool uninstall --tool-path $TOOLS_DIR Cake.Tool + fi + + echo "Installing Cake $CAKE_VERSION..." + dotnet tool install --tool-path $TOOLS_DIR --version $CAKE_VERSION Cake.Tool + if [ $? -ne 0 ]; then + echo "An error occured while installing Cake." + exit 1 + fi + fi + + # Make sure that Cake has been installed. + if [ ! -f "$CAKE_EXE" ]; then + echo "Could not find Cake.exe at '$CAKE_EXE'." + exit 1 + fi +else + CAKE_EXE="dotnet-cake" +fi + +########################################################################### +# RUN BUILD SCRIPT +########################################################################### + +# Start Cake +(exec "$CAKE_EXE" build.cake --bootstrap) && (exec "$CAKE_EXE" build.cake "$@") \ No newline at end of file diff --git a/codecov.sh b/codecov.sh new file mode 100755 index 0000000..6b97c5b --- /dev/null +++ b/codecov.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +TOKEN=$1 +rm -r ./test/*.Tests/TestResults +rm -r CodeCoverage +for name in `ls ./test/*.Tests/*.csproj | awk '{print $NF}'`; +do + echo ${name} + dotnet test ${name} --logger trx --settings CodeCoverage.runsettings --collect:"XPlat Code Coverage" +done +reportgenerator /test/*/TestResults/*/coverage.cobertura.xml -reports:./test/*/TestResults/*/coverage.cobertura.xml -targetdir:./CodeCoverage -reporttypes:Cobertura -assemblyfilters:-xunit* +codecov -f ./CodeCoverage/Cobertura.xml -t ${TOKEN} \ No newline at end of file diff --git a/codecov.yml b/codecov.yml new file mode 100755 index 0000000..23be405 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,3 @@ +codecov: + notify: + after_n_builds: 1 \ No newline at end of file diff --git a/common.props b/common.props new file mode 100644 index 0000000..6ef9bae --- /dev/null +++ b/common.props @@ -0,0 +1,15 @@ + + + latest + 1.0.0 + $(NoWarn);CS1591 + app + + + + + $(NoWarn);0436 + + + + \ 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/EbridgeIndexer/Contracts/Acs0.c.cs b/src/EbridgeIndexer/Contracts/Acs0.c.cs new file mode 100644 index 0000000..b97dbd7 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs0.c.cs @@ -0,0 +1,113 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs0.proto +// +// Original file comments: +// * +// AElf Standards ACS0(Contract Deployment Standard) +// +// Used to manage the deployment and update of contracts. +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace AElf.Standards.ACS0 { + + #region Events + public partial class ContractProposed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ContractProposed GetNonIndexed() + { + return new ContractProposed + { + ProposedContractInputHash = ProposedContractInputHash, + }; + } + } + + public partial class ContractDeployed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new ContractDeployed + { + Author = Author + }, + new ContractDeployed + { + CodeHash = CodeHash + }, + }; + } + + public ContractDeployed GetNonIndexed() + { + return new ContractDeployed + { + Address = Address, + Version = Version, + Name = Name, + }; + } + } + + public partial class CodeCheckRequired : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public CodeCheckRequired GetNonIndexed() + { + return new CodeCheckRequired + { + Code = Code, + ProposedContractInputHash = ProposedContractInputHash, + Category = Category, + IsSystemContract = IsSystemContract, + }; + } + } + + public partial class CodeUpdated : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new CodeUpdated + { + Address = Address + }, + }; + } + + public CodeUpdated GetNonIndexed() + { + return new CodeUpdated + { + OldCodeHash = OldCodeHash, + NewCodeHash = NewCodeHash, + Version = Version, + }; + } + } + + #endregion +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/Acs0.g.cs b/src/EbridgeIndexer/Contracts/Acs0.g.cs new file mode 100644 index 0000000..4d48aad --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs0.g.cs @@ -0,0 +1,3988 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs0.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Standards.ACS0 { + + /// Holder for reflection information generated from acs0.proto + public static partial class Acs0Reflection { + + #region Descriptor + /// File descriptor for acs0.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static Acs0Reflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgphY3MwLnByb3RvEgRhY3MwGg9hZWxmL2NvcmUucHJvdG8aEmFlbGYvb3B0", + "aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGh5nb29n", + "bGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8iogEKDENvbnRyYWN0SW5mbxIV", + "Cg1zZXJpYWxfbnVtYmVyGAEgASgDEh0KBmF1dGhvchgCIAEoCzINLmFlbGYu", + "QWRkcmVzcxIQCghjYXRlZ29yeRgDIAEoERIdCgljb2RlX2hhc2gYBCABKAsy", + "Ci5hZWxmLkhhc2gSGgoSaXNfc3lzdGVtX2NvbnRyYWN0GAUgASgIEg8KB3Zl", + "cnNpb24YBiABKAUiOQoXQ29udHJhY3REZXBsb3ltZW50SW5wdXQSEAoIY2F0", + "ZWdvcnkYASABKBESDAoEY29kZRgCIAEoDCL7AgodU3lzdGVtQ29udHJhY3RE", + "ZXBsb3ltZW50SW5wdXQSEAoIY2F0ZWdvcnkYASABKBESDAoEY29kZRgCIAEo", + "DBIYCgRuYW1lGAMgASgLMgouYWVsZi5IYXNoEmkKHHRyYW5zYWN0aW9uX21l", + "dGhvZF9jYWxsX2xpc3QYBCABKAsyQy5hY3MwLlN5c3RlbUNvbnRyYWN0RGVw", + "bG95bWVudElucHV0LlN5c3RlbVRyYW5zYWN0aW9uTWV0aG9kQ2FsbExpc3Qa", + "QgobU3lzdGVtVHJhbnNhY3Rpb25NZXRob2RDYWxsEhMKC21ldGhvZF9uYW1l", + "GAEgASgJEg4KBnBhcmFtcxgCIAEoDBpxCh9TeXN0ZW1UcmFuc2FjdGlvbk1l", + "dGhvZENhbGxMaXN0Ek4KBXZhbHVlGAEgAygLMj8uYWNzMC5TeXN0ZW1Db250", + "cmFjdERlcGxveW1lbnRJbnB1dC5TeXN0ZW1UcmFuc2FjdGlvbk1ldGhvZENh", + "bGwiQwoTQ29udHJhY3RVcGRhdGVJbnB1dBIeCgdhZGRyZXNzGAEgASgLMg0u", + "YWVsZi5BZGRyZXNzEgwKBGNvZGUYAiABKAwi0wEKFkNvbnRyYWN0Q29kZUNo", + "ZWNrSW5wdXQSFgoOY29udHJhY3RfaW5wdXQYASABKAwSHgoWaXNfY29udHJh", + "Y3RfZGVwbG95bWVudBgCIAEoCBIhChljb2RlX2NoZWNrX3JlbGVhc2VfbWV0", + "aG9kGAMgASgJEjAKHHByb3Bvc2VkX2NvbnRyYWN0X2lucHV0X2hhc2gYBCAB", + "KAsyCi5hZWxmLkhhc2gSEAoIY2F0ZWdvcnkYBSABKBESGgoSaXNfc3lzdGVt", + "X2NvbnRyYWN0GAYgASgIIkoKEENvbnRyYWN0UHJvcG9zZWQSMAoccHJvcG9z", + "ZWRfY29udHJhY3RfaW5wdXRfaGFzaBgBIAEoCzIKLmFlbGYuSGFzaDoEoLsY", + "ASKvAQoQQ29udHJhY3REZXBsb3llZBIkCgZhdXRob3IYASABKAsyDS5hZWxm", + "LkFkZHJlc3NCBYiP9QEBEiQKCWNvZGVfaGFzaBgCIAEoCzIKLmFlbGYuSGFz", + "aEIFiI/1AQESHgoHYWRkcmVzcxgDIAEoCzINLmFlbGYuQWRkcmVzcxIPCgd2", + "ZXJzaW9uGAQgASgFEhgKBE5hbWUYBSABKAsyCi5hZWxmLkhhc2g6BKC7GAEi", + "hwEKEUNvZGVDaGVja1JlcXVpcmVkEgwKBGNvZGUYASABKAwSMAoccHJvcG9z", + "ZWRfY29udHJhY3RfaW5wdXRfaGFzaBgCIAEoCzIKLmFlbGYuSGFzaBIQCghj", + "YXRlZ29yeRgDIAEoERIaChJpc19zeXN0ZW1fY29udHJhY3QYBCABKAg6BKC7", + "GAEikQEKC0NvZGVVcGRhdGVkEiUKB2FkZHJlc3MYASABKAsyDS5hZWxmLkFk", + "ZHJlc3NCBYiP9QEBEiEKDW9sZF9jb2RlX2hhc2gYAiABKAsyCi5hZWxmLkhh", + "c2gSIQoNbmV3X2NvZGVfaGFzaBgDIAEoCzIKLmFlbGYuSGFzaBIPCgd2ZXJz", + "aW9uGAQgASgFOgSguxgBInMKIlZhbGlkYXRlU3lzdGVtQ29udHJhY3RBZGRy", + "ZXNzSW5wdXQSLQoZc3lzdGVtX2NvbnRyYWN0X2hhc2hfbmFtZRgBIAEoCzIK", + "LmFlbGYuSGFzaBIeCgdhZGRyZXNzGAIgASgLMg0uYWVsZi5BZGRyZXNzImkK", + "FFJlbGVhc2VDb250cmFjdElucHV0Eh8KC3Byb3Bvc2FsX2lkGAEgASgLMgou", + "YWVsZi5IYXNoEjAKHHByb3Bvc2VkX2NvbnRyYWN0X2lucHV0X2hhc2gYAiAB", + "KAsyCi5hZWxmLkhhc2giMQoUQ29udHJhY3RDb2RlSGFzaExpc3QSGQoFdmFs", + "dWUYASADKAsyCi5hZWxmLkhhc2gilAEKE0NvbnRyYWN0Q29kZUhhc2hNYXAS", + "MwoFdmFsdWUYASADKAsyJC5hY3MwLkNvbnRyYWN0Q29kZUhhc2hNYXAuVmFs", + "dWVFbnRyeRpICgpWYWx1ZUVudHJ5EgsKA2tleRgBIAEoAxIpCgV2YWx1ZRgC", + "IAEoCzIaLmFjczAuQ29udHJhY3RDb2RlSGFzaExpc3Q6AjgBMogLCgRBQ1Mw", + "ElEKGURlcGxveVN5c3RlbVNtYXJ0Q29udHJhY3QSIy5hY3MwLlN5c3RlbUNv", + "bnRyYWN0RGVwbG95bWVudElucHV0Gg0uYWVsZi5BZGRyZXNzIgASRQoTRGVw", + "bG95U21hcnRDb250cmFjdBIdLmFjczAuQ29udHJhY3REZXBsb3ltZW50SW5w", + "dXQaDS5hZWxmLkFkZHJlc3MiABJBChNVcGRhdGVTbWFydENvbnRyYWN0Ehku", + "YWNzMC5Db250cmFjdFVwZGF0ZUlucHV0Gg0uYWVsZi5BZGRyZXNzIgASQQoS", + "UHJvcG9zZU5ld0NvbnRyYWN0Eh0uYWNzMC5Db250cmFjdERlcGxveW1lbnRJ", + "bnB1dBoKLmFlbGYuSGFzaCIAEkYKGFByb3Bvc2VDb250cmFjdENvZGVDaGVj", + "axIcLmFjczAuQ29udHJhY3RDb2RlQ2hlY2tJbnB1dBoKLmFlbGYuSGFzaCIA", + "EkAKFVByb3Bvc2VVcGRhdGVDb250cmFjdBIZLmFjczAuQ29udHJhY3RVcGRh", + "dGVJbnB1dBoKLmFlbGYuSGFzaCIAEk8KF1JlbGVhc2VBcHByb3ZlZENvbnRy", + "YWN0EhouYWNzMC5SZWxlYXNlQ29udHJhY3RJbnB1dBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAElIKGlJlbGVhc2VDb2RlQ2hlY2tlZENvbnRyYWN0Ehou", + "YWNzMC5SZWxlYXNlQ29udHJhY3RJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5F", + "bXB0eSIAEmMKHVZhbGlkYXRlU3lzdGVtQ29udHJhY3RBZGRyZXNzEiguYWNz", + "MC5WYWxpZGF0ZVN5c3RlbUNvbnRyYWN0QWRkcmVzc0lucHV0GhYuZ29vZ2xl", + "LnByb3RvYnVmLkVtcHR5IgASWAogU2V0Q29udHJhY3RQcm9wb3NlclJlcXVp", + "cmVkU3RhdGUSGi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVlGhYuZ29vZ2xl", + "LnByb3RvYnVmLkVtcHR5IgASWQobQ3VycmVudENvbnRyYWN0U2VyaWFsTnVt", + "YmVyEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhsuZ29vZ2xlLnByb3RvYnVm", + "LkludDY0VmFsdWUiBYiJ9wEBEjsKD0dldENvbnRyYWN0SW5mbxINLmFlbGYu", + "QWRkcmVzcxoSLmFjczAuQ29udHJhY3RJbmZvIgWIifcBARI4ChFHZXRDb250", + "cmFjdEF1dGhvchINLmFlbGYuQWRkcmVzcxoNLmFlbGYuQWRkcmVzcyIFiIn3", + "AQESMwoPR2V0Q29udHJhY3RIYXNoEg0uYWVsZi5BZGRyZXNzGgouYWVsZi5I", + "YXNoIgWIifcBARI8ChhHZXRDb250cmFjdEFkZHJlc3NCeU5hbWUSCi5hZWxm", + "Lkhhc2gaDS5hZWxmLkFkZHJlc3MiBYiJ9wEBEl4KJUdldFNtYXJ0Q29udHJh", + "Y3RSZWdpc3RyYXRpb25CeUFkZHJlc3MSDS5hZWxmLkFkZHJlc3MaHy5hZWxm", + "LlNtYXJ0Q29udHJhY3RSZWdpc3RyYXRpb24iBYiJ9wEBElwKJkdldFNtYXJ0", + "Q29udHJhY3RSZWdpc3RyYXRpb25CeUNvZGVIYXNoEgouYWVsZi5IYXNoGh8u", + "YWVsZi5TbWFydENvbnRyYWN0UmVnaXN0cmF0aW9uIgWIifcBARJvCi1HZXRD", + "b250cmFjdENvZGVIYXNoTGlzdEJ5RGVwbG95aW5nQmxvY2tIZWlnaHQSGy5n", + "b29nbGUucHJvdG9idWYuSW50NjRWYWx1ZRoaLmFjczAuQ29udHJhY3RDb2Rl", + "SGFzaExpc3QiBYiJ9wEBQhaqAhNBRWxmLlN0YW5kYXJkcy5BQ1MwUABiBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractInfo), global::AElf.Standards.ACS0.ContractInfo.Parser, new[]{ "SerialNumber", "Author", "Category", "CodeHash", "IsSystemContract", "Version" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractDeploymentInput), global::AElf.Standards.ACS0.ContractDeploymentInput.Parser, new[]{ "Category", "Code" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SystemContractDeploymentInput), global::AElf.Standards.ACS0.SystemContractDeploymentInput.Parser, new[]{ "Category", "Code", "Name", "TransactionMethodCallList" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCall), global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCall.Parser, new[]{ "MethodName", "Params" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList), global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList.Parser, new[]{ "Value" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractUpdateInput), global::AElf.Standards.ACS0.ContractUpdateInput.Parser, new[]{ "Address", "Code" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractCodeCheckInput), global::AElf.Standards.ACS0.ContractCodeCheckInput.Parser, new[]{ "ContractInput", "IsContractDeployment", "CodeCheckReleaseMethod", "ProposedContractInputHash", "Category", "IsSystemContract" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractProposed), global::AElf.Standards.ACS0.ContractProposed.Parser, new[]{ "ProposedContractInputHash" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractDeployed), global::AElf.Standards.ACS0.ContractDeployed.Parser, new[]{ "Author", "CodeHash", "Address", "Version", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.CodeCheckRequired), global::AElf.Standards.ACS0.CodeCheckRequired.Parser, new[]{ "Code", "ProposedContractInputHash", "Category", "IsSystemContract" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.CodeUpdated), global::AElf.Standards.ACS0.CodeUpdated.Parser, new[]{ "Address", "OldCodeHash", "NewCodeHash", "Version" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ValidateSystemContractAddressInput), global::AElf.Standards.ACS0.ValidateSystemContractAddressInput.Parser, new[]{ "SystemContractHashName", "Address" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ReleaseContractInput), global::AElf.Standards.ACS0.ReleaseContractInput.Parser, new[]{ "ProposalId", "ProposedContractInputHash" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractCodeHashList), global::AElf.Standards.ACS0.ContractCodeHashList.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS0.ContractCodeHashMap), global::AElf.Standards.ACS0.ContractCodeHashMap.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + public sealed partial class ContractInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractInfo(ContractInfo other) : this() { + serialNumber_ = other.serialNumber_; + author_ = other.author_ != null ? other.author_.Clone() : null; + category_ = other.category_; + codeHash_ = other.codeHash_ != null ? other.codeHash_.Clone() : null; + isSystemContract_ = other.isSystemContract_; + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractInfo Clone() { + return new ContractInfo(this); + } + + /// Field number for the "serial_number" field. + public const int SerialNumberFieldNumber = 1; + private long serialNumber_; + /// + /// The serial number of the contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long SerialNumber { + get { return serialNumber_; } + set { + serialNumber_ = value; + } + } + + /// Field number for the "author" field. + public const int AuthorFieldNumber = 2; + private global::AElf.Types.Address author_; + /// + /// The author of the contract, this is the person who deployed the contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Author { + get { return author_; } + set { + author_ = value; + } + } + + /// Field number for the "category" field. + public const int CategoryFieldNumber = 3; + private int category_; + /// + /// The category of contract code(0: C#). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Category { + get { return category_; } + set { + category_ = value; + } + } + + /// Field number for the "code_hash" field. + public const int CodeHashFieldNumber = 4; + private global::AElf.Types.Hash codeHash_; + /// + /// The hash of the contract code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash CodeHash { + get { return codeHash_; } + set { + codeHash_ = value; + } + } + + /// Field number for the "is_system_contract" field. + public const int IsSystemContractFieldNumber = 5; + private bool isSystemContract_; + /// + /// Whether it is a system contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsSystemContract { + get { return isSystemContract_; } + set { + isSystemContract_ = value; + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 6; + private int version_; + /// + /// The version of the current contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Version { + get { return version_; } + set { + version_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContractInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContractInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SerialNumber != other.SerialNumber) return false; + if (!object.Equals(Author, other.Author)) return false; + if (Category != other.Category) return false; + if (!object.Equals(CodeHash, other.CodeHash)) return false; + if (IsSystemContract != other.IsSystemContract) return false; + if (Version != other.Version) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (SerialNumber != 0L) hash ^= SerialNumber.GetHashCode(); + if (author_ != null) hash ^= Author.GetHashCode(); + if (Category != 0) hash ^= Category.GetHashCode(); + if (codeHash_ != null) hash ^= CodeHash.GetHashCode(); + if (IsSystemContract != false) hash ^= IsSystemContract.GetHashCode(); + if (Version != 0) hash ^= Version.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SerialNumber != 0L) { + output.WriteRawTag(8); + output.WriteInt64(SerialNumber); + } + if (author_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Author); + } + if (Category != 0) { + output.WriteRawTag(24); + output.WriteSInt32(Category); + } + if (codeHash_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CodeHash); + } + if (IsSystemContract != false) { + output.WriteRawTag(40); + output.WriteBool(IsSystemContract); + } + if (Version != 0) { + output.WriteRawTag(48); + output.WriteInt32(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SerialNumber != 0L) { + output.WriteRawTag(8); + output.WriteInt64(SerialNumber); + } + if (author_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Author); + } + if (Category != 0) { + output.WriteRawTag(24); + output.WriteSInt32(Category); + } + if (codeHash_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CodeHash); + } + if (IsSystemContract != false) { + output.WriteRawTag(40); + output.WriteBool(IsSystemContract); + } + if (Version != 0) { + output.WriteRawTag(48); + output.WriteInt32(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (SerialNumber != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SerialNumber); + } + if (author_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author); + } + if (Category != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category); + } + if (codeHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CodeHash); + } + if (IsSystemContract != false) { + size += 1 + 1; + } + if (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContractInfo other) { + if (other == null) { + return; + } + if (other.SerialNumber != 0L) { + SerialNumber = other.SerialNumber; + } + if (other.author_ != null) { + if (author_ == null) { + Author = new global::AElf.Types.Address(); + } + Author.MergeFrom(other.Author); + } + if (other.Category != 0) { + Category = other.Category; + } + if (other.codeHash_ != null) { + if (codeHash_ == null) { + CodeHash = new global::AElf.Types.Hash(); + } + CodeHash.MergeFrom(other.CodeHash); + } + if (other.IsSystemContract != false) { + IsSystemContract = other.IsSystemContract; + } + if (other.Version != 0) { + Version = other.Version; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SerialNumber = input.ReadInt64(); + break; + } + case 18: { + if (author_ == null) { + Author = new global::AElf.Types.Address(); + } + input.ReadMessage(Author); + break; + } + case 24: { + Category = input.ReadSInt32(); + break; + } + case 34: { + if (codeHash_ == null) { + CodeHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(CodeHash); + break; + } + case 40: { + IsSystemContract = input.ReadBool(); + break; + } + case 48: { + Version = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SerialNumber = input.ReadInt64(); + break; + } + case 18: { + if (author_ == null) { + Author = new global::AElf.Types.Address(); + } + input.ReadMessage(Author); + break; + } + case 24: { + Category = input.ReadSInt32(); + break; + } + case 34: { + if (codeHash_ == null) { + CodeHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(CodeHash); + break; + } + case 40: { + IsSystemContract = input.ReadBool(); + break; + } + case 48: { + Version = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ContractDeploymentInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractDeploymentInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractDeploymentInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractDeploymentInput(ContractDeploymentInput other) : this() { + category_ = other.category_; + code_ = other.code_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractDeploymentInput Clone() { + return new ContractDeploymentInput(this); + } + + /// Field number for the "category" field. + public const int CategoryFieldNumber = 1; + private int category_; + /// + /// The category of contract code(0: C#). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Category { + get { return category_; } + set { + category_ = value; + } + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 2; + private pb::ByteString code_ = pb::ByteString.Empty; + /// + /// The byte array of the contract code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Code { + get { return code_; } + set { + code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContractDeploymentInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContractDeploymentInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Category != other.Category) return false; + if (Code != other.Code) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Category != 0) hash ^= Category.GetHashCode(); + if (Code.Length != 0) hash ^= Code.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Category != 0) { + output.WriteRawTag(8); + output.WriteSInt32(Category); + } + if (Code.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Code); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Category != 0) { + output.WriteRawTag(8); + output.WriteSInt32(Category); + } + if (Code.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Code); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Category != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category); + } + if (Code.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContractDeploymentInput other) { + if (other == null) { + return; + } + if (other.Category != 0) { + Category = other.Category; + } + if (other.Code.Length != 0) { + Code = other.Code; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Category = input.ReadSInt32(); + break; + } + case 18: { + Code = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Category = input.ReadSInt32(); + break; + } + case 18: { + Code = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SystemContractDeploymentInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemContractDeploymentInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SystemContractDeploymentInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SystemContractDeploymentInput(SystemContractDeploymentInput other) : this() { + category_ = other.category_; + code_ = other.code_; + name_ = other.name_ != null ? other.name_.Clone() : null; + transactionMethodCallList_ = other.transactionMethodCallList_ != null ? other.transactionMethodCallList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SystemContractDeploymentInput Clone() { + return new SystemContractDeploymentInput(this); + } + + /// Field number for the "category" field. + public const int CategoryFieldNumber = 1; + private int category_; + /// + /// The category of contract code(0: C#). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Category { + get { return category_; } + set { + category_ = value; + } + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 2; + private pb::ByteString code_ = pb::ByteString.Empty; + /// + /// The byte array of the contract code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Code { + get { return code_; } + set { + code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private global::AElf.Types.Hash name_; + /// + /// The name of the contract. It has to be unique. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash Name { + get { return name_; } + set { + name_ = value; + } + } + + /// Field number for the "transaction_method_call_list" field. + public const int TransactionMethodCallListFieldNumber = 4; + private global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList transactionMethodCallList_; + /// + /// An initial list of transactions for the system contract, + /// which is executed in sequence when the contract is deployed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList TransactionMethodCallList { + get { return transactionMethodCallList_; } + set { + transactionMethodCallList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SystemContractDeploymentInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SystemContractDeploymentInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Category != other.Category) return false; + if (Code != other.Code) return false; + if (!object.Equals(Name, other.Name)) return false; + if (!object.Equals(TransactionMethodCallList, other.TransactionMethodCallList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Category != 0) hash ^= Category.GetHashCode(); + if (Code.Length != 0) hash ^= Code.GetHashCode(); + if (name_ != null) hash ^= Name.GetHashCode(); + if (transactionMethodCallList_ != null) hash ^= TransactionMethodCallList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Category != 0) { + output.WriteRawTag(8); + output.WriteSInt32(Category); + } + if (Code.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Code); + } + if (name_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Name); + } + if (transactionMethodCallList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TransactionMethodCallList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Category != 0) { + output.WriteRawTag(8); + output.WriteSInt32(Category); + } + if (Code.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Code); + } + if (name_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Name); + } + if (transactionMethodCallList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TransactionMethodCallList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Category != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category); + } + if (Code.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code); + } + if (name_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name); + } + if (transactionMethodCallList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransactionMethodCallList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SystemContractDeploymentInput other) { + if (other == null) { + return; + } + if (other.Category != 0) { + Category = other.Category; + } + if (other.Code.Length != 0) { + Code = other.Code; + } + if (other.name_ != null) { + if (name_ == null) { + Name = new global::AElf.Types.Hash(); + } + Name.MergeFrom(other.Name); + } + if (other.transactionMethodCallList_ != null) { + if (transactionMethodCallList_ == null) { + TransactionMethodCallList = new global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList(); + } + TransactionMethodCallList.MergeFrom(other.TransactionMethodCallList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Category = input.ReadSInt32(); + break; + } + case 18: { + Code = input.ReadBytes(); + break; + } + case 26: { + if (name_ == null) { + Name = new global::AElf.Types.Hash(); + } + input.ReadMessage(Name); + break; + } + case 34: { + if (transactionMethodCallList_ == null) { + TransactionMethodCallList = new global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList(); + } + input.ReadMessage(TransactionMethodCallList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Category = input.ReadSInt32(); + break; + } + case 18: { + Code = input.ReadBytes(); + break; + } + case 26: { + if (name_ == null) { + Name = new global::AElf.Types.Hash(); + } + input.ReadMessage(Name); + break; + } + case 34: { + if (transactionMethodCallList_ == null) { + TransactionMethodCallList = new global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCallList(); + } + input.ReadMessage(TransactionMethodCallList); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SystemContractDeploymentInput message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public sealed partial class SystemTransactionMethodCall : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemTransactionMethodCall()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.SystemContractDeploymentInput.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SystemTransactionMethodCall() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SystemTransactionMethodCall(SystemTransactionMethodCall other) : this() { + methodName_ = other.methodName_; + params_ = other.params_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SystemTransactionMethodCall Clone() { + return new SystemTransactionMethodCall(this); + } + + /// Field number for the "method_name" field. + public const int MethodNameFieldNumber = 1; + private string methodName_ = ""; + /// + /// The method name of system transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string MethodName { + get { return methodName_; } + set { + methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "params" field. + public const int ParamsFieldNumber = 2; + private pb::ByteString params_ = pb::ByteString.Empty; + /// + /// The params of system transaction method. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Params { + get { return params_; } + set { + params_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SystemTransactionMethodCall); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SystemTransactionMethodCall other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MethodName != other.MethodName) return false; + if (Params != other.Params) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); + if (Params.Length != 0) hash ^= Params.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MethodName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MethodName); + } + if (Params.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Params); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MethodName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MethodName); + } + if (Params.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Params); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (MethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName); + } + if (Params.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Params); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SystemTransactionMethodCall other) { + if (other == null) { + return; + } + if (other.MethodName.Length != 0) { + MethodName = other.MethodName; + } + if (other.Params.Length != 0) { + Params = other.Params; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + MethodName = input.ReadString(); + break; + } + case 18: { + Params = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + MethodName = input.ReadString(); + break; + } + case 18: { + Params = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SystemTransactionMethodCallList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemTransactionMethodCallList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.SystemContractDeploymentInput.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SystemTransactionMethodCallList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SystemTransactionMethodCallList(SystemTransactionMethodCallList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SystemTransactionMethodCallList Clone() { + return new SystemTransactionMethodCallList(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Standards.ACS0.SystemContractDeploymentInput.Types.SystemTransactionMethodCall.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + /// + /// The list of system transactions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SystemTransactionMethodCallList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SystemTransactionMethodCallList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #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] + 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] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SystemTransactionMethodCallList other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + public sealed partial class ContractUpdateInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractUpdateInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractUpdateInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractUpdateInput(ContractUpdateInput other) : this() { + address_ = other.address_ != null ? other.address_.Clone() : null; + code_ = other.code_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractUpdateInput Clone() { + return new ContractUpdateInput(this); + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 1; + private global::AElf.Types.Address address_; + /// + /// The contract address that needs to be updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Address { + get { return address_; } + set { + address_ = value; + } + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 2; + private pb::ByteString code_ = pb::ByteString.Empty; + /// + /// The byte array of the new contract code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Code { + get { return code_; } + set { + code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContractUpdateInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContractUpdateInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Address, other.Address)) return false; + if (Code != other.Code) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (address_ != null) hash ^= Address.GetHashCode(); + if (Code.Length != 0) hash ^= Code.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (Code.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Code); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (Code.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Code); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (address_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + } + if (Code.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContractUpdateInput other) { + if (other == null) { + return; + } + if (other.address_ != null) { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + Address.MergeFrom(other.Address); + } + if (other.Code.Length != 0) { + Code = other.Code; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + Code = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + Code = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ContractCodeCheckInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractCodeCheckInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractCodeCheckInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractCodeCheckInput(ContractCodeCheckInput other) : this() { + contractInput_ = other.contractInput_; + isContractDeployment_ = other.isContractDeployment_; + codeCheckReleaseMethod_ = other.codeCheckReleaseMethod_; + proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null; + category_ = other.category_; + isSystemContract_ = other.isSystemContract_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractCodeCheckInput Clone() { + return new ContractCodeCheckInput(this); + } + + /// Field number for the "contract_input" field. + public const int ContractInputFieldNumber = 1; + private pb::ByteString contractInput_ = pb::ByteString.Empty; + /// + /// The byte array of the contract code to be checked. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString ContractInput { + get { return contractInput_; } + set { + contractInput_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_contract_deployment" field. + public const int IsContractDeploymentFieldNumber = 2; + private bool isContractDeployment_; + /// + /// Whether the input contract is to be deployed or updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsContractDeployment { + get { return isContractDeployment_; } + set { + isContractDeployment_ = value; + } + } + + /// Field number for the "code_check_release_method" field. + public const int CodeCheckReleaseMethodFieldNumber = 3; + private string codeCheckReleaseMethod_ = ""; + /// + /// Method to call after code check complete(DeploySmartContract or UpdateSmartContract). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string CodeCheckReleaseMethod { + get { return codeCheckReleaseMethod_; } + set { + codeCheckReleaseMethod_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "proposed_contract_input_hash" field. + public const int ProposedContractInputHashFieldNumber = 4; + private global::AElf.Types.Hash proposedContractInputHash_; + /// + /// The id of the proposed contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposedContractInputHash { + get { return proposedContractInputHash_; } + set { + proposedContractInputHash_ = value; + } + } + + /// Field number for the "category" field. + public const int CategoryFieldNumber = 5; + private int category_; + /// + /// The category of contract code(0: C#). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Category { + get { return category_; } + set { + category_ = value; + } + } + + /// Field number for the "is_system_contract" field. + public const int IsSystemContractFieldNumber = 6; + private bool isSystemContract_; + /// + /// Indicates if the contract is the system contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsSystemContract { + get { return isSystemContract_; } + set { + isSystemContract_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContractCodeCheckInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContractCodeCheckInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ContractInput != other.ContractInput) return false; + if (IsContractDeployment != other.IsContractDeployment) return false; + if (CodeCheckReleaseMethod != other.CodeCheckReleaseMethod) return false; + if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false; + if (Category != other.Category) return false; + if (IsSystemContract != other.IsSystemContract) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ContractInput.Length != 0) hash ^= ContractInput.GetHashCode(); + if (IsContractDeployment != false) hash ^= IsContractDeployment.GetHashCode(); + if (CodeCheckReleaseMethod.Length != 0) hash ^= CodeCheckReleaseMethod.GetHashCode(); + if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode(); + if (Category != 0) hash ^= Category.GetHashCode(); + if (IsSystemContract != false) hash ^= IsSystemContract.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ContractInput.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(ContractInput); + } + if (IsContractDeployment != false) { + output.WriteRawTag(16); + output.WriteBool(IsContractDeployment); + } + if (CodeCheckReleaseMethod.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CodeCheckReleaseMethod); + } + if (proposedContractInputHash_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ProposedContractInputHash); + } + if (Category != 0) { + output.WriteRawTag(40); + output.WriteSInt32(Category); + } + if (IsSystemContract != false) { + output.WriteRawTag(48); + output.WriteBool(IsSystemContract); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ContractInput.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(ContractInput); + } + if (IsContractDeployment != false) { + output.WriteRawTag(16); + output.WriteBool(IsContractDeployment); + } + if (CodeCheckReleaseMethod.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CodeCheckReleaseMethod); + } + if (proposedContractInputHash_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ProposedContractInputHash); + } + if (Category != 0) { + output.WriteRawTag(40); + output.WriteSInt32(Category); + } + if (IsSystemContract != false) { + output.WriteRawTag(48); + output.WriteBool(IsSystemContract); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ContractInput.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ContractInput); + } + if (IsContractDeployment != false) { + size += 1 + 1; + } + if (CodeCheckReleaseMethod.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeCheckReleaseMethod); + } + if (proposedContractInputHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash); + } + if (Category != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category); + } + if (IsSystemContract != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContractCodeCheckInput other) { + if (other == null) { + return; + } + if (other.ContractInput.Length != 0) { + ContractInput = other.ContractInput; + } + if (other.IsContractDeployment != false) { + IsContractDeployment = other.IsContractDeployment; + } + if (other.CodeCheckReleaseMethod.Length != 0) { + CodeCheckReleaseMethod = other.CodeCheckReleaseMethod; + } + if (other.proposedContractInputHash_ != null) { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash); + } + if (other.Category != 0) { + Category = other.Category; + } + if (other.IsSystemContract != false) { + IsSystemContract = other.IsSystemContract; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ContractInput = input.ReadBytes(); + break; + } + case 16: { + IsContractDeployment = input.ReadBool(); + break; + } + case 26: { + CodeCheckReleaseMethod = input.ReadString(); + break; + } + case 34: { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposedContractInputHash); + break; + } + case 40: { + Category = input.ReadSInt32(); + break; + } + case 48: { + IsSystemContract = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ContractInput = input.ReadBytes(); + break; + } + case 16: { + IsContractDeployment = input.ReadBool(); + break; + } + case 26: { + CodeCheckReleaseMethod = input.ReadString(); + break; + } + case 34: { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposedContractInputHash); + break; + } + case 40: { + Category = input.ReadSInt32(); + break; + } + case 48: { + IsSystemContract = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ContractProposed : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractProposed()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractProposed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractProposed(ContractProposed other) : this() { + proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractProposed Clone() { + return new ContractProposed(this); + } + + /// Field number for the "proposed_contract_input_hash" field. + public const int ProposedContractInputHashFieldNumber = 1; + private global::AElf.Types.Hash proposedContractInputHash_; + /// + /// The id of the proposed contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposedContractInputHash { + get { return proposedContractInputHash_; } + set { + proposedContractInputHash_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContractProposed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContractProposed other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (proposedContractInputHash_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposedContractInputHash); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (proposedContractInputHash_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposedContractInputHash); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposedContractInputHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContractProposed other) { + if (other == null) { + return; + } + if (other.proposedContractInputHash_ != null) { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposedContractInputHash); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposedContractInputHash); + break; + } + } + } + } + #endif + + } + + public sealed partial class ContractDeployed : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractDeployed()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractDeployed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractDeployed(ContractDeployed other) : this() { + author_ = other.author_ != null ? other.author_.Clone() : null; + codeHash_ = other.codeHash_ != null ? other.codeHash_.Clone() : null; + address_ = other.address_ != null ? other.address_.Clone() : null; + version_ = other.version_; + name_ = other.name_ != null ? other.name_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractDeployed Clone() { + return new ContractDeployed(this); + } + + /// Field number for the "author" field. + public const int AuthorFieldNumber = 1; + private global::AElf.Types.Address author_; + /// + /// The author of the contract, this is the person who deployed the contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Author { + get { return author_; } + set { + author_ = value; + } + } + + /// Field number for the "code_hash" field. + public const int CodeHashFieldNumber = 2; + private global::AElf.Types.Hash codeHash_; + /// + /// The hash of the contract code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash CodeHash { + get { return codeHash_; } + set { + codeHash_ = value; + } + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 3; + private global::AElf.Types.Address address_; + /// + /// The address of the contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Address { + get { return address_; } + set { + address_ = value; + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 4; + private int version_; + /// + /// The version of the current contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Version { + get { return version_; } + set { + version_ = value; + } + } + + /// Field number for the "Name" field. + public const int NameFieldNumber = 5; + private global::AElf.Types.Hash name_; + /// + /// The name of the contract. It has to be unique. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash Name { + get { return name_; } + set { + name_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContractDeployed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContractDeployed other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Author, other.Author)) return false; + if (!object.Equals(CodeHash, other.CodeHash)) return false; + if (!object.Equals(Address, other.Address)) return false; + if (Version != other.Version) return false; + if (!object.Equals(Name, other.Name)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (author_ != null) hash ^= Author.GetHashCode(); + if (codeHash_ != null) hash ^= CodeHash.GetHashCode(); + if (address_ != null) hash ^= Address.GetHashCode(); + if (Version != 0) hash ^= Version.GetHashCode(); + if (name_ != null) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (author_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Author); + } + if (codeHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CodeHash); + } + if (address_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Address); + } + if (Version != 0) { + output.WriteRawTag(32); + output.WriteInt32(Version); + } + if (name_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (author_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Author); + } + if (codeHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CodeHash); + } + if (address_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Address); + } + if (Version != 0) { + output.WriteRawTag(32); + output.WriteInt32(Version); + } + if (name_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (author_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author); + } + if (codeHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CodeHash); + } + if (address_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + } + if (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); + } + if (name_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContractDeployed other) { + if (other == null) { + return; + } + if (other.author_ != null) { + if (author_ == null) { + Author = new global::AElf.Types.Address(); + } + Author.MergeFrom(other.Author); + } + if (other.codeHash_ != null) { + if (codeHash_ == null) { + CodeHash = new global::AElf.Types.Hash(); + } + CodeHash.MergeFrom(other.CodeHash); + } + if (other.address_ != null) { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + Address.MergeFrom(other.Address); + } + if (other.Version != 0) { + Version = other.Version; + } + if (other.name_ != null) { + if (name_ == null) { + Name = new global::AElf.Types.Hash(); + } + Name.MergeFrom(other.Name); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (author_ == null) { + Author = new global::AElf.Types.Address(); + } + input.ReadMessage(Author); + break; + } + case 18: { + if (codeHash_ == null) { + CodeHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(CodeHash); + break; + } + case 26: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 32: { + Version = input.ReadInt32(); + break; + } + case 42: { + if (name_ == null) { + Name = new global::AElf.Types.Hash(); + } + input.ReadMessage(Name); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (author_ == null) { + Author = new global::AElf.Types.Address(); + } + input.ReadMessage(Author); + break; + } + case 18: { + if (codeHash_ == null) { + CodeHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(CodeHash); + break; + } + case 26: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 32: { + Version = input.ReadInt32(); + break; + } + case 42: { + if (name_ == null) { + Name = new global::AElf.Types.Hash(); + } + input.ReadMessage(Name); + break; + } + } + } + } + #endif + + } + + public sealed partial class CodeCheckRequired : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodeCheckRequired()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CodeCheckRequired() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CodeCheckRequired(CodeCheckRequired other) : this() { + code_ = other.code_; + proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null; + category_ = other.category_; + isSystemContract_ = other.isSystemContract_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CodeCheckRequired Clone() { + return new CodeCheckRequired(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private pb::ByteString code_ = pb::ByteString.Empty; + /// + /// The byte array of the contract code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Code { + get { return code_; } + set { + code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "proposed_contract_input_hash" field. + public const int ProposedContractInputHashFieldNumber = 2; + private global::AElf.Types.Hash proposedContractInputHash_; + /// + /// The id of the proposed contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposedContractInputHash { + get { return proposedContractInputHash_; } + set { + proposedContractInputHash_ = value; + } + } + + /// Field number for the "category" field. + public const int CategoryFieldNumber = 3; + private int category_; + /// + /// The category of contract code(0: C#). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Category { + get { return category_; } + set { + category_ = value; + } + } + + /// Field number for the "is_system_contract" field. + public const int IsSystemContractFieldNumber = 4; + private bool isSystemContract_; + /// + /// Indicates if the contract is the system contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsSystemContract { + get { return isSystemContract_; } + set { + isSystemContract_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CodeCheckRequired); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CodeCheckRequired other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false; + if (Category != other.Category) return false; + if (IsSystemContract != other.IsSystemContract) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Code.Length != 0) hash ^= Code.GetHashCode(); + if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode(); + if (Category != 0) hash ^= Category.GetHashCode(); + if (IsSystemContract != false) hash ^= IsSystemContract.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Code.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Code); + } + if (proposedContractInputHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ProposedContractInputHash); + } + if (Category != 0) { + output.WriteRawTag(24); + output.WriteSInt32(Category); + } + if (IsSystemContract != false) { + output.WriteRawTag(32); + output.WriteBool(IsSystemContract); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Code.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Code); + } + if (proposedContractInputHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ProposedContractInputHash); + } + if (Category != 0) { + output.WriteRawTag(24); + output.WriteSInt32(Category); + } + if (IsSystemContract != false) { + output.WriteRawTag(32); + output.WriteBool(IsSystemContract); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Code.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Code); + } + if (proposedContractInputHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash); + } + if (Category != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Category); + } + if (IsSystemContract != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CodeCheckRequired other) { + if (other == null) { + return; + } + if (other.Code.Length != 0) { + Code = other.Code; + } + if (other.proposedContractInputHash_ != null) { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash); + } + if (other.Category != 0) { + Category = other.Category; + } + if (other.IsSystemContract != false) { + IsSystemContract = other.IsSystemContract; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Code = input.ReadBytes(); + break; + } + case 18: { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposedContractInputHash); + break; + } + case 24: { + Category = input.ReadSInt32(); + break; + } + case 32: { + IsSystemContract = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Code = input.ReadBytes(); + break; + } + case 18: { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposedContractInputHash); + break; + } + case 24: { + Category = input.ReadSInt32(); + break; + } + case 32: { + IsSystemContract = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CodeUpdated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodeUpdated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CodeUpdated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CodeUpdated(CodeUpdated other) : this() { + address_ = other.address_ != null ? other.address_.Clone() : null; + oldCodeHash_ = other.oldCodeHash_ != null ? other.oldCodeHash_.Clone() : null; + newCodeHash_ = other.newCodeHash_ != null ? other.newCodeHash_.Clone() : null; + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CodeUpdated Clone() { + return new CodeUpdated(this); + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 1; + private global::AElf.Types.Address address_; + /// + /// The address of the updated contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Address { + get { return address_; } + set { + address_ = value; + } + } + + /// Field number for the "old_code_hash" field. + public const int OldCodeHashFieldNumber = 2; + private global::AElf.Types.Hash oldCodeHash_; + /// + /// The byte array of the old contract code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash OldCodeHash { + get { return oldCodeHash_; } + set { + oldCodeHash_ = value; + } + } + + /// Field number for the "new_code_hash" field. + public const int NewCodeHashFieldNumber = 3; + private global::AElf.Types.Hash newCodeHash_; + /// + /// The byte array of the new contract code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash NewCodeHash { + get { return newCodeHash_; } + set { + newCodeHash_ = value; + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 4; + private int version_; + /// + /// The version of the current contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Version { + get { return version_; } + set { + version_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CodeUpdated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CodeUpdated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Address, other.Address)) return false; + if (!object.Equals(OldCodeHash, other.OldCodeHash)) return false; + if (!object.Equals(NewCodeHash, other.NewCodeHash)) return false; + if (Version != other.Version) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (address_ != null) hash ^= Address.GetHashCode(); + if (oldCodeHash_ != null) hash ^= OldCodeHash.GetHashCode(); + if (newCodeHash_ != null) hash ^= NewCodeHash.GetHashCode(); + if (Version != 0) hash ^= Version.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (oldCodeHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OldCodeHash); + } + if (newCodeHash_ != null) { + output.WriteRawTag(26); + output.WriteMessage(NewCodeHash); + } + if (Version != 0) { + output.WriteRawTag(32); + output.WriteInt32(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (oldCodeHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OldCodeHash); + } + if (newCodeHash_ != null) { + output.WriteRawTag(26); + output.WriteMessage(NewCodeHash); + } + if (Version != 0) { + output.WriteRawTag(32); + output.WriteInt32(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (address_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + } + if (oldCodeHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OldCodeHash); + } + if (newCodeHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewCodeHash); + } + if (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CodeUpdated other) { + if (other == null) { + return; + } + if (other.address_ != null) { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + Address.MergeFrom(other.Address); + } + if (other.oldCodeHash_ != null) { + if (oldCodeHash_ == null) { + OldCodeHash = new global::AElf.Types.Hash(); + } + OldCodeHash.MergeFrom(other.OldCodeHash); + } + if (other.newCodeHash_ != null) { + if (newCodeHash_ == null) { + NewCodeHash = new global::AElf.Types.Hash(); + } + NewCodeHash.MergeFrom(other.NewCodeHash); + } + if (other.Version != 0) { + Version = other.Version; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + if (oldCodeHash_ == null) { + OldCodeHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(OldCodeHash); + break; + } + case 26: { + if (newCodeHash_ == null) { + NewCodeHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(NewCodeHash); + break; + } + case 32: { + Version = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + if (oldCodeHash_ == null) { + OldCodeHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(OldCodeHash); + break; + } + case 26: { + if (newCodeHash_ == null) { + NewCodeHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(NewCodeHash); + break; + } + case 32: { + Version = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ValidateSystemContractAddressInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidateSystemContractAddressInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ValidateSystemContractAddressInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ValidateSystemContractAddressInput(ValidateSystemContractAddressInput other) : this() { + systemContractHashName_ = other.systemContractHashName_ != null ? other.systemContractHashName_.Clone() : null; + address_ = other.address_ != null ? other.address_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ValidateSystemContractAddressInput Clone() { + return new ValidateSystemContractAddressInput(this); + } + + /// Field number for the "system_contract_hash_name" field. + public const int SystemContractHashNameFieldNumber = 1; + private global::AElf.Types.Hash systemContractHashName_; + /// + /// The name hash of the contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash SystemContractHashName { + get { return systemContractHashName_; } + set { + systemContractHashName_ = value; + } + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 2; + private global::AElf.Types.Address address_; + /// + /// The address of the contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Address { + get { return address_; } + set { + address_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ValidateSystemContractAddressInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ValidateSystemContractAddressInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SystemContractHashName, other.SystemContractHashName)) return false; + if (!object.Equals(Address, other.Address)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (systemContractHashName_ != null) hash ^= SystemContractHashName.GetHashCode(); + if (address_ != null) hash ^= Address.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (systemContractHashName_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SystemContractHashName); + } + if (address_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Address); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (systemContractHashName_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SystemContractHashName); + } + if (address_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Address); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (systemContractHashName_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SystemContractHashName); + } + if (address_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ValidateSystemContractAddressInput other) { + if (other == null) { + return; + } + if (other.systemContractHashName_ != null) { + if (systemContractHashName_ == null) { + SystemContractHashName = new global::AElf.Types.Hash(); + } + SystemContractHashName.MergeFrom(other.SystemContractHashName); + } + if (other.address_ != null) { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + Address.MergeFrom(other.Address); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (systemContractHashName_ == null) { + SystemContractHashName = new global::AElf.Types.Hash(); + } + input.ReadMessage(SystemContractHashName); + break; + } + case 18: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (systemContractHashName_ == null) { + SystemContractHashName = new global::AElf.Types.Hash(); + } + input.ReadMessage(SystemContractHashName); + break; + } + case 18: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReleaseContractInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReleaseContractInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReleaseContractInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReleaseContractInput(ReleaseContractInput other) : this() { + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + proposedContractInputHash_ = other.proposedContractInputHash_ != null ? other.proposedContractInputHash_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReleaseContractInput Clone() { + return new ReleaseContractInput(this); + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 1; + private global::AElf.Types.Hash proposalId_; + /// + /// The hash of the proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + /// Field number for the "proposed_contract_input_hash" field. + public const int ProposedContractInputHashFieldNumber = 2; + private global::AElf.Types.Hash proposedContractInputHash_; + /// + /// The id of the proposed contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposedContractInputHash { + get { return proposedContractInputHash_; } + set { + proposedContractInputHash_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ReleaseContractInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ReleaseContractInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalId, other.ProposalId)) return false; + if (!object.Equals(ProposedContractInputHash, other.ProposedContractInputHash)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (proposedContractInputHash_ != null) hash ^= ProposedContractInputHash.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (proposedContractInputHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ProposedContractInputHash); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (proposedContractInputHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ProposedContractInputHash); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (proposedContractInputHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedContractInputHash); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ReleaseContractInput other) { + if (other == null) { + return; + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + if (other.proposedContractInputHash_ != null) { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + ProposedContractInputHash.MergeFrom(other.ProposedContractInputHash); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + case 18: { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposedContractInputHash); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + case 18: { + if (proposedContractInputHash_ == null) { + ProposedContractInputHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposedContractInputHash); + break; + } + } + } + } + #endif + + } + + public sealed partial class ContractCodeHashList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractCodeHashList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractCodeHashList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractCodeHashList(ContractCodeHashList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractCodeHashList Clone() { + return new ContractCodeHashList(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Types.Hash.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContractCodeHashList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContractCodeHashList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #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] + 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] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContractCodeHashList other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ContractCodeHashMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractCodeHashMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS0.Acs0Reflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractCodeHashMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractCodeHashMap(ContractCodeHashMap other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractCodeHashMap Clone() { + return new ContractCodeHashMap(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_value_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForMessage(18, global::AElf.Standards.ACS0.ContractCodeHashList.Parser), 10); + private readonly pbc::MapField value_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContractCodeHashMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContractCodeHashMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Value.Equals(other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #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] + 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] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_map_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContractCodeHashMap other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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] + void pb::IBufferMessage.InternalMergeFrom(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 + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/Acs1.g.cs b/src/EbridgeIndexer/Contracts/Acs1.g.cs new file mode 100644 index 0000000..28dde5b --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs1.g.cs @@ -0,0 +1,405 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs1.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Standards.ACS1 { + + /// Holder for reflection information generated from acs1.proto + public static partial class Acs1Reflection { + + #region Descriptor + /// File descriptor for acs1.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static Acs1Reflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgphY3MxLnByb3RvEgRhY3MxGhJhZWxmL29wdGlvbnMucHJvdG8aG2dvb2ds", + "ZS9wcm90b2J1Zi9lbXB0eS5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBw", + "ZXJzLnByb3RvGg9hZWxmL2NvcmUucHJvdG8aFGF1dGhvcml0eV9pbmZvLnBy", + "b3RvIloKCk1ldGhvZEZlZXMSEwoLbWV0aG9kX25hbWUYASABKAkSHQoEZmVl", + "cxgCIAMoCzIPLmFjczEuTWV0aG9kRmVlEhgKEGlzX3NpemVfZmVlX2ZyZWUY", + "AyABKAgiLgoJTWV0aG9kRmVlEg4KBnN5bWJvbBgBIAEoCRIRCgliYXNpY19m", + "ZWUYAiABKAMyrgIKGU1ldGhvZEZlZVByb3ZpZGVyQ29udHJhY3QSOgoMU2V0", + "TWV0aG9kRmVlEhAuYWNzMS5NZXRob2RGZWVzGhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5IgASRQoZQ2hhbmdlTWV0aG9kRmVlQ29udHJvbGxlchIOLkF1dGhv", + "cml0eUluZm8aFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJFCgxHZXRNZXRo", + "b2RGZWUSHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUaEC5hY3MxLk1l", + "dGhvZEZlZXMiBYiJ9wEBEkcKFkdldE1ldGhvZEZlZUNvbnRyb2xsZXISFi5n", + "b29nbGUucHJvdG9idWYuRW1wdHkaDi5BdXRob3JpdHlJbmZvIgWIifcBAUIf", + "qgITQUVsZi5TdGFuZGFyZHMuQUNTMYqS9AEEYWNzMVAAUAFQAmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::AElf.Types.CoreReflection.Descriptor, global::AuthorityInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS1.MethodFees), global::AElf.Standards.ACS1.MethodFees.Parser, new[]{ "MethodName", "Fees", "IsSizeFeeFree" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS1.MethodFee), global::AElf.Standards.ACS1.MethodFee.Parser, new[]{ "Symbol", "BasicFee" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class MethodFees : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MethodFees()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS1.Acs1Reflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodFees() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodFees(MethodFees other) : this() { + methodName_ = other.methodName_; + fees_ = other.fees_.Clone(); + isSizeFeeFree_ = other.isSizeFeeFree_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodFees Clone() { + return new MethodFees(this); + } + + /// Field number for the "method_name" field. + public const int MethodNameFieldNumber = 1; + private string methodName_ = ""; + /// + /// The name of the method to be charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string MethodName { + get { return methodName_; } + set { + methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "fees" field. + public const int FeesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_fees_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Standards.ACS1.MethodFee.Parser); + private readonly pbc::RepeatedField fees_ = new pbc::RepeatedField(); + /// + /// List of fees to be charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Fees { + get { return fees_; } + } + + /// Field number for the "is_size_fee_free" field. + public const int IsSizeFeeFreeFieldNumber = 3; + private bool isSizeFeeFree_; + /// + /// Optional based on the implementation of SetMethodFee method. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsSizeFeeFree { + get { return isSizeFeeFree_; } + set { + isSizeFeeFree_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MethodFees); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MethodFees other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MethodName != other.MethodName) return false; + if(!fees_.Equals(other.fees_)) return false; + if (IsSizeFeeFree != other.IsSizeFeeFree) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); + hash ^= fees_.GetHashCode(); + if (IsSizeFeeFree != false) hash ^= IsSizeFeeFree.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (MethodName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MethodName); + } + fees_.WriteTo(output, _repeated_fees_codec); + if (IsSizeFeeFree != false) { + output.WriteRawTag(24); + output.WriteBool(IsSizeFeeFree); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (MethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName); + } + size += fees_.CalculateSize(_repeated_fees_codec); + if (IsSizeFeeFree != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MethodFees other) { + if (other == null) { + return; + } + if (other.MethodName.Length != 0) { + MethodName = other.MethodName; + } + fees_.Add(other.fees_); + if (other.IsSizeFeeFree != false) { + IsSizeFeeFree = other.IsSizeFeeFree; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + MethodName = input.ReadString(); + break; + } + case 18: { + fees_.AddEntriesFrom(input, _repeated_fees_codec); + break; + } + case 24: { + IsSizeFeeFree = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class MethodFee : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MethodFee()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS1.Acs1Reflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodFee() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodFee(MethodFee other) : this() { + symbol_ = other.symbol_; + basicFee_ = other.basicFee_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodFee Clone() { + return new MethodFee(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The token symbol of the method fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "basic_fee" field. + public const int BasicFeeFieldNumber = 2; + private long basicFee_; + /// + /// The amount of fees to be charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long BasicFee { + get { return basicFee_; } + set { + basicFee_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MethodFee); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MethodFee other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (BasicFee != other.BasicFee) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (BasicFee != 0L) hash ^= BasicFee.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (BasicFee != 0L) { + output.WriteRawTag(16); + output.WriteInt64(BasicFee); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (BasicFee != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BasicFee); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MethodFee other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.BasicFee != 0L) { + BasicFee = other.BasicFee; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + BasicFee = input.ReadInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/Acs11.c.cs b/src/EbridgeIndexer/Contracts/Acs11.c.cs new file mode 100644 index 0000000..5345ec0 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs11.c.cs @@ -0,0 +1,75 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs11.proto +// +// Original file comments: +// * +// AElf Standards ACS11(Consensus Standard) +// +// Used to customize consensus mechanisms for cross chain. +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace AElf.Standards.ACS11 { + + #region Events + #endregion + internal static partial class CrossChainInteractionContractContainer + { + static readonly string __ServiceName = "acs11.CrossChainInteractionContract"; + + #region Marshallers + static readonly aelf::Marshaller __Marshaller_google_protobuf_BytesValue = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.BytesValue.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Empty = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Empty.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_aelf_Address = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Address.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_BoolValue = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.BoolValue.Parser.ParseFrom); + #endregion + + #region Methods + static readonly aelf::Method __Method_UpdateInformationFromCrossChain = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "UpdateInformationFromCrossChain", + __Marshaller_google_protobuf_BytesValue, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetChainInitializationInformation = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetChainInitializationInformation", + __Marshaller_google_protobuf_BytesValue, + __Marshaller_google_protobuf_BytesValue); + + static readonly aelf::Method __Method_CheckCrossChainIndexingPermission = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "CheckCrossChainIndexingPermission", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_BoolValue); + + #endregion + + #region Descriptors + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::AElf.Standards.ACS11.Acs11Reflection.Descriptor.Services[0]; } + } + + public static global::System.Collections.Generic.IReadOnlyList Descriptors + { + get + { + return new global::System.Collections.Generic.List() + { + global::AElf.Standards.ACS11.Acs11Reflection.Descriptor.Services[0], + }; + } + } + #endregion + } +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/Acs11.g.cs b/src/EbridgeIndexer/Contracts/Acs11.g.cs new file mode 100644 index 0000000..185c260 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs11.g.cs @@ -0,0 +1,47 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs11.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Standards.ACS11 { + + /// Holder for reflection information generated from acs11.proto + internal static partial class Acs11Reflection { + + #region Descriptor + /// File descriptor for acs11.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static Acs11Reflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgthY3MxMS5wcm90bxIFYWNzMTEaEmFlbGYvb3B0aW9ucy5wcm90bxoPYWVs", + "Zi9jb3JlLnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8a", + "G2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90bzK2AgodQ3Jvc3NDaGFpbklu", + "dGVyYWN0aW9uQ29udHJhY3QSWAofVXBkYXRlSW5mb3JtYXRpb25Gcm9tQ3Jv", + "c3NDaGFpbhIbLmdvb2dsZS5wcm90b2J1Zi5CeXRlc1ZhbHVlGhYuZ29vZ2xl", + "LnByb3RvYnVmLkVtcHR5IgASZAohR2V0Q2hhaW5Jbml0aWFsaXphdGlvbklu", + "Zm9ybWF0aW9uEhsuZ29vZ2xlLnByb3RvYnVmLkJ5dGVzVmFsdWUaGy5nb29n", + "bGUucHJvdG9idWYuQnl0ZXNWYWx1ZSIFiIn3AQESVQohQ2hlY2tDcm9zc0No", + "YWluSW5kZXhpbmdQZXJtaXNzaW9uEg0uYWVsZi5BZGRyZXNzGhouZ29vZ2xl", + "LnByb3RvYnVmLkJvb2xWYWx1ZSIFiIn3AQFCIaoCFEFFbGYuU3RhbmRhcmRz", + "LkFDUzExipL0AQVhY3MxMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.OptionsReflection.Descriptor, global::AElf.Types.CoreReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, null)); + } + #endregion + + } +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/Acs12.c.cs b/src/EbridgeIndexer/Contracts/Acs12.c.cs new file mode 100644 index 0000000..27ac252 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs12.c.cs @@ -0,0 +1,54 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs12.proto +// +// Original file comments: +// * +// AElf Standards ACS12(User Contract Standard) +// +// Used to manage user contract. +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace AElf.Standards.ACS12 { + + #region Events + #endregion + internal static partial class UserContractContainer + { + static readonly string __ServiceName = "acs12.UserContract"; + + #region Marshallers + #endregion + + #region Methods + #endregion + + #region Descriptors + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::AElf.Standards.ACS12.Acs12Reflection.Descriptor.Services[0]; } + } + + public static global::System.Collections.Generic.IReadOnlyList Descriptors + { + get + { + return new global::System.Collections.Generic.List() + { + global::AElf.Standards.ACS12.Acs12Reflection.Descriptor.Services[0], + }; + } + } + #endregion + + // public class UserContractReferenceState : global::AElf.Sdk.CSharp.State.ContractReferenceState + // { + // } + } +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/Acs12.g.cs b/src/EbridgeIndexer/Contracts/Acs12.g.cs new file mode 100644 index 0000000..e039976 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs12.g.cs @@ -0,0 +1,506 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs12.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Standards.ACS12 { + + /// Holder for reflection information generated from acs12.proto + public static partial class Acs12Reflection { + + #region Descriptor + /// File descriptor for acs12.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static Acs12Reflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgthY3MxMi5wcm90bxIFYWNzMTIaEmFlbGYvb3B0aW9ucy5wcm90bxobZ29v", + "Z2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3Jh", + "cHBlcnMucHJvdG8aD2FlbGYvY29yZS5wcm90byJeChZVc2VyQ29udHJhY3RN", + "ZXRob2RGZWVzEioKBGZlZXMYAiADKAsyHC5hY3MxMi5Vc2VyQ29udHJhY3RN", + "ZXRob2RGZWUSGAoQaXNfc2l6ZV9mZWVfZnJlZRgDIAEoCCI6ChVVc2VyQ29u", + "dHJhY3RNZXRob2RGZWUSDgoGc3ltYm9sGAEgASgJEhEKCWJhc2ljX2ZlZRgC", + "IAEoAzIOCgxVc2VyQ29udHJhY3RCIaoCFEFFbGYuU3RhbmRhcmRzLkFDUzEy", + "ipL0AQVhY3MxMlAAUAFQAmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::AElf.Types.CoreReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS12.UserContractMethodFees), global::AElf.Standards.ACS12.UserContractMethodFees.Parser, new[]{ "Fees", "IsSizeFeeFree" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS12.UserContractMethodFee), global::AElf.Standards.ACS12.UserContractMethodFee.Parser, new[]{ "Symbol", "BasicFee" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + ///Specified method fee for user contract. + /// + public sealed partial class UserContractMethodFees : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserContractMethodFees()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS12.Acs12Reflection.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 UserContractMethodFees() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserContractMethodFees(UserContractMethodFees other) : this() { + fees_ = other.fees_.Clone(); + isSizeFeeFree_ = other.isSizeFeeFree_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserContractMethodFees Clone() { + return new UserContractMethodFees(this); + } + + /// Field number for the "fees" field. + public const int FeesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_fees_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Standards.ACS12.UserContractMethodFee.Parser); + private readonly pbc::RepeatedField fees_ = new pbc::RepeatedField(); + /// + /// List of fees to be charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Fees { + get { return fees_; } + } + + /// Field number for the "is_size_fee_free" field. + public const int IsSizeFeeFreeFieldNumber = 3; + private bool isSizeFeeFree_; + /// + /// Optional based on the implementation of SetConfiguration method. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsSizeFeeFree { + get { return isSizeFeeFree_; } + set { + isSizeFeeFree_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserContractMethodFees); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserContractMethodFees other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!fees_.Equals(other.fees_)) return false; + if (IsSizeFeeFree != other.IsSizeFeeFree) return 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 ^= fees_.GetHashCode(); + if (IsSizeFeeFree != false) hash ^= IsSizeFeeFree.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + fees_.WriteTo(output, _repeated_fees_codec); + if (IsSizeFeeFree != false) { + output.WriteRawTag(24); + output.WriteBool(IsSizeFeeFree); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + fees_.WriteTo(ref output, _repeated_fees_codec); + if (IsSizeFeeFree != false) { + output.WriteRawTag(24); + output.WriteBool(IsSizeFeeFree); + } + if (_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 += fees_.CalculateSize(_repeated_fees_codec); + if (IsSizeFeeFree != 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(UserContractMethodFees other) { + if (other == null) { + return; + } + fees_.Add(other.fees_); + if (other.IsSizeFeeFree != false) { + IsSizeFeeFree = other.IsSizeFeeFree; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + fees_.AddEntriesFrom(input, _repeated_fees_codec); + break; + } + case 24: { + IsSizeFeeFree = 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 18: { + fees_.AddEntriesFrom(ref input, _repeated_fees_codec); + break; + } + case 24: { + IsSizeFeeFree = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UserContractMethodFee : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserContractMethodFee()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS12.Acs12Reflection.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 UserContractMethodFee() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserContractMethodFee(UserContractMethodFee other) : this() { + symbol_ = other.symbol_; + basicFee_ = other.basicFee_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserContractMethodFee Clone() { + return new UserContractMethodFee(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The token symbol of the method fee. + /// + [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 "basic_fee" field. + public const int BasicFeeFieldNumber = 2; + private long basicFee_; + /// + /// The amount of fees to be charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BasicFee { + get { return basicFee_; } + set { + basicFee_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserContractMethodFee); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserContractMethodFee other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (BasicFee != other.BasicFee) return 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 (BasicFee != 0L) hash ^= BasicFee.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (BasicFee != 0L) { + output.WriteRawTag(16); + output.WriteInt64(BasicFee); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (BasicFee != 0L) { + output.WriteRawTag(16); + output.WriteInt64(BasicFee); + } + if (_unknownFields != 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 (BasicFee != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BasicFee); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserContractMethodFee other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.BasicFee != 0L) { + BasicFee = other.BasicFee; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + BasicFee = 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: { + BasicFee = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/Acs13.g.cs b/src/EbridgeIndexer/Contracts/Acs13.g.cs new file mode 100644 index 0000000..4c0bd15 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs13.g.cs @@ -0,0 +1,291 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs13.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Standards.ACS13 { + + /// Holder for reflection information generated from acs13.proto + public static partial class Acs13Reflection { + + #region Descriptor + /// File descriptor for acs13.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static Acs13Reflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgthY3MxMy5wcm90bxIFYWNzMTMaEmFlbGYvb3B0aW9ucy5wcm90bxoPYWVs", + "Zi9jb3JlLnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8i", + "UAoOQWdncmVnYXRlSW5wdXQSDwoHcmVzdWx0cxgBIAMoCRITCgtmcmVxdWVu", + "Y2llcxgCIAMoBRIYChBhZ2dyZWdhdGVfb3B0aW9uGAMgASgFMl4KGE9yYWNs", + "ZUFnZ3JlZ2F0b3JDb250cmFjdBJCCglBZ2dyZWdhdGUSFS5hY3MxMy5BZ2dy", + "ZWdhdGVJbnB1dBocLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZSIAQiGq", + "AhRBRWxmLlN0YW5kYXJkcy5BQ1MxM4qS9AEFYWNzMTNiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.OptionsReflection.Descriptor, global::AElf.Types.CoreReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS13.AggregateInput), global::AElf.Standards.ACS13.AggregateInput.Parser, new[]{ "Results", "Frequencies", "AggregateOption" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class AggregateInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AggregateInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS13.Acs13Reflection.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 AggregateInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AggregateInput(AggregateInput other) : this() { + results_ = other.results_.Clone(); + frequencies_ = other.frequencies_.Clone(); + aggregateOption_ = other.aggregateOption_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AggregateInput Clone() { + return new AggregateInput(this); + } + + /// Field number for the "results" field. + public const int ResultsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_results_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Results { + get { return results_; } + } + + /// Field number for the "frequencies" field. + public const int FrequenciesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_frequencies_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField frequencies_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Frequencies { + get { return frequencies_; } + } + + /// Field number for the "aggregate_option" field. + public const int AggregateOptionFieldNumber = 3; + private int aggregateOption_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AggregateOption { + get { return aggregateOption_; } + set { + aggregateOption_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AggregateInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AggregateInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!results_.Equals(other.results_)) return false; + if(!frequencies_.Equals(other.frequencies_)) return false; + if (AggregateOption != other.AggregateOption) return 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 ^= results_.GetHashCode(); + hash ^= frequencies_.GetHashCode(); + if (AggregateOption != 0) hash ^= AggregateOption.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + results_.WriteTo(output, _repeated_results_codec); + frequencies_.WriteTo(output, _repeated_frequencies_codec); + if (AggregateOption != 0) { + output.WriteRawTag(24); + output.WriteInt32(AggregateOption); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + results_.WriteTo(ref output, _repeated_results_codec); + frequencies_.WriteTo(ref output, _repeated_frequencies_codec); + if (AggregateOption != 0) { + output.WriteRawTag(24); + output.WriteInt32(AggregateOption); + } + if (_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 += results_.CalculateSize(_repeated_results_codec); + size += frequencies_.CalculateSize(_repeated_frequencies_codec); + if (AggregateOption != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateOption); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AggregateInput other) { + if (other == null) { + return; + } + results_.Add(other.results_); + frequencies_.Add(other.frequencies_); + if (other.AggregateOption != 0) { + AggregateOption = other.AggregateOption; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + results_.AddEntriesFrom(input, _repeated_results_codec); + break; + } + case 18: + case 16: { + frequencies_.AddEntriesFrom(input, _repeated_frequencies_codec); + break; + } + case 24: { + AggregateOption = 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: { + results_.AddEntriesFrom(ref input, _repeated_results_codec); + break; + } + case 18: + case 16: { + frequencies_.AddEntriesFrom(ref input, _repeated_frequencies_codec); + break; + } + case 24: { + AggregateOption = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/Acs3.c.cs b/src/EbridgeIndexer/Contracts/Acs3.c.cs new file mode 100644 index 0000000..505be82 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs3.c.cs @@ -0,0 +1,270 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs3.proto +// +// Original file comments: +// * +// AElf Standards ACS3(Contract Proposal Standard) +// +// Used for governance through proposals. +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace AElf.Standards.ACS3 { + + #region Events + internal partial class ProposalCreated : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new ProposalCreated + { + OrganizationAddress = OrganizationAddress + }, + }; + } + + public ProposalCreated GetNonIndexed() + { + return new ProposalCreated + { + ProposalId = ProposalId, + }; + } + } + + internal partial class ProposalReleased : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new ProposalReleased + { + OrganizationAddress = OrganizationAddress + }, + }; + } + + public ProposalReleased GetNonIndexed() + { + return new ProposalReleased + { + ProposalId = ProposalId, + }; + } + } + + internal partial class OrganizationCreated : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public OrganizationCreated GetNonIndexed() + { + return new OrganizationCreated + { + OrganizationAddress = OrganizationAddress, + }; + } + } + + internal partial class ReceiptCreated : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new ReceiptCreated + { + OrganizationAddress = OrganizationAddress + }, + }; + } + + public ReceiptCreated GetNonIndexed() + { + return new ReceiptCreated + { + ProposalId = ProposalId, + Address = Address, + ReceiptType = ReceiptType, + Time = Time, + }; + } + } + + internal partial class OrganizationWhiteListChanged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public OrganizationWhiteListChanged GetNonIndexed() + { + return new OrganizationWhiteListChanged + { + OrganizationAddress = OrganizationAddress, + ProposerWhiteList = ProposerWhiteList, + }; + } + } + + internal partial class OrganizationThresholdChanged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public OrganizationThresholdChanged GetNonIndexed() + { + return new OrganizationThresholdChanged + { + OrganizationAddress = OrganizationAddress, + ProposerReleaseThreshold = ProposerReleaseThreshold, + }; + } + } + + #endregion + internal static partial class AuthorizationContractContainer + { + static readonly string __ServiceName = "acs3.AuthorizationContract"; + + #region Marshallers + static readonly aelf::Marshaller __Marshaller_acs3_CreateProposalInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Standards.ACS3.CreateProposalInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_aelf_Hash = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Hash.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Empty = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Empty.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_acs3_ProposalReleaseThreshold = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Standards.ACS3.ProposalReleaseThreshold.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_acs3_ProposerWhiteList = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Standards.ACS3.ProposerWhiteList.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_acs3_CreateProposalBySystemContractInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Standards.ACS3.CreateProposalBySystemContractInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_acs3_ProposalOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Standards.ACS3.ProposalOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_aelf_Address = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Address.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_BoolValue = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.BoolValue.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_acs3_ValidateProposerInWhiteListInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Standards.ACS3.ValidateProposerInWhiteListInput.Parser.ParseFrom); + #endregion + + #region Methods + static readonly aelf::Method __Method_CreateProposal = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "CreateProposal", + __Marshaller_acs3_CreateProposalInput, + __Marshaller_aelf_Hash); + + static readonly aelf::Method __Method_Approve = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Approve", + __Marshaller_aelf_Hash, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Reject = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Reject", + __Marshaller_aelf_Hash, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Abstain = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Abstain", + __Marshaller_aelf_Hash, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Release = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Release", + __Marshaller_aelf_Hash, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeOrganizationThreshold = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeOrganizationThreshold", + __Marshaller_acs3_ProposalReleaseThreshold, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeOrganizationProposerWhiteList = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeOrganizationProposerWhiteList", + __Marshaller_acs3_ProposerWhiteList, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_CreateProposalBySystemContract = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "CreateProposalBySystemContract", + __Marshaller_acs3_CreateProposalBySystemContractInput, + __Marshaller_aelf_Hash); + + static readonly aelf::Method __Method_ClearProposal = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ClearProposal", + __Marshaller_aelf_Hash, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetProposal = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetProposal", + __Marshaller_aelf_Hash, + __Marshaller_acs3_ProposalOutput); + + static readonly aelf::Method __Method_ValidateOrganizationExist = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "ValidateOrganizationExist", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_BoolValue); + + static readonly aelf::Method __Method_ValidateProposerInWhiteList = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "ValidateProposerInWhiteList", + __Marshaller_acs3_ValidateProposerInWhiteListInput, + __Marshaller_google_protobuf_BoolValue); + + #endregion + + #region Descriptors + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.Services[0]; } + } + + public static global::System.Collections.Generic.IReadOnlyList Descriptors + { + get + { + return new global::System.Collections.Generic.List() + { + global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.Services[0], + }; + } + } + #endregion + + } +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/Acs3.g.cs b/src/EbridgeIndexer/Contracts/Acs3.g.cs new file mode 100644 index 0000000..ac99af4 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs3.g.cs @@ -0,0 +1,2927 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs3.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Standards.ACS3 { + + /// Holder for reflection information generated from acs3.proto + internal static partial class Acs3Reflection { + + #region Descriptor + /// File descriptor for acs3.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static Acs3Reflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgphY3MzLnByb3RvEgRhY3MzGg9hZWxmL2NvcmUucHJvdG8aEmFlbGYvb3B0", + "aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGh9nb29n", + "bGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGh5nb29nbGUvcHJvdG9idWYv", + "d3JhcHBlcnMucHJvdG8iggIKE0NyZWF0ZVByb3Bvc2FsSW5wdXQSHAoUY29u", + "dHJhY3RfbWV0aG9kX25hbWUYASABKAkSIQoKdG9fYWRkcmVzcxgCIAEoCzIN", + "LmFlbGYuQWRkcmVzcxIOCgZwYXJhbXMYAyABKAwSMAoMZXhwaXJlZF90aW1l", + "GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIrChRvcmdhbml6", + "YXRpb25fYWRkcmVzcxgFIAEoCzINLmFlbGYuQWRkcmVzcxIgChhwcm9wb3Nh", + "bF9kZXNjcmlwdGlvbl91cmwYBiABKAkSGQoFdG9rZW4YByABKAsyCi5hZWxm", + "Lkhhc2gi5QIKDlByb3Bvc2FsT3V0cHV0Eh8KC3Byb3Bvc2FsX2lkGAEgASgL", + "MgouYWVsZi5IYXNoEhwKFGNvbnRyYWN0X21ldGhvZF9uYW1lGAIgASgJEiEK", + "CnRvX2FkZHJlc3MYAyABKAsyDS5hZWxmLkFkZHJlc3MSDgoGcGFyYW1zGAQg", + "ASgMEjAKDGV4cGlyZWRfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASKwoUb3JnYW5pemF0aW9uX2FkZHJlc3MYBiABKAsyDS5hZWxm", + "LkFkZHJlc3MSHwoIcHJvcG9zZXIYByABKAsyDS5hZWxmLkFkZHJlc3MSFgoO", + "dG9fYmVfcmVsZWFzZWQYCCABKAgSFgoOYXBwcm92YWxfY291bnQYCSABKAMS", + "FwoPcmVqZWN0aW9uX2NvdW50GAogASgDEhgKEGFic3RlbnRpb25fY291bnQY", + "CyABKAMiqQEKGFByb3Bvc2FsUmVsZWFzZVRocmVzaG9sZBIiChptaW5pbWFs", + "X2FwcHJvdmFsX3RocmVzaG9sZBgBIAEoAxIjChttYXhpbWFsX3JlamVjdGlv", + "bl90aHJlc2hvbGQYAiABKAMSJAocbWF4aW1hbF9hYnN0ZW50aW9uX3RocmVz", + "aG9sZBgDIAEoAxIeChZtaW5pbWFsX3ZvdGVfdGhyZXNob2xkGAQgASgDIjUK", + "EVByb3Bvc2VyV2hpdGVMaXN0EiAKCXByb3Bvc2VycxgBIAMoCzINLmFlbGYu", + "QWRkcmVzcyJxChtPcmdhbml6YXRpb25IYXNoQWRkcmVzc1BhaXISJQoRb3Jn", + "YW5pemF0aW9uX2hhc2gYASABKAsyCi5hZWxmLkhhc2gSKwoUb3JnYW5pemF0", + "aW9uX2FkZHJlc3MYAiABKAsyDS5hZWxmLkFkZHJlc3MigAEKI0NyZWF0ZVBy", + "b3Bvc2FsQnlTeXN0ZW1Db250cmFjdElucHV0EjEKDnByb3Bvc2FsX2lucHV0", + "GAEgASgLMhkuYWNzMy5DcmVhdGVQcm9wb3NhbElucHV0EiYKD29yaWdpbl9w", + "cm9wb3NlchgCIAEoCzINLmFlbGYuQWRkcmVzcyJwCiBWYWxpZGF0ZVByb3Bv", + "c2VySW5XaGl0ZUxpc3RJbnB1dBIfCghwcm9wb3NlchgBIAEoCzINLmFlbGYu", + "QWRkcmVzcxIrChRvcmdhbml6YXRpb25fYWRkcmVzcxgCIAEoCzINLmFlbGYu", + "QWRkcmVzcyJsCg9Qcm9wb3NhbENyZWF0ZWQSHwoLcHJvcG9zYWxfaWQYASAB", + "KAsyCi5hZWxmLkhhc2gSMgoUb3JnYW5pemF0aW9uX2FkZHJlc3MYAiABKAsy", + "DS5hZWxmLkFkZHJlc3NCBYiP9QEBOgSguxgBIm0KEFByb3Bvc2FsUmVsZWFz", + "ZWQSHwoLcHJvcG9zYWxfaWQYASABKAsyCi5hZWxmLkhhc2gSMgoUb3JnYW5p", + "emF0aW9uX2FkZHJlc3MYAiABKAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEBOgSg", + "uxgBIkgKE09yZ2FuaXphdGlvbkNyZWF0ZWQSKwoUb3JnYW5pemF0aW9uX2Fk", + "ZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3M6BKC7GAEiywEKDlJlY2VpcHRD", + "cmVhdGVkEh8KC3Byb3Bvc2FsX2lkGAEgASgLMgouYWVsZi5IYXNoEh4KB2Fk", + "ZHJlc3MYAiABKAsyDS5hZWxmLkFkZHJlc3MSFAoMcmVjZWlwdF90eXBlGAMg", + "ASgJEigKBHRpbWUYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "EjIKFG9yZ2FuaXphdGlvbl9hZGRyZXNzGAUgASgLMg0uYWVsZi5BZGRyZXNz", + "QgWIj/UBAToEoLsYASKHAQocT3JnYW5pemF0aW9uV2hpdGVMaXN0Q2hhbmdl", + "ZBIrChRvcmdhbml6YXRpb25fYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVz", + "cxI0ChNwcm9wb3Nlcl93aGl0ZV9saXN0GAIgASgLMhcuYWNzMy5Qcm9wb3Nl", + "cldoaXRlTGlzdDoEoLsYASKVAQocT3JnYW5pemF0aW9uVGhyZXNob2xkQ2hh", + "bmdlZBIrChRvcmdhbml6YXRpb25fYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRk", + "cmVzcxJCChpwcm9wb3Nlcl9yZWxlYXNlX3RocmVzaG9sZBgCIAEoCzIeLmFj", + "czMuUHJvcG9zYWxSZWxlYXNlVGhyZXNob2xkOgSguxgBMssGChVBdXRob3Jp", + "emF0aW9uQ29udHJhY3QSOQoOQ3JlYXRlUHJvcG9zYWwSGS5hY3MzLkNyZWF0", + "ZVByb3Bvc2FsSW5wdXQaCi5hZWxmLkhhc2giABIvCgdBcHByb3ZlEgouYWVs", + "Zi5IYXNoGhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASLgoGUmVqZWN0Egou", + "YWVsZi5IYXNoGhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASLwoHQWJzdGFp", + "bhIKLmFlbGYuSGFzaBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEi8KB1Jl", + "bGVhc2USCi5hZWxmLkhhc2gaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJX", + "ChtDaGFuZ2VPcmdhbml6YXRpb25UaHJlc2hvbGQSHi5hY3MzLlByb3Bvc2Fs", + "UmVsZWFzZVRocmVzaG9sZBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElgK", + "I0NoYW5nZU9yZ2FuaXphdGlvblByb3Bvc2VyV2hpdGVMaXN0EhcuYWNzMy5Q", + "cm9wb3NlcldoaXRlTGlzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElkK", + "HkNyZWF0ZVByb3Bvc2FsQnlTeXN0ZW1Db250cmFjdBIpLmFjczMuQ3JlYXRl", + "UHJvcG9zYWxCeVN5c3RlbUNvbnRyYWN0SW5wdXQaCi5hZWxmLkhhc2giABI1", + "Cg1DbGVhclByb3Bvc2FsEgouYWVsZi5IYXNoGhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5IgASNgoLR2V0UHJvcG9zYWwSCi5hZWxmLkhhc2gaFC5hY3MzLlBy", + "b3Bvc2FsT3V0cHV0IgWIifcBARJNChlWYWxpZGF0ZU9yZ2FuaXphdGlvbkV4", + "aXN0Eg0uYWVsZi5BZGRyZXNzGhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1", + "ZSIFiIn3AQESaAobVmFsaWRhdGVQcm9wb3NlckluV2hpdGVMaXN0EiYuYWNz", + "My5WYWxpZGF0ZVByb3Bvc2VySW5XaGl0ZUxpc3RJbnB1dBoaLmdvb2dsZS5w", + "cm90b2J1Zi5Cb29sVmFsdWUiBYiJ9wEBQh+qAhNBRWxmLlN0YW5kYXJkcy5B", + "Q1MzipL0AQRhY3MzUABQA2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.CreateProposalInput), global::AElf.Standards.ACS3.CreateProposalInput.Parser, new[]{ "ContractMethodName", "ToAddress", "Params", "ExpiredTime", "OrganizationAddress", "ProposalDescriptionUrl", "Token" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.ProposalOutput), global::AElf.Standards.ACS3.ProposalOutput.Parser, new[]{ "ProposalId", "ContractMethodName", "ToAddress", "Params", "ExpiredTime", "OrganizationAddress", "Proposer", "ToBeReleased", "ApprovalCount", "RejectionCount", "AbstentionCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.ProposalReleaseThreshold), global::AElf.Standards.ACS3.ProposalReleaseThreshold.Parser, new[]{ "MinimalApprovalThreshold", "MaximalRejectionThreshold", "MaximalAbstentionThreshold", "MinimalVoteThreshold" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.ProposerWhiteList), global::AElf.Standards.ACS3.ProposerWhiteList.Parser, new[]{ "Proposers" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.OrganizationHashAddressPair), global::AElf.Standards.ACS3.OrganizationHashAddressPair.Parser, new[]{ "OrganizationHash", "OrganizationAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.CreateProposalBySystemContractInput), global::AElf.Standards.ACS3.CreateProposalBySystemContractInput.Parser, new[]{ "ProposalInput", "OriginProposer" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.ValidateProposerInWhiteListInput), global::AElf.Standards.ACS3.ValidateProposerInWhiteListInput.Parser, new[]{ "Proposer", "OrganizationAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.ProposalCreated), global::AElf.Standards.ACS3.ProposalCreated.Parser, new[]{ "ProposalId", "OrganizationAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.ProposalReleased), global::AElf.Standards.ACS3.ProposalReleased.Parser, new[]{ "ProposalId", "OrganizationAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.OrganizationCreated), global::AElf.Standards.ACS3.OrganizationCreated.Parser, new[]{ "OrganizationAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.ReceiptCreated), global::AElf.Standards.ACS3.ReceiptCreated.Parser, new[]{ "ProposalId", "Address", "ReceiptType", "Time", "OrganizationAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.OrganizationWhiteListChanged), global::AElf.Standards.ACS3.OrganizationWhiteListChanged.Parser, new[]{ "OrganizationAddress", "ProposerWhiteList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS3.OrganizationThresholdChanged), global::AElf.Standards.ACS3.OrganizationThresholdChanged.Parser, new[]{ "OrganizationAddress", "ProposerReleaseThreshold" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + internal sealed partial class CreateProposalInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateProposalInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateProposalInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateProposalInput(CreateProposalInput other) : this() { + contractMethodName_ = other.contractMethodName_; + toAddress_ = other.toAddress_ != null ? other.toAddress_.Clone() : null; + params_ = other.params_; + expiredTime_ = other.expiredTime_ != null ? other.expiredTime_.Clone() : null; + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + proposalDescriptionUrl_ = other.proposalDescriptionUrl_; + token_ = other.token_ != null ? other.token_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateProposalInput Clone() { + return new CreateProposalInput(this); + } + + /// Field number for the "contract_method_name" field. + public const int ContractMethodNameFieldNumber = 1; + private string contractMethodName_ = ""; + /// + /// The name of the method to call after release. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ContractMethodName { + get { return contractMethodName_; } + set { + contractMethodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to_address" field. + public const int ToAddressFieldNumber = 2; + private global::AElf.Types.Address toAddress_; + /// + /// The address of the contract to call after release. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address ToAddress { + get { return toAddress_; } + set { + toAddress_ = value; + } + } + + /// Field number for the "params" field. + public const int ParamsFieldNumber = 3; + private pb::ByteString params_ = pb::ByteString.Empty; + /// + /// The parameter of the method to be called after the release. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Params { + get { return params_; } + set { + params_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "expired_time" field. + public const int ExpiredTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiredTime_; + /// + /// The timestamp at which this proposal will expire. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiredTime { + get { return expiredTime_; } + set { + expiredTime_ = value; + } + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 5; + private global::AElf.Types.Address organizationAddress_; + /// + /// The address of the organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + /// Field number for the "proposal_description_url" field. + public const int ProposalDescriptionUrlFieldNumber = 6; + private string proposalDescriptionUrl_ = ""; + /// + /// Url is used for proposal describing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ProposalDescriptionUrl { + get { return proposalDescriptionUrl_; } + set { + proposalDescriptionUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 7; + private global::AElf.Types.Hash token_; + /// + /// The token is for proposal id generation and with this token, proposal id can be calculated before proposing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash Token { + get { return token_; } + set { + token_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateProposalInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateProposalInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ContractMethodName != other.ContractMethodName) return false; + if (!object.Equals(ToAddress, other.ToAddress)) return false; + if (Params != other.Params) return false; + if (!object.Equals(ExpiredTime, other.ExpiredTime)) return false; + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + if (ProposalDescriptionUrl != other.ProposalDescriptionUrl) return false; + if (!object.Equals(Token, other.Token)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ContractMethodName.Length != 0) hash ^= ContractMethodName.GetHashCode(); + if (toAddress_ != null) hash ^= ToAddress.GetHashCode(); + if (Params.Length != 0) hash ^= Params.GetHashCode(); + if (expiredTime_ != null) hash ^= ExpiredTime.GetHashCode(); + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (ProposalDescriptionUrl.Length != 0) hash ^= ProposalDescriptionUrl.GetHashCode(); + if (token_ != null) hash ^= Token.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ContractMethodName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ContractMethodName); + } + if (toAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ToAddress); + } + if (Params.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Params); + } + if (expiredTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpiredTime); + } + if (organizationAddress_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OrganizationAddress); + } + if (ProposalDescriptionUrl.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ProposalDescriptionUrl); + } + if (token_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Token); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ContractMethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ContractMethodName); + } + if (toAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ToAddress); + } + if (Params.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Params); + } + if (expiredTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiredTime); + } + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (ProposalDescriptionUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProposalDescriptionUrl); + } + if (token_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Token); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateProposalInput other) { + if (other == null) { + return; + } + if (other.ContractMethodName.Length != 0) { + ContractMethodName = other.ContractMethodName; + } + if (other.toAddress_ != null) { + if (toAddress_ == null) { + ToAddress = new global::AElf.Types.Address(); + } + ToAddress.MergeFrom(other.ToAddress); + } + if (other.Params.Length != 0) { + Params = other.Params; + } + if (other.expiredTime_ != null) { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiredTime.MergeFrom(other.ExpiredTime); + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + if (other.ProposalDescriptionUrl.Length != 0) { + ProposalDescriptionUrl = other.ProposalDescriptionUrl; + } + if (other.token_ != null) { + if (token_ == null) { + Token = new global::AElf.Types.Hash(); + } + Token.MergeFrom(other.Token); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ContractMethodName = input.ReadString(); + break; + } + case 18: { + if (toAddress_ == null) { + ToAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ToAddress); + break; + } + case 26: { + Params = input.ReadBytes(); + break; + } + case 34: { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiredTime); + break; + } + case 42: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + case 50: { + ProposalDescriptionUrl = input.ReadString(); + break; + } + case 58: { + if (token_ == null) { + Token = new global::AElf.Types.Hash(); + } + input.ReadMessage(Token); + break; + } + } + } + } + + } + + internal sealed partial class ProposalOutput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProposalOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalOutput(ProposalOutput other) : this() { + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + contractMethodName_ = other.contractMethodName_; + toAddress_ = other.toAddress_ != null ? other.toAddress_.Clone() : null; + params_ = other.params_; + expiredTime_ = other.expiredTime_ != null ? other.expiredTime_.Clone() : null; + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + proposer_ = other.proposer_ != null ? other.proposer_.Clone() : null; + toBeReleased_ = other.toBeReleased_; + approvalCount_ = other.approvalCount_; + rejectionCount_ = other.rejectionCount_; + abstentionCount_ = other.abstentionCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalOutput Clone() { + return new ProposalOutput(this); + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 1; + private global::AElf.Types.Hash proposalId_; + /// + /// The id of the proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + /// Field number for the "contract_method_name" field. + public const int ContractMethodNameFieldNumber = 2; + private string contractMethodName_ = ""; + /// + /// The method that this proposal will call when being released. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ContractMethodName { + get { return contractMethodName_; } + set { + contractMethodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to_address" field. + public const int ToAddressFieldNumber = 3; + private global::AElf.Types.Address toAddress_; + /// + /// The address of the target contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address ToAddress { + get { return toAddress_; } + set { + toAddress_ = value; + } + } + + /// Field number for the "params" field. + public const int ParamsFieldNumber = 4; + private pb::ByteString params_ = pb::ByteString.Empty; + /// + /// The parameters of the release transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Params { + get { return params_; } + set { + params_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "expired_time" field. + public const int ExpiredTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiredTime_; + /// + /// The date at which this proposal will expire. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiredTime { + get { return expiredTime_; } + set { + expiredTime_ = value; + } + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 6; + private global::AElf.Types.Address organizationAddress_; + /// + /// The address of this proposals organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + /// Field number for the "proposer" field. + public const int ProposerFieldNumber = 7; + private global::AElf.Types.Address proposer_; + /// + /// The address of the proposer of this proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Proposer { + get { return proposer_; } + set { + proposer_ = value; + } + } + + /// Field number for the "to_be_released" field. + public const int ToBeReleasedFieldNumber = 8; + private bool toBeReleased_; + /// + /// Indicates if this proposal is releasable. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ToBeReleased { + get { return toBeReleased_; } + set { + toBeReleased_ = value; + } + } + + /// Field number for the "approval_count" field. + public const int ApprovalCountFieldNumber = 9; + private long approvalCount_; + /// + /// Approval count for this proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long ApprovalCount { + get { return approvalCount_; } + set { + approvalCount_ = value; + } + } + + /// Field number for the "rejection_count" field. + public const int RejectionCountFieldNumber = 10; + private long rejectionCount_; + /// + /// Rejection count for this proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long RejectionCount { + get { return rejectionCount_; } + set { + rejectionCount_ = value; + } + } + + /// Field number for the "abstention_count" field. + public const int AbstentionCountFieldNumber = 11; + private long abstentionCount_; + /// + /// Abstention count for this proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long AbstentionCount { + get { return abstentionCount_; } + set { + abstentionCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ProposalOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ProposalOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalId, other.ProposalId)) return false; + if (ContractMethodName != other.ContractMethodName) return false; + if (!object.Equals(ToAddress, other.ToAddress)) return false; + if (Params != other.Params) return false; + if (!object.Equals(ExpiredTime, other.ExpiredTime)) return false; + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + if (!object.Equals(Proposer, other.Proposer)) return false; + if (ToBeReleased != other.ToBeReleased) return false; + if (ApprovalCount != other.ApprovalCount) return false; + if (RejectionCount != other.RejectionCount) return false; + if (AbstentionCount != other.AbstentionCount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (ContractMethodName.Length != 0) hash ^= ContractMethodName.GetHashCode(); + if (toAddress_ != null) hash ^= ToAddress.GetHashCode(); + if (Params.Length != 0) hash ^= Params.GetHashCode(); + if (expiredTime_ != null) hash ^= ExpiredTime.GetHashCode(); + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (proposer_ != null) hash ^= Proposer.GetHashCode(); + if (ToBeReleased != false) hash ^= ToBeReleased.GetHashCode(); + if (ApprovalCount != 0L) hash ^= ApprovalCount.GetHashCode(); + if (RejectionCount != 0L) hash ^= RejectionCount.GetHashCode(); + if (AbstentionCount != 0L) hash ^= AbstentionCount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (ContractMethodName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ContractMethodName); + } + if (toAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ToAddress); + } + if (Params.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Params); + } + if (expiredTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ExpiredTime); + } + if (organizationAddress_ != null) { + output.WriteRawTag(50); + output.WriteMessage(OrganizationAddress); + } + if (proposer_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Proposer); + } + if (ToBeReleased != false) { + output.WriteRawTag(64); + output.WriteBool(ToBeReleased); + } + if (ApprovalCount != 0L) { + output.WriteRawTag(72); + output.WriteInt64(ApprovalCount); + } + if (RejectionCount != 0L) { + output.WriteRawTag(80); + output.WriteInt64(RejectionCount); + } + if (AbstentionCount != 0L) { + output.WriteRawTag(88); + output.WriteInt64(AbstentionCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (ContractMethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ContractMethodName); + } + if (toAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ToAddress); + } + if (Params.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Params); + } + if (expiredTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiredTime); + } + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (proposer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Proposer); + } + if (ToBeReleased != false) { + size += 1 + 1; + } + if (ApprovalCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApprovalCount); + } + if (RejectionCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(RejectionCount); + } + if (AbstentionCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(AbstentionCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ProposalOutput other) { + if (other == null) { + return; + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + if (other.ContractMethodName.Length != 0) { + ContractMethodName = other.ContractMethodName; + } + if (other.toAddress_ != null) { + if (toAddress_ == null) { + ToAddress = new global::AElf.Types.Address(); + } + ToAddress.MergeFrom(other.ToAddress); + } + if (other.Params.Length != 0) { + Params = other.Params; + } + if (other.expiredTime_ != null) { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiredTime.MergeFrom(other.ExpiredTime); + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + if (other.proposer_ != null) { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + Proposer.MergeFrom(other.Proposer); + } + if (other.ToBeReleased != false) { + ToBeReleased = other.ToBeReleased; + } + if (other.ApprovalCount != 0L) { + ApprovalCount = other.ApprovalCount; + } + if (other.RejectionCount != 0L) { + RejectionCount = other.RejectionCount; + } + if (other.AbstentionCount != 0L) { + AbstentionCount = other.AbstentionCount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + case 18: { + ContractMethodName = input.ReadString(); + break; + } + case 26: { + if (toAddress_ == null) { + ToAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ToAddress); + break; + } + case 34: { + Params = input.ReadBytes(); + break; + } + case 42: { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiredTime); + break; + } + case 50: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + case 58: { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + input.ReadMessage(Proposer); + break; + } + case 64: { + ToBeReleased = input.ReadBool(); + break; + } + case 72: { + ApprovalCount = input.ReadInt64(); + break; + } + case 80: { + RejectionCount = input.ReadInt64(); + break; + } + case 88: { + AbstentionCount = input.ReadInt64(); + break; + } + } + } + } + + } + + internal sealed partial class ProposalReleaseThreshold : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProposalReleaseThreshold()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalReleaseThreshold() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalReleaseThreshold(ProposalReleaseThreshold other) : this() { + minimalApprovalThreshold_ = other.minimalApprovalThreshold_; + maximalRejectionThreshold_ = other.maximalRejectionThreshold_; + maximalAbstentionThreshold_ = other.maximalAbstentionThreshold_; + minimalVoteThreshold_ = other.minimalVoteThreshold_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalReleaseThreshold Clone() { + return new ProposalReleaseThreshold(this); + } + + /// Field number for the "minimal_approval_threshold" field. + public const int MinimalApprovalThresholdFieldNumber = 1; + private long minimalApprovalThreshold_; + /// + /// The value for the minimum approval threshold. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long MinimalApprovalThreshold { + get { return minimalApprovalThreshold_; } + set { + minimalApprovalThreshold_ = value; + } + } + + /// Field number for the "maximal_rejection_threshold" field. + public const int MaximalRejectionThresholdFieldNumber = 2; + private long maximalRejectionThreshold_; + /// + /// The value for the maximal rejection threshold. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long MaximalRejectionThreshold { + get { return maximalRejectionThreshold_; } + set { + maximalRejectionThreshold_ = value; + } + } + + /// Field number for the "maximal_abstention_threshold" field. + public const int MaximalAbstentionThresholdFieldNumber = 3; + private long maximalAbstentionThreshold_; + /// + /// The value for the maximal abstention threshold. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long MaximalAbstentionThreshold { + get { return maximalAbstentionThreshold_; } + set { + maximalAbstentionThreshold_ = value; + } + } + + /// Field number for the "minimal_vote_threshold" field. + public const int MinimalVoteThresholdFieldNumber = 4; + private long minimalVoteThreshold_; + /// + /// The value for the minimal vote threshold. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long MinimalVoteThreshold { + get { return minimalVoteThreshold_; } + set { + minimalVoteThreshold_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ProposalReleaseThreshold); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ProposalReleaseThreshold other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MinimalApprovalThreshold != other.MinimalApprovalThreshold) return false; + if (MaximalRejectionThreshold != other.MaximalRejectionThreshold) return false; + if (MaximalAbstentionThreshold != other.MaximalAbstentionThreshold) return false; + if (MinimalVoteThreshold != other.MinimalVoteThreshold) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (MinimalApprovalThreshold != 0L) hash ^= MinimalApprovalThreshold.GetHashCode(); + if (MaximalRejectionThreshold != 0L) hash ^= MaximalRejectionThreshold.GetHashCode(); + if (MaximalAbstentionThreshold != 0L) hash ^= MaximalAbstentionThreshold.GetHashCode(); + if (MinimalVoteThreshold != 0L) hash ^= MinimalVoteThreshold.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (MinimalApprovalThreshold != 0L) { + output.WriteRawTag(8); + output.WriteInt64(MinimalApprovalThreshold); + } + if (MaximalRejectionThreshold != 0L) { + output.WriteRawTag(16); + output.WriteInt64(MaximalRejectionThreshold); + } + if (MaximalAbstentionThreshold != 0L) { + output.WriteRawTag(24); + output.WriteInt64(MaximalAbstentionThreshold); + } + if (MinimalVoteThreshold != 0L) { + output.WriteRawTag(32); + output.WriteInt64(MinimalVoteThreshold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (MinimalApprovalThreshold != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinimalApprovalThreshold); + } + if (MaximalRejectionThreshold != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaximalRejectionThreshold); + } + if (MaximalAbstentionThreshold != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaximalAbstentionThreshold); + } + if (MinimalVoteThreshold != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinimalVoteThreshold); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ProposalReleaseThreshold other) { + if (other == null) { + return; + } + if (other.MinimalApprovalThreshold != 0L) { + MinimalApprovalThreshold = other.MinimalApprovalThreshold; + } + if (other.MaximalRejectionThreshold != 0L) { + MaximalRejectionThreshold = other.MaximalRejectionThreshold; + } + if (other.MaximalAbstentionThreshold != 0L) { + MaximalAbstentionThreshold = other.MaximalAbstentionThreshold; + } + if (other.MinimalVoteThreshold != 0L) { + MinimalVoteThreshold = other.MinimalVoteThreshold; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MinimalApprovalThreshold = input.ReadInt64(); + break; + } + case 16: { + MaximalRejectionThreshold = input.ReadInt64(); + break; + } + case 24: { + MaximalAbstentionThreshold = input.ReadInt64(); + break; + } + case 32: { + MinimalVoteThreshold = input.ReadInt64(); + break; + } + } + } + } + + } + + internal sealed partial class ProposerWhiteList : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProposerWhiteList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposerWhiteList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposerWhiteList(ProposerWhiteList other) : this() { + proposers_ = other.proposers_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposerWhiteList Clone() { + return new ProposerWhiteList(this); + } + + /// Field number for the "proposers" field. + public const int ProposersFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_proposers_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Types.Address.Parser); + private readonly pbc::RepeatedField proposers_ = new pbc::RepeatedField(); + /// + /// The address of the proposers + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Proposers { + get { return proposers_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ProposerWhiteList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ProposerWhiteList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!proposers_.Equals(other.proposers_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= proposers_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + proposers_.WriteTo(output, _repeated_proposers_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += proposers_.CalculateSize(_repeated_proposers_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ProposerWhiteList other) { + if (other == null) { + return; + } + proposers_.Add(other.proposers_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + proposers_.AddEntriesFrom(input, _repeated_proposers_codec); + break; + } + } + } + } + + } + + internal sealed partial class OrganizationHashAddressPair : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrganizationHashAddressPair()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationHashAddressPair() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationHashAddressPair(OrganizationHashAddressPair other) : this() { + organizationHash_ = other.organizationHash_ != null ? other.organizationHash_.Clone() : null; + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationHashAddressPair Clone() { + return new OrganizationHashAddressPair(this); + } + + /// Field number for the "organization_hash" field. + public const int OrganizationHashFieldNumber = 1; + private global::AElf.Types.Hash organizationHash_; + /// + /// The id of organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash OrganizationHash { + get { return organizationHash_; } + set { + organizationHash_ = value; + } + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 2; + private global::AElf.Types.Address organizationAddress_; + /// + /// The address of organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OrganizationHashAddressPair); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OrganizationHashAddressPair other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OrganizationHash, other.OrganizationHash)) return false; + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (organizationHash_ != null) hash ^= OrganizationHash.GetHashCode(); + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (organizationHash_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationHash); + } + if (organizationAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OrganizationAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (organizationHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationHash); + } + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OrganizationHashAddressPair other) { + if (other == null) { + return; + } + if (other.organizationHash_ != null) { + if (organizationHash_ == null) { + OrganizationHash = new global::AElf.Types.Hash(); + } + OrganizationHash.MergeFrom(other.OrganizationHash); + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (organizationHash_ == null) { + OrganizationHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(OrganizationHash); + break; + } + case 18: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + } + } + } + + } + + internal sealed partial class CreateProposalBySystemContractInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateProposalBySystemContractInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateProposalBySystemContractInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateProposalBySystemContractInput(CreateProposalBySystemContractInput other) : this() { + proposalInput_ = other.proposalInput_ != null ? other.proposalInput_.Clone() : null; + originProposer_ = other.originProposer_ != null ? other.originProposer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateProposalBySystemContractInput Clone() { + return new CreateProposalBySystemContractInput(this); + } + + /// Field number for the "proposal_input" field. + public const int ProposalInputFieldNumber = 1; + private global::AElf.Standards.ACS3.CreateProposalInput proposalInput_; + /// + /// The parameters of creating proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS3.CreateProposalInput ProposalInput { + get { return proposalInput_; } + set { + proposalInput_ = value; + } + } + + /// Field number for the "origin_proposer" field. + public const int OriginProposerFieldNumber = 2; + private global::AElf.Types.Address originProposer_; + /// + /// The actor that trigger the call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OriginProposer { + get { return originProposer_; } + set { + originProposer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateProposalBySystemContractInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateProposalBySystemContractInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalInput, other.ProposalInput)) return false; + if (!object.Equals(OriginProposer, other.OriginProposer)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalInput_ != null) hash ^= ProposalInput.GetHashCode(); + if (originProposer_ != null) hash ^= OriginProposer.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposalInput_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalInput); + } + if (originProposer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OriginProposer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalInput_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalInput); + } + if (originProposer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginProposer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateProposalBySystemContractInput other) { + if (other == null) { + return; + } + if (other.proposalInput_ != null) { + if (proposalInput_ == null) { + ProposalInput = new global::AElf.Standards.ACS3.CreateProposalInput(); + } + ProposalInput.MergeFrom(other.ProposalInput); + } + if (other.originProposer_ != null) { + if (originProposer_ == null) { + OriginProposer = new global::AElf.Types.Address(); + } + OriginProposer.MergeFrom(other.OriginProposer); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalInput_ == null) { + ProposalInput = new global::AElf.Standards.ACS3.CreateProposalInput(); + } + input.ReadMessage(ProposalInput); + break; + } + case 18: { + if (originProposer_ == null) { + OriginProposer = new global::AElf.Types.Address(); + } + input.ReadMessage(OriginProposer); + break; + } + } + } + } + + } + + internal sealed partial class ValidateProposerInWhiteListInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidateProposerInWhiteListInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ValidateProposerInWhiteListInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ValidateProposerInWhiteListInput(ValidateProposerInWhiteListInput other) : this() { + proposer_ = other.proposer_ != null ? other.proposer_.Clone() : null; + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ValidateProposerInWhiteListInput Clone() { + return new ValidateProposerInWhiteListInput(this); + } + + /// Field number for the "proposer" field. + public const int ProposerFieldNumber = 1; + private global::AElf.Types.Address proposer_; + /// + /// The address to search/check. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Proposer { + get { return proposer_; } + set { + proposer_ = value; + } + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 2; + private global::AElf.Types.Address organizationAddress_; + /// + /// The address of the organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ValidateProposerInWhiteListInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ValidateProposerInWhiteListInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Proposer, other.Proposer)) return false; + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposer_ != null) hash ^= Proposer.GetHashCode(); + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Proposer); + } + if (organizationAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OrganizationAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Proposer); + } + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ValidateProposerInWhiteListInput other) { + if (other == null) { + return; + } + if (other.proposer_ != null) { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + Proposer.MergeFrom(other.Proposer); + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + input.ReadMessage(Proposer); + break; + } + case 18: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + } + } + } + + } + + internal sealed partial class ProposalCreated : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProposalCreated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalCreated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalCreated(ProposalCreated other) : this() { + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalCreated Clone() { + return new ProposalCreated(this); + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 1; + private global::AElf.Types.Hash proposalId_; + /// + /// The id of the created proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 2; + private global::AElf.Types.Address organizationAddress_; + /// + /// The organization address of the created proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ProposalCreated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ProposalCreated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalId, other.ProposalId)) return false; + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (organizationAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OrganizationAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ProposalCreated other) { + if (other == null) { + return; + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + case 18: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + } + } + } + + } + + internal sealed partial class ProposalReleased : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProposalReleased()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalReleased() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalReleased(ProposalReleased other) : this() { + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposalReleased Clone() { + return new ProposalReleased(this); + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 1; + private global::AElf.Types.Hash proposalId_; + /// + /// The id of the released proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 2; + private global::AElf.Types.Address organizationAddress_; + /// + /// The organization address of the released proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ProposalReleased); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ProposalReleased other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalId, other.ProposalId)) return false; + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (organizationAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OrganizationAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ProposalReleased other) { + if (other == null) { + return; + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + case 18: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + } + } + } + + } + + internal sealed partial class OrganizationCreated : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrganizationCreated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationCreated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationCreated(OrganizationCreated other) : this() { + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationCreated Clone() { + return new OrganizationCreated(this); + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 1; + private global::AElf.Types.Address organizationAddress_; + /// + /// The address of the created organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OrganizationCreated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OrganizationCreated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (organizationAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OrganizationCreated other) { + if (other == null) { + return; + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + } + } + } + + } + + internal sealed partial class ReceiptCreated : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptCreated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceiptCreated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceiptCreated(ReceiptCreated other) : this() { + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + address_ = other.address_ != null ? other.address_.Clone() : null; + receiptType_ = other.receiptType_; + time_ = other.time_ != null ? other.time_.Clone() : null; + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceiptCreated Clone() { + return new ReceiptCreated(this); + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 1; + private global::AElf.Types.Hash proposalId_; + /// + /// The id of the proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 2; + private global::AElf.Types.Address address_; + /// + /// The sender address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Address { + get { return address_; } + set { + address_ = value; + } + } + + /// Field number for the "receipt_type" field. + public const int ReceiptTypeFieldNumber = 3; + private string receiptType_ = ""; + /// + /// The type of receipt(Approve, Reject or Abstain). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ReceiptType { + get { return receiptType_; } + set { + receiptType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp time_; + /// + /// The timestamp of this method call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.WellKnownTypes.Timestamp Time { + get { return time_; } + set { + time_ = value; + } + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 5; + private global::AElf.Types.Address organizationAddress_; + /// + /// The address of the organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ReceiptCreated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ReceiptCreated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalId, other.ProposalId)) return false; + if (!object.Equals(Address, other.Address)) return false; + if (ReceiptType != other.ReceiptType) return false; + if (!object.Equals(Time, other.Time)) return false; + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (address_ != null) hash ^= Address.GetHashCode(); + if (ReceiptType.Length != 0) hash ^= ReceiptType.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (address_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Address); + } + if (ReceiptType.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ReceiptType); + } + if (time_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Time); + } + if (organizationAddress_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OrganizationAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (address_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + } + if (ReceiptType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptType); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ReceiptCreated other) { + if (other == null) { + return; + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + if (other.address_ != null) { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + Address.MergeFrom(other.Address); + } + if (other.ReceiptType.Length != 0) { + ReceiptType = other.ReceiptType; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Time.MergeFrom(other.Time); + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + case 18: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 26: { + ReceiptType = input.ReadString(); + break; + } + case 34: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 42: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + } + } + } + + } + + internal sealed partial class OrganizationWhiteListChanged : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrganizationWhiteListChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationWhiteListChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationWhiteListChanged(OrganizationWhiteListChanged other) : this() { + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + proposerWhiteList_ = other.proposerWhiteList_ != null ? other.proposerWhiteList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationWhiteListChanged Clone() { + return new OrganizationWhiteListChanged(this); + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 1; + private global::AElf.Types.Address organizationAddress_; + /// + /// The organization address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + /// Field number for the "proposer_white_list" field. + public const int ProposerWhiteListFieldNumber = 2; + private global::AElf.Standards.ACS3.ProposerWhiteList proposerWhiteList_; + /// + /// The new proposer whitelist. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS3.ProposerWhiteList ProposerWhiteList { + get { return proposerWhiteList_; } + set { + proposerWhiteList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OrganizationWhiteListChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OrganizationWhiteListChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + if (!object.Equals(ProposerWhiteList, other.ProposerWhiteList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (proposerWhiteList_ != null) hash ^= ProposerWhiteList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (organizationAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationAddress); + } + if (proposerWhiteList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ProposerWhiteList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (proposerWhiteList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposerWhiteList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OrganizationWhiteListChanged other) { + if (other == null) { + return; + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + if (other.proposerWhiteList_ != null) { + if (proposerWhiteList_ == null) { + ProposerWhiteList = new global::AElf.Standards.ACS3.ProposerWhiteList(); + } + ProposerWhiteList.MergeFrom(other.ProposerWhiteList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + case 18: { + if (proposerWhiteList_ == null) { + ProposerWhiteList = new global::AElf.Standards.ACS3.ProposerWhiteList(); + } + input.ReadMessage(ProposerWhiteList); + break; + } + } + } + } + + } + + internal sealed partial class OrganizationThresholdChanged : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrganizationThresholdChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS3.Acs3Reflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationThresholdChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationThresholdChanged(OrganizationThresholdChanged other) : this() { + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + proposerReleaseThreshold_ = other.proposerReleaseThreshold_ != null ? other.proposerReleaseThreshold_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OrganizationThresholdChanged Clone() { + return new OrganizationThresholdChanged(this); + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 1; + private global::AElf.Types.Address organizationAddress_; + /// + /// The organization address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + /// Field number for the "proposer_release_threshold" field. + public const int ProposerReleaseThresholdFieldNumber = 2; + private global::AElf.Standards.ACS3.ProposalReleaseThreshold proposerReleaseThreshold_; + /// + /// The new release threshold. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS3.ProposalReleaseThreshold ProposerReleaseThreshold { + get { return proposerReleaseThreshold_; } + set { + proposerReleaseThreshold_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OrganizationThresholdChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OrganizationThresholdChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + if (!object.Equals(ProposerReleaseThreshold, other.ProposerReleaseThreshold)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (proposerReleaseThreshold_ != null) hash ^= ProposerReleaseThreshold.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (organizationAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationAddress); + } + if (proposerReleaseThreshold_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ProposerReleaseThreshold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (proposerReleaseThreshold_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposerReleaseThreshold); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OrganizationThresholdChanged other) { + if (other == null) { + return; + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + if (other.proposerReleaseThreshold_ != null) { + if (proposerReleaseThreshold_ == null) { + ProposerReleaseThreshold = new global::AElf.Standards.ACS3.ProposalReleaseThreshold(); + } + ProposerReleaseThreshold.MergeFrom(other.ProposerReleaseThreshold); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + case 18: { + if (proposerReleaseThreshold_ == null) { + ProposerReleaseThreshold = new global::AElf.Standards.ACS3.ProposalReleaseThreshold(); + } + input.ReadMessage(ProposerReleaseThreshold); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/Acs7.c.cs b/src/EbridgeIndexer/Contracts/Acs7.c.cs new file mode 100644 index 0000000..1f78def --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs7.c.cs @@ -0,0 +1,58 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs7.proto +// +// Original file comments: +// * +// AElf Standards ACS7(Contract CrossChain Standard) +// +// ACS7 is for cross chain related contract implementation. +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace AElf.Standards.ACS7 { + + #region Events + public partial class SideChainBlockDataIndexed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public SideChainBlockDataIndexed GetNonIndexed() + { + return new SideChainBlockDataIndexed + { + }; + } + } + + public partial class CrossChainIndexingDataProposedEvent : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public CrossChainIndexingDataProposedEvent GetNonIndexed() + { + return new CrossChainIndexingDataProposedEvent + { + ProposedCrossChainData = ProposedCrossChainData, + ProposalId = ProposalId, + }; + } + } + + #endregion +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/Acs7.g.cs b/src/EbridgeIndexer/Contracts/Acs7.g.cs new file mode 100644 index 0000000..b1da9ad --- /dev/null +++ b/src/EbridgeIndexer/Contracts/Acs7.g.cs @@ -0,0 +1,4686 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: acs7.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Standards.ACS7 { + + /// Holder for reflection information generated from acs7.proto + public static partial class Acs7Reflection { + + #region Descriptor + /// File descriptor for acs7.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static Acs7Reflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgphY3M3LnByb3RvEgRhY3M3Gg9hZWxmL2NvcmUucHJvdG8aEmFlbGYvb3B0", + "aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGh5nb29n", + "bGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90", + "aW1lc3RhbXAucHJvdG8ilgEKElNpZGVDaGFpbkJsb2NrRGF0YRIOCgZoZWln", + "aHQYASABKAMSJQoRYmxvY2tfaGVhZGVyX2hhc2gYAiABKAsyCi5hZWxmLkhh", + "c2gSNwojdHJhbnNhY3Rpb25fc3RhdHVzX21lcmtsZV90cmVlX3Jvb3QYAyAB", + "KAsyCi5hZWxmLkhhc2gSEAoIY2hhaW5faWQYBCABKAUiMQoNUmVjaGFyZ2VJ", + "bnB1dBIQCghjaGFpbl9pZBgBIAEoBRIOCgZhbW91bnQYAiABKAMiuQMKFFBh", + "cmVudENoYWluQmxvY2tEYXRhEg4KBmhlaWdodBgBIAEoAxI5ChZjcm9zc19j", + "aGFpbl9leHRyYV9kYXRhGAIgASgLMhkuYWNzNy5Dcm9zc0NoYWluRXh0cmFE", + "YXRhEhAKCGNoYWluX2lkGAMgASgFEjcKI3RyYW5zYWN0aW9uX3N0YXR1c19t", + "ZXJrbGVfdHJlZV9yb290GAQgASgLMgouYWVsZi5IYXNoEk4KE2luZGV4ZWRf", + "bWVya2xlX3BhdGgYBSADKAsyMS5hY3M3LlBhcmVudENoYWluQmxvY2tEYXRh", + "LkluZGV4ZWRNZXJrbGVQYXRoRW50cnkSPQoKZXh0cmFfZGF0YRgGIAMoCzIp", + "LmFjczcuUGFyZW50Q2hhaW5CbG9ja0RhdGEuRXh0cmFEYXRhRW50cnkaSgoW", + "SW5kZXhlZE1lcmtsZVBhdGhFbnRyeRILCgNrZXkYASABKAMSHwoFdmFsdWUY", + "AiABKAsyEC5hZWxmLk1lcmtsZVBhdGg6AjgBGjAKDkV4dHJhRGF0YUVudHJ5", + "EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDDoCOAEiTgoTQ3Jvc3NDaGFp", + "bkV4dHJhRGF0YRI3CiN0cmFuc2FjdGlvbl9zdGF0dXNfbWVya2xlX3RyZWVf", + "cm9vdBgBIAEoCzIKLmFlbGYuSGFzaCKRAQoUQ2hhaW5JZEFuZEhlaWdodERp", + "Y3QSRAoOaWRfaGVpZ2h0X2RpY3QYASADKAsyLC5hY3M3LkNoYWluSWRBbmRI", + "ZWlnaHREaWN0LklkSGVpZ2h0RGljdEVudHJ5GjMKEUlkSGVpZ2h0RGljdEVu", + "dHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoAzoCOAEiaQogU2lkZUNo", + "YWluSW5kZXhpbmdJbmZvcm1hdGlvbkxpc3QSRQoZaW5kZXhpbmdfaW5mb3Jt", + "YXRpb25fbGlzdBgBIAMoCzIiLmFjczcuU2lkZUNoYWluSW5kZXhpbmdJbmZv", + "cm1hdGlvbiJIChxTaWRlQ2hhaW5JbmRleGluZ0luZm9ybWF0aW9uEhAKCGNo", + "YWluX2lkGAEgASgFEhYKDmluZGV4ZWRfaGVpZ2h0GAIgASgDIpUBChNDcm9z", + "c0NoYWluQmxvY2tEYXRhEjwKGnNpZGVfY2hhaW5fYmxvY2tfZGF0YV9saXN0", + "GAEgAygLMhguYWNzNy5TaWRlQ2hhaW5CbG9ja0RhdGESQAoccGFyZW50X2No", + "YWluX2Jsb2NrX2RhdGFfbGlzdBgCIAMoCzIaLmFjczcuUGFyZW50Q2hhaW5C", + "bG9ja0RhdGEiegocQ3Jvc3NDaGFpbk1lcmtsZVByb29mQ29udGV4dBIhChli", + "b3VuZF9wYXJlbnRfY2hhaW5faGVpZ2h0GAEgASgDEjcKHW1lcmtsZV9wYXRo", + "X2Zyb21fcGFyZW50X2NoYWluGAIgASgLMhAuYWVsZi5NZXJrbGVQYXRoIv0D", + "ChdDaGFpbkluaXRpYWxpemF0aW9uRGF0YRIQCghjaGFpbl9pZBgBIAEoBRIe", + "CgdjcmVhdG9yGAIgASgLMg0uYWVsZi5BZGRyZXNzEjYKEmNyZWF0aW9uX3Rp", + "bWVzdGFtcBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASJwof", + "Y3JlYXRpb25faGVpZ2h0X29uX3BhcmVudF9jaGFpbhgEIAEoAxIpCiFjaGFp", + "bl9jcmVhdG9yX3ByaXZpbGVnZV9wcmVzZXJ2ZWQYBSABKAgSOgojcGFyZW50", + "X2NoYWluX3Rva2VuX2NvbnRyYWN0X2FkZHJlc3MYBiABKAsyDS5hZWxmLkFk", + "ZHJlc3MSUwojY2hhaW5faW5pdGlhbGl6YXRpb25fY29uc2Vuc3VzX2luZm8Y", + "ByABKAsyJi5hY3M3LkNoYWluSW5pdGlhbGl6YXRpb25Db25zZW5zdXNJbmZv", + "Eh4KFm5hdGl2ZV90b2tlbl9pbmZvX2RhdGEYCCABKAwSNAoTcmVzb3VyY2Vf", + "dG9rZW5faW5mbxgJIAEoCzIXLmFjczcuUmVzb3VyY2VUb2tlbkluZm8SPQoY", + "Y2hhaW5fcHJpbWFyeV90b2tlbl9pbmZvGAogASgLMhsuYWNzNy5DaGFpblBy", + "aW1hcnlUb2tlbkluZm8iyAEKEVJlc291cmNlVG9rZW5JbmZvEiAKGHJlc291", + "cmNlX3Rva2VuX2xpc3RfZGF0YRgBIAEoDBJTChdpbml0aWFsX3Jlc291cmNl", + "X2Ftb3VudBgCIAMoCzIyLmFjczcuUmVzb3VyY2VUb2tlbkluZm8uSW5pdGlh", + "bFJlc291cmNlQW1vdW50RW50cnkaPAoaSW5pdGlhbFJlc291cmNlQW1vdW50", + "RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4ASKIAQoVQ2hh", + "aW5QcmltYXJ5VG9rZW5JbmZvEiAKGGNoYWluX3ByaW1hcnlfdG9rZW5fZGF0", + "YRgBIAEoDBJNCiNzaWRlX2NoYWluX3Rva2VuX2luaXRpYWxfaXNzdWVfbGlz", + "dBgCIAMoCzIgLmFjczcuU2lkZUNoYWluVG9rZW5Jbml0aWFsSXNzdWUiQgog", + "Q2hhaW5Jbml0aWFsaXphdGlvbkNvbnNlbnN1c0luZm8SHgoWaW5pdGlhbF9j", + "b25zZW5zdXNfZGF0YRgBIAEoDCKoAwoYU2lkZUNoYWluQ3JlYXRpb25SZXF1", + "ZXN0EhYKDmluZGV4aW5nX3ByaWNlGAEgASgDEhsKE2xvY2tlZF90b2tlbl9h", + "bW91bnQYAiABKAMSHgoWaXNfcHJpdmlsZWdlX3ByZXNlcnZlZBgDIAEoCBJO", + "CiFzaWRlX2NoYWluX3Rva2VuX2NyZWF0aW9uX3JlcXVlc3QYBCABKAsyIy5h", + "Y3M3LlNpZGVDaGFpblRva2VuQ3JlYXRpb25SZXF1ZXN0Ek0KI3NpZGVfY2hh", + "aW5fdG9rZW5faW5pdGlhbF9pc3N1ZV9saXN0GAUgAygLMiAuYWNzNy5TaWRl", + "Q2hhaW5Ub2tlbkluaXRpYWxJc3N1ZRJaChdpbml0aWFsX3Jlc291cmNlX2Ft", + "b3VudBgGIAMoCzI5LmFjczcuU2lkZUNoYWluQ3JlYXRpb25SZXF1ZXN0Lklu", + "aXRpYWxSZXNvdXJjZUFtb3VudEVudHJ5GjwKGkluaXRpYWxSZXNvdXJjZUFt", + "b3VudEVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoBToCOAEiqQEK", + "HVNpZGVDaGFpblRva2VuQ3JlYXRpb25SZXF1ZXN0Eh8KF3NpZGVfY2hhaW5f", + "dG9rZW5fc3ltYm9sGAEgASgJEh0KFXNpZGVfY2hhaW5fdG9rZW5fbmFtZRgC", + "IAEoCRIlCh1zaWRlX2NoYWluX3Rva2VuX3RvdGFsX3N1cHBseRgDIAEoAxIh", + "ChlzaWRlX2NoYWluX3Rva2VuX2RlY2ltYWxzGAQgASgFIkwKGlNpZGVDaGFp", + "blRva2VuSW5pdGlhbElzc3VlEh4KB2FkZHJlc3MYASABKAsyDS5hZWxmLkFk", + "ZHJlc3MSDgoGYW1vdW50GAIgASgDInsKG0luZGV4ZWRQYXJlbnRDaGFpbkJs", + "b2NrRGF0YRIaChJsb2NhbF9jaGFpbl9oZWlnaHQYASABKAMSQAoccGFyZW50", + "X2NoYWluX2Jsb2NrX2RhdGFfbGlzdBgCIAMoCzIaLmFjczcuUGFyZW50Q2hh", + "aW5CbG9ja0RhdGEiWQoZSW5kZXhlZFNpZGVDaGFpbkJsb2NrRGF0YRI8Chpz", + "aWRlX2NoYWluX2Jsb2NrX2RhdGFfbGlzdBgBIAMoCzIYLmFjczcuU2lkZUNo", + "YWluQmxvY2tEYXRhIj8KJlJlbGVhc2VDcm9zc0NoYWluSW5kZXhpbmdQcm9w", + "b3NhbElucHV0EhUKDWNoYWluX2lkX2xpc3QYASADKAUifAoUQ3JlYXRlU2lk", + "ZUNoYWluSW5wdXQSQwobc2lkZV9jaGFpbl9jcmVhdGlvbl9yZXF1ZXN0GAEg", + "ASgLMh4uYWNzNy5TaWRlQ2hhaW5DcmVhdGlvblJlcXVlc3QSHwoIcHJvcG9z", + "ZXIYAiABKAsyDS5hZWxmLkFkZHJlc3MiQAodUmVsZWFzZVNpZGVDaGFpbkNy", + "ZWF0aW9uSW5wdXQSHwoLcHJvcG9zYWxfaWQYASABKAsyCi5hZWxmLkhhc2gi", + "RQoWQWRqdXN0SW5kZXhpbmdGZWVJbnB1dBIVCg1zaWRlX2NoYWluX2lkGAEg", + "ASgFEhQKDGluZGV4aW5nX2ZlZRgCIAEoAyIhChlTaWRlQ2hhaW5CbG9ja0Rh", + "dGFJbmRleGVkOgSguxgBIooBCiNDcm9zc0NoYWluSW5kZXhpbmdEYXRhUHJv", + "cG9zZWRFdmVudBI8Chlwcm9wb3NlZF9jcm9zc19jaGFpbl9kYXRhGAEgASgL", + "MhkuYWNzNy5Dcm9zc0NoYWluQmxvY2tEYXRhEh8KC3Byb3Bvc2FsX2lkGAIg", + "ASgLMgouYWVsZi5IYXNoOgSguxgBIpQBChZWZXJpZnlUcmFuc2FjdGlvbklu", + "cHV0EiIKDnRyYW5zYWN0aW9uX2lkGAEgASgLMgouYWVsZi5IYXNoEh4KBHBh", + "dGgYAiABKAsyEC5hZWxmLk1lcmtsZVBhdGgSGwoTcGFyZW50X2NoYWluX2hl", + "aWdodBgDIAEoAxIZChF2ZXJpZmllZF9jaGFpbl9pZBgEIAEoBTLZCgoEQUNT", + "NxJQChlQcm9wb3NlQ3Jvc3NDaGFpbkluZGV4aW5nEhkuYWNzNy5Dcm9zc0No", + "YWluQmxvY2tEYXRhGhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASawohUmVs", + "ZWFzZUNyb3NzQ2hhaW5JbmRleGluZ1Byb3Bvc2FsEiwuYWNzNy5SZWxlYXNl", + "Q3Jvc3NDaGFpbkluZGV4aW5nUHJvcG9zYWxJbnB1dBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAElQKGFJlcXVlc3RTaWRlQ2hhaW5DcmVhdGlvbhIeLmFj", + "czcuU2lkZUNoYWluQ3JlYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5IgASWQoYUmVsZWFzZVNpZGVDaGFpbkNyZWF0aW9uEiMuYWNzNy5S", + "ZWxlYXNlU2lkZUNoYWluQ3JlYXRpb25JbnB1dBoWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eSIAEkwKD0NyZWF0ZVNpZGVDaGFpbhIaLmFjczcuQ3JlYXRlU2lk", + "ZUNoYWluSW5wdXQaGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZSIAEjkK", + "CFJlY2hhcmdlEhMuYWNzNy5SZWNoYXJnZUlucHV0GhYuZ29vZ2xlLnByb3Rv", + "YnVmLkVtcHR5IgASTgoQRGlzcG9zZVNpZGVDaGFpbhIbLmdvb2dsZS5wcm90", + "b2J1Zi5JbnQzMlZhbHVlGhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUi", + "ABJQChZBZGp1c3RJbmRleGluZ0ZlZVByaWNlEhwuYWNzNy5BZGp1c3RJbmRl", + "eGluZ0ZlZUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASVAoRVmVy", + "aWZ5VHJhbnNhY3Rpb24SHC5hY3M3LlZlcmlmeVRyYW5zYWN0aW9uSW5wdXQa", + "Gi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVlIgWIifcBARJUChdHZXRTaWRl", + "Q2hhaW5JZEFuZEhlaWdodBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoaLmFj", + "czcuQ2hhaW5JZEFuZEhlaWdodERpY3QiBYiJ9wEBEmwKI0dldFNpZGVDaGFp", + "bkluZGV4aW5nSW5mb3JtYXRpb25MaXN0EhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5GiYuYWNzNy5TaWRlQ2hhaW5JbmRleGluZ0luZm9ybWF0aW9uTGlzdCIF", + "iIn3AQESVAoXR2V0QWxsQ2hhaW5zSWRBbmRIZWlnaHQSFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkaGi5hY3M3LkNoYWluSWRBbmRIZWlnaHREaWN0IgWIifcB", + "ARJrCiRHZXRJbmRleGVkU2lkZUNoYWluQmxvY2tEYXRhQnlIZWlnaHQSGy5n", + "b29nbGUucHJvdG9idWYuSW50NjRWYWx1ZRofLmFjczcuSW5kZXhlZFNpZGVD", + "aGFpbkJsb2NrRGF0YSIFiIn3AQESeAouR2V0Qm91bmRQYXJlbnRDaGFpbkhl", + "aWdodEFuZE1lcmtsZVBhdGhCeUhlaWdodBIbLmdvb2dsZS5wcm90b2J1Zi5J", + "bnQ2NFZhbHVlGiIuYWNzNy5Dcm9zc0NoYWluTWVya2xlUHJvb2ZDb250ZXh0", + "IgWIifcBARJfChpHZXRDaGFpbkluaXRpYWxpemF0aW9uRGF0YRIbLmdvb2ds", + "ZS5wcm90b2J1Zi5JbnQzMlZhbHVlGh0uYWNzNy5DaGFpbkluaXRpYWxpemF0", + "aW9uRGF0YSIFiIn3AQFCH6oCE0FFbGYuU3RhbmRhcmRzLkFDUzeKkvQBBGFj", + "czdQAFAEYgZwcm90bzM=")); + 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, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.SideChainBlockData), global::AElf.Standards.ACS7.SideChainBlockData.Parser, new[]{ "Height", "BlockHeaderHash", "TransactionStatusMerkleTreeRoot", "ChainId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.RechargeInput), global::AElf.Standards.ACS7.RechargeInput.Parser, new[]{ "ChainId", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.ParentChainBlockData), global::AElf.Standards.ACS7.ParentChainBlockData.Parser, new[]{ "Height", "CrossChainExtraData", "ChainId", "TransactionStatusMerkleTreeRoot", "IndexedMerklePath", "ExtraData" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.CrossChainExtraData), global::AElf.Standards.ACS7.CrossChainExtraData.Parser, new[]{ "TransactionStatusMerkleTreeRoot" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.ChainIdAndHeightDict), global::AElf.Standards.ACS7.ChainIdAndHeightDict.Parser, new[]{ "IdHeightDict" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.SideChainIndexingInformationList), global::AElf.Standards.ACS7.SideChainIndexingInformationList.Parser, new[]{ "IndexingInformationList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.SideChainIndexingInformation), global::AElf.Standards.ACS7.SideChainIndexingInformation.Parser, new[]{ "ChainId", "IndexedHeight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.CrossChainBlockData), global::AElf.Standards.ACS7.CrossChainBlockData.Parser, new[]{ "SideChainBlockDataList", "ParentChainBlockDataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.CrossChainMerkleProofContext), global::AElf.Standards.ACS7.CrossChainMerkleProofContext.Parser, new[]{ "BoundParentChainHeight", "MerklePathFromParentChain" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.ChainInitializationData), global::AElf.Standards.ACS7.ChainInitializationData.Parser, new[]{ "ChainId", "Creator", "CreationTimestamp", "CreationHeightOnParentChain", "ChainCreatorPrivilegePreserved", "ParentChainTokenContractAddress", "ChainInitializationConsensusInfo", "NativeTokenInfoData", "ResourceTokenInfo", "ChainPrimaryTokenInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.ResourceTokenInfo), global::AElf.Standards.ACS7.ResourceTokenInfo.Parser, new[]{ "ResourceTokenListData", "InitialResourceAmount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.ChainPrimaryTokenInfo), global::AElf.Standards.ACS7.ChainPrimaryTokenInfo.Parser, new[]{ "ChainPrimaryTokenData", "SideChainTokenInitialIssueList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.ChainInitializationConsensusInfo), global::AElf.Standards.ACS7.ChainInitializationConsensusInfo.Parser, new[]{ "InitialConsensusData" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.SideChainCreationRequest), global::AElf.Standards.ACS7.SideChainCreationRequest.Parser, new[]{ "IndexingPrice", "LockedTokenAmount", "IsPrivilegePreserved", "SideChainTokenCreationRequest", "SideChainTokenInitialIssueList", "InitialResourceAmount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.SideChainTokenCreationRequest), global::AElf.Standards.ACS7.SideChainTokenCreationRequest.Parser, new[]{ "SideChainTokenSymbol", "SideChainTokenName", "SideChainTokenTotalSupply", "SideChainTokenDecimals" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.SideChainTokenInitialIssue), global::AElf.Standards.ACS7.SideChainTokenInitialIssue.Parser, new[]{ "Address", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.IndexedParentChainBlockData), global::AElf.Standards.ACS7.IndexedParentChainBlockData.Parser, new[]{ "LocalChainHeight", "ParentChainBlockDataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.IndexedSideChainBlockData), global::AElf.Standards.ACS7.IndexedSideChainBlockData.Parser, new[]{ "SideChainBlockDataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.ReleaseCrossChainIndexingProposalInput), global::AElf.Standards.ACS7.ReleaseCrossChainIndexingProposalInput.Parser, new[]{ "ChainIdList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.CreateSideChainInput), global::AElf.Standards.ACS7.CreateSideChainInput.Parser, new[]{ "SideChainCreationRequest", "Proposer" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.ReleaseSideChainCreationInput), global::AElf.Standards.ACS7.ReleaseSideChainCreationInput.Parser, new[]{ "ProposalId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.AdjustIndexingFeeInput), global::AElf.Standards.ACS7.AdjustIndexingFeeInput.Parser, new[]{ "SideChainId", "IndexingFee" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.SideChainBlockDataIndexed), global::AElf.Standards.ACS7.SideChainBlockDataIndexed.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.CrossChainIndexingDataProposedEvent), global::AElf.Standards.ACS7.CrossChainIndexingDataProposedEvent.Parser, new[]{ "ProposedCrossChainData", "ProposalId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Standards.ACS7.VerifyTransactionInput), global::AElf.Standards.ACS7.VerifyTransactionInput.Parser, new[]{ "TransactionId", "Path", "ParentChainHeight", "VerifiedChainId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SideChainBlockData : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainBlockData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainBlockData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainBlockData(SideChainBlockData other) : this() { + height_ = other.height_; + blockHeaderHash_ = other.blockHeaderHash_ != null ? other.blockHeaderHash_.Clone() : null; + transactionStatusMerkleTreeRoot_ = other.transactionStatusMerkleTreeRoot_ != null ? other.transactionStatusMerkleTreeRoot_.Clone() : null; + chainId_ = other.chainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainBlockData Clone() { + return new SideChainBlockData(this); + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 1; + private long height_; + /// + /// The height of side chain block. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Height { + get { return height_; } + set { + height_ = value; + } + } + + /// Field number for the "block_header_hash" field. + public const int BlockHeaderHashFieldNumber = 2; + private global::AElf.Types.Hash blockHeaderHash_; + /// + /// The hash of side chain block. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash BlockHeaderHash { + get { return blockHeaderHash_; } + set { + blockHeaderHash_ = value; + } + } + + /// Field number for the "transaction_status_merkle_tree_root" field. + public const int TransactionStatusMerkleTreeRootFieldNumber = 3; + private global::AElf.Types.Hash transactionStatusMerkleTreeRoot_; + /// + /// The merkle tree root computing from transactions status in side chain block. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash TransactionStatusMerkleTreeRoot { + get { return transactionStatusMerkleTreeRoot_; } + set { + transactionStatusMerkleTreeRoot_ = value; + } + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 4; + private int chainId_; + /// + /// The id of side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainBlockData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainBlockData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Height != other.Height) return false; + if (!object.Equals(BlockHeaderHash, other.BlockHeaderHash)) return false; + if (!object.Equals(TransactionStatusMerkleTreeRoot, other.TransactionStatusMerkleTreeRoot)) return false; + if (ChainId != other.ChainId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Height != 0L) hash ^= Height.GetHashCode(); + if (blockHeaderHash_ != null) hash ^= BlockHeaderHash.GetHashCode(); + if (transactionStatusMerkleTreeRoot_ != null) hash ^= TransactionStatusMerkleTreeRoot.GetHashCode(); + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Height != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Height); + } + if (blockHeaderHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHeaderHash); + } + if (transactionStatusMerkleTreeRoot_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TransactionStatusMerkleTreeRoot); + } + if (ChainId != 0) { + output.WriteRawTag(32); + output.WriteInt32(ChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Height != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Height); + } + if (blockHeaderHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlockHeaderHash); + } + if (transactionStatusMerkleTreeRoot_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransactionStatusMerkleTreeRoot); + } + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainBlockData other) { + if (other == null) { + return; + } + if (other.Height != 0L) { + Height = other.Height; + } + if (other.blockHeaderHash_ != null) { + if (blockHeaderHash_ == null) { + BlockHeaderHash = new global::AElf.Types.Hash(); + } + BlockHeaderHash.MergeFrom(other.BlockHeaderHash); + } + if (other.transactionStatusMerkleTreeRoot_ != null) { + if (transactionStatusMerkleTreeRoot_ == null) { + TransactionStatusMerkleTreeRoot = new global::AElf.Types.Hash(); + } + TransactionStatusMerkleTreeRoot.MergeFrom(other.TransactionStatusMerkleTreeRoot); + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Height = input.ReadInt64(); + break; + } + case 18: { + if (blockHeaderHash_ == null) { + BlockHeaderHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHeaderHash); + break; + } + case 26: { + if (transactionStatusMerkleTreeRoot_ == null) { + TransactionStatusMerkleTreeRoot = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransactionStatusMerkleTreeRoot); + break; + } + case 32: { + ChainId = input.ReadInt32(); + break; + } + } + } + } + + } + + public sealed partial class RechargeInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RechargeInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RechargeInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RechargeInput(RechargeInput other) : this() { + chainId_ = other.chainId_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RechargeInput Clone() { + return new RechargeInput(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private int chainId_; + /// + /// The chain id to recharge. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The amount to recharge. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RechargeInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RechargeInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RechargeInput other) { + if (other == null) { + return; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class ParentChainBlockData : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParentChainBlockData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ParentChainBlockData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ParentChainBlockData(ParentChainBlockData other) : this() { + height_ = other.height_; + crossChainExtraData_ = other.crossChainExtraData_ != null ? other.crossChainExtraData_.Clone() : null; + chainId_ = other.chainId_; + transactionStatusMerkleTreeRoot_ = other.transactionStatusMerkleTreeRoot_ != null ? other.transactionStatusMerkleTreeRoot_.Clone() : null; + indexedMerklePath_ = other.indexedMerklePath_.Clone(); + extraData_ = other.extraData_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ParentChainBlockData Clone() { + return new ParentChainBlockData(this); + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 1; + private long height_; + /// + /// The height of parent chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Height { + get { return height_; } + set { + height_ = value; + } + } + + /// Field number for the "cross_chain_extra_data" field. + public const int CrossChainExtraDataFieldNumber = 2; + private global::AElf.Standards.ACS7.CrossChainExtraData crossChainExtraData_; + /// + /// The merkle tree root computing from side chain roots. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.CrossChainExtraData CrossChainExtraData { + get { return crossChainExtraData_; } + set { + crossChainExtraData_ = value; + } + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 3; + private int chainId_; + /// + /// The parent chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + /// Field number for the "transaction_status_merkle_tree_root" field. + public const int TransactionStatusMerkleTreeRootFieldNumber = 4; + private global::AElf.Types.Hash transactionStatusMerkleTreeRoot_; + /// + /// The merkle tree root computing from transactions status in parent chain block. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash TransactionStatusMerkleTreeRoot { + get { return transactionStatusMerkleTreeRoot_; } + set { + transactionStatusMerkleTreeRoot_ = value; + } + } + + /// Field number for the "indexed_merkle_path" field. + public const int IndexedMerklePathFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_indexedMerklePath_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForMessage(18, global::AElf.Types.MerklePath.Parser), 42); + private readonly pbc::MapField indexedMerklePath_ = new pbc::MapField(); + /// + /// Indexed block height from side chain and merkle path for this side chain block + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField IndexedMerklePath { + get { return indexedMerklePath_; } + } + + /// Field number for the "extra_data" field. + public const int ExtraDataFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_extraData_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForBytes(18, pb::ByteString.Empty), 50); + private readonly pbc::MapField extraData_ = new pbc::MapField(); + /// + /// Extra data map. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField ExtraData { + get { return extraData_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ParentChainBlockData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ParentChainBlockData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Height != other.Height) return false; + if (!object.Equals(CrossChainExtraData, other.CrossChainExtraData)) return false; + if (ChainId != other.ChainId) return false; + if (!object.Equals(TransactionStatusMerkleTreeRoot, other.TransactionStatusMerkleTreeRoot)) return false; + if (!IndexedMerklePath.Equals(other.IndexedMerklePath)) return false; + if (!ExtraData.Equals(other.ExtraData)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Height != 0L) hash ^= Height.GetHashCode(); + if (crossChainExtraData_ != null) hash ^= CrossChainExtraData.GetHashCode(); + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (transactionStatusMerkleTreeRoot_ != null) hash ^= TransactionStatusMerkleTreeRoot.GetHashCode(); + hash ^= IndexedMerklePath.GetHashCode(); + hash ^= ExtraData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Height != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Height); + } + if (crossChainExtraData_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CrossChainExtraData); + } + if (ChainId != 0) { + output.WriteRawTag(24); + output.WriteInt32(ChainId); + } + if (transactionStatusMerkleTreeRoot_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TransactionStatusMerkleTreeRoot); + } + indexedMerklePath_.WriteTo(output, _map_indexedMerklePath_codec); + extraData_.WriteTo(output, _map_extraData_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Height != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Height); + } + if (crossChainExtraData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CrossChainExtraData); + } + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (transactionStatusMerkleTreeRoot_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransactionStatusMerkleTreeRoot); + } + size += indexedMerklePath_.CalculateSize(_map_indexedMerklePath_codec); + size += extraData_.CalculateSize(_map_extraData_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ParentChainBlockData other) { + if (other == null) { + return; + } + if (other.Height != 0L) { + Height = other.Height; + } + if (other.crossChainExtraData_ != null) { + if (crossChainExtraData_ == null) { + CrossChainExtraData = new global::AElf.Standards.ACS7.CrossChainExtraData(); + } + CrossChainExtraData.MergeFrom(other.CrossChainExtraData); + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + if (other.transactionStatusMerkleTreeRoot_ != null) { + if (transactionStatusMerkleTreeRoot_ == null) { + TransactionStatusMerkleTreeRoot = new global::AElf.Types.Hash(); + } + TransactionStatusMerkleTreeRoot.MergeFrom(other.TransactionStatusMerkleTreeRoot); + } + indexedMerklePath_.Add(other.indexedMerklePath_); + extraData_.Add(other.extraData_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Height = input.ReadInt64(); + break; + } + case 18: { + if (crossChainExtraData_ == null) { + CrossChainExtraData = new global::AElf.Standards.ACS7.CrossChainExtraData(); + } + input.ReadMessage(CrossChainExtraData); + break; + } + case 24: { + ChainId = input.ReadInt32(); + break; + } + case 34: { + if (transactionStatusMerkleTreeRoot_ == null) { + TransactionStatusMerkleTreeRoot = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransactionStatusMerkleTreeRoot); + break; + } + case 42: { + indexedMerklePath_.AddEntriesFrom(input, _map_indexedMerklePath_codec); + break; + } + case 50: { + extraData_.AddEntriesFrom(input, _map_extraData_codec); + break; + } + } + } + } + + } + + public sealed partial class CrossChainExtraData : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainExtraData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainExtraData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainExtraData(CrossChainExtraData other) : this() { + transactionStatusMerkleTreeRoot_ = other.transactionStatusMerkleTreeRoot_ != null ? other.transactionStatusMerkleTreeRoot_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainExtraData Clone() { + return new CrossChainExtraData(this); + } + + /// Field number for the "transaction_status_merkle_tree_root" field. + public const int TransactionStatusMerkleTreeRootFieldNumber = 1; + private global::AElf.Types.Hash transactionStatusMerkleTreeRoot_; + /// + /// Merkle tree root of side chain block transaction status root. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash TransactionStatusMerkleTreeRoot { + get { return transactionStatusMerkleTreeRoot_; } + set { + transactionStatusMerkleTreeRoot_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainExtraData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CrossChainExtraData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TransactionStatusMerkleTreeRoot, other.TransactionStatusMerkleTreeRoot)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (transactionStatusMerkleTreeRoot_ != null) hash ^= TransactionStatusMerkleTreeRoot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (transactionStatusMerkleTreeRoot_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TransactionStatusMerkleTreeRoot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (transactionStatusMerkleTreeRoot_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransactionStatusMerkleTreeRoot); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CrossChainExtraData other) { + if (other == null) { + return; + } + if (other.transactionStatusMerkleTreeRoot_ != null) { + if (transactionStatusMerkleTreeRoot_ == null) { + TransactionStatusMerkleTreeRoot = new global::AElf.Types.Hash(); + } + TransactionStatusMerkleTreeRoot.MergeFrom(other.TransactionStatusMerkleTreeRoot); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (transactionStatusMerkleTreeRoot_ == null) { + TransactionStatusMerkleTreeRoot = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransactionStatusMerkleTreeRoot); + break; + } + } + } + } + + } + + public sealed partial class ChainIdAndHeightDict : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainIdAndHeightDict()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainIdAndHeightDict() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainIdAndHeightDict(ChainIdAndHeightDict other) : this() { + idHeightDict_ = other.idHeightDict_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainIdAndHeightDict Clone() { + return new ChainIdAndHeightDict(this); + } + + /// Field number for the "id_height_dict" field. + public const int IdHeightDictFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_idHeightDict_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt64(16, 0L), 10); + private readonly pbc::MapField idHeightDict_ = new pbc::MapField(); + /// + /// A collection of chain ids and heights, where the key is the chain id and the value is the height. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField IdHeightDict { + get { return idHeightDict_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChainIdAndHeightDict); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ChainIdAndHeightDict other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!IdHeightDict.Equals(other.IdHeightDict)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= IdHeightDict.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + idHeightDict_.WriteTo(output, _map_idHeightDict_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += idHeightDict_.CalculateSize(_map_idHeightDict_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ChainIdAndHeightDict other) { + if (other == null) { + return; + } + idHeightDict_.Add(other.idHeightDict_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + idHeightDict_.AddEntriesFrom(input, _map_idHeightDict_codec); + break; + } + } + } + } + + } + + public sealed partial class SideChainIndexingInformationList : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainIndexingInformationList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexingInformationList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexingInformationList(SideChainIndexingInformationList other) : this() { + indexingInformationList_ = other.indexingInformationList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexingInformationList Clone() { + return new SideChainIndexingInformationList(this); + } + + /// Field number for the "indexing_information_list" field. + public const int IndexingInformationListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_indexingInformationList_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Standards.ACS7.SideChainIndexingInformation.Parser); + private readonly pbc::RepeatedField indexingInformationList_ = new pbc::RepeatedField(); + /// + /// A list contains indexing information of side chains. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField IndexingInformationList { + get { return indexingInformationList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainIndexingInformationList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainIndexingInformationList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!indexingInformationList_.Equals(other.indexingInformationList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= indexingInformationList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + indexingInformationList_.WriteTo(output, _repeated_indexingInformationList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += indexingInformationList_.CalculateSize(_repeated_indexingInformationList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainIndexingInformationList other) { + if (other == null) { + return; + } + indexingInformationList_.Add(other.indexingInformationList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + indexingInformationList_.AddEntriesFrom(input, _repeated_indexingInformationList_codec); + break; + } + } + } + } + + } + + public sealed partial class SideChainIndexingInformation : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainIndexingInformation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexingInformation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexingInformation(SideChainIndexingInformation other) : this() { + chainId_ = other.chainId_; + indexedHeight_ = other.indexedHeight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexingInformation Clone() { + return new SideChainIndexingInformation(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private int chainId_; + /// + /// The side chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + /// Field number for the "indexed_height" field. + public const int IndexedHeightFieldNumber = 2; + private long indexedHeight_; + /// + /// The indexed height. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long IndexedHeight { + get { return indexedHeight_; } + set { + indexedHeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainIndexingInformation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainIndexingInformation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (IndexedHeight != other.IndexedHeight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (IndexedHeight != 0L) hash ^= IndexedHeight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (IndexedHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(IndexedHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (IndexedHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IndexedHeight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainIndexingInformation other) { + if (other == null) { + return; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + if (other.IndexedHeight != 0L) { + IndexedHeight = other.IndexedHeight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + case 16: { + IndexedHeight = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class CrossChainBlockData : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainBlockData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainBlockData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainBlockData(CrossChainBlockData other) : this() { + sideChainBlockDataList_ = other.sideChainBlockDataList_.Clone(); + parentChainBlockDataList_ = other.parentChainBlockDataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainBlockData Clone() { + return new CrossChainBlockData(this); + } + + /// Field number for the "side_chain_block_data_list" field. + public const int SideChainBlockDataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_sideChainBlockDataList_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Standards.ACS7.SideChainBlockData.Parser); + private readonly pbc::RepeatedField sideChainBlockDataList_ = new pbc::RepeatedField(); + /// + /// The side chain block data list to index. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SideChainBlockDataList { + get { return sideChainBlockDataList_; } + } + + /// Field number for the "parent_chain_block_data_list" field. + public const int ParentChainBlockDataListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_parentChainBlockDataList_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Standards.ACS7.ParentChainBlockData.Parser); + private readonly pbc::RepeatedField parentChainBlockDataList_ = new pbc::RepeatedField(); + /// + /// The parent chain block data list to index. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ParentChainBlockDataList { + get { return parentChainBlockDataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainBlockData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CrossChainBlockData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!sideChainBlockDataList_.Equals(other.sideChainBlockDataList_)) return false; + if(!parentChainBlockDataList_.Equals(other.parentChainBlockDataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= sideChainBlockDataList_.GetHashCode(); + hash ^= parentChainBlockDataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + sideChainBlockDataList_.WriteTo(output, _repeated_sideChainBlockDataList_codec); + parentChainBlockDataList_.WriteTo(output, _repeated_parentChainBlockDataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += sideChainBlockDataList_.CalculateSize(_repeated_sideChainBlockDataList_codec); + size += parentChainBlockDataList_.CalculateSize(_repeated_parentChainBlockDataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CrossChainBlockData other) { + if (other == null) { + return; + } + sideChainBlockDataList_.Add(other.sideChainBlockDataList_); + parentChainBlockDataList_.Add(other.parentChainBlockDataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + sideChainBlockDataList_.AddEntriesFrom(input, _repeated_sideChainBlockDataList_codec); + break; + } + case 18: { + parentChainBlockDataList_.AddEntriesFrom(input, _repeated_parentChainBlockDataList_codec); + break; + } + } + } + } + + } + + public sealed partial class CrossChainMerkleProofContext : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainMerkleProofContext()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainMerkleProofContext() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainMerkleProofContext(CrossChainMerkleProofContext other) : this() { + boundParentChainHeight_ = other.boundParentChainHeight_; + merklePathFromParentChain_ = other.merklePathFromParentChain_ != null ? other.merklePathFromParentChain_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainMerkleProofContext Clone() { + return new CrossChainMerkleProofContext(this); + } + + /// Field number for the "bound_parent_chain_height" field. + public const int BoundParentChainHeightFieldNumber = 1; + private long boundParentChainHeight_; + /// + /// The height of parent chain bound up with side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long BoundParentChainHeight { + get { return boundParentChainHeight_; } + set { + boundParentChainHeight_ = value; + } + } + + /// Field number for the "merkle_path_from_parent_chain" field. + public const int MerklePathFromParentChainFieldNumber = 2; + private global::AElf.Types.MerklePath merklePathFromParentChain_; + /// + /// The merkle path generated from parent chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.MerklePath MerklePathFromParentChain { + get { return merklePathFromParentChain_; } + set { + merklePathFromParentChain_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainMerkleProofContext); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CrossChainMerkleProofContext other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BoundParentChainHeight != other.BoundParentChainHeight) return false; + if (!object.Equals(MerklePathFromParentChain, other.MerklePathFromParentChain)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (BoundParentChainHeight != 0L) hash ^= BoundParentChainHeight.GetHashCode(); + if (merklePathFromParentChain_ != null) hash ^= MerklePathFromParentChain.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (BoundParentChainHeight != 0L) { + output.WriteRawTag(8); + output.WriteInt64(BoundParentChainHeight); + } + if (merklePathFromParentChain_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MerklePathFromParentChain); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (BoundParentChainHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BoundParentChainHeight); + } + if (merklePathFromParentChain_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MerklePathFromParentChain); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CrossChainMerkleProofContext other) { + if (other == null) { + return; + } + if (other.BoundParentChainHeight != 0L) { + BoundParentChainHeight = other.BoundParentChainHeight; + } + if (other.merklePathFromParentChain_ != null) { + if (merklePathFromParentChain_ == null) { + MerklePathFromParentChain = new global::AElf.Types.MerklePath(); + } + MerklePathFromParentChain.MergeFrom(other.MerklePathFromParentChain); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BoundParentChainHeight = input.ReadInt64(); + break; + } + case 18: { + if (merklePathFromParentChain_ == null) { + MerklePathFromParentChain = new global::AElf.Types.MerklePath(); + } + input.ReadMessage(MerklePathFromParentChain); + break; + } + } + } + } + + } + + public sealed partial class ChainInitializationData : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainInitializationData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainInitializationData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainInitializationData(ChainInitializationData other) : this() { + chainId_ = other.chainId_; + creator_ = other.creator_ != null ? other.creator_.Clone() : null; + creationTimestamp_ = other.creationTimestamp_ != null ? other.creationTimestamp_.Clone() : null; + creationHeightOnParentChain_ = other.creationHeightOnParentChain_; + chainCreatorPrivilegePreserved_ = other.chainCreatorPrivilegePreserved_; + parentChainTokenContractAddress_ = other.parentChainTokenContractAddress_ != null ? other.parentChainTokenContractAddress_.Clone() : null; + chainInitializationConsensusInfo_ = other.chainInitializationConsensusInfo_ != null ? other.chainInitializationConsensusInfo_.Clone() : null; + nativeTokenInfoData_ = other.nativeTokenInfoData_; + resourceTokenInfo_ = other.resourceTokenInfo_ != null ? other.resourceTokenInfo_.Clone() : null; + chainPrimaryTokenInfo_ = other.chainPrimaryTokenInfo_ != null ? other.chainPrimaryTokenInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainInitializationData Clone() { + return new ChainInitializationData(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private int chainId_; + /// + /// The id of side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + /// Field number for the "creator" field. + public const int CreatorFieldNumber = 2; + private global::AElf.Types.Address creator_; + /// + /// The side chain creator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Creator { + get { return creator_; } + set { + creator_ = value; + } + } + + /// Field number for the "creation_timestamp" field. + public const int CreationTimestampFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp creationTimestamp_; + /// + /// The timestamp for side chain creation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreationTimestamp { + get { return creationTimestamp_; } + set { + creationTimestamp_ = value; + } + } + + /// Field number for the "creation_height_on_parent_chain" field. + public const int CreationHeightOnParentChainFieldNumber = 4; + private long creationHeightOnParentChain_; + /// + /// The height of side chain creation on parent chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long CreationHeightOnParentChain { + get { return creationHeightOnParentChain_; } + set { + creationHeightOnParentChain_ = value; + } + } + + /// Field number for the "chain_creator_privilege_preserved" field. + public const int ChainCreatorPrivilegePreservedFieldNumber = 5; + private bool chainCreatorPrivilegePreserved_; + /// + /// Creator privilege boolean flag: True if chain creator privilege preserved, otherwise false. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ChainCreatorPrivilegePreserved { + get { return chainCreatorPrivilegePreserved_; } + set { + chainCreatorPrivilegePreserved_ = value; + } + } + + /// Field number for the "parent_chain_token_contract_address" field. + public const int ParentChainTokenContractAddressFieldNumber = 6; + private global::AElf.Types.Address parentChainTokenContractAddress_; + /// + /// Parent chain token contract address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address ParentChainTokenContractAddress { + get { return parentChainTokenContractAddress_; } + set { + parentChainTokenContractAddress_ = value; + } + } + + /// Field number for the "chain_initialization_consensus_info" field. + public const int ChainInitializationConsensusInfoFieldNumber = 7; + private global::AElf.Standards.ACS7.ChainInitializationConsensusInfo chainInitializationConsensusInfo_; + /// + /// Initial consensus information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.ChainInitializationConsensusInfo ChainInitializationConsensusInfo { + get { return chainInitializationConsensusInfo_; } + set { + chainInitializationConsensusInfo_ = value; + } + } + + /// Field number for the "native_token_info_data" field. + public const int NativeTokenInfoDataFieldNumber = 8; + private pb::ByteString nativeTokenInfoData_ = pb::ByteString.Empty; + /// + /// The native token info. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString NativeTokenInfoData { + get { return nativeTokenInfoData_; } + set { + nativeTokenInfoData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_token_info" field. + public const int ResourceTokenInfoFieldNumber = 9; + private global::AElf.Standards.ACS7.ResourceTokenInfo resourceTokenInfo_; + /// + /// The resource token information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.ResourceTokenInfo ResourceTokenInfo { + get { return resourceTokenInfo_; } + set { + resourceTokenInfo_ = value; + } + } + + /// Field number for the "chain_primary_token_info" field. + public const int ChainPrimaryTokenInfoFieldNumber = 10; + private global::AElf.Standards.ACS7.ChainPrimaryTokenInfo chainPrimaryTokenInfo_; + /// + /// The chain primary token information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.ChainPrimaryTokenInfo ChainPrimaryTokenInfo { + get { return chainPrimaryTokenInfo_; } + set { + chainPrimaryTokenInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChainInitializationData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ChainInitializationData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (!object.Equals(Creator, other.Creator)) return false; + if (!object.Equals(CreationTimestamp, other.CreationTimestamp)) return false; + if (CreationHeightOnParentChain != other.CreationHeightOnParentChain) return false; + if (ChainCreatorPrivilegePreserved != other.ChainCreatorPrivilegePreserved) return false; + if (!object.Equals(ParentChainTokenContractAddress, other.ParentChainTokenContractAddress)) return false; + if (!object.Equals(ChainInitializationConsensusInfo, other.ChainInitializationConsensusInfo)) return false; + if (NativeTokenInfoData != other.NativeTokenInfoData) return false; + if (!object.Equals(ResourceTokenInfo, other.ResourceTokenInfo)) return false; + if (!object.Equals(ChainPrimaryTokenInfo, other.ChainPrimaryTokenInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (creator_ != null) hash ^= Creator.GetHashCode(); + if (creationTimestamp_ != null) hash ^= CreationTimestamp.GetHashCode(); + if (CreationHeightOnParentChain != 0L) hash ^= CreationHeightOnParentChain.GetHashCode(); + if (ChainCreatorPrivilegePreserved != false) hash ^= ChainCreatorPrivilegePreserved.GetHashCode(); + if (parentChainTokenContractAddress_ != null) hash ^= ParentChainTokenContractAddress.GetHashCode(); + if (chainInitializationConsensusInfo_ != null) hash ^= ChainInitializationConsensusInfo.GetHashCode(); + if (NativeTokenInfoData.Length != 0) hash ^= NativeTokenInfoData.GetHashCode(); + if (resourceTokenInfo_ != null) hash ^= ResourceTokenInfo.GetHashCode(); + if (chainPrimaryTokenInfo_ != null) hash ^= ChainPrimaryTokenInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (creator_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Creator); + } + if (creationTimestamp_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreationTimestamp); + } + if (CreationHeightOnParentChain != 0L) { + output.WriteRawTag(32); + output.WriteInt64(CreationHeightOnParentChain); + } + if (ChainCreatorPrivilegePreserved != false) { + output.WriteRawTag(40); + output.WriteBool(ChainCreatorPrivilegePreserved); + } + if (parentChainTokenContractAddress_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ParentChainTokenContractAddress); + } + if (chainInitializationConsensusInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ChainInitializationConsensusInfo); + } + if (NativeTokenInfoData.Length != 0) { + output.WriteRawTag(66); + output.WriteBytes(NativeTokenInfoData); + } + if (resourceTokenInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ResourceTokenInfo); + } + if (chainPrimaryTokenInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(ChainPrimaryTokenInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (creator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Creator); + } + if (creationTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreationTimestamp); + } + if (CreationHeightOnParentChain != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CreationHeightOnParentChain); + } + if (ChainCreatorPrivilegePreserved != false) { + size += 1 + 1; + } + if (parentChainTokenContractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParentChainTokenContractAddress); + } + if (chainInitializationConsensusInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChainInitializationConsensusInfo); + } + if (NativeTokenInfoData.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NativeTokenInfoData); + } + if (resourceTokenInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResourceTokenInfo); + } + if (chainPrimaryTokenInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChainPrimaryTokenInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ChainInitializationData other) { + if (other == null) { + return; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + if (other.creator_ != null) { + if (creator_ == null) { + Creator = new global::AElf.Types.Address(); + } + Creator.MergeFrom(other.Creator); + } + if (other.creationTimestamp_ != null) { + if (creationTimestamp_ == null) { + CreationTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreationTimestamp.MergeFrom(other.CreationTimestamp); + } + if (other.CreationHeightOnParentChain != 0L) { + CreationHeightOnParentChain = other.CreationHeightOnParentChain; + } + if (other.ChainCreatorPrivilegePreserved != false) { + ChainCreatorPrivilegePreserved = other.ChainCreatorPrivilegePreserved; + } + if (other.parentChainTokenContractAddress_ != null) { + if (parentChainTokenContractAddress_ == null) { + ParentChainTokenContractAddress = new global::AElf.Types.Address(); + } + ParentChainTokenContractAddress.MergeFrom(other.ParentChainTokenContractAddress); + } + if (other.chainInitializationConsensusInfo_ != null) { + if (chainInitializationConsensusInfo_ == null) { + ChainInitializationConsensusInfo = new global::AElf.Standards.ACS7.ChainInitializationConsensusInfo(); + } + ChainInitializationConsensusInfo.MergeFrom(other.ChainInitializationConsensusInfo); + } + if (other.NativeTokenInfoData.Length != 0) { + NativeTokenInfoData = other.NativeTokenInfoData; + } + if (other.resourceTokenInfo_ != null) { + if (resourceTokenInfo_ == null) { + ResourceTokenInfo = new global::AElf.Standards.ACS7.ResourceTokenInfo(); + } + ResourceTokenInfo.MergeFrom(other.ResourceTokenInfo); + } + if (other.chainPrimaryTokenInfo_ != null) { + if (chainPrimaryTokenInfo_ == null) { + ChainPrimaryTokenInfo = new global::AElf.Standards.ACS7.ChainPrimaryTokenInfo(); + } + ChainPrimaryTokenInfo.MergeFrom(other.ChainPrimaryTokenInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + case 18: { + if (creator_ == null) { + Creator = new global::AElf.Types.Address(); + } + input.ReadMessage(Creator); + break; + } + case 26: { + if (creationTimestamp_ == null) { + CreationTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreationTimestamp); + break; + } + case 32: { + CreationHeightOnParentChain = input.ReadInt64(); + break; + } + case 40: { + ChainCreatorPrivilegePreserved = input.ReadBool(); + break; + } + case 50: { + if (parentChainTokenContractAddress_ == null) { + ParentChainTokenContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ParentChainTokenContractAddress); + break; + } + case 58: { + if (chainInitializationConsensusInfo_ == null) { + ChainInitializationConsensusInfo = new global::AElf.Standards.ACS7.ChainInitializationConsensusInfo(); + } + input.ReadMessage(ChainInitializationConsensusInfo); + break; + } + case 66: { + NativeTokenInfoData = input.ReadBytes(); + break; + } + case 74: { + if (resourceTokenInfo_ == null) { + ResourceTokenInfo = new global::AElf.Standards.ACS7.ResourceTokenInfo(); + } + input.ReadMessage(ResourceTokenInfo); + break; + } + case 82: { + if (chainPrimaryTokenInfo_ == null) { + ChainPrimaryTokenInfo = new global::AElf.Standards.ACS7.ChainPrimaryTokenInfo(); + } + input.ReadMessage(ChainPrimaryTokenInfo); + break; + } + } + } + } + + } + + public sealed partial class ResourceTokenInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceTokenInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResourceTokenInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResourceTokenInfo(ResourceTokenInfo other) : this() { + resourceTokenListData_ = other.resourceTokenListData_; + initialResourceAmount_ = other.initialResourceAmount_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResourceTokenInfo Clone() { + return new ResourceTokenInfo(this); + } + + /// Field number for the "resource_token_list_data" field. + public const int ResourceTokenListDataFieldNumber = 1; + private pb::ByteString resourceTokenListData_ = pb::ByteString.Empty; + /// + /// The resource token information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString ResourceTokenListData { + get { return resourceTokenListData_; } + set { + resourceTokenListData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "initial_resource_amount" field. + public const int InitialResourceAmountFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_initialResourceAmount_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 18); + private readonly pbc::MapField initialResourceAmount_ = new pbc::MapField(); + /// + /// The initial resource token amount. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField InitialResourceAmount { + get { return initialResourceAmount_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ResourceTokenInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ResourceTokenInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResourceTokenListData != other.ResourceTokenListData) return false; + if (!InitialResourceAmount.Equals(other.InitialResourceAmount)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ResourceTokenListData.Length != 0) hash ^= ResourceTokenListData.GetHashCode(); + hash ^= InitialResourceAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ResourceTokenListData.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(ResourceTokenListData); + } + initialResourceAmount_.WriteTo(output, _map_initialResourceAmount_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ResourceTokenListData.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ResourceTokenListData); + } + size += initialResourceAmount_.CalculateSize(_map_initialResourceAmount_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ResourceTokenInfo other) { + if (other == null) { + return; + } + if (other.ResourceTokenListData.Length != 0) { + ResourceTokenListData = other.ResourceTokenListData; + } + initialResourceAmount_.Add(other.initialResourceAmount_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ResourceTokenListData = input.ReadBytes(); + break; + } + case 18: { + initialResourceAmount_.AddEntriesFrom(input, _map_initialResourceAmount_codec); + break; + } + } + } + } + + } + + public sealed partial class ChainPrimaryTokenInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainPrimaryTokenInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainPrimaryTokenInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainPrimaryTokenInfo(ChainPrimaryTokenInfo other) : this() { + chainPrimaryTokenData_ = other.chainPrimaryTokenData_; + sideChainTokenInitialIssueList_ = other.sideChainTokenInitialIssueList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainPrimaryTokenInfo Clone() { + return new ChainPrimaryTokenInfo(this); + } + + /// Field number for the "chain_primary_token_data" field. + public const int ChainPrimaryTokenDataFieldNumber = 1; + private pb::ByteString chainPrimaryTokenData_ = pb::ByteString.Empty; + /// + /// The side chain primary token data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString ChainPrimaryTokenData { + get { return chainPrimaryTokenData_; } + set { + chainPrimaryTokenData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "side_chain_token_initial_issue_list" field. + public const int SideChainTokenInitialIssueListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_sideChainTokenInitialIssueList_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Standards.ACS7.SideChainTokenInitialIssue.Parser); + private readonly pbc::RepeatedField sideChainTokenInitialIssueList_ = new pbc::RepeatedField(); + /// + /// The side chain primary token initial issue list. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SideChainTokenInitialIssueList { + get { return sideChainTokenInitialIssueList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChainPrimaryTokenInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ChainPrimaryTokenInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainPrimaryTokenData != other.ChainPrimaryTokenData) return false; + if(!sideChainTokenInitialIssueList_.Equals(other.sideChainTokenInitialIssueList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ChainPrimaryTokenData.Length != 0) hash ^= ChainPrimaryTokenData.GetHashCode(); + hash ^= sideChainTokenInitialIssueList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainPrimaryTokenData.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(ChainPrimaryTokenData); + } + sideChainTokenInitialIssueList_.WriteTo(output, _repeated_sideChainTokenInitialIssueList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ChainPrimaryTokenData.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ChainPrimaryTokenData); + } + size += sideChainTokenInitialIssueList_.CalculateSize(_repeated_sideChainTokenInitialIssueList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ChainPrimaryTokenInfo other) { + if (other == null) { + return; + } + if (other.ChainPrimaryTokenData.Length != 0) { + ChainPrimaryTokenData = other.ChainPrimaryTokenData; + } + sideChainTokenInitialIssueList_.Add(other.sideChainTokenInitialIssueList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ChainPrimaryTokenData = input.ReadBytes(); + break; + } + case 18: { + sideChainTokenInitialIssueList_.AddEntriesFrom(input, _repeated_sideChainTokenInitialIssueList_codec); + break; + } + } + } + } + + } + + public sealed partial class ChainInitializationConsensusInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainInitializationConsensusInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainInitializationConsensusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainInitializationConsensusInfo(ChainInitializationConsensusInfo other) : this() { + initialConsensusData_ = other.initialConsensusData_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainInitializationConsensusInfo Clone() { + return new ChainInitializationConsensusInfo(this); + } + + /// Field number for the "initial_consensus_data" field. + public const int InitialConsensusDataFieldNumber = 1; + private pb::ByteString initialConsensusData_ = pb::ByteString.Empty; + /// + /// Initial consensus data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString InitialConsensusData { + get { return initialConsensusData_; } + set { + initialConsensusData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChainInitializationConsensusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ChainInitializationConsensusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (InitialConsensusData != other.InitialConsensusData) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (InitialConsensusData.Length != 0) hash ^= InitialConsensusData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (InitialConsensusData.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(InitialConsensusData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (InitialConsensusData.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(InitialConsensusData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ChainInitializationConsensusInfo other) { + if (other == null) { + return; + } + if (other.InitialConsensusData.Length != 0) { + InitialConsensusData = other.InitialConsensusData; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + InitialConsensusData = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class SideChainCreationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainCreationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainCreationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainCreationRequest(SideChainCreationRequest other) : this() { + indexingPrice_ = other.indexingPrice_; + lockedTokenAmount_ = other.lockedTokenAmount_; + isPrivilegePreserved_ = other.isPrivilegePreserved_; + sideChainTokenCreationRequest_ = other.sideChainTokenCreationRequest_ != null ? other.sideChainTokenCreationRequest_.Clone() : null; + sideChainTokenInitialIssueList_ = other.sideChainTokenInitialIssueList_.Clone(); + initialResourceAmount_ = other.initialResourceAmount_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainCreationRequest Clone() { + return new SideChainCreationRequest(this); + } + + /// Field number for the "indexing_price" field. + public const int IndexingPriceFieldNumber = 1; + private long indexingPrice_; + /// + /// The cross chain indexing price. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long IndexingPrice { + get { return indexingPrice_; } + set { + indexingPrice_ = value; + } + } + + /// Field number for the "locked_token_amount" field. + public const int LockedTokenAmountFieldNumber = 2; + private long lockedTokenAmount_; + /// + /// Initial locked balance for a new side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long LockedTokenAmount { + get { return lockedTokenAmount_; } + set { + lockedTokenAmount_ = value; + } + } + + /// Field number for the "is_privilege_preserved" field. + public const int IsPrivilegePreservedFieldNumber = 3; + private bool isPrivilegePreserved_; + /// + /// Creator privilege boolean flag: True if chain creator privilege preserved, otherwise false. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsPrivilegePreserved { + get { return isPrivilegePreserved_; } + set { + isPrivilegePreserved_ = value; + } + } + + /// Field number for the "side_chain_token_creation_request" field. + public const int SideChainTokenCreationRequestFieldNumber = 4; + private global::AElf.Standards.ACS7.SideChainTokenCreationRequest sideChainTokenCreationRequest_; + /// + /// Side chain token information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.SideChainTokenCreationRequest SideChainTokenCreationRequest { + get { return sideChainTokenCreationRequest_; } + set { + sideChainTokenCreationRequest_ = value; + } + } + + /// Field number for the "side_chain_token_initial_issue_list" field. + public const int SideChainTokenInitialIssueListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_sideChainTokenInitialIssueList_codec + = pb::FieldCodec.ForMessage(42, global::AElf.Standards.ACS7.SideChainTokenInitialIssue.Parser); + private readonly pbc::RepeatedField sideChainTokenInitialIssueList_ = new pbc::RepeatedField(); + /// + /// A list of accounts and amounts that will be issued when the chain starts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SideChainTokenInitialIssueList { + get { return sideChainTokenInitialIssueList_; } + } + + /// Field number for the "initial_resource_amount" field. + public const int InitialResourceAmountFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_initialResourceAmount_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 50); + private readonly pbc::MapField initialResourceAmount_ = new pbc::MapField(); + /// + /// The initial rent resources. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField InitialResourceAmount { + get { return initialResourceAmount_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainCreationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainCreationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IndexingPrice != other.IndexingPrice) return false; + if (LockedTokenAmount != other.LockedTokenAmount) return false; + if (IsPrivilegePreserved != other.IsPrivilegePreserved) return false; + if (!object.Equals(SideChainTokenCreationRequest, other.SideChainTokenCreationRequest)) return false; + if(!sideChainTokenInitialIssueList_.Equals(other.sideChainTokenInitialIssueList_)) return false; + if (!InitialResourceAmount.Equals(other.InitialResourceAmount)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (IndexingPrice != 0L) hash ^= IndexingPrice.GetHashCode(); + if (LockedTokenAmount != 0L) hash ^= LockedTokenAmount.GetHashCode(); + if (IsPrivilegePreserved != false) hash ^= IsPrivilegePreserved.GetHashCode(); + if (sideChainTokenCreationRequest_ != null) hash ^= SideChainTokenCreationRequest.GetHashCode(); + hash ^= sideChainTokenInitialIssueList_.GetHashCode(); + hash ^= InitialResourceAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (IndexingPrice != 0L) { + output.WriteRawTag(8); + output.WriteInt64(IndexingPrice); + } + if (LockedTokenAmount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(LockedTokenAmount); + } + if (IsPrivilegePreserved != false) { + output.WriteRawTag(24); + output.WriteBool(IsPrivilegePreserved); + } + if (sideChainTokenCreationRequest_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SideChainTokenCreationRequest); + } + sideChainTokenInitialIssueList_.WriteTo(output, _repeated_sideChainTokenInitialIssueList_codec); + initialResourceAmount_.WriteTo(output, _map_initialResourceAmount_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (IndexingPrice != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IndexingPrice); + } + if (LockedTokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(LockedTokenAmount); + } + if (IsPrivilegePreserved != false) { + size += 1 + 1; + } + if (sideChainTokenCreationRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SideChainTokenCreationRequest); + } + size += sideChainTokenInitialIssueList_.CalculateSize(_repeated_sideChainTokenInitialIssueList_codec); + size += initialResourceAmount_.CalculateSize(_map_initialResourceAmount_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainCreationRequest other) { + if (other == null) { + return; + } + if (other.IndexingPrice != 0L) { + IndexingPrice = other.IndexingPrice; + } + if (other.LockedTokenAmount != 0L) { + LockedTokenAmount = other.LockedTokenAmount; + } + if (other.IsPrivilegePreserved != false) { + IsPrivilegePreserved = other.IsPrivilegePreserved; + } + if (other.sideChainTokenCreationRequest_ != null) { + if (sideChainTokenCreationRequest_ == null) { + SideChainTokenCreationRequest = new global::AElf.Standards.ACS7.SideChainTokenCreationRequest(); + } + SideChainTokenCreationRequest.MergeFrom(other.SideChainTokenCreationRequest); + } + sideChainTokenInitialIssueList_.Add(other.sideChainTokenInitialIssueList_); + initialResourceAmount_.Add(other.initialResourceAmount_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + IndexingPrice = input.ReadInt64(); + break; + } + case 16: { + LockedTokenAmount = input.ReadInt64(); + break; + } + case 24: { + IsPrivilegePreserved = input.ReadBool(); + break; + } + case 34: { + if (sideChainTokenCreationRequest_ == null) { + SideChainTokenCreationRequest = new global::AElf.Standards.ACS7.SideChainTokenCreationRequest(); + } + input.ReadMessage(SideChainTokenCreationRequest); + break; + } + case 42: { + sideChainTokenInitialIssueList_.AddEntriesFrom(input, _repeated_sideChainTokenInitialIssueList_codec); + break; + } + case 50: { + initialResourceAmount_.AddEntriesFrom(input, _map_initialResourceAmount_codec); + break; + } + } + } + } + + } + + public sealed partial class SideChainTokenCreationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainTokenCreationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainTokenCreationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainTokenCreationRequest(SideChainTokenCreationRequest other) : this() { + sideChainTokenSymbol_ = other.sideChainTokenSymbol_; + sideChainTokenName_ = other.sideChainTokenName_; + sideChainTokenTotalSupply_ = other.sideChainTokenTotalSupply_; + sideChainTokenDecimals_ = other.sideChainTokenDecimals_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainTokenCreationRequest Clone() { + return new SideChainTokenCreationRequest(this); + } + + /// Field number for the "side_chain_token_symbol" field. + public const int SideChainTokenSymbolFieldNumber = 1; + private string sideChainTokenSymbol_ = ""; + /// + /// Token symbol of the side chain to be created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string SideChainTokenSymbol { + get { return sideChainTokenSymbol_; } + set { + sideChainTokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "side_chain_token_name" field. + public const int SideChainTokenNameFieldNumber = 2; + private string sideChainTokenName_ = ""; + /// + /// Token name of the side chain to be created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string SideChainTokenName { + get { return sideChainTokenName_; } + set { + sideChainTokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "side_chain_token_total_supply" field. + public const int SideChainTokenTotalSupplyFieldNumber = 3; + private long sideChainTokenTotalSupply_; + /// + /// Token total supply of the side chain to be created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long SideChainTokenTotalSupply { + get { return sideChainTokenTotalSupply_; } + set { + sideChainTokenTotalSupply_ = value; + } + } + + /// Field number for the "side_chain_token_decimals" field. + public const int SideChainTokenDecimalsFieldNumber = 4; + private int sideChainTokenDecimals_; + /// + /// Token decimals of the side chain to be created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int SideChainTokenDecimals { + get { return sideChainTokenDecimals_; } + set { + sideChainTokenDecimals_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainTokenCreationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainTokenCreationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SideChainTokenSymbol != other.SideChainTokenSymbol) return false; + if (SideChainTokenName != other.SideChainTokenName) return false; + if (SideChainTokenTotalSupply != other.SideChainTokenTotalSupply) return false; + if (SideChainTokenDecimals != other.SideChainTokenDecimals) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (SideChainTokenSymbol.Length != 0) hash ^= SideChainTokenSymbol.GetHashCode(); + if (SideChainTokenName.Length != 0) hash ^= SideChainTokenName.GetHashCode(); + if (SideChainTokenTotalSupply != 0L) hash ^= SideChainTokenTotalSupply.GetHashCode(); + if (SideChainTokenDecimals != 0) hash ^= SideChainTokenDecimals.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (SideChainTokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SideChainTokenSymbol); + } + if (SideChainTokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SideChainTokenName); + } + if (SideChainTokenTotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(SideChainTokenTotalSupply); + } + if (SideChainTokenDecimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(SideChainTokenDecimals); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (SideChainTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SideChainTokenSymbol); + } + if (SideChainTokenName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SideChainTokenName); + } + if (SideChainTokenTotalSupply != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SideChainTokenTotalSupply); + } + if (SideChainTokenDecimals != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SideChainTokenDecimals); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainTokenCreationRequest other) { + if (other == null) { + return; + } + if (other.SideChainTokenSymbol.Length != 0) { + SideChainTokenSymbol = other.SideChainTokenSymbol; + } + if (other.SideChainTokenName.Length != 0) { + SideChainTokenName = other.SideChainTokenName; + } + if (other.SideChainTokenTotalSupply != 0L) { + SideChainTokenTotalSupply = other.SideChainTokenTotalSupply; + } + if (other.SideChainTokenDecimals != 0) { + SideChainTokenDecimals = other.SideChainTokenDecimals; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SideChainTokenSymbol = input.ReadString(); + break; + } + case 18: { + SideChainTokenName = input.ReadString(); + break; + } + case 24: { + SideChainTokenTotalSupply = input.ReadInt64(); + break; + } + case 32: { + SideChainTokenDecimals = input.ReadInt32(); + break; + } + } + } + } + + } + + public sealed partial class SideChainTokenInitialIssue : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainTokenInitialIssue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainTokenInitialIssue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainTokenInitialIssue(SideChainTokenInitialIssue other) : this() { + address_ = other.address_ != null ? other.address_.Clone() : null; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainTokenInitialIssue Clone() { + return new SideChainTokenInitialIssue(this); + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 1; + private global::AElf.Types.Address address_; + /// + /// The account that will be issued. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Address { + get { return address_; } + set { + address_ = value; + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The amount that will be issued. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainTokenInitialIssue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainTokenInitialIssue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Address, other.Address)) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (address_ != null) hash ^= Address.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (address_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainTokenInitialIssue other) { + if (other == null) { + return; + } + if (other.address_ != null) { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + Address.MergeFrom(other.Address); + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class IndexedParentChainBlockData : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IndexedParentChainBlockData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IndexedParentChainBlockData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IndexedParentChainBlockData(IndexedParentChainBlockData other) : this() { + localChainHeight_ = other.localChainHeight_; + parentChainBlockDataList_ = other.parentChainBlockDataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IndexedParentChainBlockData Clone() { + return new IndexedParentChainBlockData(this); + } + + /// Field number for the "local_chain_height" field. + public const int LocalChainHeightFieldNumber = 1; + private long localChainHeight_; + /// + /// The height of the local chain when indexing the parent chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long LocalChainHeight { + get { return localChainHeight_; } + set { + localChainHeight_ = value; + } + } + + /// Field number for the "parent_chain_block_data_list" field. + public const int ParentChainBlockDataListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_parentChainBlockDataList_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Standards.ACS7.ParentChainBlockData.Parser); + private readonly pbc::RepeatedField parentChainBlockDataList_ = new pbc::RepeatedField(); + /// + /// Parent chain block data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ParentChainBlockDataList { + get { return parentChainBlockDataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as IndexedParentChainBlockData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(IndexedParentChainBlockData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LocalChainHeight != other.LocalChainHeight) return false; + if(!parentChainBlockDataList_.Equals(other.parentChainBlockDataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (LocalChainHeight != 0L) hash ^= LocalChainHeight.GetHashCode(); + hash ^= parentChainBlockDataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (LocalChainHeight != 0L) { + output.WriteRawTag(8); + output.WriteInt64(LocalChainHeight); + } + parentChainBlockDataList_.WriteTo(output, _repeated_parentChainBlockDataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (LocalChainHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(LocalChainHeight); + } + size += parentChainBlockDataList_.CalculateSize(_repeated_parentChainBlockDataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(IndexedParentChainBlockData other) { + if (other == null) { + return; + } + if (other.LocalChainHeight != 0L) { + LocalChainHeight = other.LocalChainHeight; + } + parentChainBlockDataList_.Add(other.parentChainBlockDataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LocalChainHeight = input.ReadInt64(); + break; + } + case 18: { + parentChainBlockDataList_.AddEntriesFrom(input, _repeated_parentChainBlockDataList_codec); + break; + } + } + } + } + + } + + public sealed partial class IndexedSideChainBlockData : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IndexedSideChainBlockData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IndexedSideChainBlockData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IndexedSideChainBlockData(IndexedSideChainBlockData other) : this() { + sideChainBlockDataList_ = other.sideChainBlockDataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IndexedSideChainBlockData Clone() { + return new IndexedSideChainBlockData(this); + } + + /// Field number for the "side_chain_block_data_list" field. + public const int SideChainBlockDataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_sideChainBlockDataList_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Standards.ACS7.SideChainBlockData.Parser); + private readonly pbc::RepeatedField sideChainBlockDataList_ = new pbc::RepeatedField(); + /// + /// Side chain block data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SideChainBlockDataList { + get { return sideChainBlockDataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as IndexedSideChainBlockData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(IndexedSideChainBlockData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!sideChainBlockDataList_.Equals(other.sideChainBlockDataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= sideChainBlockDataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + sideChainBlockDataList_.WriteTo(output, _repeated_sideChainBlockDataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += sideChainBlockDataList_.CalculateSize(_repeated_sideChainBlockDataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(IndexedSideChainBlockData other) { + if (other == null) { + return; + } + sideChainBlockDataList_.Add(other.sideChainBlockDataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + sideChainBlockDataList_.AddEntriesFrom(input, _repeated_sideChainBlockDataList_codec); + break; + } + } + } + } + + } + + public sealed partial class ReleaseCrossChainIndexingProposalInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReleaseCrossChainIndexingProposalInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReleaseCrossChainIndexingProposalInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReleaseCrossChainIndexingProposalInput(ReleaseCrossChainIndexingProposalInput other) : this() { + chainIdList_ = other.chainIdList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReleaseCrossChainIndexingProposalInput Clone() { + return new ReleaseCrossChainIndexingProposalInput(this); + } + + /// Field number for the "chain_id_list" field. + public const int ChainIdListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_chainIdList_codec + = pb::FieldCodec.ForInt32(10); + private readonly pbc::RepeatedField chainIdList_ = new pbc::RepeatedField(); + /// + /// List of chain ids to release. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ChainIdList { + get { return chainIdList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ReleaseCrossChainIndexingProposalInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ReleaseCrossChainIndexingProposalInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!chainIdList_.Equals(other.chainIdList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= chainIdList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + chainIdList_.WriteTo(output, _repeated_chainIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += chainIdList_.CalculateSize(_repeated_chainIdList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ReleaseCrossChainIndexingProposalInput other) { + if (other == null) { + return; + } + chainIdList_.Add(other.chainIdList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + chainIdList_.AddEntriesFrom(input, _repeated_chainIdList_codec); + break; + } + } + } + } + + } + + public sealed partial class CreateSideChainInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateSideChainInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateSideChainInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateSideChainInput(CreateSideChainInput other) : this() { + sideChainCreationRequest_ = other.sideChainCreationRequest_ != null ? other.sideChainCreationRequest_.Clone() : null; + proposer_ = other.proposer_ != null ? other.proposer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateSideChainInput Clone() { + return new CreateSideChainInput(this); + } + + /// Field number for the "side_chain_creation_request" field. + public const int SideChainCreationRequestFieldNumber = 1; + private global::AElf.Standards.ACS7.SideChainCreationRequest sideChainCreationRequest_; + /// + /// The request information of the side chain creation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.SideChainCreationRequest SideChainCreationRequest { + get { return sideChainCreationRequest_; } + set { + sideChainCreationRequest_ = value; + } + } + + /// Field number for the "proposer" field. + public const int ProposerFieldNumber = 2; + private global::AElf.Types.Address proposer_; + /// + /// The proposer of the side chain creation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Proposer { + get { return proposer_; } + set { + proposer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateSideChainInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateSideChainInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SideChainCreationRequest, other.SideChainCreationRequest)) return false; + if (!object.Equals(Proposer, other.Proposer)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (sideChainCreationRequest_ != null) hash ^= SideChainCreationRequest.GetHashCode(); + if (proposer_ != null) hash ^= Proposer.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (sideChainCreationRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SideChainCreationRequest); + } + if (proposer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Proposer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (sideChainCreationRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SideChainCreationRequest); + } + if (proposer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Proposer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateSideChainInput other) { + if (other == null) { + return; + } + if (other.sideChainCreationRequest_ != null) { + if (sideChainCreationRequest_ == null) { + SideChainCreationRequest = new global::AElf.Standards.ACS7.SideChainCreationRequest(); + } + SideChainCreationRequest.MergeFrom(other.SideChainCreationRequest); + } + if (other.proposer_ != null) { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + Proposer.MergeFrom(other.Proposer); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sideChainCreationRequest_ == null) { + SideChainCreationRequest = new global::AElf.Standards.ACS7.SideChainCreationRequest(); + } + input.ReadMessage(SideChainCreationRequest); + break; + } + case 18: { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + input.ReadMessage(Proposer); + break; + } + } + } + } + + } + + public sealed partial class ReleaseSideChainCreationInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReleaseSideChainCreationInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReleaseSideChainCreationInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReleaseSideChainCreationInput(ReleaseSideChainCreationInput other) : this() { + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReleaseSideChainCreationInput Clone() { + return new ReleaseSideChainCreationInput(this); + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 1; + private global::AElf.Types.Hash proposalId_; + /// + /// The proposal id of side chain creation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ReleaseSideChainCreationInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ReleaseSideChainCreationInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalId, other.ProposalId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ReleaseSideChainCreationInput other) { + if (other == null) { + return; + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + } + } + } + + } + + public sealed partial class AdjustIndexingFeeInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdjustIndexingFeeInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdjustIndexingFeeInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdjustIndexingFeeInput(AdjustIndexingFeeInput other) : this() { + sideChainId_ = other.sideChainId_; + indexingFee_ = other.indexingFee_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdjustIndexingFeeInput Clone() { + return new AdjustIndexingFeeInput(this); + } + + /// Field number for the "side_chain_id" field. + public const int SideChainIdFieldNumber = 1; + private int sideChainId_; + /// + /// The side chain id to adjust. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int SideChainId { + get { return sideChainId_; } + set { + sideChainId_ = value; + } + } + + /// Field number for the "indexing_fee" field. + public const int IndexingFeeFieldNumber = 2; + private long indexingFee_; + /// + /// The new price of indexing fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long IndexingFee { + get { return indexingFee_; } + set { + indexingFee_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AdjustIndexingFeeInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AdjustIndexingFeeInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SideChainId != other.SideChainId) return false; + if (IndexingFee != other.IndexingFee) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (SideChainId != 0) hash ^= SideChainId.GetHashCode(); + if (IndexingFee != 0L) hash ^= IndexingFee.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (SideChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(SideChainId); + } + if (IndexingFee != 0L) { + output.WriteRawTag(16); + output.WriteInt64(IndexingFee); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (SideChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SideChainId); + } + if (IndexingFee != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IndexingFee); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AdjustIndexingFeeInput other) { + if (other == null) { + return; + } + if (other.SideChainId != 0) { + SideChainId = other.SideChainId; + } + if (other.IndexingFee != 0L) { + IndexingFee = other.IndexingFee; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SideChainId = input.ReadInt32(); + break; + } + case 16: { + IndexingFee = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class SideChainBlockDataIndexed : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainBlockDataIndexed()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainBlockDataIndexed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainBlockDataIndexed(SideChainBlockDataIndexed other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainBlockDataIndexed Clone() { + return new SideChainBlockDataIndexed(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainBlockDataIndexed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainBlockDataIndexed other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainBlockDataIndexed other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + } + + } + + public sealed partial class CrossChainIndexingDataProposedEvent : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainIndexingDataProposedEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainIndexingDataProposedEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainIndexingDataProposedEvent(CrossChainIndexingDataProposedEvent other) : this() { + proposedCrossChainData_ = other.proposedCrossChainData_ != null ? other.proposedCrossChainData_.Clone() : null; + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainIndexingDataProposedEvent Clone() { + return new CrossChainIndexingDataProposedEvent(this); + } + + /// Field number for the "proposed_cross_chain_data" field. + public const int ProposedCrossChainDataFieldNumber = 1; + private global::AElf.Standards.ACS7.CrossChainBlockData proposedCrossChainData_; + /// + /// Proposed cross chain data to be indexed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.CrossChainBlockData ProposedCrossChainData { + get { return proposedCrossChainData_; } + set { + proposedCrossChainData_ = value; + } + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 2; + private global::AElf.Types.Hash proposalId_; + /// + /// The proposal id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainIndexingDataProposedEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CrossChainIndexingDataProposedEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposedCrossChainData, other.ProposedCrossChainData)) return false; + if (!object.Equals(ProposalId, other.ProposalId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposedCrossChainData_ != null) hash ^= ProposedCrossChainData.GetHashCode(); + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposedCrossChainData_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposedCrossChainData); + } + if (proposalId_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ProposalId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposedCrossChainData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedCrossChainData); + } + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CrossChainIndexingDataProposedEvent other) { + if (other == null) { + return; + } + if (other.proposedCrossChainData_ != null) { + if (proposedCrossChainData_ == null) { + ProposedCrossChainData = new global::AElf.Standards.ACS7.CrossChainBlockData(); + } + ProposedCrossChainData.MergeFrom(other.ProposedCrossChainData); + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposedCrossChainData_ == null) { + ProposedCrossChainData = new global::AElf.Standards.ACS7.CrossChainBlockData(); + } + input.ReadMessage(ProposedCrossChainData); + break; + } + case 18: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + } + } + } + + } + + public sealed partial class VerifyTransactionInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VerifyTransactionInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Standards.ACS7.Acs7Reflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VerifyTransactionInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VerifyTransactionInput(VerifyTransactionInput other) : this() { + transactionId_ = other.transactionId_ != null ? other.transactionId_.Clone() : null; + path_ = other.path_ != null ? other.path_.Clone() : null; + parentChainHeight_ = other.parentChainHeight_; + verifiedChainId_ = other.verifiedChainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VerifyTransactionInput Clone() { + return new VerifyTransactionInput(this); + } + + /// Field number for the "transaction_id" field. + public const int TransactionIdFieldNumber = 1; + private global::AElf.Types.Hash transactionId_; + /// + /// The cross chain transaction id to verify. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash TransactionId { + get { return transactionId_; } + set { + transactionId_ = value; + } + } + + /// Field number for the "path" field. + public const int PathFieldNumber = 2; + private global::AElf.Types.MerklePath path_; + /// + /// The merkle path of the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.MerklePath Path { + get { return path_; } + set { + path_ = value; + } + } + + /// Field number for the "parent_chain_height" field. + public const int ParentChainHeightFieldNumber = 3; + private long parentChainHeight_; + /// + /// The height of parent chain that indexing this transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long ParentChainHeight { + get { return parentChainHeight_; } + set { + parentChainHeight_ = value; + } + } + + /// Field number for the "verified_chain_id" field. + public const int VerifiedChainIdFieldNumber = 4; + private int verifiedChainId_; + /// + /// The chain if to verify. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int VerifiedChainId { + get { return verifiedChainId_; } + set { + verifiedChainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as VerifyTransactionInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(VerifyTransactionInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TransactionId, other.TransactionId)) return false; + if (!object.Equals(Path, other.Path)) return false; + if (ParentChainHeight != other.ParentChainHeight) return false; + if (VerifiedChainId != other.VerifiedChainId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (transactionId_ != null) hash ^= TransactionId.GetHashCode(); + if (path_ != null) hash ^= Path.GetHashCode(); + if (ParentChainHeight != 0L) hash ^= ParentChainHeight.GetHashCode(); + if (VerifiedChainId != 0) hash ^= VerifiedChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (transactionId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TransactionId); + } + if (path_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Path); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ParentChainHeight); + } + if (VerifiedChainId != 0) { + output.WriteRawTag(32); + output.WriteInt32(VerifiedChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (transactionId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransactionId); + } + if (path_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Path); + } + if (ParentChainHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ParentChainHeight); + } + if (VerifiedChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VerifiedChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(VerifyTransactionInput other) { + if (other == null) { + return; + } + if (other.transactionId_ != null) { + if (transactionId_ == null) { + TransactionId = new global::AElf.Types.Hash(); + } + TransactionId.MergeFrom(other.TransactionId); + } + if (other.path_ != null) { + if (path_ == null) { + Path = new global::AElf.Types.MerklePath(); + } + Path.MergeFrom(other.Path); + } + if (other.ParentChainHeight != 0L) { + ParentChainHeight = other.ParentChainHeight; + } + if (other.VerifiedChainId != 0) { + VerifiedChainId = other.VerifiedChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (transactionId_ == null) { + TransactionId = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransactionId); + break; + } + case 18: { + if (path_ == null) { + Path = new global::AElf.Types.MerklePath(); + } + input.ReadMessage(Path); + break; + } + case 24: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 32: { + VerifiedChainId = input.ReadInt32(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/AuthorityInfo.g.cs b/src/EbridgeIndexer/Contracts/AuthorityInfo.g.cs new file mode 100644 index 0000000..cddfa74 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/AuthorityInfo.g.cs @@ -0,0 +1,217 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: authority_info.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +/// Holder for reflection information generated from authority_info.proto +public static partial class AuthorityInfoReflection { + + #region Descriptor + /// File descriptor for authority_info.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AuthorityInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRhdXRob3JpdHlfaW5mby5wcm90bxoPYWVsZi9jb3JlLnByb3RvIl4KDUF1", + "dGhvcml0eUluZm8SJwoQY29udHJhY3RfYWRkcmVzcxgBIAEoCzINLmFlbGYu", + "QWRkcmVzcxIkCg1vd25lcl9hZGRyZXNzGAIgASgLMg0uYWVsZi5BZGRyZXNz", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AuthorityInfo), global::AuthorityInfo.Parser, new[]{ "ContractAddress", "OwnerAddress" }, null, null, null, null) + })); + } + #endregion + +} +#region Messages +public sealed partial class AuthorityInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthorityInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AuthorityInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AuthorityInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AuthorityInfo(AuthorityInfo other) : this() { + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + ownerAddress_ = other.ownerAddress_ != null ? other.ownerAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AuthorityInfo Clone() { + return new AuthorityInfo(this); + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 1; + private global::AElf.Types.Address contractAddress_; + /// + /// The contract address of the controller. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + /// Field number for the "owner_address" field. + public const int OwnerAddressFieldNumber = 2; + private global::AElf.Types.Address ownerAddress_; + /// + /// The address of the owner of the contract. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address OwnerAddress { + get { return ownerAddress_; } + set { + ownerAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AuthorityInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AuthorityInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (!object.Equals(OwnerAddress, other.OwnerAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); + if (ownerAddress_ != null) hash ^= OwnerAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (ownerAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OwnerAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (ownerAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OwnerAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AuthorityInfo other) { + if (other == null) { + return; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.ownerAddress_ != null) { + if (ownerAddress_ == null) { + OwnerAddress = new global::AElf.Types.Address(); + } + OwnerAddress.MergeFrom(other.OwnerAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + if (ownerAddress_ == null) { + OwnerAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OwnerAddress); + break; + } + } + } + } + +} + +#endregion + + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/BridgeContract.c.cs b/src/EbridgeIndexer/Contracts/BridgeContract.c.cs new file mode 100644 index 0000000..2aff2d9 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/BridgeContract.c.cs @@ -0,0 +1,193 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bridge_contract.proto +// +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace EBridge.Contracts.Bridge { + + #region Events + public partial class SwapRatioChanged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public SwapRatioChanged GetNonIndexed() + { + return new SwapRatioChanged + { + SwapId = SwapId, + NewSwapRatio = NewSwapRatio, + TargetTokenSymbol = TargetTokenSymbol, + }; + } + } + + public partial class TokenSwapped : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public TokenSwapped GetNonIndexed() + { + return new TokenSwapped + { + Address = Address, + Amount = Amount, + Symbol = Symbol, + ReceiptId = ReceiptId, + FromChainId = FromChainId, + }; + } + } + + public partial class SwapInfoAdded : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public SwapInfoAdded GetNonIndexed() + { + return new SwapInfoAdded + { + SwapId = SwapId, + FromChainId = FromChainId, + Symbol = Symbol, + }; + } + } + + public partial class TokenWhitelistAdded : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public TokenWhitelistAdded GetNonIndexed() + { + return new TokenWhitelistAdded + { + ChainTokenList = ChainTokenList, + }; + } + } + + public partial class TokenWhitelistRemoved : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public TokenWhitelistRemoved GetNonIndexed() + { + return new TokenWhitelistRemoved + { + ChainTokenList = ChainTokenList, + }; + } + } + + public partial class ReceiptCreated : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ReceiptCreated GetNonIndexed() + { + return new ReceiptCreated + { + ReceiptId = ReceiptId, + Symbol = Symbol, + Owner = Owner, + TargetAddress = TargetAddress, + Amount = Amount, + TargetChainId = TargetChainId, + }; + } + } + + public partial class Paused : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public Paused GetNonIndexed() + { + return new Paused + { + Sender = Sender, + }; + } + } + + public partial class Unpaused : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public Unpaused GetNonIndexed() + { + return new Unpaused + { + Sender = Sender, + }; + } + } + + public partial class ApproveTransfer : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ApproveTransfer GetNonIndexed() + { + return new ApproveTransfer + { + Sender = Sender, + ReceiptId = ReceiptId, + }; + } + } + + #endregion +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/BridgeContract.g.cs b/src/EbridgeIndexer/Contracts/BridgeContract.g.cs new file mode 100644 index 0000000..c84e645 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/BridgeContract.g.cs @@ -0,0 +1,12442 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bridge_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 EBridge.Contracts.Bridge { + + /// Holder for reflection information generated from bridge_contract.proto + public static partial class BridgeContractReflection { + + #region Descriptor + /// File descriptor for bridge_contract.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BridgeContractReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVicmlkZ2VfY29udHJhY3QucHJvdG8aD2FlbGYvY29yZS5wcm90bxoSYWVs", + "Zi9vcHRpb25zLnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8a", + "H2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aHmdvb2dsZS9wcm90", + "b2J1Zi93cmFwcGVycy5wcm90bxoUY2FsbGJhY2tfaW5wdXQucHJvdG8aFGF1", + "dGhvcml0eV9pbmZvLnByb3RvIqMDCg9Jbml0aWFsaXplSW5wdXQSLgoXb3Jh", + "Y2xlX2NvbnRyYWN0X2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3MSMwoc", + "bWVya2xlX3RyZWVfY29udHJhY3RfYWRkcmVzcxgCIAEoCzINLmFlbGYuQWRk", + "cmVzcxIwChlyZWdpbWVudF9jb250cmFjdF9hZGRyZXNzGAMgASgLMg0uYWVs", + "Zi5BZGRyZXNzEi4KF3JlcG9ydF9jb250cmFjdF9hZGRyZXNzGAQgASgLMg0u", + "YWVsZi5BZGRyZXNzEhwKBWFkbWluGAUgASgLMg0uYWVsZi5BZGRyZXNzEiEK", + "CmNvbnRyb2xsZXIYBiABKAsyDS5hZWxmLkFkZHJlc3MSKwoUb3JnYW5pemF0", + "aW9uX2FkZHJlc3MYByABKAsyDS5hZWxmLkFkZHJlc3MSJwoQcGF1c2VfY29u", + "dHJvbGxlchgIIAEoCzINLmFlbGYuQWRkcmVzcxIyChthcHByb3ZlX3RyYW5z", + "ZmVyX2NvbnRyb2xsZXIYCSABKAsyDS5hZWxmLkFkZHJlc3MiOwoVU2V0TWF4", + "aW11bUFtb3VudElucHV0EiIKBXZhbHVlGAEgAygLMhMuVG9rZW5NYXhpbXVt", + "QW1vdW50IjwKElRva2VuTWF4aW11bUFtb3VudBIOCgZzeW1ib2wYASABKAkS", + "FgoObWF4aW11bV9hbW91bnQYAiABKAMiKgoUQXBwcm92ZVRyYW5zZmVySW5w", + "dXQSEgoKcmVjZWlwdF9pZBgBIAEoCSJPChlJc1RyYW5zZmVyQ2FuUmVjZWl2", + "ZUlucHV0EhIKCnJlY2VpcHRfaWQYASABKAkSDgoGc3ltYm9sGAIgASgJEg4K", + "BmFtb3VudBgDIAEoCSI3CglTd2FwUmF0aW8SFAoMb3JpZ2luX3NoYXJlGAEg", + "ASgDEhQKDHRhcmdldF9zaGFyZRgCIAEoAyJYCg9Td2FwVGFyZ2V0VG9rZW4S", + "DgoGc3ltYm9sGAEgASgJEh4KCnN3YXBfcmF0aW8YAiABKAsyCi5Td2FwUmF0", + "aW8SFQoNZnJvbV9jaGFpbl9pZBgDIAEoCSKTAQoIU3dhcEluZm8SGwoHc3dh", + "cF9pZBgBIAEoCzIKLmFlbGYuSGFzaBIrChFzd2FwX3RhcmdldF90b2tlbhgC", + "IAEoCzIQLlN3YXBUYXJnZXRUb2tlbhIfCgtyZWdpbWVudF9pZBgDIAEoCzIK", + "LmFlbGYuSGFzaBIcCghzcGFjZV9pZBgEIAEoCzIKLmFlbGYuSGFzaCJVCgxT", + "d2FwUGFpckluZm8SFgoOc3dhcHBlZF9hbW91bnQYASABKAMSFQoNc3dhcHBl", + "ZF90aW1lcxgCIAEoAxIWCg5kZXBvc2l0X2Ftb3VudBgDIAEoAyKjAQoLU3dh", + "cEFtb3VudHMSHwoIcmVjZWl2ZXIYASABKAsyDS5hZWxmLkFkZHJlc3MSOwoQ", + "cmVjZWl2ZWRfYW1vdW50cxgCIAMoCzIhLlN3YXBBbW91bnRzLlJlY2VpdmVk", + "QW1vdW50c0VudHJ5GjYKFFJlY2VpdmVkQW1vdW50c0VudHJ5EgsKA2tleRgB", + "IAEoCRINCgV2YWx1ZRgCIAEoAzoCOAEi6wEKElN3YXBwZWRSZWNlaXB0SW5m", + "bxISCgpyZWNlaXB0X2lkGAEgASgJEiMKD3JlY2VpdmluZ190eF9pZBgCIAEo", + "CzIKLmFlbGYuSGFzaBIyCg5yZWNlaXZpbmdfdGltZRgDIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXASNgoKYW1vdW50X21hcBgEIAMoCzIiLlN3", + "YXBwZWRSZWNlaXB0SW5mby5BbW91bnRNYXBFbnRyeRowCg5BbW91bnRNYXBF", + "bnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAM6AjgBInoKDlJlY2Vp", + "cHRIYXNoTWFwEikKBXZhbHVlGAEgAygLMhouUmVjZWlwdEhhc2hNYXAuVmFs", + "dWVFbnRyeRIPCgdzd2FwX2lkGAIgASgJGiwKClZhbHVlRW50cnkSCwoDa2V5", + "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASIeCg1SZWNlaXB0SWRMaXN0Eg0K", + "BXZhbHVlGAEgAygJIjEKDVJlY2VpcHRJZEluZm8SEAoIY2hhaW5faWQYASAB", + "KAkSDgoGc3ltYm9sGAIgASgJIk4KC1NlbmRpbmdJbmZvEhIKCnJlY2VpcHRf", + "aWQYASABKAMSFQoNc2VuZGluZ190eF9pZBgCIAEoCRIUCgxzZW5kaW5nX3Rp", + "bWUYAyABKAkifwoPQ3JlYXRlU3dhcElucHV0EisKEXN3YXBfdGFyZ2V0X3Rv", + "a2VuGAEgASgLMhAuU3dhcFRhcmdldFRva2VuEh8KC3JlZ2ltZW50X2lkGAIg", + "ASgLMgouYWVsZi5IYXNoEh4KFm1lcmtsZV90cmVlX2xlYWZfbGltaXQYAyAB", + "KAUiWAoMRGVwb3NpdElucHV0EhsKB3N3YXBfaWQYASABKAsyCi5hZWxmLkhh", + "c2gSGwoTdGFyZ2V0X3Rva2VuX3N5bWJvbBgCIAEoCRIOCgZhbW91bnQYAyAB", + "KAMicAoUQ2hhbmdlU3dhcFJhdGlvSW5wdXQSGwoHc3dhcF9pZBgBIAEoCzIK", + "LmFlbGYuSGFzaBIeCgpzd2FwX3JhdGlvGAIgASgLMgouU3dhcFJhdGlvEhsK", + "E3RhcmdldF90b2tlbl9zeW1ib2wYAyABKAkigQEKDlN3YXBUb2tlbklucHV0", + "EhsKB3N3YXBfaWQYASABKAsyCi5hZWxmLkhhc2gSEgoKcmVjZWlwdF9pZBgC", + "IAEoCRIVCg1vcmlnaW5fYW1vdW50GAMgASgJEicKEHJlY2VpdmVyX2FkZHJl", + "c3MYBCABKAsyDS5hZWxmLkFkZHJlc3MiWQoNV2l0aGRyYXdJbnB1dBIbCgdz", + "d2FwX2lkGAEgASgLMgouYWVsZi5IYXNoEhsKE3RhcmdldF90b2tlbl9zeW1i", + "b2wYAiABKAkSDgoGYW1vdW50GAMgASgDIkYKE0dldFN3YXBBbW91bnRzSW5w", + "dXQSGwoHc3dhcF9pZBgBIAEoCzIKLmFlbGYuSGFzaBISCgpyZWNlaXB0X2lk", + "GAIgASgJIkMKFEdldFN3YXBQYWlySW5mb0lucHV0EhsKB3N3YXBfaWQYASAB", + "KAsyCi5hZWxmLkhhc2gSDgoGc3ltYm9sGAIgASgJIk0KGkdldFN3YXBwZWRS", + "ZWNlaXB0SW5mb0lucHV0EhsKB3N3YXBfaWQYASABKAsyCi5hZWxmLkhhc2gS", + "EgoKcmVjZWlwdF9pZBgCIAEoCSJeCgdSZWNlaXB0Eg4KBnN5bWJvbBgBIAEo", + "CRIcCgVvd25lchgCIAEoCzINLmFlbGYuQWRkcmVzcxIVCg10YXJnZXRBZGRy", + "ZXNzGAMgASgJEg4KBmFtb3VudBgEIAEoAyImCgtSZWNlaXB0TGlzdBIXCgV2", + "YWx1ZRgBIAMoCzIILlJlY2VpcHQiLgoKQ2hhaW5Ub2tlbhIQCghjaGFpbl9p", + "ZBgBIAEoCRIOCgZzeW1ib2wYAiABKAkiLAoOQ2hhaW5Ub2tlbkxpc3QSGgoF", + "dmFsdWUYASADKAsyCy5DaGFpblRva2VuIiEKD1Rva2VuU3ltYm9sTGlzdBIO", + "CgZzeW1ib2wYASADKAkiLwoIR2FzUHJpY2USEAoIY2hhaW5faWQYASABKAkS", + "EQoJZ2FzX3ByaWNlGAIgASgDIi8KCEdhc0xpbWl0EhAKCGNoYWluX2lkGAEg", + "ASgJEhEKCWdhc19saW1pdBgCIAEoAyIoCgVSYXRpbxIQCghjaGFpbl9pZBgB", + "IAEoCRINCgVyYXRpbxgCIAEoAyIrCg1BZGRUb2tlbklucHV0EhoKBXZhbHVl", + "GAEgAygLMgsuQ2hhaW5Ub2tlbiIuChBSZW1vdmVUb2tlbklucHV0EhoKBXZh", + "bHVlGAEgAygLMgsuQ2hhaW5Ub2tlbiKCAQoSQ3JlYXRlUmVjZWlwdElucHV0", + "Eg4KBnN5bWJvbBgBIAEoCRIcCgVvd25lchgCIAEoCzINLmFlbGYuQWRkcmVz", + "cxIVCg10YXJnZXRBZGRyZXNzGAMgASgJEg4KBmFtb3VudBgEIAEoAxIXCg90", + "YXJnZXRfY2hhaW5faWQYBSABKAkiNQoQU2V0R2FzTGltaXRJbnB1dBIhCg5n", + "YXNfbGltaXRfbGlzdBgBIAMoCzIJLkdhc0xpbWl0IjUKEFNldEdhc1ByaWNl", + "SW5wdXQSIQoOZ2FzX3ByaWNlX2xpc3QYASADKAsyCS5HYXNQcmljZSImCg1T", + "ZXRSYXRpb0lucHV0EhUKBXZhbHVlGAEgAygLMgYuUmF0aW8iKQoTR2V0UmVj", + "ZWlwdEluZm9JbnB1dBISCgpyZWNlaXB0X2lkGAEgASgJIjgKGEdldE93bmVy", + "TG9ja1JlY2VpcHRJbnB1dBIcCgVvd25lchgBIAEoCzINLmFlbGYuQWRkcmVz", + "cyIyChJHZXRMb2NrVG9rZW5zSW5wdXQSHAoFb3duZXIYASABKAsyDS5hZWxm", + "LkFkZHJlc3MiOQoVR2V0U3dhcElkQnlUb2tlbklucHV0EhAKCGNoYWluX2lk", + "GAEgASgJEg4KBnN5bWJvbBgCIAEoCSJ2ChBTd2FwUmF0aW9DaGFuZ2VkEhsK", + "B3N3YXBfaWQYASABKAsyCi5hZWxmLkhhc2gSIgoObmV3X3N3YXBfcmF0aW8Y", + "AiABKAsyCi5Td2FwUmF0aW8SGwoTdGFyZ2V0X3Rva2VuX3N5bWJvbBgDIAEo", + "CToEoLsYASJ/CgxUb2tlblN3YXBwZWQSHgoHYWRkcmVzcxgBIAEoCzINLmFl", + "bGYuQWRkcmVzcxIOCgZhbW91bnQYAiABKAMSDgoGc3ltYm9sGAMgASgJEhIK", + "CnJlY2VpcHRfaWQYBCABKAkSFQoNZnJvbV9jaGFpbl9pZBgFIAEoCToEoLsY", + "ASJZCg1Td2FwSW5mb0FkZGVkEhsKB3N3YXBfaWQYASABKAsyCi5hZWxmLkhh", + "c2gSFQoNZnJvbV9jaGFpbl9pZBgCIAEoCRIOCgZzeW1ib2wYAyABKAk6BKC7", + "GAEiRgoTVG9rZW5XaGl0ZWxpc3RBZGRlZBIpChBjaGFpbl90b2tlbl9saXN0", + "GAEgASgLMg8uQ2hhaW5Ub2tlbkxpc3Q6BKC7GAEiSAoVVG9rZW5XaGl0ZWxp", + "c3RSZW1vdmVkEikKEGNoYWluX3Rva2VuX2xpc3QYASABKAsyDy5DaGFpblRv", + "a2VuTGlzdDoEoLsYASKYAQoOUmVjZWlwdENyZWF0ZWQSEgoKcmVjZWlwdF9p", + "ZBgBIAEoCRIOCgZzeW1ib2wYAiABKAkSHAoFb3duZXIYAyABKAsyDS5hZWxm", + "LkFkZHJlc3MSFQoNdGFyZ2V0QWRkcmVzcxgEIAEoCRIOCgZhbW91bnQYBSAB", + "KAMSFwoPdGFyZ2V0X2NoYWluX2lkGAYgASgJOgSguxgBIi0KBlBhdXNlZBId", + "CgZzZW5kZXIYASABKAsyDS5hZWxmLkFkZHJlc3M6BKC7GAEiLwoIVW5wYXVz", + "ZWQSHQoGc2VuZGVyGAEgASgLMg0uYWVsZi5BZGRyZXNzOgSguxgBIkoKD0Fw", + "cHJvdmVUcmFuc2ZlchIdCgZzZW5kZXIYASABKAsyDS5hZWxmLkFkZHJlc3MS", + "EgoKcmVjZWlwdF9pZBgCIAEoCToEoLsYATL/GwoOQnJpZGdlQ29udHJhY3QS", + "OAoKSW5pdGlhbGl6ZRIQLkluaXRpYWxpemVJbnB1dBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAEjsKEENoYW5nZUNvbnRyb2xsZXISDS5hZWxmLkFkZHJl", + "c3MaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABI2CgtDaGFuZ2VBZG1pbhIN", + "LmFlbGYuQWRkcmVzcxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkoKHkNo", + "YW5nZVRyYW5zYWN0aW9uRmVlQ29udHJvbGxlchIOLkF1dGhvcml0eUluZm8a", + "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJEChlDaGFuZ2VSZXN0YXJ0T3Jn", + "YW5pemF0aW9uEg0uYWVsZi5BZGRyZXNzGhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IgASQAoVQ2hhbmdlUGF1c2VDb250cm9sbGVyEg0uYWVsZi5BZGRyZXNz", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASSgofQ2hhbmdlQXBwcm92ZVRy", + "YW5zZmVyQ29udHJvbGxlchINLmFlbGYuQWRkcmVzcxoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAEjkKBVBhdXNlEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASOwoHUmVzdGFydBIWLmdvb2ds", + "ZS5wcm90b2J1Zi5FbXB0eRoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkkK", + "FVNldFRva2VuTWF4aW11bUFtb3VudBIWLlNldE1heGltdW1BbW91bnRJbnB1", + "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkIKD0FwcHJvdmVUcmFuc2Zl", + "chIVLkFwcHJvdmVUcmFuc2ZlcklucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IgASVQoUSXNUcmFuc2ZlckNhblJlY2VpdmUSGi5Jc1RyYW5zZmVyQ2Fu", + "UmVjZWl2ZUlucHV0GhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZSIFiIn3", + "AQESRQoVR2V0Q29udHJhY3RDb250cm9sbGVyEhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5Gg0uYWVsZi5BZGRyZXNzIgWIifcBARJAChBHZXRDb250cmFjdEFk", + "bWluEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gg0uYWVsZi5BZGRyZXNzIgWI", + "ifcBARJRCiBHZXRUcmFuc2FjdGlvbkZlZVJhdGlvQ29udHJvbGxlchIWLmdv", + "b2dsZS5wcm90b2J1Zi5FbXB0eRoOLkF1dGhvcml0eUluZm8iBYiJ9wEBEkwK", + "D0lzQ29udHJhY3RQYXVzZRIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoaLmdv", + "b2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUiBYiJ9wEBEkIKEkdldFBhdXNlQ29u", + "dHJvbGxlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoNLmFlbGYuQWRkcmVz", + "cyIFiIn3AQESRgoWR2V0UmVzdGFydE9yZ2FuaXphdGlvbhIWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eRoNLmFlbGYuQWRkcmVzcyIFiIn3AQESWQoVR2V0VG9r", + "ZW5NYXhpbXVtQW1vdW50EhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVl", + "GhsuZ29vZ2xlLnByb3RvYnVmLkludDY0VmFsdWUiBYiJ9wEBEkgKF0dldEFw", + "cHJvdmVSZWNlaXB0SWRMaXN0EhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gg4u", + "UmVjZWlwdElkTGlzdCIFiIn3AQESTAocR2V0QXBwcm92ZVRyYW5zZmVyQ29u", + "dHJvbGxlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoNLmFlbGYuQWRkcmVz", + "cyIFiIn3AQESLAoKQ3JlYXRlU3dhcBIQLkNyZWF0ZVN3YXBJbnB1dBoKLmFl", + "bGYuSGFzaCIAEjYKCVN3YXBUb2tlbhIPLlN3YXBUb2tlbklucHV0GhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IgASQgoPQ2hhbmdlU3dhcFJhdGlvEhUuQ2hh", + "bmdlU3dhcFJhdGlvSW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABIy", + "CgdEZXBvc2l0Eg0uRGVwb3NpdElucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IgASNAoIV2l0aGRyYXcSDi5XaXRoZHJhd0lucHV0GhYuZ29vZ2xlLnBy", + "b3RvYnVmLkVtcHR5IgASOAoMRnVsZmlsbFF1ZXJ5Eg4uQ2FsbGJhY2tJbnB1", + "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEj0KEEdldFN3YXBJZEJ5VG9r", + "ZW4SFi5HZXRTd2FwSWRCeVRva2VuSW5wdXQaCi5hZWxmLkhhc2giBYiJ9wEB", + "EisKC0dldFN3YXBJbmZvEgouYWVsZi5IYXNoGgkuU3dhcEluZm8iBYiJ9wEB", + "Ej4KD0dldFN3YXBQYWlySW5mbxIVLkdldFN3YXBQYWlySW5mb0lucHV0Gg0u", + "U3dhcFBhaXJJbmZvIgWIifcBARI7Cg5HZXRTd2FwQW1vdW50cxIULkdldFN3", + "YXBBbW91bnRzSW5wdXQaDC5Td2FwQW1vdW50cyIFiIn3AQESUAoVR2V0U3dh", + "cHBlZFJlY2VpcHRJbmZvEhsuR2V0U3dhcHBlZFJlY2VpcHRJbmZvSW5wdXQa", + "Ey5Td2FwcGVkUmVjZWlwdEluZm8iBYiJ9wEBEjMKEkdldFNwYWNlSWRCeVN3", + "YXBJZBIKLmFlbGYuSGFzaBoKLmFlbGYuSGFzaCIFiIn3AQESNAoIQWRkVG9r", + "ZW4SDi5BZGRUb2tlbklucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAS", + "OgoLUmVtb3ZlVG9rZW4SES5SZW1vdmVUb2tlbklucHV0GhYuZ29vZ2xlLnBy", + "b3RvYnVmLkVtcHR5IgASPgoNQ3JlYXRlUmVjZWlwdBITLkNyZWF0ZVJlY2Vp", + "cHRJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjoKC1NldEdhc0xp", + "bWl0EhEuU2V0R2FzTGltaXRJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", + "eSIAEjoKC1NldEdhc1ByaWNlEhEuU2V0R2FzUHJpY2VJbnB1dBoWLmdvb2ds", + "ZS5wcm90b2J1Zi5FbXB0eSIAEjkKDVNldFByaWNlUmF0aW8SDi5TZXRSYXRp", + "b0lucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASPwoTU2V0RmVlRmxv", + "YXRpbmdSYXRpbxIOLlNldFJhdGlvSW5wdXQaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiABJEChhTZXRQcmljZUZsdWN0dWF0aW9uUmF0aW8SDi5TZXRSYXRp", + "b0lucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASTwoWV2l0aGRyYXdU", + "cmFuc2FjdGlvbkZlZRIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlGhYu", + "Z29vZ2xlLnByb3RvYnVmLkVtcHR5IgASTwoLR2V0R2FzTGltaXQSHC5nb29n", + "bGUucHJvdG9idWYuU3RyaW5nVmFsdWUaGy5nb29nbGUucHJvdG9idWYuSW50", + "NjRWYWx1ZSIFiIn3AQESTwoLR2V0R2FzUHJpY2USHC5nb29nbGUucHJvdG9i", + "dWYuU3RyaW5nVmFsdWUaGy5nb29nbGUucHJvdG9idWYuSW50NjRWYWx1ZSIF", + "iIn3AQESUQoNR2V0UHJpY2VSYXRpbxIcLmdvb2dsZS5wcm90b2J1Zi5TdHJp", + "bmdWYWx1ZRobLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlIgWIifcBARJY", + "ChNHZXRGZWVGbG9hdGluZ1JhdGlvEhwuZ29vZ2xlLnByb3RvYnVmLlN0cmlu", + "Z1ZhbHVlGhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlIgWIifcBARJT", + "Cg9HZXRGZWVCeUNoYWluSWQSHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFs", + "dWUaGy5nb29nbGUucHJvdG9idWYuSW50NjRWYWx1ZSIFiIn3AQESVgoYR2V0", + "Q3VycmVudFRyYW5zYWN0aW9uRmVlEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "GhsuZ29vZ2xlLnByb3RvYnVmLkludDY0VmFsdWUiBYiJ9wEBElwKGEdldFBy", + "aWNlRmx1Y3R1YXRpb25SYXRpbxIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdW", + "YWx1ZRobLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlIgWIifcBARI1ChBH", + "ZXRSZWNlaXB0SWRJbmZvEgouYWVsZi5IYXNoGg4uUmVjZWlwdElkSW5mbyIF", + "iIn3AQESPwoOR2V0UmVjZWlwdEluZm8SHC5nb29nbGUucHJvdG9idWYuU3Ry", + "aW5nVmFsdWUaCC5SZWNlaXB0IgWIifcBARJKChFHZXRUb2tlbldoaXRlbGlz", + "dBIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRoQLlRva2VuU3ltYm9s", + "TGlzdCIFiIn3AQFCG6oCGEVCcmlkZ2UuQ29udHJhY3RzLkJyaWRnZWIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::CallbackInputReflection.Descriptor, global::AuthorityInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.InitializeInput), global::EBridge.Contracts.Bridge.InitializeInput.Parser, new[]{ "OracleContractAddress", "MerkleTreeContractAddress", "RegimentContractAddress", "ReportContractAddress", "Admin", "Controller", "OrganizationAddress", "PauseController", "ApproveTransferController" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SetMaximumAmountInput), global::EBridge.Contracts.Bridge.SetMaximumAmountInput.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.TokenMaximumAmount), global::EBridge.Contracts.Bridge.TokenMaximumAmount.Parser, new[]{ "Symbol", "MaximumAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ApproveTransferInput), global::EBridge.Contracts.Bridge.ApproveTransferInput.Parser, new[]{ "ReceiptId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.IsTransferCanReceiveInput), global::EBridge.Contracts.Bridge.IsTransferCanReceiveInput.Parser, new[]{ "ReceiptId", "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapRatio), global::EBridge.Contracts.Bridge.SwapRatio.Parser, new[]{ "OriginShare", "TargetShare" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapTargetToken), global::EBridge.Contracts.Bridge.SwapTargetToken.Parser, new[]{ "Symbol", "SwapRatio", "FromChainId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapInfo), global::EBridge.Contracts.Bridge.SwapInfo.Parser, new[]{ "SwapId", "SwapTargetToken", "RegimentId", "SpaceId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapPairInfo), global::EBridge.Contracts.Bridge.SwapPairInfo.Parser, new[]{ "SwappedAmount", "SwappedTimes", "DepositAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapAmounts), global::EBridge.Contracts.Bridge.SwapAmounts.Parser, new[]{ "Receiver", "ReceivedAmounts" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwappedReceiptInfo), global::EBridge.Contracts.Bridge.SwappedReceiptInfo.Parser, new[]{ "ReceiptId", "ReceivingTxId", "ReceivingTime", "AmountMap" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptHashMap), global::EBridge.Contracts.Bridge.ReceiptHashMap.Parser, new[]{ "Value", "SwapId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptIdList), global::EBridge.Contracts.Bridge.ReceiptIdList.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptIdInfo), global::EBridge.Contracts.Bridge.ReceiptIdInfo.Parser, new[]{ "ChainId", "Symbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SendingInfo), global::EBridge.Contracts.Bridge.SendingInfo.Parser, new[]{ "ReceiptId", "SendingTxId", "SendingTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.CreateSwapInput), global::EBridge.Contracts.Bridge.CreateSwapInput.Parser, new[]{ "SwapTargetToken", "RegimentId", "MerkleTreeLeafLimit" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.DepositInput), global::EBridge.Contracts.Bridge.DepositInput.Parser, new[]{ "SwapId", "TargetTokenSymbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ChangeSwapRatioInput), global::EBridge.Contracts.Bridge.ChangeSwapRatioInput.Parser, new[]{ "SwapId", "SwapRatio", "TargetTokenSymbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapTokenInput), global::EBridge.Contracts.Bridge.SwapTokenInput.Parser, new[]{ "SwapId", "ReceiptId", "OriginAmount", "ReceiverAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.WithdrawInput), global::EBridge.Contracts.Bridge.WithdrawInput.Parser, new[]{ "SwapId", "TargetTokenSymbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetSwapAmountsInput), global::EBridge.Contracts.Bridge.GetSwapAmountsInput.Parser, new[]{ "SwapId", "ReceiptId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetSwapPairInfoInput), global::EBridge.Contracts.Bridge.GetSwapPairInfoInput.Parser, new[]{ "SwapId", "Symbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetSwappedReceiptInfoInput), global::EBridge.Contracts.Bridge.GetSwappedReceiptInfoInput.Parser, new[]{ "SwapId", "ReceiptId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.Receipt), global::EBridge.Contracts.Bridge.Receipt.Parser, new[]{ "Symbol", "Owner", "TargetAddress", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptList), global::EBridge.Contracts.Bridge.ReceiptList.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ChainToken), global::EBridge.Contracts.Bridge.ChainToken.Parser, new[]{ "ChainId", "Symbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ChainTokenList), global::EBridge.Contracts.Bridge.ChainTokenList.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.TokenSymbolList), global::EBridge.Contracts.Bridge.TokenSymbolList.Parser, new[]{ "Symbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GasPrice), global::EBridge.Contracts.Bridge.GasPrice.Parser, new[]{ "ChainId", "GasPrice_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GasLimit), global::EBridge.Contracts.Bridge.GasLimit.Parser, new[]{ "ChainId", "GasLimit_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.Ratio), global::EBridge.Contracts.Bridge.Ratio.Parser, new[]{ "ChainId", "Ratio_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.AddTokenInput), global::EBridge.Contracts.Bridge.AddTokenInput.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.RemoveTokenInput), global::EBridge.Contracts.Bridge.RemoveTokenInput.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.CreateReceiptInput), global::EBridge.Contracts.Bridge.CreateReceiptInput.Parser, new[]{ "Symbol", "Owner", "TargetAddress", "Amount", "TargetChainId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SetGasLimitInput), global::EBridge.Contracts.Bridge.SetGasLimitInput.Parser, new[]{ "GasLimitList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SetGasPriceInput), global::EBridge.Contracts.Bridge.SetGasPriceInput.Parser, new[]{ "GasPriceList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SetRatioInput), global::EBridge.Contracts.Bridge.SetRatioInput.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetReceiptInfoInput), global::EBridge.Contracts.Bridge.GetReceiptInfoInput.Parser, new[]{ "ReceiptId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetOwnerLockReceiptInput), global::EBridge.Contracts.Bridge.GetOwnerLockReceiptInput.Parser, new[]{ "Owner" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetLockTokensInput), global::EBridge.Contracts.Bridge.GetLockTokensInput.Parser, new[]{ "Owner" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetSwapIdByTokenInput), global::EBridge.Contracts.Bridge.GetSwapIdByTokenInput.Parser, new[]{ "ChainId", "Symbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapRatioChanged), global::EBridge.Contracts.Bridge.SwapRatioChanged.Parser, new[]{ "SwapId", "NewSwapRatio", "TargetTokenSymbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.TokenSwapped), global::EBridge.Contracts.Bridge.TokenSwapped.Parser, new[]{ "Address", "Amount", "Symbol", "ReceiptId", "FromChainId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapInfoAdded), global::EBridge.Contracts.Bridge.SwapInfoAdded.Parser, new[]{ "SwapId", "FromChainId", "Symbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.TokenWhitelistAdded), global::EBridge.Contracts.Bridge.TokenWhitelistAdded.Parser, new[]{ "ChainTokenList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.TokenWhitelistRemoved), global::EBridge.Contracts.Bridge.TokenWhitelistRemoved.Parser, new[]{ "ChainTokenList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptCreated), global::EBridge.Contracts.Bridge.ReceiptCreated.Parser, new[]{ "ReceiptId", "Symbol", "Owner", "TargetAddress", "Amount", "TargetChainId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.Paused), global::EBridge.Contracts.Bridge.Paused.Parser, new[]{ "Sender" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.Unpaused), global::EBridge.Contracts.Bridge.Unpaused.Parser, new[]{ "Sender" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ApproveTransfer), global::EBridge.Contracts.Bridge.ApproveTransfer.Parser, new[]{ "Sender", "ReceiptId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class InitializeInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializeInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitializeInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitializeInput(InitializeInput other) : this() { + oracleContractAddress_ = other.oracleContractAddress_ != null ? other.oracleContractAddress_.Clone() : null; + merkleTreeContractAddress_ = other.merkleTreeContractAddress_ != null ? other.merkleTreeContractAddress_.Clone() : null; + regimentContractAddress_ = other.regimentContractAddress_ != null ? other.regimentContractAddress_.Clone() : null; + reportContractAddress_ = other.reportContractAddress_ != null ? other.reportContractAddress_.Clone() : null; + admin_ = other.admin_ != null ? other.admin_.Clone() : null; + controller_ = other.controller_ != null ? other.controller_.Clone() : null; + organizationAddress_ = other.organizationAddress_ != null ? other.organizationAddress_.Clone() : null; + pauseController_ = other.pauseController_ != null ? other.pauseController_.Clone() : null; + approveTransferController_ = other.approveTransferController_ != null ? other.approveTransferController_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitializeInput Clone() { + return new InitializeInput(this); + } + + /// Field number for the "oracle_contract_address" field. + public const int OracleContractAddressFieldNumber = 1; + private global::AElf.Types.Address oracleContractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address OracleContractAddress { + get { return oracleContractAddress_; } + set { + oracleContractAddress_ = value; + } + } + + /// Field number for the "merkle_tree_contract_address" field. + public const int MerkleTreeContractAddressFieldNumber = 2; + private global::AElf.Types.Address merkleTreeContractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address MerkleTreeContractAddress { + get { return merkleTreeContractAddress_; } + set { + merkleTreeContractAddress_ = value; + } + } + + /// Field number for the "regiment_contract_address" field. + public const int RegimentContractAddressFieldNumber = 3; + private global::AElf.Types.Address regimentContractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address RegimentContractAddress { + get { return regimentContractAddress_; } + set { + regimentContractAddress_ = value; + } + } + + /// Field number for the "report_contract_address" field. + public const int ReportContractAddressFieldNumber = 4; + private global::AElf.Types.Address reportContractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ReportContractAddress { + get { return reportContractAddress_; } + set { + reportContractAddress_ = value; + } + } + + /// Field number for the "admin" field. + public const int AdminFieldNumber = 5; + private global::AElf.Types.Address admin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Admin { + get { return admin_; } + set { + admin_ = value; + } + } + + /// Field number for the "controller" field. + public const int ControllerFieldNumber = 6; + private global::AElf.Types.Address controller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Controller { + get { return controller_; } + set { + controller_ = value; + } + } + + /// Field number for the "organization_address" field. + public const int OrganizationAddressFieldNumber = 7; + private global::AElf.Types.Address organizationAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address OrganizationAddress { + get { return organizationAddress_; } + set { + organizationAddress_ = value; + } + } + + /// Field number for the "pause_controller" field. + public const int PauseControllerFieldNumber = 8; + private global::AElf.Types.Address pauseController_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address PauseController { + get { return pauseController_; } + set { + pauseController_ = value; + } + } + + /// Field number for the "approve_transfer_controller" field. + public const int ApproveTransferControllerFieldNumber = 9; + private global::AElf.Types.Address approveTransferController_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ApproveTransferController { + get { return approveTransferController_; } + set { + approveTransferController_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InitializeInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InitializeInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OracleContractAddress, other.OracleContractAddress)) return false; + if (!object.Equals(MerkleTreeContractAddress, other.MerkleTreeContractAddress)) return false; + if (!object.Equals(RegimentContractAddress, other.RegimentContractAddress)) return false; + if (!object.Equals(ReportContractAddress, other.ReportContractAddress)) return false; + if (!object.Equals(Admin, other.Admin)) return false; + if (!object.Equals(Controller, other.Controller)) return false; + if (!object.Equals(OrganizationAddress, other.OrganizationAddress)) return false; + if (!object.Equals(PauseController, other.PauseController)) return false; + if (!object.Equals(ApproveTransferController, other.ApproveTransferController)) return 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 (oracleContractAddress_ != null) hash ^= OracleContractAddress.GetHashCode(); + if (merkleTreeContractAddress_ != null) hash ^= MerkleTreeContractAddress.GetHashCode(); + if (regimentContractAddress_ != null) hash ^= RegimentContractAddress.GetHashCode(); + if (reportContractAddress_ != null) hash ^= ReportContractAddress.GetHashCode(); + if (admin_ != null) hash ^= Admin.GetHashCode(); + if (controller_ != null) hash ^= Controller.GetHashCode(); + if (organizationAddress_ != null) hash ^= OrganizationAddress.GetHashCode(); + if (pauseController_ != null) hash ^= PauseController.GetHashCode(); + if (approveTransferController_ != null) hash ^= ApproveTransferController.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (oracleContractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OracleContractAddress); + } + if (merkleTreeContractAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MerkleTreeContractAddress); + } + if (regimentContractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(RegimentContractAddress); + } + if (reportContractAddress_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReportContractAddress); + } + if (admin_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Admin); + } + if (controller_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Controller); + } + if (organizationAddress_ != null) { + output.WriteRawTag(58); + output.WriteMessage(OrganizationAddress); + } + if (pauseController_ != null) { + output.WriteRawTag(66); + output.WriteMessage(PauseController); + } + if (approveTransferController_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ApproveTransferController); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (oracleContractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OracleContractAddress); + } + if (merkleTreeContractAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MerkleTreeContractAddress); + } + if (regimentContractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(RegimentContractAddress); + } + if (reportContractAddress_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReportContractAddress); + } + if (admin_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Admin); + } + if (controller_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Controller); + } + if (organizationAddress_ != null) { + output.WriteRawTag(58); + output.WriteMessage(OrganizationAddress); + } + if (pauseController_ != null) { + output.WriteRawTag(66); + output.WriteMessage(PauseController); + } + if (approveTransferController_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ApproveTransferController); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (oracleContractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OracleContractAddress); + } + if (merkleTreeContractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MerkleTreeContractAddress); + } + if (regimentContractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentContractAddress); + } + if (reportContractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportContractAddress); + } + if (admin_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Admin); + } + if (controller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Controller); + } + if (organizationAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationAddress); + } + if (pauseController_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PauseController); + } + if (approveTransferController_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApproveTransferController); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InitializeInput other) { + if (other == null) { + return; + } + if (other.oracleContractAddress_ != null) { + if (oracleContractAddress_ == null) { + OracleContractAddress = new global::AElf.Types.Address(); + } + OracleContractAddress.MergeFrom(other.OracleContractAddress); + } + if (other.merkleTreeContractAddress_ != null) { + if (merkleTreeContractAddress_ == null) { + MerkleTreeContractAddress = new global::AElf.Types.Address(); + } + MerkleTreeContractAddress.MergeFrom(other.MerkleTreeContractAddress); + } + if (other.regimentContractAddress_ != null) { + if (regimentContractAddress_ == null) { + RegimentContractAddress = new global::AElf.Types.Address(); + } + RegimentContractAddress.MergeFrom(other.RegimentContractAddress); + } + if (other.reportContractAddress_ != null) { + if (reportContractAddress_ == null) { + ReportContractAddress = new global::AElf.Types.Address(); + } + ReportContractAddress.MergeFrom(other.ReportContractAddress); + } + if (other.admin_ != null) { + if (admin_ == null) { + Admin = new global::AElf.Types.Address(); + } + Admin.MergeFrom(other.Admin); + } + if (other.controller_ != null) { + if (controller_ == null) { + Controller = new global::AElf.Types.Address(); + } + Controller.MergeFrom(other.Controller); + } + if (other.organizationAddress_ != null) { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + OrganizationAddress.MergeFrom(other.OrganizationAddress); + } + if (other.pauseController_ != null) { + if (pauseController_ == null) { + PauseController = new global::AElf.Types.Address(); + } + PauseController.MergeFrom(other.PauseController); + } + if (other.approveTransferController_ != null) { + if (approveTransferController_ == null) { + ApproveTransferController = new global::AElf.Types.Address(); + } + ApproveTransferController.MergeFrom(other.ApproveTransferController); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (oracleContractAddress_ == null) { + OracleContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OracleContractAddress); + break; + } + case 18: { + if (merkleTreeContractAddress_ == null) { + MerkleTreeContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(MerkleTreeContractAddress); + break; + } + case 26: { + if (regimentContractAddress_ == null) { + RegimentContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(RegimentContractAddress); + break; + } + case 34: { + if (reportContractAddress_ == null) { + ReportContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ReportContractAddress); + break; + } + case 42: { + if (admin_ == null) { + Admin = new global::AElf.Types.Address(); + } + input.ReadMessage(Admin); + break; + } + case 50: { + if (controller_ == null) { + Controller = new global::AElf.Types.Address(); + } + input.ReadMessage(Controller); + break; + } + case 58: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + case 66: { + if (pauseController_ == null) { + PauseController = new global::AElf.Types.Address(); + } + input.ReadMessage(PauseController); + break; + } + case 74: { + if (approveTransferController_ == null) { + ApproveTransferController = new global::AElf.Types.Address(); + } + input.ReadMessage(ApproveTransferController); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (oracleContractAddress_ == null) { + OracleContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OracleContractAddress); + break; + } + case 18: { + if (merkleTreeContractAddress_ == null) { + MerkleTreeContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(MerkleTreeContractAddress); + break; + } + case 26: { + if (regimentContractAddress_ == null) { + RegimentContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(RegimentContractAddress); + break; + } + case 34: { + if (reportContractAddress_ == null) { + ReportContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ReportContractAddress); + break; + } + case 42: { + if (admin_ == null) { + Admin = new global::AElf.Types.Address(); + } + input.ReadMessage(Admin); + break; + } + case 50: { + if (controller_ == null) { + Controller = new global::AElf.Types.Address(); + } + input.ReadMessage(Controller); + break; + } + case 58: { + if (organizationAddress_ == null) { + OrganizationAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(OrganizationAddress); + break; + } + case 66: { + if (pauseController_ == null) { + PauseController = new global::AElf.Types.Address(); + } + input.ReadMessage(PauseController); + break; + } + case 74: { + if (approveTransferController_ == null) { + ApproveTransferController = new global::AElf.Types.Address(); + } + input.ReadMessage(ApproveTransferController); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetMaximumAmountInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetMaximumAmountInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SetMaximumAmountInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetMaximumAmountInput(SetMaximumAmountInput other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetMaximumAmountInput Clone() { + return new SetMaximumAmountInput(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::EBridge.Contracts.Bridge.TokenMaximumAmount.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetMaximumAmountInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetMaximumAmountInput 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(SetMaximumAmountInput 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 TokenMaximumAmount : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenMaximumAmount()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 TokenMaximumAmount() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenMaximumAmount(TokenMaximumAmount other) : this() { + symbol_ = other.symbol_; + maximumAmount_ = other.maximumAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenMaximumAmount Clone() { + return new TokenMaximumAmount(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 "maximum_amount" field. + public const int MaximumAmountFieldNumber = 2; + private long maximumAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MaximumAmount { + get { return maximumAmount_; } + set { + maximumAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TokenMaximumAmount); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenMaximumAmount other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (MaximumAmount != other.MaximumAmount) return 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 (MaximumAmount != 0L) hash ^= MaximumAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (MaximumAmount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(MaximumAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (MaximumAmount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(MaximumAmount); + } + if (_unknownFields != 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 (MaximumAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaximumAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TokenMaximumAmount other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.MaximumAmount != 0L) { + MaximumAmount = other.MaximumAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + MaximumAmount = 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: { + MaximumAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ApproveTransferInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApproveTransferInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ApproveTransferInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApproveTransferInput(ApproveTransferInput other) : this() { + receiptId_ = other.receiptId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApproveTransferInput Clone() { + return new ApproveTransferInput(this); + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 1; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = 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 ApproveTransferInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApproveTransferInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ReceiptId != other.ReceiptId) return 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 (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ApproveTransferInput other) { + if (other == null) { + return; + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ReceiptId = 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: { + ReceiptId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class IsTransferCanReceiveInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IsTransferCanReceiveInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 IsTransferCanReceiveInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IsTransferCanReceiveInput(IsTransferCanReceiveInput other) : this() { + receiptId_ = other.receiptId_; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IsTransferCanReceiveInput Clone() { + return new IsTransferCanReceiveInput(this); + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 1; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + 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 = 3; + private string amount_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Amount { + get { return amount_; } + set { + amount_ = 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 IsTransferCanReceiveInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IsTransferCanReceiveInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ReceiptId != other.ReceiptId) 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 (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount.Length != 0) 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 (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount.Length != 0) { + output.WriteRawTag(26); + output.WriteString(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 (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount.Length != 0) { + output.WriteRawTag(26); + output.WriteString(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 (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IsTransferCanReceiveInput other) { + if (other == null) { + return; + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount.Length != 0) { + 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: { + ReceiptId = input.ReadString(); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 26: { + Amount = 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: { + ReceiptId = input.ReadString(); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 26: { + Amount = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + ///To AElf message. + /// + public sealed partial class SwapRatio : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapRatio()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SwapRatio() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapRatio(SwapRatio other) : this() { + originShare_ = other.originShare_; + targetShare_ = other.targetShare_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapRatio Clone() { + return new SwapRatio(this); + } + + /// Field number for the "origin_share" field. + public const int OriginShareFieldNumber = 1; + private long originShare_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OriginShare { + get { return originShare_; } + set { + originShare_ = value; + } + } + + /// Field number for the "target_share" field. + public const int TargetShareFieldNumber = 2; + private long targetShare_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TargetShare { + get { return targetShare_; } + set { + targetShare_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapRatio); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapRatio other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OriginShare != other.OriginShare) return false; + if (TargetShare != other.TargetShare) return 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 (OriginShare != 0L) hash ^= OriginShare.GetHashCode(); + if (TargetShare != 0L) hash ^= TargetShare.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (OriginShare != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OriginShare); + } + if (TargetShare != 0L) { + output.WriteRawTag(16); + output.WriteInt64(TargetShare); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (OriginShare != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OriginShare); + } + if (TargetShare != 0L) { + output.WriteRawTag(16); + output.WriteInt64(TargetShare); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (OriginShare != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OriginShare); + } + if (TargetShare != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TargetShare); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapRatio other) { + if (other == null) { + return; + } + if (other.OriginShare != 0L) { + OriginShare = other.OriginShare; + } + if (other.TargetShare != 0L) { + TargetShare = other.TargetShare; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + OriginShare = input.ReadInt64(); + break; + } + case 16: { + TargetShare = 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 8: { + OriginShare = input.ReadInt64(); + break; + } + case 16: { + TargetShare = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapTargetToken : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapTargetToken()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SwapTargetToken() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapTargetToken(SwapTargetToken other) : this() { + symbol_ = other.symbol_; + swapRatio_ = other.swapRatio_ != null ? other.swapRatio_.Clone() : null; + fromChainId_ = other.fromChainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapTargetToken Clone() { + return new SwapTargetToken(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 "swap_ratio" field. + public const int SwapRatioFieldNumber = 2; + private global::EBridge.Contracts.Bridge.SwapRatio swapRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EBridge.Contracts.Bridge.SwapRatio SwapRatio { + get { return swapRatio_; } + set { + swapRatio_ = value; + } + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 3; + private string fromChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = 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 SwapTargetToken); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapTargetToken other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(SwapRatio, other.SwapRatio)) return false; + if (FromChainId != other.FromChainId) return 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 (swapRatio_ != null) hash ^= SwapRatio.GetHashCode(); + if (FromChainId.Length != 0) hash ^= FromChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapRatio_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SwapRatio); + } + if (FromChainId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FromChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (swapRatio_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SwapRatio); + } + if (FromChainId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FromChainId); + } + if (_unknownFields != 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 (swapRatio_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapRatio); + } + if (FromChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapTargetToken other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.swapRatio_ != null) { + if (swapRatio_ == null) { + SwapRatio = new global::EBridge.Contracts.Bridge.SwapRatio(); + } + SwapRatio.MergeFrom(other.SwapRatio); + } + if (other.FromChainId.Length != 0) { + FromChainId = other.FromChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapRatio_ == null) { + SwapRatio = new global::EBridge.Contracts.Bridge.SwapRatio(); + } + input.ReadMessage(SwapRatio); + break; + } + case 26: { + FromChainId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (swapRatio_ == null) { + SwapRatio = new global::EBridge.Contracts.Bridge.SwapRatio(); + } + input.ReadMessage(SwapRatio); + break; + } + case 26: { + FromChainId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SwapInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapInfo(SwapInfo other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + swapTargetToken_ = other.swapTargetToken_ != null ? other.swapTargetToken_.Clone() : null; + regimentId_ = other.regimentId_ != null ? other.regimentId_.Clone() : null; + spaceId_ = other.spaceId_ != null ? other.spaceId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapInfo Clone() { + return new SwapInfo(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "swap_target_token" field. + public const int SwapTargetTokenFieldNumber = 2; + private global::EBridge.Contracts.Bridge.SwapTargetToken swapTargetToken_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EBridge.Contracts.Bridge.SwapTargetToken SwapTargetToken { + get { return swapTargetToken_; } + set { + swapTargetToken_ = value; + } + } + + /// Field number for the "regiment_id" field. + public const int RegimentIdFieldNumber = 3; + private global::AElf.Types.Hash regimentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash RegimentId { + get { return regimentId_; } + set { + regimentId_ = value; + } + } + + /// Field number for the "space_id" field. + public const int SpaceIdFieldNumber = 4; + private global::AElf.Types.Hash spaceId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SpaceId { + get { return spaceId_; } + set { + spaceId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (!object.Equals(SwapTargetToken, other.SwapTargetToken)) return false; + if (!object.Equals(RegimentId, other.RegimentId)) return false; + if (!object.Equals(SpaceId, other.SpaceId)) return 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (swapTargetToken_ != null) hash ^= SwapTargetToken.GetHashCode(); + if (regimentId_ != null) hash ^= RegimentId.GetHashCode(); + if (spaceId_ != null) hash ^= SpaceId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (swapTargetToken_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SwapTargetToken); + } + if (regimentId_ != null) { + output.WriteRawTag(26); + output.WriteMessage(RegimentId); + } + if (spaceId_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SpaceId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (swapTargetToken_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SwapTargetToken); + } + if (regimentId_ != null) { + output.WriteRawTag(26); + output.WriteMessage(RegimentId); + } + if (spaceId_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SpaceId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (swapTargetToken_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapTargetToken); + } + if (regimentId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentId); + } + if (spaceId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpaceId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapInfo other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.swapTargetToken_ != null) { + if (swapTargetToken_ == null) { + SwapTargetToken = new global::EBridge.Contracts.Bridge.SwapTargetToken(); + } + SwapTargetToken.MergeFrom(other.SwapTargetToken); + } + if (other.regimentId_ != null) { + if (regimentId_ == null) { + RegimentId = new global::AElf.Types.Hash(); + } + RegimentId.MergeFrom(other.RegimentId); + } + if (other.spaceId_ != null) { + if (spaceId_ == null) { + SpaceId = new global::AElf.Types.Hash(); + } + SpaceId.MergeFrom(other.SpaceId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + if (swapTargetToken_ == null) { + SwapTargetToken = new global::EBridge.Contracts.Bridge.SwapTargetToken(); + } + input.ReadMessage(SwapTargetToken); + break; + } + case 26: { + if (regimentId_ == null) { + RegimentId = new global::AElf.Types.Hash(); + } + input.ReadMessage(RegimentId); + break; + } + case 34: { + if (spaceId_ == null) { + SpaceId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SpaceId); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + if (swapTargetToken_ == null) { + SwapTargetToken = new global::EBridge.Contracts.Bridge.SwapTargetToken(); + } + input.ReadMessage(SwapTargetToken); + break; + } + case 26: { + if (regimentId_ == null) { + RegimentId = new global::AElf.Types.Hash(); + } + input.ReadMessage(RegimentId); + break; + } + case 34: { + if (spaceId_ == null) { + SpaceId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SpaceId); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapPairInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapPairInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SwapPairInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapPairInfo(SwapPairInfo other) : this() { + swappedAmount_ = other.swappedAmount_; + swappedTimes_ = other.swappedTimes_; + depositAmount_ = other.depositAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapPairInfo Clone() { + return new SwapPairInfo(this); + } + + /// Field number for the "swapped_amount" field. + public const int SwappedAmountFieldNumber = 1; + private long swappedAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SwappedAmount { + get { return swappedAmount_; } + set { + swappedAmount_ = value; + } + } + + /// Field number for the "swapped_times" field. + public const int SwappedTimesFieldNumber = 2; + private long swappedTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SwappedTimes { + get { return swappedTimes_; } + set { + swappedTimes_ = value; + } + } + + /// Field number for the "deposit_amount" field. + public const int DepositAmountFieldNumber = 3; + private long depositAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DepositAmount { + get { return depositAmount_; } + set { + depositAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapPairInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapPairInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SwappedAmount != other.SwappedAmount) return false; + if (SwappedTimes != other.SwappedTimes) return false; + if (DepositAmount != other.DepositAmount) return 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 (SwappedAmount != 0L) hash ^= SwappedAmount.GetHashCode(); + if (SwappedTimes != 0L) hash ^= SwappedTimes.GetHashCode(); + if (DepositAmount != 0L) hash ^= DepositAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (SwappedAmount != 0L) { + output.WriteRawTag(8); + output.WriteInt64(SwappedAmount); + } + if (SwappedTimes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(SwappedTimes); + } + if (DepositAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DepositAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SwappedAmount != 0L) { + output.WriteRawTag(8); + output.WriteInt64(SwappedAmount); + } + if (SwappedTimes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(SwappedTimes); + } + if (DepositAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DepositAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SwappedAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SwappedAmount); + } + if (SwappedTimes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SwappedTimes); + } + if (DepositAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DepositAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapPairInfo other) { + if (other == null) { + return; + } + if (other.SwappedAmount != 0L) { + SwappedAmount = other.SwappedAmount; + } + if (other.SwappedTimes != 0L) { + SwappedTimes = other.SwappedTimes; + } + if (other.DepositAmount != 0L) { + DepositAmount = other.DepositAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + SwappedAmount = input.ReadInt64(); + break; + } + case 16: { + SwappedTimes = input.ReadInt64(); + break; + } + case 24: { + DepositAmount = 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 8: { + SwappedAmount = input.ReadInt64(); + break; + } + case 16: { + SwappedTimes = input.ReadInt64(); + break; + } + case 24: { + DepositAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapAmounts : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapAmounts()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SwapAmounts() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapAmounts(SwapAmounts other) : this() { + receiver_ = other.receiver_ != null ? other.receiver_.Clone() : null; + receivedAmounts_ = other.receivedAmounts_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapAmounts Clone() { + return new SwapAmounts(this); + } + + /// Field number for the "receiver" field. + public const int ReceiverFieldNumber = 1; + 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; + } + } + + /// Field number for the "received_amounts" field. + public const int ReceivedAmountsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_receivedAmounts_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 18); + private readonly pbc::MapField receivedAmounts_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ReceivedAmounts { + get { return receivedAmounts_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapAmounts); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapAmounts other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Receiver, other.Receiver)) return false; + if (!ReceivedAmounts.Equals(other.ReceivedAmounts)) return 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 (receiver_ != null) hash ^= Receiver.GetHashCode(); + hash ^= ReceivedAmounts.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (receiver_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Receiver); + } + receivedAmounts_.WriteTo(output, _map_receivedAmounts_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 (receiver_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Receiver); + } + receivedAmounts_.WriteTo(ref output, _map_receivedAmounts_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 (receiver_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Receiver); + } + size += receivedAmounts_.CalculateSize(_map_receivedAmounts_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapAmounts other) { + if (other == null) { + return; + } + if (other.receiver_ != null) { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + Receiver.MergeFrom(other.Receiver); + } + receivedAmounts_.Add(other.receivedAmounts_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + case 18: { + receivedAmounts_.AddEntriesFrom(input, _map_receivedAmounts_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 (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + case 18: { + receivedAmounts_.AddEntriesFrom(ref input, _map_receivedAmounts_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwappedReceiptInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwappedReceiptInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SwappedReceiptInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwappedReceiptInfo(SwappedReceiptInfo other) : this() { + receiptId_ = other.receiptId_; + receivingTxId_ = other.receivingTxId_ != null ? other.receivingTxId_.Clone() : null; + receivingTime_ = other.receivingTime_ != null ? other.receivingTime_.Clone() : null; + amountMap_ = other.amountMap_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwappedReceiptInfo Clone() { + return new SwappedReceiptInfo(this); + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 1; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "receiving_tx_id" field. + public const int ReceivingTxIdFieldNumber = 2; + private global::AElf.Types.Hash receivingTxId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash ReceivingTxId { + get { return receivingTxId_; } + set { + receivingTxId_ = value; + } + } + + /// Field number for the "receiving_time" field. + public const int ReceivingTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp receivingTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ReceivingTime { + get { return receivingTime_; } + set { + receivingTime_ = value; + } + } + + /// Field number for the "amount_map" field. + public const int AmountMapFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_amountMap_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 34); + private readonly pbc::MapField amountMap_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField AmountMap { + get { return amountMap_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwappedReceiptInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwappedReceiptInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ReceiptId != other.ReceiptId) return false; + if (!object.Equals(ReceivingTxId, other.ReceivingTxId)) return false; + if (!object.Equals(ReceivingTime, other.ReceivingTime)) return false; + if (!AmountMap.Equals(other.AmountMap)) return 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 (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (receivingTxId_ != null) hash ^= ReceivingTxId.GetHashCode(); + if (receivingTime_ != null) hash ^= ReceivingTime.GetHashCode(); + hash ^= AmountMap.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (receivingTxId_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ReceivingTxId); + } + if (receivingTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ReceivingTime); + } + amountMap_.WriteTo(output, _map_amountMap_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 (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (receivingTxId_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ReceivingTxId); + } + if (receivingTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ReceivingTime); + } + amountMap_.WriteTo(ref output, _map_amountMap_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 (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (receivingTxId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReceivingTxId); + } + if (receivingTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReceivingTime); + } + size += amountMap_.CalculateSize(_map_amountMap_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwappedReceiptInfo other) { + if (other == null) { + return; + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + if (other.receivingTxId_ != null) { + if (receivingTxId_ == null) { + ReceivingTxId = new global::AElf.Types.Hash(); + } + ReceivingTxId.MergeFrom(other.ReceivingTxId); + } + if (other.receivingTime_ != null) { + if (receivingTime_ == null) { + ReceivingTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ReceivingTime.MergeFrom(other.ReceivingTime); + } + amountMap_.Add(other.amountMap_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ReceiptId = input.ReadString(); + break; + } + case 18: { + if (receivingTxId_ == null) { + ReceivingTxId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ReceivingTxId); + break; + } + case 26: { + if (receivingTime_ == null) { + ReceivingTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceivingTime); + break; + } + case 34: { + amountMap_.AddEntriesFrom(input, _map_amountMap_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: { + ReceiptId = input.ReadString(); + break; + } + case 18: { + if (receivingTxId_ == null) { + ReceivingTxId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ReceivingTxId); + break; + } + case 26: { + if (receivingTime_ == null) { + ReceivingTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceivingTime); + break; + } + case 34: { + amountMap_.AddEntriesFrom(ref input, _map_amountMap_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReceiptHashMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptHashMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ReceiptHashMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptHashMap(ReceiptHashMap other) : this() { + value_ = other.value_.Clone(); + swapId_ = other.swapId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptHashMap Clone() { + return new ReceiptHashMap(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_; } + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 2; + private string swapId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SwapId { + get { return swapId_; } + set { + swapId_ = 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 ReceiptHashMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptHashMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Value.Equals(other.Value)) return false; + if (SwapId != other.SwapId) return 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 (SwapId.Length != 0) hash ^= SwapId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (SwapId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SwapId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !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 (SwapId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SwapId); + } + if (_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 (SwapId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SwapId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReceiptHashMap other) { + if (other == null) { + return; + } + value_.Add(other.value_); + if (other.SwapId.Length != 0) { + SwapId = other.SwapId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + SwapId = 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: { + value_.AddEntriesFrom(ref input, _map_value_codec); + break; + } + case 18: { + SwapId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReceiptIdList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptIdList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ReceiptIdList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptIdList(ReceiptIdList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptIdList Clone() { + return new ReceiptIdList(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 ReceiptIdList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptIdList 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(ReceiptIdList 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 ReceiptIdInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptIdInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ReceiptIdInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptIdInfo(ReceiptIdInfo other) : this() { + chainId_ = other.chainId_; + symbol_ = other.symbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptIdInfo Clone() { + return new ReceiptIdInfo(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private string chainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChainId { + get { return chainId_; } + set { + chainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReceiptIdInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptIdInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + 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 (ChainId.Length != 0) hash ^= ChainId.GetHashCode(); + 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 (ChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + 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 (ChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + 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 (ChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChainId); + } + 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(ReceiptIdInfo other) { + if (other == null) { + return; + } + if (other.ChainId.Length != 0) { + ChainId = other.ChainId; + } + 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: { + ChainId = input.ReadString(); + break; + } + case 18: { + 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: { + ChainId = input.ReadString(); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SendingInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendingInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SendingInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SendingInfo(SendingInfo other) : this() { + receiptId_ = other.receiptId_; + sendingTxId_ = other.sendingTxId_; + sendingTime_ = other.sendingTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SendingInfo Clone() { + return new SendingInfo(this); + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 1; + private long receiptId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ReceiptId { + get { return receiptId_; } + set { + receiptId_ = value; + } + } + + /// Field number for the "sending_tx_id" field. + public const int SendingTxIdFieldNumber = 2; + private string sendingTxId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SendingTxId { + get { return sendingTxId_; } + set { + sendingTxId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sending_time" field. + public const int SendingTimeFieldNumber = 3; + private string sendingTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SendingTime { + get { return sendingTime_; } + set { + sendingTime_ = 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 SendingInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SendingInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ReceiptId != other.ReceiptId) return false; + if (SendingTxId != other.SendingTxId) return false; + if (SendingTime != other.SendingTime) return 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 (ReceiptId != 0L) hash ^= ReceiptId.GetHashCode(); + if (SendingTxId.Length != 0) hash ^= SendingTxId.GetHashCode(); + if (SendingTime.Length != 0) hash ^= SendingTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (ReceiptId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ReceiptId); + } + if (SendingTxId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SendingTxId); + } + if (SendingTime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SendingTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ReceiptId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ReceiptId); + } + if (SendingTxId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SendingTxId); + } + if (SendingTime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SendingTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ReceiptId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReceiptId); + } + if (SendingTxId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SendingTxId); + } + if (SendingTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SendingTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SendingInfo other) { + if (other == null) { + return; + } + if (other.ReceiptId != 0L) { + ReceiptId = other.ReceiptId; + } + if (other.SendingTxId.Length != 0) { + SendingTxId = other.SendingTxId; + } + if (other.SendingTime.Length != 0) { + SendingTime = other.SendingTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ReceiptId = input.ReadInt64(); + break; + } + case 18: { + SendingTxId = input.ReadString(); + break; + } + case 26: { + SendingTime = 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: { + ReceiptId = input.ReadInt64(); + break; + } + case 18: { + SendingTxId = input.ReadString(); + break; + } + case 26: { + SendingTime = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateSwapInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateSwapInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 CreateSwapInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateSwapInput(CreateSwapInput other) : this() { + swapTargetToken_ = other.swapTargetToken_ != null ? other.swapTargetToken_.Clone() : null; + regimentId_ = other.regimentId_ != null ? other.regimentId_.Clone() : null; + merkleTreeLeafLimit_ = other.merkleTreeLeafLimit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateSwapInput Clone() { + return new CreateSwapInput(this); + } + + /// Field number for the "swap_target_token" field. + public const int SwapTargetTokenFieldNumber = 1; + private global::EBridge.Contracts.Bridge.SwapTargetToken swapTargetToken_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EBridge.Contracts.Bridge.SwapTargetToken SwapTargetToken { + get { return swapTargetToken_; } + set { + swapTargetToken_ = value; + } + } + + /// Field number for the "regiment_id" field. + public const int RegimentIdFieldNumber = 2; + private global::AElf.Types.Hash regimentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash RegimentId { + get { return regimentId_; } + set { + regimentId_ = value; + } + } + + /// Field number for the "merkle_tree_leaf_limit" field. + public const int MerkleTreeLeafLimitFieldNumber = 3; + private int merkleTreeLeafLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MerkleTreeLeafLimit { + get { return merkleTreeLeafLimit_; } + set { + merkleTreeLeafLimit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateSwapInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateSwapInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapTargetToken, other.SwapTargetToken)) return false; + if (!object.Equals(RegimentId, other.RegimentId)) return false; + if (MerkleTreeLeafLimit != other.MerkleTreeLeafLimit) return 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 (swapTargetToken_ != null) hash ^= SwapTargetToken.GetHashCode(); + if (regimentId_ != null) hash ^= RegimentId.GetHashCode(); + if (MerkleTreeLeafLimit != 0) hash ^= MerkleTreeLeafLimit.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapTargetToken_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapTargetToken); + } + if (regimentId_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RegimentId); + } + if (MerkleTreeLeafLimit != 0) { + output.WriteRawTag(24); + output.WriteInt32(MerkleTreeLeafLimit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapTargetToken_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapTargetToken); + } + if (regimentId_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RegimentId); + } + if (MerkleTreeLeafLimit != 0) { + output.WriteRawTag(24); + output.WriteInt32(MerkleTreeLeafLimit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapTargetToken_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapTargetToken); + } + if (regimentId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentId); + } + if (MerkleTreeLeafLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MerkleTreeLeafLimit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateSwapInput other) { + if (other == null) { + return; + } + if (other.swapTargetToken_ != null) { + if (swapTargetToken_ == null) { + SwapTargetToken = new global::EBridge.Contracts.Bridge.SwapTargetToken(); + } + SwapTargetToken.MergeFrom(other.SwapTargetToken); + } + if (other.regimentId_ != null) { + if (regimentId_ == null) { + RegimentId = new global::AElf.Types.Hash(); + } + RegimentId.MergeFrom(other.RegimentId); + } + if (other.MerkleTreeLeafLimit != 0) { + MerkleTreeLeafLimit = other.MerkleTreeLeafLimit; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapTargetToken_ == null) { + SwapTargetToken = new global::EBridge.Contracts.Bridge.SwapTargetToken(); + } + input.ReadMessage(SwapTargetToken); + break; + } + case 18: { + if (regimentId_ == null) { + RegimentId = new global::AElf.Types.Hash(); + } + input.ReadMessage(RegimentId); + break; + } + case 24: { + MerkleTreeLeafLimit = 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 (swapTargetToken_ == null) { + SwapTargetToken = new global::EBridge.Contracts.Bridge.SwapTargetToken(); + } + input.ReadMessage(SwapTargetToken); + break; + } + case 18: { + if (regimentId_ == null) { + RegimentId = new global::AElf.Types.Hash(); + } + input.ReadMessage(RegimentId); + break; + } + case 24: { + MerkleTreeLeafLimit = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DepositInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DepositInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 DepositInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DepositInput(DepositInput other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + targetTokenSymbol_ = other.targetTokenSymbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DepositInput Clone() { + return new DepositInput(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "target_token_symbol" field. + public const int TargetTokenSymbolFieldNumber = 2; + private string targetTokenSymbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetTokenSymbol { + get { return targetTokenSymbol_; } + set { + targetTokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 3; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DepositInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DepositInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (TargetTokenSymbol != other.TargetTokenSymbol) 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (TargetTokenSymbol.Length != 0) hash ^= TargetTokenSymbol.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetTokenSymbol); + } + 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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetTokenSymbol); + } + 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 (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (TargetTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetTokenSymbol); + } + 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(DepositInput other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.TargetTokenSymbol.Length != 0) { + TargetTokenSymbol = other.TargetTokenSymbol; + } + 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + TargetTokenSymbol = 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ChangeSwapRatioInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeSwapRatioInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ChangeSwapRatioInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeSwapRatioInput(ChangeSwapRatioInput other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + swapRatio_ = other.swapRatio_ != null ? other.swapRatio_.Clone() : null; + targetTokenSymbol_ = other.targetTokenSymbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeSwapRatioInput Clone() { + return new ChangeSwapRatioInput(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "swap_ratio" field. + public const int SwapRatioFieldNumber = 2; + private global::EBridge.Contracts.Bridge.SwapRatio swapRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EBridge.Contracts.Bridge.SwapRatio SwapRatio { + get { return swapRatio_; } + set { + swapRatio_ = value; + } + } + + /// Field number for the "target_token_symbol" field. + public const int TargetTokenSymbolFieldNumber = 3; + private string targetTokenSymbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetTokenSymbol { + get { return targetTokenSymbol_; } + set { + targetTokenSymbol_ = 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 ChangeSwapRatioInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChangeSwapRatioInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (!object.Equals(SwapRatio, other.SwapRatio)) return false; + if (TargetTokenSymbol != other.TargetTokenSymbol) return 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (swapRatio_ != null) hash ^= SwapRatio.GetHashCode(); + if (TargetTokenSymbol.Length != 0) hash ^= TargetTokenSymbol.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (swapRatio_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SwapRatio); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetTokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (swapRatio_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SwapRatio); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetTokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (swapRatio_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapRatio); + } + if (TargetTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetTokenSymbol); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChangeSwapRatioInput other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.swapRatio_ != null) { + if (swapRatio_ == null) { + SwapRatio = new global::EBridge.Contracts.Bridge.SwapRatio(); + } + SwapRatio.MergeFrom(other.SwapRatio); + } + if (other.TargetTokenSymbol.Length != 0) { + TargetTokenSymbol = other.TargetTokenSymbol; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + if (swapRatio_ == null) { + SwapRatio = new global::EBridge.Contracts.Bridge.SwapRatio(); + } + input.ReadMessage(SwapRatio); + break; + } + case 26: { + TargetTokenSymbol = 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + if (swapRatio_ == null) { + SwapRatio = new global::EBridge.Contracts.Bridge.SwapRatio(); + } + input.ReadMessage(SwapRatio); + break; + } + case 26: { + TargetTokenSymbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapTokenInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapTokenInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SwapTokenInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapTokenInput(SwapTokenInput other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + receiptId_ = other.receiptId_; + originAmount_ = other.originAmount_; + receiverAddress_ = other.receiverAddress_ != null ? other.receiverAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapTokenInput Clone() { + return new SwapTokenInput(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 2; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "origin_amount" field. + public const int OriginAmountFieldNumber = 3; + private string originAmount_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OriginAmount { + get { return originAmount_; } + set { + originAmount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "receiver_address" field. + public const int ReceiverAddressFieldNumber = 4; + private global::AElf.Types.Address receiverAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ReceiverAddress { + get { return receiverAddress_; } + set { + receiverAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapTokenInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapTokenInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (ReceiptId != other.ReceiptId) return false; + if (OriginAmount != other.OriginAmount) return false; + if (!object.Equals(ReceiverAddress, other.ReceiverAddress)) return 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (OriginAmount.Length != 0) hash ^= OriginAmount.GetHashCode(); + if (receiverAddress_ != null) hash ^= ReceiverAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReceiptId); + } + if (OriginAmount.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OriginAmount); + } + if (receiverAddress_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReceiverAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReceiptId); + } + if (OriginAmount.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OriginAmount); + } + if (receiverAddress_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReceiverAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (OriginAmount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginAmount); + } + if (receiverAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReceiverAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapTokenInput other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + if (other.OriginAmount.Length != 0) { + OriginAmount = other.OriginAmount; + } + if (other.receiverAddress_ != null) { + if (receiverAddress_ == null) { + ReceiverAddress = new global::AElf.Types.Address(); + } + ReceiverAddress.MergeFrom(other.ReceiverAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + ReceiptId = input.ReadString(); + break; + } + case 26: { + OriginAmount = input.ReadString(); + break; + } + case 34: { + if (receiverAddress_ == null) { + ReceiverAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ReceiverAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + ReceiptId = input.ReadString(); + break; + } + case 26: { + OriginAmount = input.ReadString(); + break; + } + case 34: { + if (receiverAddress_ == null) { + ReceiverAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ReceiverAddress); + break; + } + } + } + } + #endif + + } + + public sealed partial class WithdrawInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WithdrawInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 WithdrawInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WithdrawInput(WithdrawInput other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + targetTokenSymbol_ = other.targetTokenSymbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WithdrawInput Clone() { + return new WithdrawInput(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "target_token_symbol" field. + public const int TargetTokenSymbolFieldNumber = 2; + private string targetTokenSymbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetTokenSymbol { + get { return targetTokenSymbol_; } + set { + targetTokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 3; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WithdrawInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WithdrawInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (TargetTokenSymbol != other.TargetTokenSymbol) 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (TargetTokenSymbol.Length != 0) hash ^= TargetTokenSymbol.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetTokenSymbol); + } + 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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetTokenSymbol); + } + 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 (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (TargetTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetTokenSymbol); + } + 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(WithdrawInput other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.TargetTokenSymbol.Length != 0) { + TargetTokenSymbol = other.TargetTokenSymbol; + } + 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + TargetTokenSymbol = 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetSwapAmountsInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSwapAmountsInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 GetSwapAmountsInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwapAmountsInput(GetSwapAmountsInput other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + receiptId_ = other.receiptId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwapAmountsInput Clone() { + return new GetSwapAmountsInput(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 2; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = 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 GetSwapAmountsInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSwapAmountsInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (ReceiptId != other.ReceiptId) return 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSwapAmountsInput other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + ReceiptId = 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + ReceiptId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetSwapPairInfoInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSwapPairInfoInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 GetSwapPairInfoInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwapPairInfoInput(GetSwapPairInfoInput other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + symbol_ = other.symbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwapPairInfoInput Clone() { + return new GetSwapPairInfoInput(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSwapPairInfoInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSwapPairInfoInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + 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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + 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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + 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 (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + 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(GetSwapPairInfoInput other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + 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: { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + 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: { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetSwappedReceiptInfoInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSwappedReceiptInfoInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 GetSwappedReceiptInfoInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwappedReceiptInfoInput(GetSwappedReceiptInfoInput other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + receiptId_ = other.receiptId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwappedReceiptInfoInput Clone() { + return new GetSwappedReceiptInfoInput(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 2; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = 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 GetSwappedReceiptInfoInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSwappedReceiptInfoInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (ReceiptId != other.ReceiptId) return 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSwappedReceiptInfoInput other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + ReceiptId = 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + ReceiptId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + ///AElf to others message. + /// + public sealed partial class Receipt : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Receipt()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 Receipt() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Receipt(Receipt other) : this() { + symbol_ = other.symbol_; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + targetAddress_ = other.targetAddress_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Receipt Clone() { + return new Receipt(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 "owner" field. + public const int OwnerFieldNumber = 2; + private global::AElf.Types.Address owner_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + /// Field number for the "targetAddress" field. + public const int TargetAddressFieldNumber = 3; + private string targetAddress_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetAddress { + get { return targetAddress_; } + set { + targetAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Receipt); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Receipt 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 (TargetAddress != other.TargetAddress) 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 (owner_ != null) hash ^= Owner.GetHashCode(); + if (TargetAddress.Length != 0) hash ^= TargetAddress.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 (owner_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Owner); + } + if (TargetAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetAddress); + } + 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 (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (owner_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Owner); + } + if (TargetAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetAddress); + } + 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 (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (TargetAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetAddress); + } + 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(Receipt 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.TargetAddress.Length != 0) { + TargetAddress = other.TargetAddress; + } + 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 18: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 26: { + TargetAddress = 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: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 26: { + TargetAddress = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReceiptList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ReceiptList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptList(ReceiptList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptList Clone() { + return new ReceiptList(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::EBridge.Contracts.Bridge.Receipt.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReceiptList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptList 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(ReceiptList 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 ChainToken : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainToken()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ChainToken() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainToken(ChainToken other) : this() { + chainId_ = other.chainId_; + symbol_ = other.symbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainToken Clone() { + return new ChainToken(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private string chainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChainId { + get { return chainId_; } + set { + chainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChainToken); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChainToken other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + 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 (ChainId.Length != 0) hash ^= ChainId.GetHashCode(); + 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 (ChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + 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 (ChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + 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 (ChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChainId); + } + 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(ChainToken other) { + if (other == null) { + return; + } + if (other.ChainId.Length != 0) { + ChainId = other.ChainId; + } + 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: { + ChainId = input.ReadString(); + break; + } + case 18: { + 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: { + ChainId = input.ReadString(); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ChainTokenList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainTokenList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ChainTokenList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainTokenList(ChainTokenList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainTokenList Clone() { + return new ChainTokenList(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::EBridge.Contracts.Bridge.ChainToken.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChainTokenList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChainTokenList 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(ChainTokenList 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 TokenSymbolList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenSymbolList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 TokenSymbolList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenSymbolList(TokenSymbolList other) : this() { + symbol_ = other.symbol_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenSymbolList Clone() { + return new TokenSymbolList(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_symbol_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField symbol_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Symbol { + get { return symbol_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TokenSymbolList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenSymbolList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!symbol_.Equals(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; + 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 + symbol_.WriteTo(output, _repeated_symbol_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) { + symbol_.WriteTo(ref output, _repeated_symbol_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 += symbol_.CalculateSize(_repeated_symbol_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TokenSymbolList other) { + if (other == null) { + return; + } + symbol_.Add(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_.AddEntriesFrom(input, _repeated_symbol_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: { + symbol_.AddEntriesFrom(ref input, _repeated_symbol_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GasPrice : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GasPrice()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 GasPrice() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GasPrice(GasPrice other) : this() { + chainId_ = other.chainId_; + gasPrice_ = other.gasPrice_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GasPrice Clone() { + return new GasPrice(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private string chainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChainId { + get { return chainId_; } + set { + chainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gas_price" field. + public const int GasPrice_FieldNumber = 2; + private long gasPrice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long GasPrice_ { + get { return gasPrice_; } + set { + gasPrice_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GasPrice); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GasPrice other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (GasPrice_ != other.GasPrice_) return 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.Length != 0) hash ^= ChainId.GetHashCode(); + if (GasPrice_ != 0L) hash ^= GasPrice_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (GasPrice_ != 0L) { + output.WriteRawTag(16); + output.WriteInt64(GasPrice_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (GasPrice_ != 0L) { + output.WriteRawTag(16); + output.WriteInt64(GasPrice_); + } + if (_unknownFields != 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.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChainId); + } + if (GasPrice_ != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(GasPrice_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GasPrice other) { + if (other == null) { + return; + } + if (other.ChainId.Length != 0) { + ChainId = other.ChainId; + } + if (other.GasPrice_ != 0L) { + GasPrice_ = other.GasPrice_; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ChainId = input.ReadString(); + break; + } + case 16: { + GasPrice_ = 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: { + ChainId = input.ReadString(); + break; + } + case 16: { + GasPrice_ = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GasLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GasLimit()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 GasLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GasLimit(GasLimit other) : this() { + chainId_ = other.chainId_; + gasLimit_ = other.gasLimit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GasLimit Clone() { + return new GasLimit(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private string chainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChainId { + get { return chainId_; } + set { + chainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gas_limit" field. + public const int GasLimit_FieldNumber = 2; + private long gasLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long GasLimit_ { + get { return gasLimit_; } + set { + gasLimit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GasLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GasLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (GasLimit_ != other.GasLimit_) return 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.Length != 0) hash ^= ChainId.GetHashCode(); + if (GasLimit_ != 0L) hash ^= GasLimit_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (GasLimit_ != 0L) { + output.WriteRawTag(16); + output.WriteInt64(GasLimit_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (GasLimit_ != 0L) { + output.WriteRawTag(16); + output.WriteInt64(GasLimit_); + } + if (_unknownFields != 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.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChainId); + } + if (GasLimit_ != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(GasLimit_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GasLimit other) { + if (other == null) { + return; + } + if (other.ChainId.Length != 0) { + ChainId = other.ChainId; + } + if (other.GasLimit_ != 0L) { + GasLimit_ = other.GasLimit_; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ChainId = input.ReadString(); + break; + } + case 16: { + GasLimit_ = 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: { + ChainId = input.ReadString(); + break; + } + case 16: { + GasLimit_ = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Ratio : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Ratio()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 Ratio() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Ratio(Ratio other) : this() { + chainId_ = other.chainId_; + ratio_ = other.ratio_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Ratio Clone() { + return new Ratio(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private string chainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChainId { + get { return chainId_; } + set { + chainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ratio" field. + public const int Ratio_FieldNumber = 2; + private long ratio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Ratio_ { + get { return ratio_; } + set { + ratio_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Ratio); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Ratio other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (Ratio_ != other.Ratio_) return 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.Length != 0) hash ^= ChainId.GetHashCode(); + if (Ratio_ != 0L) hash ^= Ratio_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (Ratio_ != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Ratio_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (Ratio_ != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Ratio_); + } + if (_unknownFields != 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.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChainId); + } + if (Ratio_ != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Ratio_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Ratio other) { + if (other == null) { + return; + } + if (other.ChainId.Length != 0) { + ChainId = other.ChainId; + } + if (other.Ratio_ != 0L) { + Ratio_ = other.Ratio_; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ChainId = input.ReadString(); + break; + } + case 16: { + Ratio_ = 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: { + ChainId = input.ReadString(); + break; + } + case 16: { + Ratio_ = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AddTokenInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddTokenInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 AddTokenInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddTokenInput(AddTokenInput other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddTokenInput Clone() { + return new AddTokenInput(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::EBridge.Contracts.Bridge.ChainToken.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddTokenInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddTokenInput 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(AddTokenInput 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 RemoveTokenInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTokenInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 RemoveTokenInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTokenInput(RemoveTokenInput other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTokenInput Clone() { + return new RemoveTokenInput(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::EBridge.Contracts.Bridge.ChainToken.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveTokenInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTokenInput 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(RemoveTokenInput 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 CreateReceiptInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateReceiptInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 CreateReceiptInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateReceiptInput(CreateReceiptInput other) : this() { + symbol_ = other.symbol_; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + targetAddress_ = other.targetAddress_; + amount_ = other.amount_; + targetChainId_ = other.targetChainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateReceiptInput Clone() { + return new CreateReceiptInput(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 "owner" field. + public const int OwnerFieldNumber = 2; + private global::AElf.Types.Address owner_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + /// Field number for the "targetAddress" field. + public const int TargetAddressFieldNumber = 3; + private string targetAddress_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetAddress { + get { return targetAddress_; } + set { + targetAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + 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 "target_chain_id" field. + public const int TargetChainIdFieldNumber = 5; + private string targetChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChainId { + get { return targetChainId_; } + set { + targetChainId_ = 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 CreateReceiptInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateReceiptInput 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 (TargetAddress != other.TargetAddress) return false; + if (Amount != other.Amount) return false; + if (TargetChainId != other.TargetChainId) return 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 (TargetAddress.Length != 0) hash ^= TargetAddress.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (TargetChainId.Length != 0) hash ^= TargetChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetAddress); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (TargetChainId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TargetChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (TargetAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetAddress); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (TargetChainId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TargetChainId); + } + if (_unknownFields != 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 (TargetAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetAddress); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (TargetChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateReceiptInput 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.TargetAddress.Length != 0) { + TargetAddress = other.TargetAddress; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.TargetChainId.Length != 0) { + TargetChainId = other.TargetChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetAddress = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + TargetChainId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 26: { + TargetAddress = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + TargetChainId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetGasLimitInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetGasLimitInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SetGasLimitInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGasLimitInput(SetGasLimitInput other) : this() { + gasLimitList_ = other.gasLimitList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGasLimitInput Clone() { + return new SetGasLimitInput(this); + } + + /// Field number for the "gas_limit_list" field. + public const int GasLimitListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_gasLimitList_codec + = pb::FieldCodec.ForMessage(10, global::EBridge.Contracts.Bridge.GasLimit.Parser); + private readonly pbc::RepeatedField gasLimitList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GasLimitList { + get { return gasLimitList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetGasLimitInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetGasLimitInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!gasLimitList_.Equals(other.gasLimitList_)) return 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 ^= gasLimitList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + gasLimitList_.WriteTo(output, _repeated_gasLimitList_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) { + gasLimitList_.WriteTo(ref output, _repeated_gasLimitList_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 += gasLimitList_.CalculateSize(_repeated_gasLimitList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetGasLimitInput other) { + if (other == null) { + return; + } + gasLimitList_.Add(other.gasLimitList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + gasLimitList_.AddEntriesFrom(input, _repeated_gasLimitList_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: { + gasLimitList_.AddEntriesFrom(ref input, _repeated_gasLimitList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetGasPriceInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetGasPriceInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SetGasPriceInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGasPriceInput(SetGasPriceInput other) : this() { + gasPriceList_ = other.gasPriceList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGasPriceInput Clone() { + return new SetGasPriceInput(this); + } + + /// Field number for the "gas_price_list" field. + public const int GasPriceListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_gasPriceList_codec + = pb::FieldCodec.ForMessage(10, global::EBridge.Contracts.Bridge.GasPrice.Parser); + private readonly pbc::RepeatedField gasPriceList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GasPriceList { + get { return gasPriceList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetGasPriceInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetGasPriceInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!gasPriceList_.Equals(other.gasPriceList_)) return 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 ^= gasPriceList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + gasPriceList_.WriteTo(output, _repeated_gasPriceList_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) { + gasPriceList_.WriteTo(ref output, _repeated_gasPriceList_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 += gasPriceList_.CalculateSize(_repeated_gasPriceList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetGasPriceInput other) { + if (other == null) { + return; + } + gasPriceList_.Add(other.gasPriceList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + gasPriceList_.AddEntriesFrom(input, _repeated_gasPriceList_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: { + gasPriceList_.AddEntriesFrom(ref input, _repeated_gasPriceList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetRatioInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetRatioInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SetRatioInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetRatioInput(SetRatioInput other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetRatioInput Clone() { + return new SetRatioInput(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::EBridge.Contracts.Bridge.Ratio.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetRatioInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetRatioInput 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(SetRatioInput 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 GetReceiptInfoInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetReceiptInfoInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 GetReceiptInfoInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptInfoInput(GetReceiptInfoInput other) : this() { + receiptId_ = other.receiptId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptInfoInput Clone() { + return new GetReceiptInfoInput(this); + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 1; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = 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 GetReceiptInfoInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetReceiptInfoInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ReceiptId != other.ReceiptId) return 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 (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetReceiptInfoInput other) { + if (other == null) { + return; + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ReceiptId = 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: { + ReceiptId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetOwnerLockReceiptInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOwnerLockReceiptInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 GetOwnerLockReceiptInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetOwnerLockReceiptInput(GetOwnerLockReceiptInput other) : this() { + 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 GetOwnerLockReceiptInput Clone() { + return new GetOwnerLockReceiptInput(this); + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetOwnerLockReceiptInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetOwnerLockReceiptInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (owner_ != null) { + output.WriteRawTag(10); + 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 (owner_ != null) { + output.WriteRawTag(10); + 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 (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(GetOwnerLockReceiptInput other) { + if (other == null) { + return; + } + 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: { + 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: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetLockTokensInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLockTokensInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 GetLockTokensInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLockTokensInput(GetLockTokensInput other) : this() { + 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 GetLockTokensInput Clone() { + return new GetLockTokensInput(this); + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetLockTokensInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetLockTokensInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (owner_ != null) { + output.WriteRawTag(10); + 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 (owner_ != null) { + output.WriteRawTag(10); + 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 (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(GetLockTokensInput other) { + if (other == null) { + return; + } + 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: { + 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: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetSwapIdByTokenInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSwapIdByTokenInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 GetSwapIdByTokenInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwapIdByTokenInput(GetSwapIdByTokenInput other) : this() { + chainId_ = other.chainId_; + symbol_ = other.symbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwapIdByTokenInput Clone() { + return new GetSwapIdByTokenInput(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private string chainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChainId { + get { return chainId_; } + set { + chainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSwapIdByTokenInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSwapIdByTokenInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + 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 (ChainId.Length != 0) hash ^= ChainId.GetHashCode(); + 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 (ChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + 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 (ChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ChainId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + 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 (ChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChainId); + } + 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(GetSwapIdByTokenInput other) { + if (other == null) { + return; + } + if (other.ChainId.Length != 0) { + ChainId = other.ChainId; + } + 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: { + ChainId = input.ReadString(); + break; + } + case 18: { + 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: { + ChainId = input.ReadString(); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapRatioChanged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapRatioChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SwapRatioChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapRatioChanged(SwapRatioChanged other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + newSwapRatio_ = other.newSwapRatio_ != null ? other.newSwapRatio_.Clone() : null; + targetTokenSymbol_ = other.targetTokenSymbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapRatioChanged Clone() { + return new SwapRatioChanged(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "new_swap_ratio" field. + public const int NewSwapRatioFieldNumber = 2; + private global::EBridge.Contracts.Bridge.SwapRatio newSwapRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EBridge.Contracts.Bridge.SwapRatio NewSwapRatio { + get { return newSwapRatio_; } + set { + newSwapRatio_ = value; + } + } + + /// Field number for the "target_token_symbol" field. + public const int TargetTokenSymbolFieldNumber = 3; + private string targetTokenSymbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetTokenSymbol { + get { return targetTokenSymbol_; } + set { + targetTokenSymbol_ = 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 SwapRatioChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapRatioChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (!object.Equals(NewSwapRatio, other.NewSwapRatio)) return false; + if (TargetTokenSymbol != other.TargetTokenSymbol) return 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (newSwapRatio_ != null) hash ^= NewSwapRatio.GetHashCode(); + if (TargetTokenSymbol.Length != 0) hash ^= TargetTokenSymbol.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (newSwapRatio_ != null) { + output.WriteRawTag(18); + output.WriteMessage(NewSwapRatio); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetTokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (newSwapRatio_ != null) { + output.WriteRawTag(18); + output.WriteMessage(NewSwapRatio); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetTokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (newSwapRatio_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewSwapRatio); + } + if (TargetTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetTokenSymbol); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapRatioChanged other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.newSwapRatio_ != null) { + if (newSwapRatio_ == null) { + NewSwapRatio = new global::EBridge.Contracts.Bridge.SwapRatio(); + } + NewSwapRatio.MergeFrom(other.NewSwapRatio); + } + if (other.TargetTokenSymbol.Length != 0) { + TargetTokenSymbol = other.TargetTokenSymbol; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + if (newSwapRatio_ == null) { + NewSwapRatio = new global::EBridge.Contracts.Bridge.SwapRatio(); + } + input.ReadMessage(NewSwapRatio); + break; + } + case 26: { + TargetTokenSymbol = 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + if (newSwapRatio_ == null) { + NewSwapRatio = new global::EBridge.Contracts.Bridge.SwapRatio(); + } + input.ReadMessage(NewSwapRatio); + break; + } + case 26: { + TargetTokenSymbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TokenSwapped : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenSwapped()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 TokenSwapped() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenSwapped(TokenSwapped other) : this() { + address_ = other.address_ != null ? other.address_.Clone() : null; + amount_ = other.amount_; + symbol_ = other.symbol_; + receiptId_ = other.receiptId_; + fromChainId_ = other.fromChainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenSwapped Clone() { + return new TokenSwapped(this); + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 1; + private global::AElf.Types.Address address_; + [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 "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 "symbol" field. + public const int SymbolFieldNumber = 3; + 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 "receipt_id" field. + public const int ReceiptIdFieldNumber = 4; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 5; + private string fromChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = 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 TokenSwapped); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenSwapped other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Address, other.Address)) return false; + if (Amount != other.Amount) return false; + if (Symbol != other.Symbol) return false; + if (ReceiptId != other.ReceiptId) return false; + if (FromChainId != other.FromChainId) return 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 (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (FromChainId.Length != 0) hash ^= FromChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ReceiptId); + } + if (FromChainId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(FromChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ReceiptId); + } + if (FromChainId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(FromChainId); + } + if (_unknownFields != 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 (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (FromChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TokenSwapped other) { + if (other == null) { + return; + } + if (other.address_ != null) { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + Address.MergeFrom(other.Address); + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + if (other.FromChainId.Length != 0) { + FromChainId = other.FromChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 34: { + ReceiptId = input.ReadString(); + break; + } + case 42: { + FromChainId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 34: { + ReceiptId = input.ReadString(); + break; + } + case 42: { + FromChainId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapInfoAdded : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapInfoAdded()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 SwapInfoAdded() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapInfoAdded(SwapInfoAdded other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + fromChainId_ = other.fromChainId_; + symbol_ = other.symbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapInfoAdded Clone() { + return new SwapInfoAdded(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 2; + private string fromChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapInfoAdded); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapInfoAdded other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (FromChainId != other.FromChainId) return false; + 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (FromChainId.Length != 0) hash ^= FromChainId.GetHashCode(); + 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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (FromChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FromChainId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + 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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (FromChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FromChainId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + 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 (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (FromChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromChainId); + } + 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(SwapInfoAdded other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.FromChainId.Length != 0) { + FromChainId = other.FromChainId; + } + 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: { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + FromChainId = input.ReadString(); + break; + } + case 26: { + 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: { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + FromChainId = input.ReadString(); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TokenWhitelistAdded : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenWhitelistAdded()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 TokenWhitelistAdded() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenWhitelistAdded(TokenWhitelistAdded other) : this() { + chainTokenList_ = other.chainTokenList_ != null ? other.chainTokenList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenWhitelistAdded Clone() { + return new TokenWhitelistAdded(this); + } + + /// Field number for the "chain_token_list" field. + public const int ChainTokenListFieldNumber = 1; + private global::EBridge.Contracts.Bridge.ChainTokenList chainTokenList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EBridge.Contracts.Bridge.ChainTokenList ChainTokenList { + get { return chainTokenList_; } + set { + chainTokenList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TokenWhitelistAdded); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenWhitelistAdded other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ChainTokenList, other.ChainTokenList)) return 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 (chainTokenList_ != null) hash ^= ChainTokenList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (chainTokenList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ChainTokenList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (chainTokenList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ChainTokenList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (chainTokenList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChainTokenList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TokenWhitelistAdded other) { + if (other == null) { + return; + } + if (other.chainTokenList_ != null) { + if (chainTokenList_ == null) { + ChainTokenList = new global::EBridge.Contracts.Bridge.ChainTokenList(); + } + ChainTokenList.MergeFrom(other.ChainTokenList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (chainTokenList_ == null) { + ChainTokenList = new global::EBridge.Contracts.Bridge.ChainTokenList(); + } + input.ReadMessage(ChainTokenList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (chainTokenList_ == null) { + ChainTokenList = new global::EBridge.Contracts.Bridge.ChainTokenList(); + } + input.ReadMessage(ChainTokenList); + break; + } + } + } + } + #endif + + } + + public sealed partial class TokenWhitelistRemoved : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenWhitelistRemoved()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 TokenWhitelistRemoved() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenWhitelistRemoved(TokenWhitelistRemoved other) : this() { + chainTokenList_ = other.chainTokenList_ != null ? other.chainTokenList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenWhitelistRemoved Clone() { + return new TokenWhitelistRemoved(this); + } + + /// Field number for the "chain_token_list" field. + public const int ChainTokenListFieldNumber = 1; + private global::EBridge.Contracts.Bridge.ChainTokenList chainTokenList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EBridge.Contracts.Bridge.ChainTokenList ChainTokenList { + get { return chainTokenList_; } + set { + chainTokenList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TokenWhitelistRemoved); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenWhitelistRemoved other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ChainTokenList, other.ChainTokenList)) return 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 (chainTokenList_ != null) hash ^= ChainTokenList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (chainTokenList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ChainTokenList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (chainTokenList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ChainTokenList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (chainTokenList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChainTokenList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TokenWhitelistRemoved other) { + if (other == null) { + return; + } + if (other.chainTokenList_ != null) { + if (chainTokenList_ == null) { + ChainTokenList = new global::EBridge.Contracts.Bridge.ChainTokenList(); + } + ChainTokenList.MergeFrom(other.ChainTokenList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (chainTokenList_ == null) { + ChainTokenList = new global::EBridge.Contracts.Bridge.ChainTokenList(); + } + input.ReadMessage(ChainTokenList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (chainTokenList_ == null) { + ChainTokenList = new global::EBridge.Contracts.Bridge.ChainTokenList(); + } + input.ReadMessage(ChainTokenList); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReceiptCreated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptCreated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ReceiptCreated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptCreated(ReceiptCreated other) : this() { + receiptId_ = other.receiptId_; + symbol_ = other.symbol_; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + targetAddress_ = other.targetAddress_; + amount_ = other.amount_; + targetChainId_ = other.targetChainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptCreated Clone() { + return new ReceiptCreated(this); + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 1; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + 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 "owner" field. + public const int OwnerFieldNumber = 3; + private global::AElf.Types.Address owner_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + /// Field number for the "targetAddress" field. + public const int TargetAddressFieldNumber = 4; + private string targetAddress_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetAddress { + get { return targetAddress_; } + set { + targetAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 5; + 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 "target_chain_id" field. + public const int TargetChainIdFieldNumber = 6; + private string targetChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChainId { + get { return targetChainId_; } + set { + targetChainId_ = 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 ReceiptCreated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptCreated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ReceiptId != other.ReceiptId) return false; + if (Symbol != other.Symbol) return false; + if (!object.Equals(Owner, other.Owner)) return false; + if (TargetAddress != other.TargetAddress) return false; + if (Amount != other.Amount) return false; + if (TargetChainId != other.TargetChainId) return 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 (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (TargetAddress.Length != 0) hash ^= TargetAddress.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (TargetChainId.Length != 0) hash ^= TargetChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (owner_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Owner); + } + if (TargetAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TargetAddress); + } + if (Amount != 0L) { + output.WriteRawTag(40); + output.WriteInt64(Amount); + } + if (TargetChainId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TargetChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ReceiptId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ReceiptId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (owner_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Owner); + } + if (TargetAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TargetAddress); + } + if (Amount != 0L) { + output.WriteRawTag(40); + output.WriteInt64(Amount); + } + if (TargetChainId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TargetChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (TargetAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetAddress); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (TargetChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReceiptCreated other) { + if (other == null) { + return; + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + 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.TargetAddress.Length != 0) { + TargetAddress = other.TargetAddress; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.TargetChainId.Length != 0) { + TargetChainId = other.TargetChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ReceiptId = input.ReadString(); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 26: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 34: { + TargetAddress = input.ReadString(); + break; + } + case 40: { + Amount = input.ReadInt64(); + break; + } + case 50: { + TargetChainId = 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: { + ReceiptId = input.ReadString(); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 26: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 34: { + TargetAddress = input.ReadString(); + break; + } + case 40: { + Amount = input.ReadInt64(); + break; + } + case 50: { + TargetChainId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Paused : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Paused()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 Paused() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Paused(Paused other) : this() { + sender_ = other.sender_ != null ? other.sender_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Paused Clone() { + return new Paused(this); + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 1; + private global::AElf.Types.Address sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Sender { + get { return sender_; } + set { + sender_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Paused); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Paused other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sender, other.Sender)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sender_ != null) hash ^= Sender.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sender); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Paused other) { + if (other == null) { + return; + } + if (other.sender_ != null) { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + Sender.MergeFrom(other.Sender); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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; + } + } + } + } + #endif + + } + + public sealed partial class Unpaused : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unpaused()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 Unpaused() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Unpaused(Unpaused other) : this() { + sender_ = other.sender_ != null ? other.sender_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Unpaused Clone() { + return new Unpaused(this); + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 1; + private global::AElf.Types.Address sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Sender { + get { return sender_; } + set { + sender_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Unpaused); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Unpaused other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sender, other.Sender)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sender_ != null) hash ^= Sender.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sender); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Unpaused other) { + if (other == null) { + return; + } + if (other.sender_ != null) { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + Sender.MergeFrom(other.Sender); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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; + } + } + } + } + #endif + + } + + public sealed partial class ApproveTransfer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApproveTransfer()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractReflection.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 ApproveTransfer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApproveTransfer(ApproveTransfer other) : this() { + sender_ = other.sender_ != null ? other.sender_.Clone() : null; + receiptId_ = other.receiptId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApproveTransfer Clone() { + return new ApproveTransfer(this); + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 1; + private global::AElf.Types.Address sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Sender { + get { return sender_; } + set { + sender_ = value; + } + } + + /// Field number for the "receipt_id" field. + public const int ReceiptIdFieldNumber = 2; + private string receiptId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReceiptId { + get { return receiptId_; } + set { + receiptId_ = 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 ApproveTransfer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApproveTransfer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sender, other.Sender)) return false; + if (ReceiptId != other.ReceiptId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sender_ != null) hash ^= Sender.GetHashCode(); + if (ReceiptId.Length != 0) hash ^= ReceiptId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sender); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sender); + } + if (ReceiptId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReceiptId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sender); + } + if (ReceiptId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiptId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ApproveTransfer other) { + if (other == null) { + return; + } + if (other.sender_ != null) { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + Sender.MergeFrom(other.Sender); + } + if (other.ReceiptId.Length != 0) { + ReceiptId = other.ReceiptId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ReceiptId = 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 (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + input.ReadMessage(Sender); + break; + } + case 18: { + ReceiptId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/BridgeContractImpl.c.cs b/src/EbridgeIndexer/Contracts/BridgeContractImpl.c.cs new file mode 100644 index 0000000..b828d53 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/BridgeContractImpl.c.cs @@ -0,0 +1,1133 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bridge_contract_impl.proto +// +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace EBridge.Contracts.Bridge { + + #region Events + public partial class ReceiptDailyLimitSet : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ReceiptDailyLimitSet GetNonIndexed() + { + return new ReceiptDailyLimitSet + { + Symbol = Symbol, + TargetChainId = TargetChainId, + ReceiptDailyLimit = ReceiptDailyLimit, + ReceiptRefreshTime = ReceiptRefreshTime, + CurrentReceiptDailyLimit = CurrentReceiptDailyLimit, + }; + } + } + + public partial class SwapDailyLimitSet : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public SwapDailyLimitSet GetNonIndexed() + { + return new SwapDailyLimitSet + { + Symbol = Symbol, + FromChainId = FromChainId, + SwapDailyLimit = SwapDailyLimit, + SwapRefreshTime = SwapRefreshTime, + CurrentSwapDailyLimit = CurrentSwapDailyLimit, + }; + } + } + + public partial class ReceiptTokenBucketSet : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ReceiptTokenBucketSet GetNonIndexed() + { + return new ReceiptTokenBucketSet + { + Symbol = Symbol, + TargetChainId = TargetChainId, + ReceiptCapacity = ReceiptCapacity, + ReceiptRefillRate = ReceiptRefillRate, + ReceiptBucketIsEnable = ReceiptBucketIsEnable, + ReceiptBucketUpdateTime = ReceiptBucketUpdateTime, + CurrentReceiptBucketTokenAmount = CurrentReceiptBucketTokenAmount, + }; + } + } + + public partial class SwapTokenBucketSet : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public SwapTokenBucketSet GetNonIndexed() + { + return new SwapTokenBucketSet + { + Symbol = Symbol, + FromChainId = FromChainId, + SwapCapacity = SwapCapacity, + SwapRefillRate = SwapRefillRate, + SwapBucketIsEnable = SwapBucketIsEnable, + SwapBucketUpdateTime = SwapBucketUpdateTime, + CurrentSwapBucketTokenAmount = CurrentSwapBucketTokenAmount, + }; + } + } + + public partial class ReceiptLimitChanged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public ReceiptLimitChanged GetNonIndexed() + { + return new ReceiptLimitChanged + { + Symbol = Symbol, + TargetChainId = TargetChainId, + CurrentReceiptDailyLimitAmount = CurrentReceiptDailyLimitAmount, + ReceiptDailyLimitRefreshTime = ReceiptDailyLimitRefreshTime, + CurrentReceiptBucketTokenAmount = CurrentReceiptBucketTokenAmount, + ReceiptBucketUpdateTime = ReceiptBucketUpdateTime, + }; + } + } + + public partial class SwapLimitChanged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public SwapLimitChanged GetNonIndexed() + { + return new SwapLimitChanged + { + Symbol = Symbol, + FromChainId = FromChainId, + CurrentSwapDailyLimitAmount = CurrentSwapDailyLimitAmount, + SwapDailyLimitRefreshTime = SwapDailyLimitRefreshTime, + CurrentSwapBucketTokenAmount = CurrentSwapBucketTokenAmount, + SwapBucketUpdateTime = SwapBucketUpdateTime, + }; + } + } + + #endregion + public static partial class BridgeContractImplContainer + { + static readonly string __ServiceName = "BridgeContractImpl.BridgeContractImpl"; + + #region Marshallers + static readonly aelf::Marshaller __Marshaller_acs13_AggregateInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Standards.ACS13.AggregateInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_StringValue = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.StringValue.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_aelf_Hash = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Hash.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Int64Value = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Int64Value.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetReceiptHashInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetReceiptHashListInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashListInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetReceiptHashListOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashListOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_InitializeInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.InitializeInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Empty = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Empty.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_aelf_Address = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Address.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_AuthorityInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AuthorityInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_SetMaximumAmountInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SetMaximumAmountInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_ApproveTransferInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.ApproveTransferInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_IsTransferCanReceiveInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.IsTransferCanReceiveInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_BoolValue = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.BoolValue.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_ReceiptIdList = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.ReceiptIdList.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_CreateSwapInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.CreateSwapInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_SwapTokenInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SwapTokenInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_ChangeSwapRatioInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.ChangeSwapRatioInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_DepositInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.DepositInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_WithdrawInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.WithdrawInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_CallbackInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::CallbackInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetSwapIdByTokenInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.GetSwapIdByTokenInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_SwapInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SwapInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetSwapPairInfoInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.GetSwapPairInfoInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_SwapPairInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SwapPairInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetSwapAmountsInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.GetSwapAmountsInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_SwapAmounts = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SwapAmounts.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetSwappedReceiptInfoInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.GetSwappedReceiptInfoInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_SwappedReceiptInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SwappedReceiptInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_AddTokenInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.AddTokenInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_RemoveTokenInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.RemoveTokenInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_CreateReceiptInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.CreateReceiptInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_SetGasLimitInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SetGasLimitInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_SetGasPriceInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SetGasPriceInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_SetRatioInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SetRatioInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Int32Value = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Int32Value.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_ReceiptIdInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.ReceiptIdInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_Receipt = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.Receipt.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_TokenSymbolList = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.TokenSymbolList.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_SetReceiptDailyLimitInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SetReceiptDailyLimitInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_SetSwapDailyLimitInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.SetSwapDailyLimitInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_ConfigReceiptTokenBucketInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.ConfigReceiptTokenBucketInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_ConfigSwapTokenBucketInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.ConfigSwapTokenBucketInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_GetReceiptDailyLimitInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.GetReceiptDailyLimitInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_DailyLimitTokenInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.DailyLimitTokenInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_GetCurrentReceiptTokenBucketStateInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.GetCurrentReceiptTokenBucketStateInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_TokenBucket = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.TokenBucket.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_GetReceiptMinWaitTimeInSecondsInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.GetReceiptMinWaitTimeInSecondsInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_BridgeContractImpl_GetSwapMinWaitTimeInSecondsInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.Bridge.GetSwapMinWaitTimeInSecondsInput.Parser.ParseFrom); + #endregion + + #region Methods + static readonly aelf::Method __Method_Aggregate = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Aggregate", + __Marshaller_acs13_AggregateInput, + __Marshaller_google_protobuf_StringValue); + + static readonly aelf::Method __Method_GetReceiptCount = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetReceiptCount", + __Marshaller_aelf_Hash, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetReceiptHash = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetReceiptHash", + __Marshaller_GetReceiptHashInput, + __Marshaller_aelf_Hash); + + static readonly aelf::Method __Method_GetReceiptHashList = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetReceiptHashList", + __Marshaller_GetReceiptHashListInput, + __Marshaller_GetReceiptHashListOutput); + + static readonly aelf::Method __Method_Initialize = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Initialize", + __Marshaller_InitializeInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeController", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeAdmin = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeAdmin", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeTransactionFeeController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeTransactionFeeController", + __Marshaller_AuthorityInfo, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeRestartOrganization = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeRestartOrganization", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangePauseController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangePauseController", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeApproveTransferController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeApproveTransferController", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Pause = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Pause", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Restart = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Restart", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetTokenMaximumAmount = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetTokenMaximumAmount", + __Marshaller_SetMaximumAmountInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ApproveTransfer = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ApproveTransfer", + __Marshaller_ApproveTransferInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_IsTransferCanReceive = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "IsTransferCanReceive", + __Marshaller_IsTransferCanReceiveInput, + __Marshaller_google_protobuf_BoolValue); + + static readonly aelf::Method __Method_GetContractController = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetContractController", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_GetContractAdmin = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetContractAdmin", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_GetTransactionFeeRatioController = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTransactionFeeRatioController", + __Marshaller_google_protobuf_Empty, + __Marshaller_AuthorityInfo); + + static readonly aelf::Method __Method_IsContractPause = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "IsContractPause", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_BoolValue); + + static readonly aelf::Method __Method_GetPauseController = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetPauseController", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_GetRestartOrganization = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetRestartOrganization", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_GetTokenMaximumAmount = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTokenMaximumAmount", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetApproveReceiptIdList = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetApproveReceiptIdList", + __Marshaller_google_protobuf_Empty, + __Marshaller_ReceiptIdList); + + static readonly aelf::Method __Method_GetApproveTransferController = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetApproveTransferController", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_CreateSwap = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "CreateSwap", + __Marshaller_CreateSwapInput, + __Marshaller_aelf_Hash); + + static readonly aelf::Method __Method_SwapToken = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SwapToken", + __Marshaller_SwapTokenInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeSwapRatio = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeSwapRatio", + __Marshaller_ChangeSwapRatioInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Deposit = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Deposit", + __Marshaller_DepositInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Withdraw = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Withdraw", + __Marshaller_WithdrawInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_FulfillQuery = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "FulfillQuery", + __Marshaller_CallbackInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetSwapIdByToken = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSwapIdByToken", + __Marshaller_GetSwapIdByTokenInput, + __Marshaller_aelf_Hash); + + static readonly aelf::Method __Method_GetSwapInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSwapInfo", + __Marshaller_aelf_Hash, + __Marshaller_SwapInfo); + + static readonly aelf::Method __Method_GetSwapPairInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSwapPairInfo", + __Marshaller_GetSwapPairInfoInput, + __Marshaller_SwapPairInfo); + + static readonly aelf::Method __Method_GetSwapAmounts = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSwapAmounts", + __Marshaller_GetSwapAmountsInput, + __Marshaller_SwapAmounts); + + static readonly aelf::Method __Method_GetSwappedReceiptInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSwappedReceiptInfo", + __Marshaller_GetSwappedReceiptInfoInput, + __Marshaller_SwappedReceiptInfo); + + static readonly aelf::Method __Method_GetSpaceIdBySwapId = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSpaceIdBySwapId", + __Marshaller_aelf_Hash, + __Marshaller_aelf_Hash); + + static readonly aelf::Method __Method_AddToken = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "AddToken", + __Marshaller_AddTokenInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_RemoveToken = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "RemoveToken", + __Marshaller_RemoveTokenInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_CreateReceipt = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "CreateReceipt", + __Marshaller_CreateReceiptInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetGasLimit = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetGasLimit", + __Marshaller_SetGasLimitInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetGasPrice = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetGasPrice", + __Marshaller_SetGasPriceInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetPriceRatio = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetPriceRatio", + __Marshaller_SetRatioInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetFeeFloatingRatio = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetFeeFloatingRatio", + __Marshaller_SetRatioInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetPriceFluctuationRatio = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetPriceFluctuationRatio", + __Marshaller_SetRatioInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_WithdrawTransactionFee = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "WithdrawTransactionFee", + __Marshaller_google_protobuf_Int64Value, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetGasLimit = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetGasLimit", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetGasPrice = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetGasPrice", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetPriceRatio = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetPriceRatio", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetFeeFloatingRatio = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetFeeFloatingRatio", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_StringValue); + + static readonly aelf::Method __Method_GetFeeByChainId = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetFeeByChainId", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetCurrentTransactionFee = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetCurrentTransactionFee", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetPriceFluctuationRatio = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetPriceFluctuationRatio", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_Int32Value); + + static readonly aelf::Method __Method_GetReceiptIdInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetReceiptIdInfo", + __Marshaller_aelf_Hash, + __Marshaller_ReceiptIdInfo); + + static readonly aelf::Method __Method_GetReceiptInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetReceiptInfo", + __Marshaller_google_protobuf_StringValue, + __Marshaller_Receipt); + + static readonly aelf::Method __Method_GetTokenWhitelist = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTokenWhitelist", + __Marshaller_google_protobuf_StringValue, + __Marshaller_TokenSymbolList); + + static readonly aelf::Method __Method_SetReceiptDailyLimit = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetReceiptDailyLimit", + __Marshaller_BridgeContractImpl_SetReceiptDailyLimitInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetSwapDailyLimit = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetSwapDailyLimit", + __Marshaller_BridgeContractImpl_SetSwapDailyLimitInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ConfigReceiptTokenBucket = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ConfigReceiptTokenBucket", + __Marshaller_BridgeContractImpl_ConfigReceiptTokenBucketInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ConfigSwapTokenBucket = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ConfigSwapTokenBucket", + __Marshaller_BridgeContractImpl_ConfigSwapTokenBucketInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetDailyLimitRefreshTime = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetDailyLimitRefreshTime", + __Marshaller_google_protobuf_Int64Value, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetReceiptDailyLimit = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetReceiptDailyLimit", + __Marshaller_BridgeContractImpl_GetReceiptDailyLimitInput, + __Marshaller_BridgeContractImpl_DailyLimitTokenInfo); + + static readonly aelf::Method __Method_GetSwapDailyLimit = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSwapDailyLimit", + __Marshaller_aelf_Hash, + __Marshaller_BridgeContractImpl_DailyLimitTokenInfo); + + static readonly aelf::Method __Method_GetDailyLimitRefreshTime = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetDailyLimitRefreshTime", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetCurrentReceiptTokenBucketState = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetCurrentReceiptTokenBucketState", + __Marshaller_BridgeContractImpl_GetCurrentReceiptTokenBucketStateInput, + __Marshaller_BridgeContractImpl_TokenBucket); + + static readonly aelf::Method __Method_GetReceiptMinWaitTimeInSeconds = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetReceiptMinWaitTimeInSeconds", + __Marshaller_BridgeContractImpl_GetReceiptMinWaitTimeInSecondsInput, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetCurrentSwapTokenBucketState = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetCurrentSwapTokenBucketState", + __Marshaller_aelf_Hash, + __Marshaller_BridgeContractImpl_TokenBucket); + + static readonly aelf::Method __Method_GetSwapMinWaitTimeInSeconds = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSwapMinWaitTimeInSeconds", + __Marshaller_BridgeContractImpl_GetSwapMinWaitTimeInSecondsInput, + __Marshaller_google_protobuf_Int64Value); + + #endregion + + #region Descriptors + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.Descriptor.Services[0]; } + } + + public static global::System.Collections.Generic.IReadOnlyList Descriptors + { + get + { + return new global::System.Collections.Generic.List() + { + global::AElf.Standards.ACS12.Acs12Reflection.Descriptor.Services[0], + global::AElf.Standards.ACS13.Acs13Reflection.Descriptor.Services[0], + global::EBridge.Contracts.ReceiptMakerContract.ReceiptMakerReflection.Descriptor.Services[0], + global::EBridge.Contracts.Bridge.BridgeContractReflection.Descriptor.Services[0], + global::EBridge.Contracts.Bridge.BridgeContractImplReflection.Descriptor.Services[0], + }; + } + } + #endregion + // + // /// Base class for the contract of BridgeContractImpl + // public abstract partial class BridgeContractImplBase : AElf.Sdk.CSharp.CSharpSmartContract + // { + // public virtual global::Google.Protobuf.WellKnownTypes.StringValue Aggregate(global::AElf.Standards.ACS13.AggregateInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetReceiptCount(global::AElf.Types.Hash input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AElf.Types.Hash GetReceiptHash(global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashListOutput GetReceiptHashList(global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashListInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty Initialize(global::EBridge.Contracts.Bridge.InitializeInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ChangeController(global::AElf.Types.Address input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ChangeAdmin(global::AElf.Types.Address input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ChangeTransactionFeeController(global::AuthorityInfo input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ChangeRestartOrganization(global::AElf.Types.Address input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ChangePauseController(global::AElf.Types.Address input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ChangeApproveTransferController(global::AElf.Types.Address input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty Pause(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty Restart(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SetTokenMaximumAmount(global::EBridge.Contracts.Bridge.SetMaximumAmountInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ApproveTransfer(global::EBridge.Contracts.Bridge.ApproveTransferInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.BoolValue IsTransferCanReceive(global::EBridge.Contracts.Bridge.IsTransferCanReceiveInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AElf.Types.Address GetContractController(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AElf.Types.Address GetContractAdmin(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AuthorityInfo GetTransactionFeeRatioController(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.BoolValue IsContractPause(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AElf.Types.Address GetPauseController(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AElf.Types.Address GetRestartOrganization(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetTokenMaximumAmount(global::Google.Protobuf.WellKnownTypes.StringValue input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.ReceiptIdList GetApproveReceiptIdList(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AElf.Types.Address GetApproveTransferController(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AElf.Types.Hash CreateSwap(global::EBridge.Contracts.Bridge.CreateSwapInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SwapToken(global::EBridge.Contracts.Bridge.SwapTokenInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ChangeSwapRatio(global::EBridge.Contracts.Bridge.ChangeSwapRatioInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty Deposit(global::EBridge.Contracts.Bridge.DepositInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty Withdraw(global::EBridge.Contracts.Bridge.WithdrawInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty FulfillQuery(global::CallbackInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AElf.Types.Hash GetSwapIdByToken(global::EBridge.Contracts.Bridge.GetSwapIdByTokenInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.SwapInfo GetSwapInfo(global::AElf.Types.Hash input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.SwapPairInfo GetSwapPairInfo(global::EBridge.Contracts.Bridge.GetSwapPairInfoInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.SwapAmounts GetSwapAmounts(global::EBridge.Contracts.Bridge.GetSwapAmountsInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.SwappedReceiptInfo GetSwappedReceiptInfo(global::EBridge.Contracts.Bridge.GetSwappedReceiptInfoInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::AElf.Types.Hash GetSpaceIdBySwapId(global::AElf.Types.Hash input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty AddToken(global::EBridge.Contracts.Bridge.AddTokenInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveToken(global::EBridge.Contracts.Bridge.RemoveTokenInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateReceipt(global::EBridge.Contracts.Bridge.CreateReceiptInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SetGasLimit(global::EBridge.Contracts.Bridge.SetGasLimitInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SetGasPrice(global::EBridge.Contracts.Bridge.SetGasPriceInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SetPriceRatio(global::EBridge.Contracts.Bridge.SetRatioInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SetFeeFloatingRatio(global::EBridge.Contracts.Bridge.SetRatioInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SetPriceFluctuationRatio(global::EBridge.Contracts.Bridge.SetRatioInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty WithdrawTransactionFee(global::Google.Protobuf.WellKnownTypes.Int64Value input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetGasLimit(global::Google.Protobuf.WellKnownTypes.StringValue input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetGasPrice(global::Google.Protobuf.WellKnownTypes.StringValue input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetPriceRatio(global::Google.Protobuf.WellKnownTypes.StringValue input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.StringValue GetFeeFloatingRatio(global::Google.Protobuf.WellKnownTypes.StringValue input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetFeeByChainId(global::Google.Protobuf.WellKnownTypes.StringValue input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetCurrentTransactionFee(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int32Value GetPriceFluctuationRatio(global::Google.Protobuf.WellKnownTypes.StringValue input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.ReceiptIdInfo GetReceiptIdInfo(global::AElf.Types.Hash input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.Receipt GetReceiptInfo(global::Google.Protobuf.WellKnownTypes.StringValue input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.TokenSymbolList GetTokenWhitelist(global::Google.Protobuf.WellKnownTypes.StringValue input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SetReceiptDailyLimit(global::EBridge.Contracts.Bridge.SetReceiptDailyLimitInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SetSwapDailyLimit(global::EBridge.Contracts.Bridge.SetSwapDailyLimitInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ConfigReceiptTokenBucket(global::EBridge.Contracts.Bridge.ConfigReceiptTokenBucketInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty ConfigSwapTokenBucket(global::EBridge.Contracts.Bridge.ConfigSwapTokenBucketInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Empty SetDailyLimitRefreshTime(global::Google.Protobuf.WellKnownTypes.Int64Value input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.DailyLimitTokenInfo GetReceiptDailyLimit(global::EBridge.Contracts.Bridge.GetReceiptDailyLimitInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.DailyLimitTokenInfo GetSwapDailyLimit(global::AElf.Types.Hash input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetDailyLimitRefreshTime(global::Google.Protobuf.WellKnownTypes.Empty input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.TokenBucket GetCurrentReceiptTokenBucketState(global::EBridge.Contracts.Bridge.GetCurrentReceiptTokenBucketStateInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetReceiptMinWaitTimeInSeconds(global::EBridge.Contracts.Bridge.GetReceiptMinWaitTimeInSecondsInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::EBridge.Contracts.Bridge.TokenBucket GetCurrentSwapTokenBucketState(global::AElf.Types.Hash input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // public virtual global::Google.Protobuf.WellKnownTypes.Int64Value GetSwapMinWaitTimeInSeconds(global::EBridge.Contracts.Bridge.GetSwapMinWaitTimeInSecondsInput input) + // { + // throw new global::System.NotImplementedException(); + // } + // + // } + + // public static aelf::ServerServiceDefinition BindService(BridgeContractImplBase serviceImpl) + // { + // return aelf::ServerServiceDefinition.CreateBuilder() + // .AddDescriptors(Descriptors) + // .AddMethod(__Method_Aggregate, serviceImpl.Aggregate) + // .AddMethod(__Method_GetReceiptCount, serviceImpl.GetReceiptCount) + // .AddMethod(__Method_GetReceiptHash, serviceImpl.GetReceiptHash) + // .AddMethod(__Method_GetReceiptHashList, serviceImpl.GetReceiptHashList) + // .AddMethod(__Method_Initialize, serviceImpl.Initialize) + // .AddMethod(__Method_ChangeController, serviceImpl.ChangeController) + // .AddMethod(__Method_ChangeAdmin, serviceImpl.ChangeAdmin) + // .AddMethod(__Method_ChangeTransactionFeeController, serviceImpl.ChangeTransactionFeeController) + // .AddMethod(__Method_ChangeRestartOrganization, serviceImpl.ChangeRestartOrganization) + // .AddMethod(__Method_ChangePauseController, serviceImpl.ChangePauseController) + // .AddMethod(__Method_ChangeApproveTransferController, serviceImpl.ChangeApproveTransferController) + // .AddMethod(__Method_Pause, serviceImpl.Pause) + // .AddMethod(__Method_Restart, serviceImpl.Restart) + // .AddMethod(__Method_SetTokenMaximumAmount, serviceImpl.SetTokenMaximumAmount) + // .AddMethod(__Method_ApproveTransfer, serviceImpl.ApproveTransfer) + // .AddMethod(__Method_IsTransferCanReceive, serviceImpl.IsTransferCanReceive) + // .AddMethod(__Method_GetContractController, serviceImpl.GetContractController) + // .AddMethod(__Method_GetContractAdmin, serviceImpl.GetContractAdmin) + // .AddMethod(__Method_GetTransactionFeeRatioController, serviceImpl.GetTransactionFeeRatioController) + // .AddMethod(__Method_IsContractPause, serviceImpl.IsContractPause) + // .AddMethod(__Method_GetPauseController, serviceImpl.GetPauseController) + // .AddMethod(__Method_GetRestartOrganization, serviceImpl.GetRestartOrganization) + // .AddMethod(__Method_GetTokenMaximumAmount, serviceImpl.GetTokenMaximumAmount) + // .AddMethod(__Method_GetApproveReceiptIdList, serviceImpl.GetApproveReceiptIdList) + // .AddMethod(__Method_GetApproveTransferController, serviceImpl.GetApproveTransferController) + // .AddMethod(__Method_CreateSwap, serviceImpl.CreateSwap) + // .AddMethod(__Method_SwapToken, serviceImpl.SwapToken) + // .AddMethod(__Method_ChangeSwapRatio, serviceImpl.ChangeSwapRatio) + // .AddMethod(__Method_Deposit, serviceImpl.Deposit) + // .AddMethod(__Method_Withdraw, serviceImpl.Withdraw) + // .AddMethod(__Method_FulfillQuery, serviceImpl.FulfillQuery) + // .AddMethod(__Method_GetSwapIdByToken, serviceImpl.GetSwapIdByToken) + // .AddMethod(__Method_GetSwapInfo, serviceImpl.GetSwapInfo) + // .AddMethod(__Method_GetSwapPairInfo, serviceImpl.GetSwapPairInfo) + // .AddMethod(__Method_GetSwapAmounts, serviceImpl.GetSwapAmounts) + // .AddMethod(__Method_GetSwappedReceiptInfo, serviceImpl.GetSwappedReceiptInfo) + // .AddMethod(__Method_GetSpaceIdBySwapId, serviceImpl.GetSpaceIdBySwapId) + // .AddMethod(__Method_AddToken, serviceImpl.AddToken) + // .AddMethod(__Method_RemoveToken, serviceImpl.RemoveToken) + // .AddMethod(__Method_CreateReceipt, serviceImpl.CreateReceipt) + // .AddMethod(__Method_SetGasLimit, serviceImpl.SetGasLimit) + // .AddMethod(__Method_SetGasPrice, serviceImpl.SetGasPrice) + // .AddMethod(__Method_SetPriceRatio, serviceImpl.SetPriceRatio) + // .AddMethod(__Method_SetFeeFloatingRatio, serviceImpl.SetFeeFloatingRatio) + // .AddMethod(__Method_SetPriceFluctuationRatio, serviceImpl.SetPriceFluctuationRatio) + // .AddMethod(__Method_WithdrawTransactionFee, serviceImpl.WithdrawTransactionFee) + // .AddMethod(__Method_GetGasLimit, serviceImpl.GetGasLimit) + // .AddMethod(__Method_GetGasPrice, serviceImpl.GetGasPrice) + // .AddMethod(__Method_GetPriceRatio, serviceImpl.GetPriceRatio) + // .AddMethod(__Method_GetFeeFloatingRatio, serviceImpl.GetFeeFloatingRatio) + // .AddMethod(__Method_GetFeeByChainId, serviceImpl.GetFeeByChainId) + // .AddMethod(__Method_GetCurrentTransactionFee, serviceImpl.GetCurrentTransactionFee) + // .AddMethod(__Method_GetPriceFluctuationRatio, serviceImpl.GetPriceFluctuationRatio) + // .AddMethod(__Method_GetReceiptIdInfo, serviceImpl.GetReceiptIdInfo) + // .AddMethod(__Method_GetReceiptInfo, serviceImpl.GetReceiptInfo) + // .AddMethod(__Method_GetTokenWhitelist, serviceImpl.GetTokenWhitelist) + // .AddMethod(__Method_SetReceiptDailyLimit, serviceImpl.SetReceiptDailyLimit) + // .AddMethod(__Method_SetSwapDailyLimit, serviceImpl.SetSwapDailyLimit) + // .AddMethod(__Method_ConfigReceiptTokenBucket, serviceImpl.ConfigReceiptTokenBucket) + // .AddMethod(__Method_ConfigSwapTokenBucket, serviceImpl.ConfigSwapTokenBucket) + // .AddMethod(__Method_SetDailyLimitRefreshTime, serviceImpl.SetDailyLimitRefreshTime) + // .AddMethod(__Method_GetReceiptDailyLimit, serviceImpl.GetReceiptDailyLimit) + // .AddMethod(__Method_GetSwapDailyLimit, serviceImpl.GetSwapDailyLimit) + // .AddMethod(__Method_GetDailyLimitRefreshTime, serviceImpl.GetDailyLimitRefreshTime) + // .AddMethod(__Method_GetCurrentReceiptTokenBucketState, serviceImpl.GetCurrentReceiptTokenBucketState) + // .AddMethod(__Method_GetReceiptMinWaitTimeInSeconds, serviceImpl.GetReceiptMinWaitTimeInSeconds) + // .AddMethod(__Method_GetCurrentSwapTokenBucketState, serviceImpl.GetCurrentSwapTokenBucketState) + // .AddMethod(__Method_GetSwapMinWaitTimeInSeconds, serviceImpl.GetSwapMinWaitTimeInSeconds).Build(); + // } + + } +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/BridgeContractImpl.g.cs b/src/EbridgeIndexer/Contracts/BridgeContractImpl.g.cs new file mode 100644 index 0000000..1cb8bf3 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/BridgeContractImpl.g.cs @@ -0,0 +1,6003 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bridge_contract_impl.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 EBridge.Contracts.Bridge { + + /// Holder for reflection information generated from bridge_contract_impl.proto + public static partial class BridgeContractImplReflection { + + #region Descriptor + /// File descriptor for bridge_contract_impl.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BridgeContractImplReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpicmlkZ2VfY29udHJhY3RfaW1wbC5wcm90bxISQnJpZGdlQ29udHJhY3RJ", + "bXBsGgthY3MxMi5wcm90bxoLYWNzMTMucHJvdG8aFWJyaWRnZV9jb250cmFj", + "dC5wcm90bxoTcmVjZWlwdF9tYWtlci5wcm90bxobZ29vZ2xlL3Byb3RvYnVm", + "L2VtcHR5LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3Rv", + "Gh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8aD2FlbGYvY29yZS5w", + "cm90bxoSYWVsZi9vcHRpb25zLnByb3RvInsKE0RhaWx5TGltaXRUb2tlbklu", + "Zm8SFAoMdG9rZW5fYW1vdW50GAEgASgDEjAKDHJlZnJlc2hfdGltZRgCIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASHAoUZGVmYXVsdF90b2tl", + "bl9hbW91bnQYAyABKAMimgEKC1Rva2VuQnVja2V0EhwKFGN1cnJlbnRfdG9r", + "ZW5fYW1vdW50GAEgASgDEjUKEWxhc3RfdXBkYXRlZF90aW1lGAIgASgLMhou", + "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIWCg50b2tlbl9jYXBhY2l0eRgD", + "IAEoAxIMCgRyYXRlGAQgASgDEhAKCGlzRW5hYmxlGAUgASgIImkKGVNldFJl", + "Y2VpcHREYWlseUxpbWl0SW5wdXQSTAoZcmVjZWlwdF9kYWlseV9saW1pdF9p", + "bmZvcxgBIAMoCzIpLkJyaWRnZUNvbnRyYWN0SW1wbC5SZWNlaXB0RGFpbHlM", + "aW1pdEluZm8iiwEKFVJlY2VpcHREYWlseUxpbWl0SW5mbxIOCgZzeW1ib2wY", + "ASABKAkSFAoMdGFyZ2V0X2NoYWluGAIgASgJEi4KCnN0YXJ0X3RpbWUYAyAB", + "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhwKFGRlZmF1bHRfdG9r", + "ZW5fYW1vdW50GAQgASgDIkEKGUdldFJlY2VpcHREYWlseUxpbWl0SW5wdXQS", + "DgoGc3ltYm9sGAEgASgJEhQKDHRhcmdldF9jaGFpbhgCIAEoCSJgChZTZXRT", + "d2FwRGFpbHlMaW1pdElucHV0EkYKFnN3YXBfZGFpbHlfbGltaXRfaW5mb3MY", + "ASADKAsyJi5CcmlkZ2VDb250cmFjdEltcGwuU3dhcERhaWx5TGltaXRJbmZv", + "In8KElN3YXBEYWlseUxpbWl0SW5mbxIbCgdzd2FwX2lkGAEgASgLMgouYWVs", + "Zi5IYXNoEi4KCnN0YXJ0X3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEhwKFGRlZmF1bHRfdG9rZW5fYW1vdW50GAMgASgDInMKHUNv", + "bmZpZ1JlY2VpcHRUb2tlbkJ1Y2tldElucHV0ElIKHHJlY2VpcHRfdG9rZW5f", + "YnVja2V0X2NvbmZpZ3MYASADKAsyLC5CcmlkZ2VDb250cmFjdEltcGwuUmVj", + "ZWlwdFRva2VuQnVja2V0Q29uZmlnIngKGFJlY2VpcHRUb2tlbkJ1Y2tldENv", + "bmZpZxIOCgZzeW1ib2wYASABKAkSFAoMdGFyZ2V0X2NoYWluGAIgASgJEhAK", + "CGlzRW5hYmxlGAMgASgIEhYKDnRva2VuX2NhcGFjaXR5GAQgASgDEgwKBHJh", + "dGUYBSABKAMiTgomR2V0Q3VycmVudFJlY2VpcHRUb2tlbkJ1Y2tldFN0YXRl", + "SW5wdXQSDgoGc3ltYm9sGAEgASgJEhQKDHRhcmdldF9jaGFpbhgCIAEoCSJh", + "CiNHZXRSZWNlaXB0TWluV2FpdFRpbWVJblNlY29uZHNJbnB1dBIOCgZzeW1i", + "b2wYASABKAkSFAoMdGFyZ2V0X2NoYWluGAIgASgJEhQKDHRva2VuX2Ftb3Vu", + "dBgDIAEoAyJqChpDb25maWdTd2FwVG9rZW5CdWNrZXRJbnB1dBJMChlzd2Fw", + "X3Rva2VuX2J1Y2tldF9jb25maWdzGAEgAygLMikuQnJpZGdlQ29udHJhY3RJ", + "bXBsLlN3YXBUb2tlbkJ1Y2tldENvbmZpZyJsChVTd2FwVG9rZW5CdWNrZXRD", + "b25maWcSGwoHc3dhcF9pZBgBIAEoCzIKLmFlbGYuSGFzaBIQCghpc0VuYWJs", + "ZRgCIAEoCBIWCg50b2tlbl9jYXBhY2l0eRgDIAEoAxIMCgRyYXRlGAQgASgD", + "IlQKIEdldFN3YXBNaW5XYWl0VGltZUluU2Vjb25kc0lucHV0EhoKBnN3YXBJ", + "ZBgBIAEoCzIKLmFlbGYuSGFzaBIUCgx0b2tlbl9hbW91bnQYAiABKAMiwQEK", + "FFJlY2VpcHREYWlseUxpbWl0U2V0Eg4KBnN5bWJvbBgBIAEoCRIXCg90YXJn", + "ZXRfY2hhaW5faWQYAiABKAkSGwoTcmVjZWlwdF9kYWlseV9saW1pdBgDIAEo", + "AxI4ChRyZWNlaXB0X3JlZnJlc2hfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90", + "b2J1Zi5UaW1lc3RhbXASIwobY3VycmVudF9yZWNlaXB0X2RhaWx5X2xpbWl0", + "GAUgASgDOgSguxgBIrMBChFTd2FwRGFpbHlMaW1pdFNldBIOCgZzeW1ib2wY", + "ASABKAkSFQoNZnJvbV9jaGFpbl9pZBgCIAEoCRIYChBzd2FwX2RhaWx5X2xp", + "bWl0GAMgASgDEjUKEXN3YXBfcmVmcmVzaF90aW1lGAQgASgLMhouZ29vZ2xl", + "LnByb3RvYnVmLlRpbWVzdGFtcBIgChhjdXJyZW50X3N3YXBfZGFpbHlfbGlt", + "aXQYBSABKAM6BKC7GAEiiwIKFVJlY2VpcHRUb2tlbkJ1Y2tldFNldBIOCgZz", + "eW1ib2wYASABKAkSFwoPdGFyZ2V0X2NoYWluX2lkGAIgASgJEhgKEHJlY2Vp", + "cHRfY2FwYWNpdHkYAyABKAMSGwoTcmVjZWlwdF9yZWZpbGxfcmF0ZRgEIAEo", + "AxIfChdyZWNlaXB0X2J1Y2tldF9pc0VuYWJsZRgFIAEoCBI+ChpyZWNlaXB0", + "X2J1Y2tldF91cGRhdGVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASKwojY3VycmVudF9yZWNlaXB0X2J1Y2tldF90b2tlbl9hbW91", + "bnQYByABKAM6BKC7GAEi9wEKElN3YXBUb2tlbkJ1Y2tldFNldBIOCgZzeW1i", + "b2wYASABKAkSFQoNZnJvbV9jaGFpbl9pZBgCIAEoCRIVCg1zd2FwX2NhcGFj", + "aXR5GAMgASgDEhgKEHN3YXBfcmVmaWxsX3JhdGUYBCABKAMSHAoUc3dhcF9i", + "dWNrZXRfaXNFbmFibGUYBSABKAgSOwoXc3dhcF9idWNrZXRfdXBkYXRlX3Rp", + "bWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEigKIGN1cnJl", + "bnRfc3dhcF9idWNrZXRfdG9rZW5fYW1vdW50GAcgASgDOgSguxgBIqECChNS", + "ZWNlaXB0TGltaXRDaGFuZ2VkEg4KBnN5bWJvbBgBIAEoCRIVCg10YXJnZXRD", + "aGFpbklkGAIgASgJEioKImN1cnJlbnRfcmVjZWlwdF9kYWlseV9saW1pdF9h", + "bW91bnQYAyABKAMSRAogcmVjZWlwdF9kYWlseV9saW1pdF9yZWZyZXNoX3Rp", + "bWUYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEisKI2N1cnJl", + "bnRfcmVjZWlwdF9idWNrZXRfdG9rZW5fYW1vdW50GAUgASgDEj4KGnJlY2Vp", + "cHRfYnVja2V0X3VwZGF0ZV90aW1lGAYgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcDoEoLsYASKQAgoQU3dhcExpbWl0Q2hhbmdlZBIOCgZzeW1i", + "b2wYASABKAkSEwoLZnJvbUNoYWluSWQYAiABKAkSJwofY3VycmVudF9zd2Fw", + "X2RhaWx5X2xpbWl0X2Ftb3VudBgDIAEoAxJBCh1zd2FwX2RhaWx5X2xpbWl0", + "X3JlZnJlc2hfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXASKAogY3VycmVudF9zd2FwX2J1Y2tldF90b2tlbl9hbW91bnQYBSABKAMS", + "OwoXc3dhcF9idWNrZXRfdXBkYXRlX3RpbWUYBiABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wOgSguxgBMu0KChJCcmlkZ2VDb250cmFjdEltcGwS", + "XwoUU2V0UmVjZWlwdERhaWx5TGltaXQSLS5CcmlkZ2VDb250cmFjdEltcGwu", + "U2V0UmVjZWlwdERhaWx5TGltaXRJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5F", + "bXB0eSIAElkKEVNldFN3YXBEYWlseUxpbWl0EiouQnJpZGdlQ29udHJhY3RJ", + "bXBsLlNldFN3YXBEYWlseUxpbWl0SW5wdXQaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiABJnChhDb25maWdSZWNlaXB0VG9rZW5CdWNrZXQSMS5CcmlkZ2VD", + "b250cmFjdEltcGwuQ29uZmlnUmVjZWlwdFRva2VuQnVja2V0SW5wdXQaFi5n", + "b29nbGUucHJvdG9idWYuRW1wdHkiABJhChVDb25maWdTd2FwVG9rZW5CdWNr", + "ZXQSLi5CcmlkZ2VDb250cmFjdEltcGwuQ29uZmlnU3dhcFRva2VuQnVja2V0", + "SW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJRChhTZXREYWlseUxp", + "bWl0UmVmcmVzaFRpbWUSGy5nb29nbGUucHJvdG9idWYuSW50NjRWYWx1ZRoW", + "Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEnUKFEdldFJlY2VpcHREYWlseUxp", + "bWl0Ei0uQnJpZGdlQ29udHJhY3RJbXBsLkdldFJlY2VpcHREYWlseUxpbWl0", + "SW5wdXQaJy5CcmlkZ2VDb250cmFjdEltcGwuRGFpbHlMaW1pdFRva2VuSW5m", + "byIFiIn3AQESTwoRR2V0U3dhcERhaWx5TGltaXQSCi5hZWxmLkhhc2gaJy5C", + "cmlkZ2VDb250cmFjdEltcGwuRGFpbHlMaW1pdFRva2VuSW5mbyIFiIn3AQES", + "VgoYR2V0RGFpbHlMaW1pdFJlZnJlc2hUaW1lEhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5GhsuZ29vZ2xlLnByb3RvYnVmLkludDY0VmFsdWUiBYiJ9wEBEocB", + "CiFHZXRDdXJyZW50UmVjZWlwdFRva2VuQnVja2V0U3RhdGUSOi5CcmlkZ2VD", + "b250cmFjdEltcGwuR2V0Q3VycmVudFJlY2VpcHRUb2tlbkJ1Y2tldFN0YXRl", + "SW5wdXQaHy5CcmlkZ2VDb250cmFjdEltcGwuVG9rZW5CdWNrZXQiBYiJ9wEB", + "En0KHkdldFJlY2VpcHRNaW5XYWl0VGltZUluU2Vjb25kcxI3LkJyaWRnZUNv", + "bnRyYWN0SW1wbC5HZXRSZWNlaXB0TWluV2FpdFRpbWVJblNlY29uZHNJbnB1", + "dBobLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlIgWIifcBARJUCh5HZXRD", + "dXJyZW50U3dhcFRva2VuQnVja2V0U3RhdGUSCi5hZWxmLkhhc2gaHy5Ccmlk", + "Z2VDb250cmFjdEltcGwuVG9rZW5CdWNrZXQiBYiJ9wEBEncKG0dldFN3YXBN", + "aW5XYWl0VGltZUluU2Vjb25kcxI0LkJyaWRnZUNvbnRyYWN0SW1wbC5HZXRT", + "d2FwTWluV2FpdFRpbWVJblNlY29uZHNJbnB1dBobLmdvb2dsZS5wcm90b2J1", + "Zi5JbnQ2NFZhbHVlIgWIifcBARqDAbLM9gEsRUJyaWRnZS5Db250cmFjdHMu", + "QnJpZGdlLkJyaWRnZUNvbnRyYWN0U3RhdGXKyvYBC2FjczEyLnByb3Rvysr2", + "AQthY3MxMy5wcm90b8rK9gETcmVjZWlwdF9tYWtlci5wcm90b8rK9gEVYnJp", + "ZGdlX2NvbnRyYWN0LnByb3RvQhuqAhhFQnJpZGdlLkNvbnRyYWN0cy5Ccmlk", + "Z2ViBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Standards.ACS12.Acs12Reflection.Descriptor, global::AElf.Standards.ACS13.Acs13Reflection.Descriptor, global::EBridge.Contracts.Bridge.BridgeContractReflection.Descriptor, global::EBridge.Contracts.ReceiptMakerContract.ReceiptMakerReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.DailyLimitTokenInfo), global::EBridge.Contracts.Bridge.DailyLimitTokenInfo.Parser, new[]{ "TokenAmount", "RefreshTime", "DefaultTokenAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.TokenBucket), global::EBridge.Contracts.Bridge.TokenBucket.Parser, new[]{ "CurrentTokenAmount", "LastUpdatedTime", "TokenCapacity", "Rate", "IsEnable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SetReceiptDailyLimitInput), global::EBridge.Contracts.Bridge.SetReceiptDailyLimitInput.Parser, new[]{ "ReceiptDailyLimitInfos" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptDailyLimitInfo), global::EBridge.Contracts.Bridge.ReceiptDailyLimitInfo.Parser, new[]{ "Symbol", "TargetChain", "StartTime", "DefaultTokenAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetReceiptDailyLimitInput), global::EBridge.Contracts.Bridge.GetReceiptDailyLimitInput.Parser, new[]{ "Symbol", "TargetChain" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SetSwapDailyLimitInput), global::EBridge.Contracts.Bridge.SetSwapDailyLimitInput.Parser, new[]{ "SwapDailyLimitInfos" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapDailyLimitInfo), global::EBridge.Contracts.Bridge.SwapDailyLimitInfo.Parser, new[]{ "SwapId", "StartTime", "DefaultTokenAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ConfigReceiptTokenBucketInput), global::EBridge.Contracts.Bridge.ConfigReceiptTokenBucketInput.Parser, new[]{ "ReceiptTokenBucketConfigs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptTokenBucketConfig), global::EBridge.Contracts.Bridge.ReceiptTokenBucketConfig.Parser, new[]{ "Symbol", "TargetChain", "IsEnable", "TokenCapacity", "Rate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetCurrentReceiptTokenBucketStateInput), global::EBridge.Contracts.Bridge.GetCurrentReceiptTokenBucketStateInput.Parser, new[]{ "Symbol", "TargetChain" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetReceiptMinWaitTimeInSecondsInput), global::EBridge.Contracts.Bridge.GetReceiptMinWaitTimeInSecondsInput.Parser, new[]{ "Symbol", "TargetChain", "TokenAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ConfigSwapTokenBucketInput), global::EBridge.Contracts.Bridge.ConfigSwapTokenBucketInput.Parser, new[]{ "SwapTokenBucketConfigs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapTokenBucketConfig), global::EBridge.Contracts.Bridge.SwapTokenBucketConfig.Parser, new[]{ "SwapId", "IsEnable", "TokenCapacity", "Rate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.GetSwapMinWaitTimeInSecondsInput), global::EBridge.Contracts.Bridge.GetSwapMinWaitTimeInSecondsInput.Parser, new[]{ "SwapId", "TokenAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptDailyLimitSet), global::EBridge.Contracts.Bridge.ReceiptDailyLimitSet.Parser, new[]{ "Symbol", "TargetChainId", "ReceiptDailyLimit", "ReceiptRefreshTime", "CurrentReceiptDailyLimit" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapDailyLimitSet), global::EBridge.Contracts.Bridge.SwapDailyLimitSet.Parser, new[]{ "Symbol", "FromChainId", "SwapDailyLimit", "SwapRefreshTime", "CurrentSwapDailyLimit" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptTokenBucketSet), global::EBridge.Contracts.Bridge.ReceiptTokenBucketSet.Parser, new[]{ "Symbol", "TargetChainId", "ReceiptCapacity", "ReceiptRefillRate", "ReceiptBucketIsEnable", "ReceiptBucketUpdateTime", "CurrentReceiptBucketTokenAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapTokenBucketSet), global::EBridge.Contracts.Bridge.SwapTokenBucketSet.Parser, new[]{ "Symbol", "FromChainId", "SwapCapacity", "SwapRefillRate", "SwapBucketIsEnable", "SwapBucketUpdateTime", "CurrentSwapBucketTokenAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.ReceiptLimitChanged), global::EBridge.Contracts.Bridge.ReceiptLimitChanged.Parser, new[]{ "Symbol", "TargetChainId", "CurrentReceiptDailyLimitAmount", "ReceiptDailyLimitRefreshTime", "CurrentReceiptBucketTokenAmount", "ReceiptBucketUpdateTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.Bridge.SwapLimitChanged), global::EBridge.Contracts.Bridge.SwapLimitChanged.Parser, new[]{ "Symbol", "FromChainId", "CurrentSwapDailyLimitAmount", "SwapDailyLimitRefreshTime", "CurrentSwapBucketTokenAmount", "SwapBucketUpdateTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Data struct + /// + public sealed partial class DailyLimitTokenInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyLimitTokenInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 DailyLimitTokenInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyLimitTokenInfo(DailyLimitTokenInfo other) : this() { + tokenAmount_ = other.tokenAmount_; + refreshTime_ = other.refreshTime_ != null ? other.refreshTime_.Clone() : null; + defaultTokenAmount_ = other.defaultTokenAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyLimitTokenInfo Clone() { + return new DailyLimitTokenInfo(this); + } + + /// Field number for the "token_amount" field. + public const int TokenAmountFieldNumber = 1; + private long tokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TokenAmount { + get { return tokenAmount_; } + set { + tokenAmount_ = value; + } + } + + /// Field number for the "refresh_time" field. + public const int RefreshTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp refreshTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RefreshTime { + get { return refreshTime_; } + set { + refreshTime_ = value; + } + } + + /// Field number for the "default_token_amount" field. + public const int DefaultTokenAmountFieldNumber = 3; + private long defaultTokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DefaultTokenAmount { + get { return defaultTokenAmount_; } + set { + defaultTokenAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyLimitTokenInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyLimitTokenInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TokenAmount != other.TokenAmount) return false; + if (!object.Equals(RefreshTime, other.RefreshTime)) return false; + if (DefaultTokenAmount != other.DefaultTokenAmount) return 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 (TokenAmount != 0L) hash ^= TokenAmount.GetHashCode(); + if (refreshTime_ != null) hash ^= RefreshTime.GetHashCode(); + if (DefaultTokenAmount != 0L) hash ^= DefaultTokenAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TokenAmount != 0L) { + output.WriteRawTag(8); + output.WriteInt64(TokenAmount); + } + if (refreshTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RefreshTime); + } + if (DefaultTokenAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DefaultTokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TokenAmount != 0L) { + output.WriteRawTag(8); + output.WriteInt64(TokenAmount); + } + if (refreshTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RefreshTime); + } + if (DefaultTokenAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DefaultTokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TokenAmount); + } + if (refreshTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RefreshTime); + } + if (DefaultTokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DefaultTokenAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyLimitTokenInfo other) { + if (other == null) { + return; + } + if (other.TokenAmount != 0L) { + TokenAmount = other.TokenAmount; + } + if (other.refreshTime_ != null) { + if (refreshTime_ == null) { + RefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RefreshTime.MergeFrom(other.RefreshTime); + } + if (other.DefaultTokenAmount != 0L) { + DefaultTokenAmount = other.DefaultTokenAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TokenAmount = input.ReadInt64(); + break; + } + case 18: { + if (refreshTime_ == null) { + RefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RefreshTime); + break; + } + case 24: { + DefaultTokenAmount = 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 8: { + TokenAmount = input.ReadInt64(); + break; + } + case 18: { + if (refreshTime_ == null) { + RefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RefreshTime); + break; + } + case 24: { + DefaultTokenAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TokenBucket : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenBucket()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 TokenBucket() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenBucket(TokenBucket other) : this() { + currentTokenAmount_ = other.currentTokenAmount_; + lastUpdatedTime_ = other.lastUpdatedTime_ != null ? other.lastUpdatedTime_.Clone() : null; + tokenCapacity_ = other.tokenCapacity_; + rate_ = other.rate_; + isEnable_ = other.isEnable_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenBucket Clone() { + return new TokenBucket(this); + } + + /// Field number for the "current_token_amount" field. + public const int CurrentTokenAmountFieldNumber = 1; + private long currentTokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CurrentTokenAmount { + get { return currentTokenAmount_; } + set { + currentTokenAmount_ = value; + } + } + + /// Field number for the "last_updated_time" field. + public const int LastUpdatedTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastUpdatedTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastUpdatedTime { + get { return lastUpdatedTime_; } + set { + lastUpdatedTime_ = value; + } + } + + /// Field number for the "token_capacity" field. + public const int TokenCapacityFieldNumber = 3; + private long tokenCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TokenCapacity { + get { return tokenCapacity_; } + set { + tokenCapacity_ = value; + } + } + + /// Field number for the "rate" field. + public const int RateFieldNumber = 4; + private long rate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Rate { + get { return rate_; } + set { + rate_ = value; + } + } + + /// Field number for the "isEnable" field. + public const int IsEnableFieldNumber = 5; + private bool isEnable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsEnable { + get { return isEnable_; } + set { + isEnable_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TokenBucket); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenBucket other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CurrentTokenAmount != other.CurrentTokenAmount) return false; + if (!object.Equals(LastUpdatedTime, other.LastUpdatedTime)) return false; + if (TokenCapacity != other.TokenCapacity) return false; + if (Rate != other.Rate) return false; + if (IsEnable != other.IsEnable) return 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 (CurrentTokenAmount != 0L) hash ^= CurrentTokenAmount.GetHashCode(); + if (lastUpdatedTime_ != null) hash ^= LastUpdatedTime.GetHashCode(); + if (TokenCapacity != 0L) hash ^= TokenCapacity.GetHashCode(); + if (Rate != 0L) hash ^= Rate.GetHashCode(); + if (IsEnable != false) hash ^= IsEnable.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (CurrentTokenAmount != 0L) { + output.WriteRawTag(8); + output.WriteInt64(CurrentTokenAmount); + } + if (lastUpdatedTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LastUpdatedTime); + } + if (TokenCapacity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TokenCapacity); + } + if (Rate != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Rate); + } + if (IsEnable != false) { + output.WriteRawTag(40); + output.WriteBool(IsEnable); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CurrentTokenAmount != 0L) { + output.WriteRawTag(8); + output.WriteInt64(CurrentTokenAmount); + } + if (lastUpdatedTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LastUpdatedTime); + } + if (TokenCapacity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TokenCapacity); + } + if (Rate != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Rate); + } + if (IsEnable != false) { + output.WriteRawTag(40); + output.WriteBool(IsEnable); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CurrentTokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentTokenAmount); + } + if (lastUpdatedTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastUpdatedTime); + } + if (TokenCapacity != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TokenCapacity); + } + if (Rate != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Rate); + } + if (IsEnable != 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(TokenBucket other) { + if (other == null) { + return; + } + if (other.CurrentTokenAmount != 0L) { + CurrentTokenAmount = other.CurrentTokenAmount; + } + if (other.lastUpdatedTime_ != null) { + if (lastUpdatedTime_ == null) { + LastUpdatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastUpdatedTime.MergeFrom(other.LastUpdatedTime); + } + if (other.TokenCapacity != 0L) { + TokenCapacity = other.TokenCapacity; + } + if (other.Rate != 0L) { + Rate = other.Rate; + } + if (other.IsEnable != false) { + IsEnable = other.IsEnable; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + CurrentTokenAmount = input.ReadInt64(); + break; + } + case 18: { + if (lastUpdatedTime_ == null) { + LastUpdatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastUpdatedTime); + break; + } + case 24: { + TokenCapacity = input.ReadInt64(); + break; + } + case 32: { + Rate = input.ReadInt64(); + break; + } + case 40: { + IsEnable = 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: { + CurrentTokenAmount = input.ReadInt64(); + break; + } + case 18: { + if (lastUpdatedTime_ == null) { + LastUpdatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastUpdatedTime); + break; + } + case 24: { + TokenCapacity = input.ReadInt64(); + break; + } + case 32: { + Rate = input.ReadInt64(); + break; + } + case 40: { + IsEnable = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Input + /// + public sealed partial class SetReceiptDailyLimitInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetReceiptDailyLimitInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 SetReceiptDailyLimitInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetReceiptDailyLimitInput(SetReceiptDailyLimitInput other) : this() { + receiptDailyLimitInfos_ = other.receiptDailyLimitInfos_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetReceiptDailyLimitInput Clone() { + return new SetReceiptDailyLimitInput(this); + } + + /// Field number for the "receipt_daily_limit_infos" field. + public const int ReceiptDailyLimitInfosFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_receiptDailyLimitInfos_codec + = pb::FieldCodec.ForMessage(10, global::EBridge.Contracts.Bridge.ReceiptDailyLimitInfo.Parser); + private readonly pbc::RepeatedField receiptDailyLimitInfos_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ReceiptDailyLimitInfos { + get { return receiptDailyLimitInfos_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetReceiptDailyLimitInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetReceiptDailyLimitInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!receiptDailyLimitInfos_.Equals(other.receiptDailyLimitInfos_)) return 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 ^= receiptDailyLimitInfos_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + receiptDailyLimitInfos_.WriteTo(output, _repeated_receiptDailyLimitInfos_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) { + receiptDailyLimitInfos_.WriteTo(ref output, _repeated_receiptDailyLimitInfos_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 += receiptDailyLimitInfos_.CalculateSize(_repeated_receiptDailyLimitInfos_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetReceiptDailyLimitInput other) { + if (other == null) { + return; + } + receiptDailyLimitInfos_.Add(other.receiptDailyLimitInfos_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + receiptDailyLimitInfos_.AddEntriesFrom(input, _repeated_receiptDailyLimitInfos_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: { + receiptDailyLimitInfos_.AddEntriesFrom(ref input, _repeated_receiptDailyLimitInfos_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReceiptDailyLimitInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptDailyLimitInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 ReceiptDailyLimitInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptDailyLimitInfo(ReceiptDailyLimitInfo other) : this() { + symbol_ = other.symbol_; + targetChain_ = other.targetChain_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + defaultTokenAmount_ = other.defaultTokenAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptDailyLimitInfo Clone() { + return new ReceiptDailyLimitInfo(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 "target_chain" field. + public const int TargetChainFieldNumber = 2; + private string targetChain_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChain { + get { return targetChain_; } + set { + targetChain_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "default_token_amount" field. + public const int DefaultTokenAmountFieldNumber = 4; + private long defaultTokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DefaultTokenAmount { + get { return defaultTokenAmount_; } + set { + defaultTokenAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReceiptDailyLimitInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptDailyLimitInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TargetChain != other.TargetChain) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (DefaultTokenAmount != other.DefaultTokenAmount) return 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 (TargetChain.Length != 0) hash ^= TargetChain.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (DefaultTokenAmount != 0L) hash ^= DefaultTokenAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (DefaultTokenAmount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(DefaultTokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (DefaultTokenAmount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(DefaultTokenAmount); + } + if (_unknownFields != 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 (TargetChain.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChain); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (DefaultTokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DefaultTokenAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReceiptDailyLimitInfo other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TargetChain.Length != 0) { + TargetChain = other.TargetChain; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.DefaultTokenAmount != 0L) { + DefaultTokenAmount = other.DefaultTokenAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetChain = input.ReadString(); + break; + } + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 32: { + DefaultTokenAmount = 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: { + TargetChain = input.ReadString(); + break; + } + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 32: { + DefaultTokenAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetReceiptDailyLimitInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetReceiptDailyLimitInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 GetReceiptDailyLimitInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptDailyLimitInput(GetReceiptDailyLimitInput other) : this() { + symbol_ = other.symbol_; + targetChain_ = other.targetChain_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptDailyLimitInput Clone() { + return new GetReceiptDailyLimitInput(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 "target_chain" field. + public const int TargetChainFieldNumber = 2; + private string targetChain_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChain { + get { return targetChain_; } + set { + targetChain_ = 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 GetReceiptDailyLimitInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetReceiptDailyLimitInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TargetChain != other.TargetChain) return 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 (TargetChain.Length != 0) hash ^= TargetChain.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (_unknownFields != 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 (TargetChain.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChain); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetReceiptDailyLimitInput other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TargetChain.Length != 0) { + TargetChain = other.TargetChain; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetChain = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TargetChain = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetSwapDailyLimitInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSwapDailyLimitInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 SetSwapDailyLimitInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSwapDailyLimitInput(SetSwapDailyLimitInput other) : this() { + swapDailyLimitInfos_ = other.swapDailyLimitInfos_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSwapDailyLimitInput Clone() { + return new SetSwapDailyLimitInput(this); + } + + /// Field number for the "swap_daily_limit_infos" field. + public const int SwapDailyLimitInfosFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_swapDailyLimitInfos_codec + = pb::FieldCodec.ForMessage(10, global::EBridge.Contracts.Bridge.SwapDailyLimitInfo.Parser); + private readonly pbc::RepeatedField swapDailyLimitInfos_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SwapDailyLimitInfos { + get { return swapDailyLimitInfos_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetSwapDailyLimitInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetSwapDailyLimitInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!swapDailyLimitInfos_.Equals(other.swapDailyLimitInfos_)) return 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 ^= swapDailyLimitInfos_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + swapDailyLimitInfos_.WriteTo(output, _repeated_swapDailyLimitInfos_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) { + swapDailyLimitInfos_.WriteTo(ref output, _repeated_swapDailyLimitInfos_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 += swapDailyLimitInfos_.CalculateSize(_repeated_swapDailyLimitInfos_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetSwapDailyLimitInput other) { + if (other == null) { + return; + } + swapDailyLimitInfos_.Add(other.swapDailyLimitInfos_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + swapDailyLimitInfos_.AddEntriesFrom(input, _repeated_swapDailyLimitInfos_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: { + swapDailyLimitInfos_.AddEntriesFrom(ref input, _repeated_swapDailyLimitInfos_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapDailyLimitInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapDailyLimitInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 SwapDailyLimitInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapDailyLimitInfo(SwapDailyLimitInfo other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + defaultTokenAmount_ = other.defaultTokenAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapDailyLimitInfo Clone() { + return new SwapDailyLimitInfo(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "default_token_amount" field. + public const int DefaultTokenAmountFieldNumber = 3; + private long defaultTokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DefaultTokenAmount { + get { return defaultTokenAmount_; } + set { + defaultTokenAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapDailyLimitInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapDailyLimitInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (DefaultTokenAmount != other.DefaultTokenAmount) return 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (DefaultTokenAmount != 0L) hash ^= DefaultTokenAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (DefaultTokenAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DefaultTokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (DefaultTokenAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DefaultTokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (DefaultTokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DefaultTokenAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapDailyLimitInfo other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.DefaultTokenAmount != 0L) { + DefaultTokenAmount = other.DefaultTokenAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 24: { + DefaultTokenAmount = 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 24: { + DefaultTokenAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConfigReceiptTokenBucketInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigReceiptTokenBucketInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 ConfigReceiptTokenBucketInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigReceiptTokenBucketInput(ConfigReceiptTokenBucketInput other) : this() { + receiptTokenBucketConfigs_ = other.receiptTokenBucketConfigs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigReceiptTokenBucketInput Clone() { + return new ConfigReceiptTokenBucketInput(this); + } + + /// Field number for the "receipt_token_bucket_configs" field. + public const int ReceiptTokenBucketConfigsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_receiptTokenBucketConfigs_codec + = pb::FieldCodec.ForMessage(10, global::EBridge.Contracts.Bridge.ReceiptTokenBucketConfig.Parser); + private readonly pbc::RepeatedField receiptTokenBucketConfigs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ReceiptTokenBucketConfigs { + get { return receiptTokenBucketConfigs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConfigReceiptTokenBucketInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConfigReceiptTokenBucketInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!receiptTokenBucketConfigs_.Equals(other.receiptTokenBucketConfigs_)) return 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 ^= receiptTokenBucketConfigs_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + receiptTokenBucketConfigs_.WriteTo(output, _repeated_receiptTokenBucketConfigs_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) { + receiptTokenBucketConfigs_.WriteTo(ref output, _repeated_receiptTokenBucketConfigs_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 += receiptTokenBucketConfigs_.CalculateSize(_repeated_receiptTokenBucketConfigs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConfigReceiptTokenBucketInput other) { + if (other == null) { + return; + } + receiptTokenBucketConfigs_.Add(other.receiptTokenBucketConfigs_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + receiptTokenBucketConfigs_.AddEntriesFrom(input, _repeated_receiptTokenBucketConfigs_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: { + receiptTokenBucketConfigs_.AddEntriesFrom(ref input, _repeated_receiptTokenBucketConfigs_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReceiptTokenBucketConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptTokenBucketConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 ReceiptTokenBucketConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptTokenBucketConfig(ReceiptTokenBucketConfig other) : this() { + symbol_ = other.symbol_; + targetChain_ = other.targetChain_; + isEnable_ = other.isEnable_; + tokenCapacity_ = other.tokenCapacity_; + rate_ = other.rate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptTokenBucketConfig Clone() { + return new ReceiptTokenBucketConfig(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 "target_chain" field. + public const int TargetChainFieldNumber = 2; + private string targetChain_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChain { + get { return targetChain_; } + set { + targetChain_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "isEnable" field. + public const int IsEnableFieldNumber = 3; + private bool isEnable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsEnable { + get { return isEnable_; } + set { + isEnable_ = value; + } + } + + /// Field number for the "token_capacity" field. + public const int TokenCapacityFieldNumber = 4; + private long tokenCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TokenCapacity { + get { return tokenCapacity_; } + set { + tokenCapacity_ = value; + } + } + + /// Field number for the "rate" field. + public const int RateFieldNumber = 5; + private long rate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Rate { + get { return rate_; } + set { + rate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReceiptTokenBucketConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptTokenBucketConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TargetChain != other.TargetChain) return false; + if (IsEnable != other.IsEnable) return false; + if (TokenCapacity != other.TokenCapacity) return false; + if (Rate != other.Rate) return 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 (TargetChain.Length != 0) hash ^= TargetChain.GetHashCode(); + if (IsEnable != false) hash ^= IsEnable.GetHashCode(); + if (TokenCapacity != 0L) hash ^= TokenCapacity.GetHashCode(); + if (Rate != 0L) hash ^= Rate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (IsEnable != false) { + output.WriteRawTag(24); + output.WriteBool(IsEnable); + } + if (TokenCapacity != 0L) { + output.WriteRawTag(32); + output.WriteInt64(TokenCapacity); + } + if (Rate != 0L) { + output.WriteRawTag(40); + output.WriteInt64(Rate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (IsEnable != false) { + output.WriteRawTag(24); + output.WriteBool(IsEnable); + } + if (TokenCapacity != 0L) { + output.WriteRawTag(32); + output.WriteInt64(TokenCapacity); + } + if (Rate != 0L) { + output.WriteRawTag(40); + output.WriteInt64(Rate); + } + if (_unknownFields != 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 (TargetChain.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChain); + } + if (IsEnable != false) { + size += 1 + 1; + } + if (TokenCapacity != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TokenCapacity); + } + if (Rate != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Rate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReceiptTokenBucketConfig other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TargetChain.Length != 0) { + TargetChain = other.TargetChain; + } + if (other.IsEnable != false) { + IsEnable = other.IsEnable; + } + if (other.TokenCapacity != 0L) { + TokenCapacity = other.TokenCapacity; + } + if (other.Rate != 0L) { + Rate = other.Rate; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetChain = input.ReadString(); + break; + } + case 24: { + IsEnable = input.ReadBool(); + break; + } + case 32: { + TokenCapacity = input.ReadInt64(); + break; + } + case 40: { + Rate = 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: { + TargetChain = input.ReadString(); + break; + } + case 24: { + IsEnable = input.ReadBool(); + break; + } + case 32: { + TokenCapacity = input.ReadInt64(); + break; + } + case 40: { + Rate = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetCurrentReceiptTokenBucketStateInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCurrentReceiptTokenBucketStateInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 GetCurrentReceiptTokenBucketStateInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurrentReceiptTokenBucketStateInput(GetCurrentReceiptTokenBucketStateInput other) : this() { + symbol_ = other.symbol_; + targetChain_ = other.targetChain_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurrentReceiptTokenBucketStateInput Clone() { + return new GetCurrentReceiptTokenBucketStateInput(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 "target_chain" field. + public const int TargetChainFieldNumber = 2; + private string targetChain_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChain { + get { return targetChain_; } + set { + targetChain_ = 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 GetCurrentReceiptTokenBucketStateInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetCurrentReceiptTokenBucketStateInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TargetChain != other.TargetChain) return 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 (TargetChain.Length != 0) hash ^= TargetChain.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (_unknownFields != 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 (TargetChain.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChain); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetCurrentReceiptTokenBucketStateInput other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TargetChain.Length != 0) { + TargetChain = other.TargetChain; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetChain = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TargetChain = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetReceiptMinWaitTimeInSecondsInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetReceiptMinWaitTimeInSecondsInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 GetReceiptMinWaitTimeInSecondsInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptMinWaitTimeInSecondsInput(GetReceiptMinWaitTimeInSecondsInput other) : this() { + symbol_ = other.symbol_; + targetChain_ = other.targetChain_; + tokenAmount_ = other.tokenAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptMinWaitTimeInSecondsInput Clone() { + return new GetReceiptMinWaitTimeInSecondsInput(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 "target_chain" field. + public const int TargetChainFieldNumber = 2; + private string targetChain_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChain { + get { return targetChain_; } + set { + targetChain_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token_amount" field. + public const int TokenAmountFieldNumber = 3; + private long tokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TokenAmount { + get { return tokenAmount_; } + set { + tokenAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetReceiptMinWaitTimeInSecondsInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetReceiptMinWaitTimeInSecondsInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TargetChain != other.TargetChain) return false; + if (TokenAmount != other.TokenAmount) return 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 (TargetChain.Length != 0) hash ^= TargetChain.GetHashCode(); + if (TokenAmount != 0L) hash ^= TokenAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (TokenAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (TargetChain.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChain); + } + if (TokenAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TokenAmount); + } + if (_unknownFields != 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 (TargetChain.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChain); + } + if (TokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TokenAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetReceiptMinWaitTimeInSecondsInput other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TargetChain.Length != 0) { + TargetChain = other.TargetChain; + } + if (other.TokenAmount != 0L) { + TokenAmount = other.TokenAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetChain = input.ReadString(); + break; + } + case 24: { + TokenAmount = 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: { + TargetChain = input.ReadString(); + break; + } + case 24: { + TokenAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConfigSwapTokenBucketInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigSwapTokenBucketInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 ConfigSwapTokenBucketInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigSwapTokenBucketInput(ConfigSwapTokenBucketInput other) : this() { + swapTokenBucketConfigs_ = other.swapTokenBucketConfigs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigSwapTokenBucketInput Clone() { + return new ConfigSwapTokenBucketInput(this); + } + + /// Field number for the "swap_token_bucket_configs" field. + public const int SwapTokenBucketConfigsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_swapTokenBucketConfigs_codec + = pb::FieldCodec.ForMessage(10, global::EBridge.Contracts.Bridge.SwapTokenBucketConfig.Parser); + private readonly pbc::RepeatedField swapTokenBucketConfigs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SwapTokenBucketConfigs { + get { return swapTokenBucketConfigs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConfigSwapTokenBucketInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConfigSwapTokenBucketInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!swapTokenBucketConfigs_.Equals(other.swapTokenBucketConfigs_)) return 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 ^= swapTokenBucketConfigs_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + swapTokenBucketConfigs_.WriteTo(output, _repeated_swapTokenBucketConfigs_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) { + swapTokenBucketConfigs_.WriteTo(ref output, _repeated_swapTokenBucketConfigs_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 += swapTokenBucketConfigs_.CalculateSize(_repeated_swapTokenBucketConfigs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConfigSwapTokenBucketInput other) { + if (other == null) { + return; + } + swapTokenBucketConfigs_.Add(other.swapTokenBucketConfigs_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + swapTokenBucketConfigs_.AddEntriesFrom(input, _repeated_swapTokenBucketConfigs_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: { + swapTokenBucketConfigs_.AddEntriesFrom(ref input, _repeated_swapTokenBucketConfigs_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapTokenBucketConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapTokenBucketConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 SwapTokenBucketConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapTokenBucketConfig(SwapTokenBucketConfig other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + isEnable_ = other.isEnable_; + tokenCapacity_ = other.tokenCapacity_; + rate_ = other.rate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapTokenBucketConfig Clone() { + return new SwapTokenBucketConfig(this); + } + + /// Field number for the "swap_id" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "isEnable" field. + public const int IsEnableFieldNumber = 2; + private bool isEnable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsEnable { + get { return isEnable_; } + set { + isEnable_ = value; + } + } + + /// Field number for the "token_capacity" field. + public const int TokenCapacityFieldNumber = 3; + private long tokenCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TokenCapacity { + get { return tokenCapacity_; } + set { + tokenCapacity_ = value; + } + } + + /// Field number for the "rate" field. + public const int RateFieldNumber = 4; + private long rate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Rate { + get { return rate_; } + set { + rate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapTokenBucketConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapTokenBucketConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (IsEnable != other.IsEnable) return false; + if (TokenCapacity != other.TokenCapacity) return false; + if (Rate != other.Rate) return 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (IsEnable != false) hash ^= IsEnable.GetHashCode(); + if (TokenCapacity != 0L) hash ^= TokenCapacity.GetHashCode(); + if (Rate != 0L) hash ^= Rate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (IsEnable != false) { + output.WriteRawTag(16); + output.WriteBool(IsEnable); + } + if (TokenCapacity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TokenCapacity); + } + if (Rate != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Rate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (IsEnable != false) { + output.WriteRawTag(16); + output.WriteBool(IsEnable); + } + if (TokenCapacity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TokenCapacity); + } + if (Rate != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Rate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (IsEnable != false) { + size += 1 + 1; + } + if (TokenCapacity != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TokenCapacity); + } + if (Rate != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Rate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapTokenBucketConfig other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.IsEnable != false) { + IsEnable = other.IsEnable; + } + if (other.TokenCapacity != 0L) { + TokenCapacity = other.TokenCapacity; + } + if (other.Rate != 0L) { + Rate = other.Rate; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 16: { + IsEnable = input.ReadBool(); + break; + } + case 24: { + TokenCapacity = input.ReadInt64(); + break; + } + case 32: { + Rate = 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 16: { + IsEnable = input.ReadBool(); + break; + } + case 24: { + TokenCapacity = input.ReadInt64(); + break; + } + case 32: { + Rate = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetSwapMinWaitTimeInSecondsInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSwapMinWaitTimeInSecondsInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 GetSwapMinWaitTimeInSecondsInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwapMinWaitTimeInSecondsInput(GetSwapMinWaitTimeInSecondsInput other) : this() { + swapId_ = other.swapId_ != null ? other.swapId_.Clone() : null; + tokenAmount_ = other.tokenAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSwapMinWaitTimeInSecondsInput Clone() { + return new GetSwapMinWaitTimeInSecondsInput(this); + } + + /// Field number for the "swapId" field. + public const int SwapIdFieldNumber = 1; + private global::AElf.Types.Hash swapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SwapId { + get { return swapId_; } + set { + swapId_ = value; + } + } + + /// Field number for the "token_amount" field. + public const int TokenAmountFieldNumber = 2; + private long tokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TokenAmount { + get { return tokenAmount_; } + set { + tokenAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSwapMinWaitTimeInSecondsInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSwapMinWaitTimeInSecondsInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SwapId, other.SwapId)) return false; + if (TokenAmount != other.TokenAmount) return 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 (swapId_ != null) hash ^= SwapId.GetHashCode(); + if (TokenAmount != 0L) hash ^= TokenAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (TokenAmount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(TokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (swapId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SwapId); + } + if (TokenAmount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(TokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (swapId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapId); + } + if (TokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TokenAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSwapMinWaitTimeInSecondsInput other) { + if (other == null) { + return; + } + if (other.swapId_ != null) { + if (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + SwapId.MergeFrom(other.SwapId); + } + if (other.TokenAmount != 0L) { + TokenAmount = other.TokenAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 16: { + TokenAmount = 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 (swapId_ == null) { + SwapId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SwapId); + break; + } + case 16: { + TokenAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReceiptDailyLimitSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptDailyLimitSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 ReceiptDailyLimitSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptDailyLimitSet(ReceiptDailyLimitSet other) : this() { + symbol_ = other.symbol_; + targetChainId_ = other.targetChainId_; + receiptDailyLimit_ = other.receiptDailyLimit_; + receiptRefreshTime_ = other.receiptRefreshTime_ != null ? other.receiptRefreshTime_.Clone() : null; + currentReceiptDailyLimit_ = other.currentReceiptDailyLimit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptDailyLimitSet Clone() { + return new ReceiptDailyLimitSet(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 "target_chain_id" field. + public const int TargetChainIdFieldNumber = 2; + private string targetChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChainId { + get { return targetChainId_; } + set { + targetChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "receipt_daily_limit" field. + public const int ReceiptDailyLimitFieldNumber = 3; + private long receiptDailyLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ReceiptDailyLimit { + get { return receiptDailyLimit_; } + set { + receiptDailyLimit_ = value; + } + } + + /// Field number for the "receipt_refresh_time" field. + public const int ReceiptRefreshTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp receiptRefreshTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ReceiptRefreshTime { + get { return receiptRefreshTime_; } + set { + receiptRefreshTime_ = value; + } + } + + /// Field number for the "current_receipt_daily_limit" field. + public const int CurrentReceiptDailyLimitFieldNumber = 5; + private long currentReceiptDailyLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CurrentReceiptDailyLimit { + get { return currentReceiptDailyLimit_; } + set { + currentReceiptDailyLimit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReceiptDailyLimitSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptDailyLimitSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TargetChainId != other.TargetChainId) return false; + if (ReceiptDailyLimit != other.ReceiptDailyLimit) return false; + if (!object.Equals(ReceiptRefreshTime, other.ReceiptRefreshTime)) return false; + if (CurrentReceiptDailyLimit != other.CurrentReceiptDailyLimit) return 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 (TargetChainId.Length != 0) hash ^= TargetChainId.GetHashCode(); + if (ReceiptDailyLimit != 0L) hash ^= ReceiptDailyLimit.GetHashCode(); + if (receiptRefreshTime_ != null) hash ^= ReceiptRefreshTime.GetHashCode(); + if (CurrentReceiptDailyLimit != 0L) hash ^= CurrentReceiptDailyLimit.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChainId); + } + if (ReceiptDailyLimit != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ReceiptDailyLimit); + } + if (receiptRefreshTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReceiptRefreshTime); + } + if (CurrentReceiptDailyLimit != 0L) { + output.WriteRawTag(40); + output.WriteInt64(CurrentReceiptDailyLimit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (TargetChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChainId); + } + if (ReceiptDailyLimit != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ReceiptDailyLimit); + } + if (receiptRefreshTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReceiptRefreshTime); + } + if (CurrentReceiptDailyLimit != 0L) { + output.WriteRawTag(40); + output.WriteInt64(CurrentReceiptDailyLimit); + } + if (_unknownFields != 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 (TargetChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChainId); + } + if (ReceiptDailyLimit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReceiptDailyLimit); + } + if (receiptRefreshTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReceiptRefreshTime); + } + if (CurrentReceiptDailyLimit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentReceiptDailyLimit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReceiptDailyLimitSet other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TargetChainId.Length != 0) { + TargetChainId = other.TargetChainId; + } + if (other.ReceiptDailyLimit != 0L) { + ReceiptDailyLimit = other.ReceiptDailyLimit; + } + if (other.receiptRefreshTime_ != null) { + if (receiptRefreshTime_ == null) { + ReceiptRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ReceiptRefreshTime.MergeFrom(other.ReceiptRefreshTime); + } + if (other.CurrentReceiptDailyLimit != 0L) { + CurrentReceiptDailyLimit = other.CurrentReceiptDailyLimit; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetChainId = input.ReadString(); + break; + } + case 24: { + ReceiptDailyLimit = input.ReadInt64(); + break; + } + case 34: { + if (receiptRefreshTime_ == null) { + ReceiptRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceiptRefreshTime); + break; + } + case 40: { + CurrentReceiptDailyLimit = 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: { + TargetChainId = input.ReadString(); + break; + } + case 24: { + ReceiptDailyLimit = input.ReadInt64(); + break; + } + case 34: { + if (receiptRefreshTime_ == null) { + ReceiptRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceiptRefreshTime); + break; + } + case 40: { + CurrentReceiptDailyLimit = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapDailyLimitSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapDailyLimitSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 SwapDailyLimitSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapDailyLimitSet(SwapDailyLimitSet other) : this() { + symbol_ = other.symbol_; + fromChainId_ = other.fromChainId_; + swapDailyLimit_ = other.swapDailyLimit_; + swapRefreshTime_ = other.swapRefreshTime_ != null ? other.swapRefreshTime_.Clone() : null; + currentSwapDailyLimit_ = other.currentSwapDailyLimit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapDailyLimitSet Clone() { + return new SwapDailyLimitSet(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 "from_chain_id" field. + public const int FromChainIdFieldNumber = 2; + private string fromChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "swap_daily_limit" field. + public const int SwapDailyLimitFieldNumber = 3; + private long swapDailyLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SwapDailyLimit { + get { return swapDailyLimit_; } + set { + swapDailyLimit_ = value; + } + } + + /// Field number for the "swap_refresh_time" field. + public const int SwapRefreshTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp swapRefreshTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp SwapRefreshTime { + get { return swapRefreshTime_; } + set { + swapRefreshTime_ = value; + } + } + + /// Field number for the "current_swap_daily_limit" field. + public const int CurrentSwapDailyLimitFieldNumber = 5; + private long currentSwapDailyLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CurrentSwapDailyLimit { + get { return currentSwapDailyLimit_; } + set { + currentSwapDailyLimit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapDailyLimitSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapDailyLimitSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (FromChainId != other.FromChainId) return false; + if (SwapDailyLimit != other.SwapDailyLimit) return false; + if (!object.Equals(SwapRefreshTime, other.SwapRefreshTime)) return false; + if (CurrentSwapDailyLimit != other.CurrentSwapDailyLimit) return 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 (FromChainId.Length != 0) hash ^= FromChainId.GetHashCode(); + if (SwapDailyLimit != 0L) hash ^= SwapDailyLimit.GetHashCode(); + if (swapRefreshTime_ != null) hash ^= SwapRefreshTime.GetHashCode(); + if (CurrentSwapDailyLimit != 0L) hash ^= CurrentSwapDailyLimit.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (FromChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FromChainId); + } + if (SwapDailyLimit != 0L) { + output.WriteRawTag(24); + output.WriteInt64(SwapDailyLimit); + } + if (swapRefreshTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SwapRefreshTime); + } + if (CurrentSwapDailyLimit != 0L) { + output.WriteRawTag(40); + output.WriteInt64(CurrentSwapDailyLimit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (FromChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FromChainId); + } + if (SwapDailyLimit != 0L) { + output.WriteRawTag(24); + output.WriteInt64(SwapDailyLimit); + } + if (swapRefreshTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SwapRefreshTime); + } + if (CurrentSwapDailyLimit != 0L) { + output.WriteRawTag(40); + output.WriteInt64(CurrentSwapDailyLimit); + } + if (_unknownFields != 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 (FromChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromChainId); + } + if (SwapDailyLimit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SwapDailyLimit); + } + if (swapRefreshTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapRefreshTime); + } + if (CurrentSwapDailyLimit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentSwapDailyLimit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapDailyLimitSet other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.FromChainId.Length != 0) { + FromChainId = other.FromChainId; + } + if (other.SwapDailyLimit != 0L) { + SwapDailyLimit = other.SwapDailyLimit; + } + if (other.swapRefreshTime_ != null) { + if (swapRefreshTime_ == null) { + SwapRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + SwapRefreshTime.MergeFrom(other.SwapRefreshTime); + } + if (other.CurrentSwapDailyLimit != 0L) { + CurrentSwapDailyLimit = other.CurrentSwapDailyLimit; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + FromChainId = input.ReadString(); + break; + } + case 24: { + SwapDailyLimit = input.ReadInt64(); + break; + } + case 34: { + if (swapRefreshTime_ == null) { + SwapRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SwapRefreshTime); + break; + } + case 40: { + CurrentSwapDailyLimit = 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: { + FromChainId = input.ReadString(); + break; + } + case 24: { + SwapDailyLimit = input.ReadInt64(); + break; + } + case 34: { + if (swapRefreshTime_ == null) { + SwapRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SwapRefreshTime); + break; + } + case 40: { + CurrentSwapDailyLimit = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReceiptTokenBucketSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptTokenBucketSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 ReceiptTokenBucketSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptTokenBucketSet(ReceiptTokenBucketSet other) : this() { + symbol_ = other.symbol_; + targetChainId_ = other.targetChainId_; + receiptCapacity_ = other.receiptCapacity_; + receiptRefillRate_ = other.receiptRefillRate_; + receiptBucketIsEnable_ = other.receiptBucketIsEnable_; + receiptBucketUpdateTime_ = other.receiptBucketUpdateTime_ != null ? other.receiptBucketUpdateTime_.Clone() : null; + currentReceiptBucketTokenAmount_ = other.currentReceiptBucketTokenAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptTokenBucketSet Clone() { + return new ReceiptTokenBucketSet(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 "target_chain_id" field. + public const int TargetChainIdFieldNumber = 2; + private string targetChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChainId { + get { return targetChainId_; } + set { + targetChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "receipt_capacity" field. + public const int ReceiptCapacityFieldNumber = 3; + private long receiptCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ReceiptCapacity { + get { return receiptCapacity_; } + set { + receiptCapacity_ = value; + } + } + + /// Field number for the "receipt_refill_rate" field. + public const int ReceiptRefillRateFieldNumber = 4; + private long receiptRefillRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ReceiptRefillRate { + get { return receiptRefillRate_; } + set { + receiptRefillRate_ = value; + } + } + + /// Field number for the "receipt_bucket_isEnable" field. + public const int ReceiptBucketIsEnableFieldNumber = 5; + private bool receiptBucketIsEnable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReceiptBucketIsEnable { + get { return receiptBucketIsEnable_; } + set { + receiptBucketIsEnable_ = value; + } + } + + /// Field number for the "receipt_bucket_update_time" field. + public const int ReceiptBucketUpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp receiptBucketUpdateTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ReceiptBucketUpdateTime { + get { return receiptBucketUpdateTime_; } + set { + receiptBucketUpdateTime_ = value; + } + } + + /// Field number for the "current_receipt_bucket_token_amount" field. + public const int CurrentReceiptBucketTokenAmountFieldNumber = 7; + private long currentReceiptBucketTokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CurrentReceiptBucketTokenAmount { + get { return currentReceiptBucketTokenAmount_; } + set { + currentReceiptBucketTokenAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReceiptTokenBucketSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptTokenBucketSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TargetChainId != other.TargetChainId) return false; + if (ReceiptCapacity != other.ReceiptCapacity) return false; + if (ReceiptRefillRate != other.ReceiptRefillRate) return false; + if (ReceiptBucketIsEnable != other.ReceiptBucketIsEnable) return false; + if (!object.Equals(ReceiptBucketUpdateTime, other.ReceiptBucketUpdateTime)) return false; + if (CurrentReceiptBucketTokenAmount != other.CurrentReceiptBucketTokenAmount) return 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 (TargetChainId.Length != 0) hash ^= TargetChainId.GetHashCode(); + if (ReceiptCapacity != 0L) hash ^= ReceiptCapacity.GetHashCode(); + if (ReceiptRefillRate != 0L) hash ^= ReceiptRefillRate.GetHashCode(); + if (ReceiptBucketIsEnable != false) hash ^= ReceiptBucketIsEnable.GetHashCode(); + if (receiptBucketUpdateTime_ != null) hash ^= ReceiptBucketUpdateTime.GetHashCode(); + if (CurrentReceiptBucketTokenAmount != 0L) hash ^= CurrentReceiptBucketTokenAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChainId); + } + if (ReceiptCapacity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ReceiptCapacity); + } + if (ReceiptRefillRate != 0L) { + output.WriteRawTag(32); + output.WriteInt64(ReceiptRefillRate); + } + if (ReceiptBucketIsEnable != false) { + output.WriteRawTag(40); + output.WriteBool(ReceiptBucketIsEnable); + } + if (receiptBucketUpdateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ReceiptBucketUpdateTime); + } + if (CurrentReceiptBucketTokenAmount != 0L) { + output.WriteRawTag(56); + output.WriteInt64(CurrentReceiptBucketTokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (TargetChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChainId); + } + if (ReceiptCapacity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ReceiptCapacity); + } + if (ReceiptRefillRate != 0L) { + output.WriteRawTag(32); + output.WriteInt64(ReceiptRefillRate); + } + if (ReceiptBucketIsEnable != false) { + output.WriteRawTag(40); + output.WriteBool(ReceiptBucketIsEnable); + } + if (receiptBucketUpdateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ReceiptBucketUpdateTime); + } + if (CurrentReceiptBucketTokenAmount != 0L) { + output.WriteRawTag(56); + output.WriteInt64(CurrentReceiptBucketTokenAmount); + } + if (_unknownFields != 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 (TargetChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChainId); + } + if (ReceiptCapacity != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReceiptCapacity); + } + if (ReceiptRefillRate != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReceiptRefillRate); + } + if (ReceiptBucketIsEnable != false) { + size += 1 + 1; + } + if (receiptBucketUpdateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReceiptBucketUpdateTime); + } + if (CurrentReceiptBucketTokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentReceiptBucketTokenAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReceiptTokenBucketSet other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TargetChainId.Length != 0) { + TargetChainId = other.TargetChainId; + } + if (other.ReceiptCapacity != 0L) { + ReceiptCapacity = other.ReceiptCapacity; + } + if (other.ReceiptRefillRate != 0L) { + ReceiptRefillRate = other.ReceiptRefillRate; + } + if (other.ReceiptBucketIsEnable != false) { + ReceiptBucketIsEnable = other.ReceiptBucketIsEnable; + } + if (other.receiptBucketUpdateTime_ != null) { + if (receiptBucketUpdateTime_ == null) { + ReceiptBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ReceiptBucketUpdateTime.MergeFrom(other.ReceiptBucketUpdateTime); + } + if (other.CurrentReceiptBucketTokenAmount != 0L) { + CurrentReceiptBucketTokenAmount = other.CurrentReceiptBucketTokenAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetChainId = input.ReadString(); + break; + } + case 24: { + ReceiptCapacity = input.ReadInt64(); + break; + } + case 32: { + ReceiptRefillRate = input.ReadInt64(); + break; + } + case 40: { + ReceiptBucketIsEnable = input.ReadBool(); + break; + } + case 50: { + if (receiptBucketUpdateTime_ == null) { + ReceiptBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceiptBucketUpdateTime); + break; + } + case 56: { + CurrentReceiptBucketTokenAmount = 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: { + TargetChainId = input.ReadString(); + break; + } + case 24: { + ReceiptCapacity = input.ReadInt64(); + break; + } + case 32: { + ReceiptRefillRate = input.ReadInt64(); + break; + } + case 40: { + ReceiptBucketIsEnable = input.ReadBool(); + break; + } + case 50: { + if (receiptBucketUpdateTime_ == null) { + ReceiptBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceiptBucketUpdateTime); + break; + } + case 56: { + CurrentReceiptBucketTokenAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapTokenBucketSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapTokenBucketSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 SwapTokenBucketSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapTokenBucketSet(SwapTokenBucketSet other) : this() { + symbol_ = other.symbol_; + fromChainId_ = other.fromChainId_; + swapCapacity_ = other.swapCapacity_; + swapRefillRate_ = other.swapRefillRate_; + swapBucketIsEnable_ = other.swapBucketIsEnable_; + swapBucketUpdateTime_ = other.swapBucketUpdateTime_ != null ? other.swapBucketUpdateTime_.Clone() : null; + currentSwapBucketTokenAmount_ = other.currentSwapBucketTokenAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapTokenBucketSet Clone() { + return new SwapTokenBucketSet(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 "from_chain_id" field. + public const int FromChainIdFieldNumber = 2; + private string fromChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "swap_capacity" field. + public const int SwapCapacityFieldNumber = 3; + private long swapCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SwapCapacity { + get { return swapCapacity_; } + set { + swapCapacity_ = value; + } + } + + /// Field number for the "swap_refill_rate" field. + public const int SwapRefillRateFieldNumber = 4; + private long swapRefillRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SwapRefillRate { + get { return swapRefillRate_; } + set { + swapRefillRate_ = value; + } + } + + /// Field number for the "swap_bucket_isEnable" field. + public const int SwapBucketIsEnableFieldNumber = 5; + private bool swapBucketIsEnable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SwapBucketIsEnable { + get { return swapBucketIsEnable_; } + set { + swapBucketIsEnable_ = value; + } + } + + /// Field number for the "swap_bucket_update_time" field. + public const int SwapBucketUpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp swapBucketUpdateTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp SwapBucketUpdateTime { + get { return swapBucketUpdateTime_; } + set { + swapBucketUpdateTime_ = value; + } + } + + /// Field number for the "current_swap_bucket_token_amount" field. + public const int CurrentSwapBucketTokenAmountFieldNumber = 7; + private long currentSwapBucketTokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CurrentSwapBucketTokenAmount { + get { return currentSwapBucketTokenAmount_; } + set { + currentSwapBucketTokenAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapTokenBucketSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapTokenBucketSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (FromChainId != other.FromChainId) return false; + if (SwapCapacity != other.SwapCapacity) return false; + if (SwapRefillRate != other.SwapRefillRate) return false; + if (SwapBucketIsEnable != other.SwapBucketIsEnable) return false; + if (!object.Equals(SwapBucketUpdateTime, other.SwapBucketUpdateTime)) return false; + if (CurrentSwapBucketTokenAmount != other.CurrentSwapBucketTokenAmount) return 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 (FromChainId.Length != 0) hash ^= FromChainId.GetHashCode(); + if (SwapCapacity != 0L) hash ^= SwapCapacity.GetHashCode(); + if (SwapRefillRate != 0L) hash ^= SwapRefillRate.GetHashCode(); + if (SwapBucketIsEnable != false) hash ^= SwapBucketIsEnable.GetHashCode(); + if (swapBucketUpdateTime_ != null) hash ^= SwapBucketUpdateTime.GetHashCode(); + if (CurrentSwapBucketTokenAmount != 0L) hash ^= CurrentSwapBucketTokenAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (FromChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FromChainId); + } + if (SwapCapacity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(SwapCapacity); + } + if (SwapRefillRate != 0L) { + output.WriteRawTag(32); + output.WriteInt64(SwapRefillRate); + } + if (SwapBucketIsEnable != false) { + output.WriteRawTag(40); + output.WriteBool(SwapBucketIsEnable); + } + if (swapBucketUpdateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SwapBucketUpdateTime); + } + if (CurrentSwapBucketTokenAmount != 0L) { + output.WriteRawTag(56); + output.WriteInt64(CurrentSwapBucketTokenAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (FromChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FromChainId); + } + if (SwapCapacity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(SwapCapacity); + } + if (SwapRefillRate != 0L) { + output.WriteRawTag(32); + output.WriteInt64(SwapRefillRate); + } + if (SwapBucketIsEnable != false) { + output.WriteRawTag(40); + output.WriteBool(SwapBucketIsEnable); + } + if (swapBucketUpdateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SwapBucketUpdateTime); + } + if (CurrentSwapBucketTokenAmount != 0L) { + output.WriteRawTag(56); + output.WriteInt64(CurrentSwapBucketTokenAmount); + } + if (_unknownFields != 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 (FromChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromChainId); + } + if (SwapCapacity != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SwapCapacity); + } + if (SwapRefillRate != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SwapRefillRate); + } + if (SwapBucketIsEnable != false) { + size += 1 + 1; + } + if (swapBucketUpdateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapBucketUpdateTime); + } + if (CurrentSwapBucketTokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentSwapBucketTokenAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapTokenBucketSet other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.FromChainId.Length != 0) { + FromChainId = other.FromChainId; + } + if (other.SwapCapacity != 0L) { + SwapCapacity = other.SwapCapacity; + } + if (other.SwapRefillRate != 0L) { + SwapRefillRate = other.SwapRefillRate; + } + if (other.SwapBucketIsEnable != false) { + SwapBucketIsEnable = other.SwapBucketIsEnable; + } + if (other.swapBucketUpdateTime_ != null) { + if (swapBucketUpdateTime_ == null) { + SwapBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + SwapBucketUpdateTime.MergeFrom(other.SwapBucketUpdateTime); + } + if (other.CurrentSwapBucketTokenAmount != 0L) { + CurrentSwapBucketTokenAmount = other.CurrentSwapBucketTokenAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + FromChainId = input.ReadString(); + break; + } + case 24: { + SwapCapacity = input.ReadInt64(); + break; + } + case 32: { + SwapRefillRate = input.ReadInt64(); + break; + } + case 40: { + SwapBucketIsEnable = input.ReadBool(); + break; + } + case 50: { + if (swapBucketUpdateTime_ == null) { + SwapBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SwapBucketUpdateTime); + break; + } + case 56: { + CurrentSwapBucketTokenAmount = 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: { + FromChainId = input.ReadString(); + break; + } + case 24: { + SwapCapacity = input.ReadInt64(); + break; + } + case 32: { + SwapRefillRate = input.ReadInt64(); + break; + } + case 40: { + SwapBucketIsEnable = input.ReadBool(); + break; + } + case 50: { + if (swapBucketUpdateTime_ == null) { + SwapBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SwapBucketUpdateTime); + break; + } + case 56: { + CurrentSwapBucketTokenAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReceiptLimitChanged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceiptLimitChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 ReceiptLimitChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptLimitChanged(ReceiptLimitChanged other) : this() { + symbol_ = other.symbol_; + targetChainId_ = other.targetChainId_; + currentReceiptDailyLimitAmount_ = other.currentReceiptDailyLimitAmount_; + receiptDailyLimitRefreshTime_ = other.receiptDailyLimitRefreshTime_ != null ? other.receiptDailyLimitRefreshTime_.Clone() : null; + currentReceiptBucketTokenAmount_ = other.currentReceiptBucketTokenAmount_; + receiptBucketUpdateTime_ = other.receiptBucketUpdateTime_ != null ? other.receiptBucketUpdateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceiptLimitChanged Clone() { + return new ReceiptLimitChanged(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 "targetChainId" field. + public const int TargetChainIdFieldNumber = 2; + private string targetChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChainId { + get { return targetChainId_; } + set { + targetChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "current_receipt_daily_limit_amount" field. + public const int CurrentReceiptDailyLimitAmountFieldNumber = 3; + private long currentReceiptDailyLimitAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CurrentReceiptDailyLimitAmount { + get { return currentReceiptDailyLimitAmount_; } + set { + currentReceiptDailyLimitAmount_ = value; + } + } + + /// Field number for the "receipt_daily_limit_refresh_time" field. + public const int ReceiptDailyLimitRefreshTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp receiptDailyLimitRefreshTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ReceiptDailyLimitRefreshTime { + get { return receiptDailyLimitRefreshTime_; } + set { + receiptDailyLimitRefreshTime_ = value; + } + } + + /// Field number for the "current_receipt_bucket_token_amount" field. + public const int CurrentReceiptBucketTokenAmountFieldNumber = 5; + private long currentReceiptBucketTokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CurrentReceiptBucketTokenAmount { + get { return currentReceiptBucketTokenAmount_; } + set { + currentReceiptBucketTokenAmount_ = value; + } + } + + /// Field number for the "receipt_bucket_update_time" field. + public const int ReceiptBucketUpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp receiptBucketUpdateTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ReceiptBucketUpdateTime { + get { return receiptBucketUpdateTime_; } + set { + receiptBucketUpdateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReceiptLimitChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceiptLimitChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TargetChainId != other.TargetChainId) return false; + if (CurrentReceiptDailyLimitAmount != other.CurrentReceiptDailyLimitAmount) return false; + if (!object.Equals(ReceiptDailyLimitRefreshTime, other.ReceiptDailyLimitRefreshTime)) return false; + if (CurrentReceiptBucketTokenAmount != other.CurrentReceiptBucketTokenAmount) return false; + if (!object.Equals(ReceiptBucketUpdateTime, other.ReceiptBucketUpdateTime)) return 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 (TargetChainId.Length != 0) hash ^= TargetChainId.GetHashCode(); + if (CurrentReceiptDailyLimitAmount != 0L) hash ^= CurrentReceiptDailyLimitAmount.GetHashCode(); + if (receiptDailyLimitRefreshTime_ != null) hash ^= ReceiptDailyLimitRefreshTime.GetHashCode(); + if (CurrentReceiptBucketTokenAmount != 0L) hash ^= CurrentReceiptBucketTokenAmount.GetHashCode(); + if (receiptBucketUpdateTime_ != null) hash ^= ReceiptBucketUpdateTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChainId); + } + if (CurrentReceiptDailyLimitAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(CurrentReceiptDailyLimitAmount); + } + if (receiptDailyLimitRefreshTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReceiptDailyLimitRefreshTime); + } + if (CurrentReceiptBucketTokenAmount != 0L) { + output.WriteRawTag(40); + output.WriteInt64(CurrentReceiptBucketTokenAmount); + } + if (receiptBucketUpdateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ReceiptBucketUpdateTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (TargetChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetChainId); + } + if (CurrentReceiptDailyLimitAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(CurrentReceiptDailyLimitAmount); + } + if (receiptDailyLimitRefreshTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReceiptDailyLimitRefreshTime); + } + if (CurrentReceiptBucketTokenAmount != 0L) { + output.WriteRawTag(40); + output.WriteInt64(CurrentReceiptBucketTokenAmount); + } + if (receiptBucketUpdateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ReceiptBucketUpdateTime); + } + if (_unknownFields != 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 (TargetChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChainId); + } + if (CurrentReceiptDailyLimitAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentReceiptDailyLimitAmount); + } + if (receiptDailyLimitRefreshTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReceiptDailyLimitRefreshTime); + } + if (CurrentReceiptBucketTokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentReceiptBucketTokenAmount); + } + if (receiptBucketUpdateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReceiptBucketUpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReceiptLimitChanged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TargetChainId.Length != 0) { + TargetChainId = other.TargetChainId; + } + if (other.CurrentReceiptDailyLimitAmount != 0L) { + CurrentReceiptDailyLimitAmount = other.CurrentReceiptDailyLimitAmount; + } + if (other.receiptDailyLimitRefreshTime_ != null) { + if (receiptDailyLimitRefreshTime_ == null) { + ReceiptDailyLimitRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ReceiptDailyLimitRefreshTime.MergeFrom(other.ReceiptDailyLimitRefreshTime); + } + if (other.CurrentReceiptBucketTokenAmount != 0L) { + CurrentReceiptBucketTokenAmount = other.CurrentReceiptBucketTokenAmount; + } + if (other.receiptBucketUpdateTime_ != null) { + if (receiptBucketUpdateTime_ == null) { + ReceiptBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ReceiptBucketUpdateTime.MergeFrom(other.ReceiptBucketUpdateTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetChainId = input.ReadString(); + break; + } + case 24: { + CurrentReceiptDailyLimitAmount = input.ReadInt64(); + break; + } + case 34: { + if (receiptDailyLimitRefreshTime_ == null) { + ReceiptDailyLimitRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceiptDailyLimitRefreshTime); + break; + } + case 40: { + CurrentReceiptBucketTokenAmount = input.ReadInt64(); + break; + } + case 50: { + if (receiptBucketUpdateTime_ == null) { + ReceiptBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceiptBucketUpdateTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + TargetChainId = input.ReadString(); + break; + } + case 24: { + CurrentReceiptDailyLimitAmount = input.ReadInt64(); + break; + } + case 34: { + if (receiptDailyLimitRefreshTime_ == null) { + ReceiptDailyLimitRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceiptDailyLimitRefreshTime); + break; + } + case 40: { + CurrentReceiptBucketTokenAmount = input.ReadInt64(); + break; + } + case 50: { + if (receiptBucketUpdateTime_ == null) { + ReceiptBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReceiptBucketUpdateTime); + break; + } + } + } + } + #endif + + } + + public sealed partial class SwapLimitChanged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapLimitChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.Bridge.BridgeContractImplReflection.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 SwapLimitChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapLimitChanged(SwapLimitChanged other) : this() { + symbol_ = other.symbol_; + fromChainId_ = other.fromChainId_; + currentSwapDailyLimitAmount_ = other.currentSwapDailyLimitAmount_; + swapDailyLimitRefreshTime_ = other.swapDailyLimitRefreshTime_ != null ? other.swapDailyLimitRefreshTime_.Clone() : null; + currentSwapBucketTokenAmount_ = other.currentSwapBucketTokenAmount_; + swapBucketUpdateTime_ = other.swapBucketUpdateTime_ != null ? other.swapBucketUpdateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapLimitChanged Clone() { + return new SwapLimitChanged(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 "fromChainId" field. + public const int FromChainIdFieldNumber = 2; + private string fromChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "current_swap_daily_limit_amount" field. + public const int CurrentSwapDailyLimitAmountFieldNumber = 3; + private long currentSwapDailyLimitAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CurrentSwapDailyLimitAmount { + get { return currentSwapDailyLimitAmount_; } + set { + currentSwapDailyLimitAmount_ = value; + } + } + + /// Field number for the "swap_daily_limit_refresh_time" field. + public const int SwapDailyLimitRefreshTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp swapDailyLimitRefreshTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp SwapDailyLimitRefreshTime { + get { return swapDailyLimitRefreshTime_; } + set { + swapDailyLimitRefreshTime_ = value; + } + } + + /// Field number for the "current_swap_bucket_token_amount" field. + public const int CurrentSwapBucketTokenAmountFieldNumber = 5; + private long currentSwapBucketTokenAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CurrentSwapBucketTokenAmount { + get { return currentSwapBucketTokenAmount_; } + set { + currentSwapBucketTokenAmount_ = value; + } + } + + /// Field number for the "swap_bucket_update_time" field. + public const int SwapBucketUpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp swapBucketUpdateTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp SwapBucketUpdateTime { + get { return swapBucketUpdateTime_; } + set { + swapBucketUpdateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapLimitChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapLimitChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (FromChainId != other.FromChainId) return false; + if (CurrentSwapDailyLimitAmount != other.CurrentSwapDailyLimitAmount) return false; + if (!object.Equals(SwapDailyLimitRefreshTime, other.SwapDailyLimitRefreshTime)) return false; + if (CurrentSwapBucketTokenAmount != other.CurrentSwapBucketTokenAmount) return false; + if (!object.Equals(SwapBucketUpdateTime, other.SwapBucketUpdateTime)) return 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 (FromChainId.Length != 0) hash ^= FromChainId.GetHashCode(); + if (CurrentSwapDailyLimitAmount != 0L) hash ^= CurrentSwapDailyLimitAmount.GetHashCode(); + if (swapDailyLimitRefreshTime_ != null) hash ^= SwapDailyLimitRefreshTime.GetHashCode(); + if (CurrentSwapBucketTokenAmount != 0L) hash ^= CurrentSwapBucketTokenAmount.GetHashCode(); + if (swapBucketUpdateTime_ != null) hash ^= SwapBucketUpdateTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (FromChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FromChainId); + } + if (CurrentSwapDailyLimitAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(CurrentSwapDailyLimitAmount); + } + if (swapDailyLimitRefreshTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SwapDailyLimitRefreshTime); + } + if (CurrentSwapBucketTokenAmount != 0L) { + output.WriteRawTag(40); + output.WriteInt64(CurrentSwapBucketTokenAmount); + } + if (swapBucketUpdateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SwapBucketUpdateTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (FromChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FromChainId); + } + if (CurrentSwapDailyLimitAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(CurrentSwapDailyLimitAmount); + } + if (swapDailyLimitRefreshTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SwapDailyLimitRefreshTime); + } + if (CurrentSwapBucketTokenAmount != 0L) { + output.WriteRawTag(40); + output.WriteInt64(CurrentSwapBucketTokenAmount); + } + if (swapBucketUpdateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SwapBucketUpdateTime); + } + if (_unknownFields != 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 (FromChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromChainId); + } + if (CurrentSwapDailyLimitAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentSwapDailyLimitAmount); + } + if (swapDailyLimitRefreshTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapDailyLimitRefreshTime); + } + if (CurrentSwapBucketTokenAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentSwapBucketTokenAmount); + } + if (swapBucketUpdateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwapBucketUpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapLimitChanged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.FromChainId.Length != 0) { + FromChainId = other.FromChainId; + } + if (other.CurrentSwapDailyLimitAmount != 0L) { + CurrentSwapDailyLimitAmount = other.CurrentSwapDailyLimitAmount; + } + if (other.swapDailyLimitRefreshTime_ != null) { + if (swapDailyLimitRefreshTime_ == null) { + SwapDailyLimitRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + SwapDailyLimitRefreshTime.MergeFrom(other.SwapDailyLimitRefreshTime); + } + if (other.CurrentSwapBucketTokenAmount != 0L) { + CurrentSwapBucketTokenAmount = other.CurrentSwapBucketTokenAmount; + } + if (other.swapBucketUpdateTime_ != null) { + if (swapBucketUpdateTime_ == null) { + SwapBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + SwapBucketUpdateTime.MergeFrom(other.SwapBucketUpdateTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + FromChainId = input.ReadString(); + break; + } + case 24: { + CurrentSwapDailyLimitAmount = input.ReadInt64(); + break; + } + case 34: { + if (swapDailyLimitRefreshTime_ == null) { + SwapDailyLimitRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SwapDailyLimitRefreshTime); + break; + } + case 40: { + CurrentSwapBucketTokenAmount = input.ReadInt64(); + break; + } + case 50: { + if (swapBucketUpdateTime_ == null) { + SwapBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SwapBucketUpdateTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + FromChainId = input.ReadString(); + break; + } + case 24: { + CurrentSwapDailyLimitAmount = input.ReadInt64(); + break; + } + case 34: { + if (swapDailyLimitRefreshTime_ == null) { + SwapDailyLimitRefreshTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SwapDailyLimitRefreshTime); + break; + } + case 40: { + CurrentSwapBucketTokenAmount = input.ReadInt64(); + break; + } + case 50: { + if (swapBucketUpdateTime_ == null) { + SwapBucketUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SwapBucketUpdateTime); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/CallbackInput.g.cs b/src/EbridgeIndexer/Contracts/CallbackInput.g.cs new file mode 100644 index 0000000..9d5e2c0 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/CallbackInput.g.cs @@ -0,0 +1,303 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: callback_input.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +/// Holder for reflection information generated from callback_input.proto +public static partial class CallbackInputReflection { + + #region Descriptor + /// File descriptor for callback_input.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CallbackInputReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRjYWxsYmFja19pbnB1dC5wcm90bxoPYWVsZi9jb3JlLnByb3RvImIKDUNh", + "bGxiYWNrSW5wdXQSHAoIcXVlcnlfaWQYASABKAsyCi5hZWxmLkhhc2gSDgoG", + "cmVzdWx0GAIgASgMEiMKDG9yYWNsZV9ub2RlcxgDIAMoCzINLmFlbGYuQWRk", + "cmVzc2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::CallbackInput), global::CallbackInput.Parser, new[]{ "QueryId", "Result", "OracleNodes" }, null, null, null, null) + })); + } + #endregion + +} +#region Messages +public sealed partial class CallbackInput : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallbackInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::CallbackInputReflection.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 CallbackInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CallbackInput(CallbackInput other) : this() { + queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null; + result_ = other.result_; + oracleNodes_ = other.oracleNodes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CallbackInput Clone() { + return new CallbackInput(this); + } + + /// Field number for the "query_id" field. + public const int QueryIdFieldNumber = 1; + private global::AElf.Types.Hash queryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash QueryId { + get { return queryId_; } + set { + queryId_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private pb::ByteString result_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Result { + get { return result_; } + set { + result_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "oracle_nodes" field. + public const int OracleNodesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_oracleNodes_codec + = pb::FieldCodec.ForMessage(26, global::AElf.Types.Address.Parser); + private readonly pbc::RepeatedField oracleNodes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OracleNodes { + get { return oracleNodes_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CallbackInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CallbackInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(QueryId, other.QueryId)) return false; + if (Result != other.Result) return false; + if(!oracleNodes_.Equals(other.oracleNodes_)) return 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 (queryId_ != null) hash ^= QueryId.GetHashCode(); + if (Result.Length != 0) hash ^= Result.GetHashCode(); + hash ^= oracleNodes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (queryId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(QueryId); + } + if (Result.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Result); + } + oracleNodes_.WriteTo(output, _repeated_oracleNodes_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 (queryId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(QueryId); + } + if (Result.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Result); + } + oracleNodes_.WriteTo(ref output, _repeated_oracleNodes_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 (queryId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId); + } + if (Result.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Result); + } + size += oracleNodes_.CalculateSize(_repeated_oracleNodes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CallbackInput other) { + if (other == null) { + return; + } + if (other.queryId_ != null) { + if (queryId_ == null) { + QueryId = new global::AElf.Types.Hash(); + } + QueryId.MergeFrom(other.QueryId); + } + if (other.Result.Length != 0) { + Result = other.Result; + } + oracleNodes_.Add(other.oracleNodes_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (queryId_ == null) { + QueryId = new global::AElf.Types.Hash(); + } + input.ReadMessage(QueryId); + break; + } + case 18: { + Result = input.ReadBytes(); + break; + } + case 26: { + oracleNodes_.AddEntriesFrom(input, _repeated_oracleNodes_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 (queryId_ == null) { + QueryId = new global::AElf.Types.Hash(); + } + input.ReadMessage(QueryId); + break; + } + case 18: { + Result = input.ReadBytes(); + break; + } + case 26: { + oracleNodes_.AddEntriesFrom(ref input, _repeated_oracleNodes_codec); + break; + } + } + } + } + #endif + +} + +#endregion + + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/CrossChainContract.c.cs b/src/EbridgeIndexer/Contracts/CrossChainContract.c.cs new file mode 100644 index 0000000..de03c4b --- /dev/null +++ b/src/EbridgeIndexer/Contracts/CrossChainContract.c.cs @@ -0,0 +1,159 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: cross_chain_contract.proto +// +// Original file comments: +// * +// Cross-Chain contract. +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace AElf.Contracts.CrossChain { + + #region Events + public partial class SideChainCreatedEvent : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public SideChainCreatedEvent GetNonIndexed() + { + return new SideChainCreatedEvent + { + Creator = Creator, + ChainId = ChainId, + }; + } + } + + public partial class Disposed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public Disposed GetNonIndexed() + { + return new Disposed + { + ChainId = ChainId, + }; + } + } + + public partial class SideChainLifetimeControllerChanged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public SideChainLifetimeControllerChanged GetNonIndexed() + { + return new SideChainLifetimeControllerChanged + { + AuthorityInfo = AuthorityInfo, + }; + } + } + + public partial class CrossChainIndexingControllerChanged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public CrossChainIndexingControllerChanged GetNonIndexed() + { + return new CrossChainIndexingControllerChanged + { + AuthorityInfo = AuthorityInfo, + }; + } + } + + public partial class SideChainIndexingFeeControllerChanged : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new SideChainIndexingFeeControllerChanged + { + ChainId = ChainId + }, + }; + } + + public SideChainIndexingFeeControllerChanged GetNonIndexed() + { + return new SideChainIndexingFeeControllerChanged + { + AuthorityInfo = AuthorityInfo, + }; + } + } + + public partial class SideChainIndexed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new SideChainIndexed + { + ChainId = ChainId + }, + }; + } + + public SideChainIndexed GetNonIndexed() + { + return new SideChainIndexed + { + IndexedHeight = IndexedHeight, + }; + } + } + + public partial class ParentChainIndexed : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new ParentChainIndexed + { + ChainId = ChainId + }, + }; + } + + public ParentChainIndexed GetNonIndexed() + { + return new ParentChainIndexed + { + IndexedHeight = IndexedHeight, + }; + } + } + + #endregion +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/CrossChainContract.g.cs b/src/EbridgeIndexer/Contracts/CrossChainContract.g.cs new file mode 100644 index 0000000..364fe48 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/CrossChainContract.g.cs @@ -0,0 +1,3573 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: cross_chain_contract.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Contracts.CrossChain { + + /// Holder for reflection information generated from cross_chain_contract.proto + public static partial class CrossChainContractReflection { + + #region Descriptor + /// File descriptor for cross_chain_contract.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CrossChainContractReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chpjcm9zc19jaGFpbl9jb250cmFjdC5wcm90bxIKQ3Jvc3NDaGFpbhoKYWNz", + "Ny5wcm90bxoSYWVsZi9vcHRpb25zLnByb3RvGhtnb29nbGUvcHJvdG9idWYv", + "ZW1wdHkucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90bxoU", + "YXV0aG9yaXR5X2luZm8ucHJvdG8icwoPSW5pdGlhbGl6ZUlucHV0EhcKD3Bh", + "cmVudF9jaGFpbl9pZBgBIAEoBRInCh9jcmVhdGlvbl9oZWlnaHRfb25fcGFy", + "ZW50X2NoYWluGAIgASgDEh4KFmlzX3ByaXZpbGVnZV9wcmVzZXJ2ZWQYAyAB", + "KAgiTgoVU2lkZUNoYWluQ3JlYXRlZEV2ZW50Eh4KB2NyZWF0b3IYASABKAsy", + "DS5hZWxmLkFkZHJlc3MSDwoHY2hhaW5JZBgCIAEoBToEoLsYASIiCghEaXNw", + "b3NlZBIQCghjaGFpbl9pZBgBIAEoBToEoLsYASKDAgoaUHJvcG9zZWRDcm9z", + "c0NoYWluSW5kZXhpbmcSeQojY2hhaW5faW5kZXhpbmdfcHJvcG9zYWxfY29s", + "bGVjdGlvbnMYASADKAsyTC5Dcm9zc0NoYWluLlByb3Bvc2VkQ3Jvc3NDaGFp", + "bkluZGV4aW5nLkNoYWluSW5kZXhpbmdQcm9wb3NhbENvbGxlY3Rpb25zRW50", + "cnkaagolQ2hhaW5JbmRleGluZ1Byb3Bvc2FsQ29sbGVjdGlvbnNFbnRyeRIL", + "CgNrZXkYASABKAUSMAoFdmFsdWUYAiABKAsyIS5Dcm9zc0NoYWluLkNoYWlu", + "SW5kZXhpbmdQcm9wb3NhbDoCOAEi7QEKFUNoYWluSW5kZXhpbmdQcm9wb3Nh", + "bBIfCgtwcm9wb3NhbF9pZBgBIAEoCzIKLmFlbGYuSGFzaBIfCghwcm9wb3Nl", + "chgCIAEoCzINLmFlbGYuQWRkcmVzcxJCCh9wcm9wb3NlZF9jcm9zc19jaGFp", + "bl9ibG9ja19kYXRhGAMgASgLMhkuYWNzNy5Dcm9zc0NoYWluQmxvY2tEYXRh", + "EjwKBnN0YXR1cxgEIAEoDjIsLkNyb3NzQ2hhaW4uQ3Jvc3NDaGFpbkluZGV4", + "aW5nUHJvcG9zYWxTdGF0dXMSEAoIY2hhaW5faWQYBSABKAUiiwIKH0dldElu", + "ZGV4aW5nUHJvcG9zYWxTdGF0dXNPdXRwdXQSdAoeY2hhaW5faW5kZXhpbmdf", + "cHJvcG9zYWxfc3RhdHVzGAEgAygLMkwuQ3Jvc3NDaGFpbi5HZXRJbmRleGlu", + "Z1Byb3Bvc2FsU3RhdHVzT3V0cHV0LkNoYWluSW5kZXhpbmdQcm9wb3NhbFN0", + "YXR1c0VudHJ5GnIKIENoYWluSW5kZXhpbmdQcm9wb3NhbFN0YXR1c0VudHJ5", + "EgsKA2tleRgBIAEoBRI9CgV2YWx1ZRgCIAEoCzIuLkNyb3NzQ2hhaW4uUGVu", + "ZGluZ0NoYWluSW5kZXhpbmdQcm9wb3NhbFN0YXR1czoCOAEi9AEKIlBlbmRp", + "bmdDaGFpbkluZGV4aW5nUHJvcG9zYWxTdGF0dXMSHwoLcHJvcG9zYWxfaWQY", + "ASABKAsyCi5hZWxmLkhhc2gSHwoIcHJvcG9zZXIYAiABKAsyDS5hZWxmLkFk", + "ZHJlc3MSFgoOdG9fYmVfcmVsZWFzZWQYAyABKAgSQgofcHJvcG9zZWRfY3Jv", + "c3NfY2hhaW5fYmxvY2tfZGF0YRgEIAEoCzIZLmFjczcuQ3Jvc3NDaGFpbkJs", + "b2NrRGF0YRIwCgxleHBpcmVkX3RpbWUYBSABKAsyGi5nb29nbGUucHJvdG9i", + "dWYuVGltZXN0YW1wIvwBCipHZXRQZW5kaW5nQ3Jvc3NDaGFpbkluZGV4aW5n", + "UHJvcG9zYWxPdXRwdXQSHwoLcHJvcG9zYWxfaWQYASABKAsyCi5hZWxmLkhh", + "c2gSHwoIcHJvcG9zZXIYAiABKAsyDS5hZWxmLkFkZHJlc3MSFgoOdG9fYmVf", + "cmVsZWFzZWQYAyABKAgSQgofcHJvcG9zZWRfY3Jvc3NfY2hhaW5fYmxvY2tf", + "ZGF0YRgEIAEoCzIZLmFjczcuQ3Jvc3NDaGFpbkJsb2NrRGF0YRIwCgxleHBp", + "cmVkX3RpbWUYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIr8D", + "Cg1TaWRlQ2hhaW5JbmZvEh8KCHByb3Bvc2VyGAEgASgLMg0uYWVsZi5BZGRy", + "ZXNzEjYKEXNpZGVfY2hhaW5fc3RhdHVzGAIgASgOMhsuQ3Jvc3NDaGFpbi5T", + "aWRlQ2hhaW5TdGF0dXMSFQoNc2lkZV9jaGFpbl9pZBgDIAEoBRI2ChJjcmVh", + "dGlvbl90aW1lc3RhbXAYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", + "YW1wEicKH2NyZWF0aW9uX2hlaWdodF9vbl9wYXJlbnRfY2hhaW4YBSABKAMS", + "FgoOaW5kZXhpbmdfcHJpY2UYBiABKAMSHgoWaXNfcHJpdmlsZWdlX3ByZXNl", + "cnZlZBgHIAEoCBJACgxhcnJlYXJzX2luZm8YCCADKAsyKi5Dcm9zc0NoYWlu", + "LlNpZGVDaGFpbkluZm8uQXJyZWFyc0luZm9FbnRyeRIvChdpbmRleGluZ19m", + "ZWVfY29udHJvbGxlchgJIAEoCzIOLkF1dGhvcml0eUluZm8aMgoQQXJyZWFy", + "c0luZm9FbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAM6AjgBIkMK", + "FEdldENoYWluU3RhdHVzT3V0cHV0EisKBnN0YXR1cxgBIAEoDjIbLkNyb3Nz", + "Q2hhaW4uU2lkZUNoYWluU3RhdHVzIrcBCh1TaWRlQ2hhaW5DcmVhdGlvblJl", + "cXVlc3RTdGF0ZRJDChtzaWRlX2NoYWluX2NyZWF0aW9uX3JlcXVlc3QYASAB", + "KAsyHi5hY3M3LlNpZGVDaGFpbkNyZWF0aW9uUmVxdWVzdBIwCgxleHBpcmVk", + "X3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEh8KCHBy", + "b3Bvc2VyGAMgASgLMg0uYWVsZi5BZGRyZXNzImUKKUNoYW5nZVNpZGVDaGFp", + "bkluZGV4aW5nRmVlQ29udHJvbGxlcklucHV0EhAKCGNoYWluX2lkGAEgASgF", + "EiYKDmF1dGhvcml0eV9pbmZvGAIgASgLMg4uQXV0aG9yaXR5SW5mbyJSCiJT", + "aWRlQ2hhaW5MaWZldGltZUNvbnRyb2xsZXJDaGFuZ2VkEiYKDmF1dGhvcml0", + "eV9pbmZvGAEgASgLMg4uQXV0aG9yaXR5SW5mbzoEoLsYASJTCiNDcm9zc0No", + "YWluSW5kZXhpbmdDb250cm9sbGVyQ2hhbmdlZBImCg5hdXRob3JpdHlfaW5m", + "bxgBIAEoCzIOLkF1dGhvcml0eUluZm86BKC7GAEibgolU2lkZUNoYWluSW5k", + "ZXhpbmdGZWVDb250cm9sbGVyQ2hhbmdlZBIXCghjaGFpbl9pZBgBIAEoBUIF", + "iI/1AQESJgoOYXV0aG9yaXR5X2luZm8YAiABKAsyDi5BdXRob3JpdHlJbmZv", + "OgSguxgBIjkKJUFjY2VwdENyb3NzQ2hhaW5JbmRleGluZ1Byb3Bvc2FsSW5w", + "dXQSEAoIY2hhaW5faWQYASABKAUiSQoQU2lkZUNoYWluSW5kZXhlZBIXCghj", + "aGFpbl9pZBgBIAEoBUIFiI/1AQESFgoOaW5kZXhlZF9oZWlnaHQYAiABKAM6", + "BKC7GAEiSwoSUGFyZW50Q2hhaW5JbmRleGVkEhcKCGNoYWluX2lkGAEgASgF", + "QgWIj/UBARIWCg5pbmRleGVkX2hlaWdodBgCIAEoAzoEoLsYASpPCiBDcm9z", + "c0NoYWluSW5kZXhpbmdQcm9wb3NhbFN0YXR1cxIQCgxOT05fUFJPUE9TRUQQ", + "ABILCgdQRU5ESU5HEAESDAoIQUNDRVBURUQQAipPCg9TaWRlQ2hhaW5TdGF0", + "dXMSCQoFRkFUQUwQABIKCgZBQ1RJVkUQARIVChFJTkRFWElOR19GRUVfREVC", + "VBACEg4KClRFUk1JTkFURUQQAzLeDQoSQ3Jvc3NDaGFpbkNvbnRyYWN0EkMK", + "CkluaXRpYWxpemUSGy5Dcm9zc0NoYWluLkluaXRpYWxpemVJbnB1dBoWLmdv", + "b2dsZS5wcm90b2J1Zi5FbXB0eSIAElcKLFNldEluaXRpYWxTaWRlQ2hhaW5M", + "aWZldGltZUNvbnRyb2xsZXJBZGRyZXNzEg0uYWVsZi5BZGRyZXNzGhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IgASTgojU2V0SW5pdGlhbEluZGV4aW5nQ29u", + "dHJvbGxlckFkZHJlc3MSDS5hZWxmLkFkZHJlc3MaFi5nb29nbGUucHJvdG9i", + "dWYuRW1wdHkiABJOCiJDaGFuZ2VDcm9zc0NoYWluSW5kZXhpbmdDb250cm9s", + "bGVyEg4uQXV0aG9yaXR5SW5mbxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIA", + "Ek0KIUNoYW5nZVNpZGVDaGFpbkxpZmV0aW1lQ29udHJvbGxlchIOLkF1dGhv", + "cml0eUluZm8aFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJ3CiRDaGFuZ2VT", + "aWRlQ2hhaW5JbmRleGluZ0ZlZUNvbnRyb2xsZXISNS5Dcm9zc0NoYWluLkNo", + "YW5nZVNpZGVDaGFpbkluZGV4aW5nRmVlQ29udHJvbGxlcklucHV0GhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IgASbwogQWNjZXB0Q3Jvc3NDaGFpbkluZGV4", + "aW5nUHJvcG9zYWwSMS5Dcm9zc0NoYWluLkFjY2VwdENyb3NzQ2hhaW5JbmRl", + "eGluZ1Byb3Bvc2FsSW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJI", + "ChNHZXRTaWRlQ2hhaW5DcmVhdG9yEhsuZ29vZ2xlLnByb3RvYnVmLkludDMy", + "VmFsdWUaDS5hZWxmLkFkZHJlc3MiBYiJ9wEBElYKDkdldENoYWluU3RhdHVz", + "EhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUaIC5Dcm9zc0NoYWluLkdl", + "dENoYWluU3RhdHVzT3V0cHV0IgWIifcBARJVChJHZXRTaWRlQ2hhaW5IZWln", + "aHQSGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRobLmdvb2dsZS5wcm90", + "b2J1Zi5JbnQ2NFZhbHVlIgWIifcBARJSChRHZXRQYXJlbnRDaGFpbkhlaWdo", + "dBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRobLmdvb2dsZS5wcm90b2J1Zi5J", + "bnQ2NFZhbHVlIgWIifcBARJOChBHZXRQYXJlbnRDaGFpbklkEhYuZ29vZ2xl", + "LnByb3RvYnVmLkVtcHR5GhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUi", + "BYiJ9wEBElYKE0dldFNpZGVDaGFpbkJhbGFuY2USGy5nb29nbGUucHJvdG9i", + "dWYuSW50MzJWYWx1ZRobLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlIgWI", + "ifcBARJeChtHZXRTaWRlQ2hhaW5JbmRleGluZ0ZlZURlYnQSGy5nb29nbGUu", + "cHJvdG9idWYuSW50MzJWYWx1ZRobLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZh", + "bHVlIgWIifcBARJnChlHZXRJbmRleGluZ1Byb3Bvc2FsU3RhdHVzEhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5GisuQ3Jvc3NDaGFpbi5HZXRJbmRleGluZ1By", + "b3Bvc2FsU3RhdHVzT3V0cHV0IgWIifcBARJfChxHZXRTaWRlQ2hhaW5JbmRl", + "eGluZ0ZlZVByaWNlEhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUaGy5n", + "b29nbGUucHJvdG9idWYuSW50NjRWYWx1ZSIFiIn3AQESTwoeR2V0U2lkZUNo", + "YWluTGlmZXRpbWVDb250cm9sbGVyEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "Gg4uQXV0aG9yaXR5SW5mbyIFiIn3AQESUAofR2V0Q3Jvc3NDaGFpbkluZGV4", + "aW5nQ29udHJvbGxlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoOLkF1dGhv", + "cml0eUluZm8iBYiJ9wEBElcKIUdldFNpZGVDaGFpbkluZGV4aW5nRmVlQ29u", + "dHJvbGxlchIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlGg4uQXV0aG9y", + "aXR5SW5mbyIFiIn3AQEaNrLM9gExQUVsZi5Db250cmFjdHMuQ3Jvc3NDaGFp", + "bi5Dcm9zc0NoYWluQ29udHJhY3RTdGF0ZUIcqgIZQUVsZi5Db250cmFjdHMu", + "Q3Jvc3NDaGFpbmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Standards.ACS7.Acs7Reflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::AuthorityInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AElf.Contracts.CrossChain.CrossChainIndexingProposalStatus), typeof(global::AElf.Contracts.CrossChain.SideChainStatus), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.InitializeInput), global::AElf.Contracts.CrossChain.InitializeInput.Parser, new[]{ "ParentChainId", "CreationHeightOnParentChain", "IsPrivilegePreserved" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.SideChainCreatedEvent), global::AElf.Contracts.CrossChain.SideChainCreatedEvent.Parser, new[]{ "Creator", "ChainId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.Disposed), global::AElf.Contracts.CrossChain.Disposed.Parser, new[]{ "ChainId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.ProposedCrossChainIndexing), global::AElf.Contracts.CrossChain.ProposedCrossChainIndexing.Parser, new[]{ "ChainIndexingProposalCollections" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.ChainIndexingProposal), global::AElf.Contracts.CrossChain.ChainIndexingProposal.Parser, new[]{ "ProposalId", "Proposer", "ProposedCrossChainBlockData", "Status", "ChainId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.GetIndexingProposalStatusOutput), global::AElf.Contracts.CrossChain.GetIndexingProposalStatusOutput.Parser, new[]{ "ChainIndexingProposalStatus" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.PendingChainIndexingProposalStatus), global::AElf.Contracts.CrossChain.PendingChainIndexingProposalStatus.Parser, new[]{ "ProposalId", "Proposer", "ToBeReleased", "ProposedCrossChainBlockData", "ExpiredTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.GetPendingCrossChainIndexingProposalOutput), global::AElf.Contracts.CrossChain.GetPendingCrossChainIndexingProposalOutput.Parser, new[]{ "ProposalId", "Proposer", "ToBeReleased", "ProposedCrossChainBlockData", "ExpiredTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.SideChainInfo), global::AElf.Contracts.CrossChain.SideChainInfo.Parser, new[]{ "Proposer", "SideChainStatus", "SideChainId", "CreationTimestamp", "CreationHeightOnParentChain", "IndexingPrice", "IsPrivilegePreserved", "ArrearsInfo", "IndexingFeeController" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.GetChainStatusOutput), global::AElf.Contracts.CrossChain.GetChainStatusOutput.Parser, new[]{ "Status" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.SideChainCreationRequestState), global::AElf.Contracts.CrossChain.SideChainCreationRequestState.Parser, new[]{ "SideChainCreationRequest", "ExpiredTime", "Proposer" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.ChangeSideChainIndexingFeeControllerInput), global::AElf.Contracts.CrossChain.ChangeSideChainIndexingFeeControllerInput.Parser, new[]{ "ChainId", "AuthorityInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.SideChainLifetimeControllerChanged), global::AElf.Contracts.CrossChain.SideChainLifetimeControllerChanged.Parser, new[]{ "AuthorityInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.CrossChainIndexingControllerChanged), global::AElf.Contracts.CrossChain.CrossChainIndexingControllerChanged.Parser, new[]{ "AuthorityInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.SideChainIndexingFeeControllerChanged), global::AElf.Contracts.CrossChain.SideChainIndexingFeeControllerChanged.Parser, new[]{ "ChainId", "AuthorityInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.AcceptCrossChainIndexingProposalInput), global::AElf.Contracts.CrossChain.AcceptCrossChainIndexingProposalInput.Parser, new[]{ "ChainId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.SideChainIndexed), global::AElf.Contracts.CrossChain.SideChainIndexed.Parser, new[]{ "ChainId", "IndexedHeight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.CrossChain.ParentChainIndexed), global::AElf.Contracts.CrossChain.ParentChainIndexed.Parser, new[]{ "ChainId", "IndexedHeight" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum CrossChainIndexingProposalStatus { + [pbr::OriginalName("NON_PROPOSED")] NonProposed = 0, + /// + /// The proposal is pending. + /// + [pbr::OriginalName("PENDING")] Pending = 1, + /// + /// The proposal has been released. + /// + [pbr::OriginalName("ACCEPTED")] Accepted = 2, + } + + public enum SideChainStatus { + /// + /// Currently no meaning. + /// + [pbr::OriginalName("FATAL")] Fatal = 0, + /// + /// The side chain is being indexed. + /// + [pbr::OriginalName("ACTIVE")] Active = 1, + /// + /// The side chain is in debt for indexing fee. + /// + [pbr::OriginalName("INDEXING_FEE_DEBT")] IndexingFeeDebt = 2, + /// + /// The side chain is disposed. + /// + [pbr::OriginalName("TERMINATED")] Terminated = 3, + } + + #endregion + + #region Messages + public sealed partial class InitializeInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializeInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InitializeInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InitializeInput(InitializeInput other) : this() { + parentChainId_ = other.parentChainId_; + creationHeightOnParentChain_ = other.creationHeightOnParentChain_; + isPrivilegePreserved_ = other.isPrivilegePreserved_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InitializeInput Clone() { + return new InitializeInput(this); + } + + /// Field number for the "parent_chain_id" field. + public const int ParentChainIdFieldNumber = 1; + private int parentChainId_; + /// + /// The id of parent chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ParentChainId { + get { return parentChainId_; } + set { + parentChainId_ = value; + } + } + + /// Field number for the "creation_height_on_parent_chain" field. + public const int CreationHeightOnParentChainFieldNumber = 2; + private long creationHeightOnParentChain_; + /// + /// The height of side chain created on parent chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long CreationHeightOnParentChain { + get { return creationHeightOnParentChain_; } + set { + creationHeightOnParentChain_ = value; + } + } + + /// Field number for the "is_privilege_preserved" field. + public const int IsPrivilegePreservedFieldNumber = 3; + private bool isPrivilegePreserved_; + /// + /// True if chain privilege needed, otherwise false. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsPrivilegePreserved { + get { return isPrivilegePreserved_; } + set { + isPrivilegePreserved_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as InitializeInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(InitializeInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ParentChainId != other.ParentChainId) return false; + if (CreationHeightOnParentChain != other.CreationHeightOnParentChain) return false; + if (IsPrivilegePreserved != other.IsPrivilegePreserved) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ParentChainId != 0) hash ^= ParentChainId.GetHashCode(); + if (CreationHeightOnParentChain != 0L) hash ^= CreationHeightOnParentChain.GetHashCode(); + if (IsPrivilegePreserved != false) hash ^= IsPrivilegePreserved.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ParentChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ParentChainId); + } + if (CreationHeightOnParentChain != 0L) { + output.WriteRawTag(16); + output.WriteInt64(CreationHeightOnParentChain); + } + if (IsPrivilegePreserved != false) { + output.WriteRawTag(24); + output.WriteBool(IsPrivilegePreserved); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ParentChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParentChainId); + } + if (CreationHeightOnParentChain != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CreationHeightOnParentChain); + } + if (IsPrivilegePreserved != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(InitializeInput other) { + if (other == null) { + return; + } + if (other.ParentChainId != 0) { + ParentChainId = other.ParentChainId; + } + if (other.CreationHeightOnParentChain != 0L) { + CreationHeightOnParentChain = other.CreationHeightOnParentChain; + } + if (other.IsPrivilegePreserved != false) { + IsPrivilegePreserved = other.IsPrivilegePreserved; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ParentChainId = input.ReadInt32(); + break; + } + case 16: { + CreationHeightOnParentChain = input.ReadInt64(); + break; + } + case 24: { + IsPrivilegePreserved = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class SideChainCreatedEvent : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainCreatedEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainCreatedEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainCreatedEvent(SideChainCreatedEvent other) : this() { + creator_ = other.creator_ != null ? other.creator_.Clone() : null; + chainId_ = other.chainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainCreatedEvent Clone() { + return new SideChainCreatedEvent(this); + } + + /// Field number for the "creator" field. + public const int CreatorFieldNumber = 1; + private global::AElf.Types.Address creator_; + /// + /// The proposer who propose to create the side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Creator { + get { return creator_; } + set { + creator_ = value; + } + } + + /// Field number for the "chainId" field. + public const int ChainIdFieldNumber = 2; + private int chainId_; + /// + /// The created side chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainCreatedEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainCreatedEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Creator, other.Creator)) return false; + if (ChainId != other.ChainId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (creator_ != null) hash ^= Creator.GetHashCode(); + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (creator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Creator); + } + if (ChainId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (creator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Creator); + } + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainCreatedEvent other) { + if (other == null) { + return; + } + if (other.creator_ != null) { + if (creator_ == null) { + Creator = new global::AElf.Types.Address(); + } + Creator.MergeFrom(other.Creator); + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (creator_ == null) { + Creator = new global::AElf.Types.Address(); + } + input.ReadMessage(Creator); + break; + } + case 16: { + ChainId = input.ReadInt32(); + break; + } + } + } + } + + } + + public sealed partial class Disposed : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Disposed()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Disposed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Disposed(Disposed other) : this() { + chainId_ = other.chainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Disposed Clone() { + return new Disposed(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private int chainId_; + /// + /// The disposed side chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Disposed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Disposed 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public void MergeFrom(Disposed other) { + if (other == null) { + return; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + } + } + } + + } + + public sealed partial class ProposedCrossChainIndexing : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProposedCrossChainIndexing()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposedCrossChainIndexing() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposedCrossChainIndexing(ProposedCrossChainIndexing other) : this() { + chainIndexingProposalCollections_ = other.chainIndexingProposalCollections_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProposedCrossChainIndexing Clone() { + return new ProposedCrossChainIndexing(this); + } + + /// Field number for the "chain_indexing_proposal_collections" field. + public const int ChainIndexingProposalCollectionsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_chainIndexingProposalCollections_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::AElf.Contracts.CrossChain.ChainIndexingProposal.Parser), 10); + private readonly pbc::MapField chainIndexingProposalCollections_ = new pbc::MapField(); + /// + /// The collection of chain indexing proposal, the key is chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField ChainIndexingProposalCollections { + get { return chainIndexingProposalCollections_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ProposedCrossChainIndexing); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ProposedCrossChainIndexing other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!ChainIndexingProposalCollections.Equals(other.ChainIndexingProposalCollections)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= ChainIndexingProposalCollections.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + chainIndexingProposalCollections_.WriteTo(output, _map_chainIndexingProposalCollections_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += chainIndexingProposalCollections_.CalculateSize(_map_chainIndexingProposalCollections_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ProposedCrossChainIndexing other) { + if (other == null) { + return; + } + chainIndexingProposalCollections_.Add(other.chainIndexingProposalCollections_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + chainIndexingProposalCollections_.AddEntriesFrom(input, _map_chainIndexingProposalCollections_codec); + break; + } + } + } + } + + } + + public sealed partial class ChainIndexingProposal : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainIndexingProposal()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainIndexingProposal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainIndexingProposal(ChainIndexingProposal other) : this() { + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + proposer_ = other.proposer_ != null ? other.proposer_.Clone() : null; + proposedCrossChainBlockData_ = other.proposedCrossChainBlockData_ != null ? other.proposedCrossChainBlockData_.Clone() : null; + status_ = other.status_; + chainId_ = other.chainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainIndexingProposal Clone() { + return new ChainIndexingProposal(this); + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 1; + private global::AElf.Types.Hash proposalId_; + /// + /// The id of cross chain indexing proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + /// Field number for the "proposer" field. + public const int ProposerFieldNumber = 2; + private global::AElf.Types.Address proposer_; + /// + /// The proposer of cross chain indexing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Proposer { + get { return proposer_; } + set { + proposer_ = value; + } + } + + /// Field number for the "proposed_cross_chain_block_data" field. + public const int ProposedCrossChainBlockDataFieldNumber = 3; + private global::AElf.Standards.ACS7.CrossChainBlockData proposedCrossChainBlockData_; + /// + /// The cross chain data proposed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.CrossChainBlockData ProposedCrossChainBlockData { + get { return proposedCrossChainBlockData_; } + set { + proposedCrossChainBlockData_ = value; + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 4; + private global::AElf.Contracts.CrossChain.CrossChainIndexingProposalStatus status_ = global::AElf.Contracts.CrossChain.CrossChainIndexingProposalStatus.NonProposed; + /// + /// The status of of cross chain indexing proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Contracts.CrossChain.CrossChainIndexingProposalStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 5; + private int chainId_; + /// + /// The chain id of the indexing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChainIndexingProposal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ChainIndexingProposal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalId, other.ProposalId)) return false; + if (!object.Equals(Proposer, other.Proposer)) return false; + if (!object.Equals(ProposedCrossChainBlockData, other.ProposedCrossChainBlockData)) return false; + if (Status != other.Status) return false; + if (ChainId != other.ChainId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (proposer_ != null) hash ^= Proposer.GetHashCode(); + if (proposedCrossChainBlockData_ != null) hash ^= ProposedCrossChainBlockData.GetHashCode(); + if (Status != global::AElf.Contracts.CrossChain.CrossChainIndexingProposalStatus.NonProposed) hash ^= Status.GetHashCode(); + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (proposer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Proposer); + } + if (proposedCrossChainBlockData_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ProposedCrossChainBlockData); + } + if (Status != global::AElf.Contracts.CrossChain.CrossChainIndexingProposalStatus.NonProposed) { + output.WriteRawTag(32); + output.WriteEnum((int) Status); + } + if (ChainId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (proposer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Proposer); + } + if (proposedCrossChainBlockData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedCrossChainBlockData); + } + if (Status != global::AElf.Contracts.CrossChain.CrossChainIndexingProposalStatus.NonProposed) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ChainIndexingProposal other) { + if (other == null) { + return; + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + if (other.proposer_ != null) { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + Proposer.MergeFrom(other.Proposer); + } + if (other.proposedCrossChainBlockData_ != null) { + if (proposedCrossChainBlockData_ == null) { + ProposedCrossChainBlockData = new global::AElf.Standards.ACS7.CrossChainBlockData(); + } + ProposedCrossChainBlockData.MergeFrom(other.ProposedCrossChainBlockData); + } + if (other.Status != global::AElf.Contracts.CrossChain.CrossChainIndexingProposalStatus.NonProposed) { + Status = other.Status; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + case 18: { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + input.ReadMessage(Proposer); + break; + } + case 26: { + if (proposedCrossChainBlockData_ == null) { + ProposedCrossChainBlockData = new global::AElf.Standards.ACS7.CrossChainBlockData(); + } + input.ReadMessage(ProposedCrossChainBlockData); + break; + } + case 32: { + Status = (global::AElf.Contracts.CrossChain.CrossChainIndexingProposalStatus) input.ReadEnum(); + break; + } + case 40: { + ChainId = input.ReadInt32(); + break; + } + } + } + } + + } + + public sealed partial class GetIndexingProposalStatusOutput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetIndexingProposalStatusOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetIndexingProposalStatusOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetIndexingProposalStatusOutput(GetIndexingProposalStatusOutput other) : this() { + chainIndexingProposalStatus_ = other.chainIndexingProposalStatus_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetIndexingProposalStatusOutput Clone() { + return new GetIndexingProposalStatusOutput(this); + } + + /// Field number for the "chain_indexing_proposal_status" field. + public const int ChainIndexingProposalStatusFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_chainIndexingProposalStatus_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::AElf.Contracts.CrossChain.PendingChainIndexingProposalStatus.Parser), 10); + private readonly pbc::MapField chainIndexingProposalStatus_ = new pbc::MapField(); + /// + /// The collection of pending indexing proposal, the key is chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField ChainIndexingProposalStatus { + get { return chainIndexingProposalStatus_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetIndexingProposalStatusOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetIndexingProposalStatusOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!ChainIndexingProposalStatus.Equals(other.ChainIndexingProposalStatus)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= ChainIndexingProposalStatus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + chainIndexingProposalStatus_.WriteTo(output, _map_chainIndexingProposalStatus_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += chainIndexingProposalStatus_.CalculateSize(_map_chainIndexingProposalStatus_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetIndexingProposalStatusOutput other) { + if (other == null) { + return; + } + chainIndexingProposalStatus_.Add(other.chainIndexingProposalStatus_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + chainIndexingProposalStatus_.AddEntriesFrom(input, _map_chainIndexingProposalStatus_codec); + break; + } + } + } + } + + } + + public sealed partial class PendingChainIndexingProposalStatus : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PendingChainIndexingProposalStatus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PendingChainIndexingProposalStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PendingChainIndexingProposalStatus(PendingChainIndexingProposalStatus other) : this() { + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + proposer_ = other.proposer_ != null ? other.proposer_.Clone() : null; + toBeReleased_ = other.toBeReleased_; + proposedCrossChainBlockData_ = other.proposedCrossChainBlockData_ != null ? other.proposedCrossChainBlockData_.Clone() : null; + expiredTime_ = other.expiredTime_ != null ? other.expiredTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PendingChainIndexingProposalStatus Clone() { + return new PendingChainIndexingProposalStatus(this); + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 1; + private global::AElf.Types.Hash proposalId_; + /// + /// The id of cross chain indexing proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + /// Field number for the "proposer" field. + public const int ProposerFieldNumber = 2; + private global::AElf.Types.Address proposer_; + /// + /// The proposer of cross chain indexing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Proposer { + get { return proposer_; } + set { + proposer_ = value; + } + } + + /// Field number for the "to_be_released" field. + public const int ToBeReleasedFieldNumber = 3; + private bool toBeReleased_; + /// + /// True if the proposal can be released, otherwise false. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ToBeReleased { + get { return toBeReleased_; } + set { + toBeReleased_ = value; + } + } + + /// Field number for the "proposed_cross_chain_block_data" field. + public const int ProposedCrossChainBlockDataFieldNumber = 4; + private global::AElf.Standards.ACS7.CrossChainBlockData proposedCrossChainBlockData_; + /// + /// The cross chain data proposed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.CrossChainBlockData ProposedCrossChainBlockData { + get { return proposedCrossChainBlockData_; } + set { + proposedCrossChainBlockData_ = value; + } + } + + /// Field number for the "expired_time" field. + public const int ExpiredTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiredTime_; + /// + /// The proposal expiration time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiredTime { + get { return expiredTime_; } + set { + expiredTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as PendingChainIndexingProposalStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(PendingChainIndexingProposalStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalId, other.ProposalId)) return false; + if (!object.Equals(Proposer, other.Proposer)) return false; + if (ToBeReleased != other.ToBeReleased) return false; + if (!object.Equals(ProposedCrossChainBlockData, other.ProposedCrossChainBlockData)) return false; + if (!object.Equals(ExpiredTime, other.ExpiredTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (proposer_ != null) hash ^= Proposer.GetHashCode(); + if (ToBeReleased != false) hash ^= ToBeReleased.GetHashCode(); + if (proposedCrossChainBlockData_ != null) hash ^= ProposedCrossChainBlockData.GetHashCode(); + if (expiredTime_ != null) hash ^= ExpiredTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (proposer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Proposer); + } + if (ToBeReleased != false) { + output.WriteRawTag(24); + output.WriteBool(ToBeReleased); + } + if (proposedCrossChainBlockData_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ProposedCrossChainBlockData); + } + if (expiredTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ExpiredTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (proposer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Proposer); + } + if (ToBeReleased != false) { + size += 1 + 1; + } + if (proposedCrossChainBlockData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedCrossChainBlockData); + } + if (expiredTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiredTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(PendingChainIndexingProposalStatus other) { + if (other == null) { + return; + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + if (other.proposer_ != null) { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + Proposer.MergeFrom(other.Proposer); + } + if (other.ToBeReleased != false) { + ToBeReleased = other.ToBeReleased; + } + if (other.proposedCrossChainBlockData_ != null) { + if (proposedCrossChainBlockData_ == null) { + ProposedCrossChainBlockData = new global::AElf.Standards.ACS7.CrossChainBlockData(); + } + ProposedCrossChainBlockData.MergeFrom(other.ProposedCrossChainBlockData); + } + if (other.expiredTime_ != null) { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiredTime.MergeFrom(other.ExpiredTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + case 18: { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + input.ReadMessage(Proposer); + break; + } + case 24: { + ToBeReleased = input.ReadBool(); + break; + } + case 34: { + if (proposedCrossChainBlockData_ == null) { + ProposedCrossChainBlockData = new global::AElf.Standards.ACS7.CrossChainBlockData(); + } + input.ReadMessage(ProposedCrossChainBlockData); + break; + } + case 42: { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiredTime); + break; + } + } + } + } + + } + + public sealed partial class GetPendingCrossChainIndexingProposalOutput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPendingCrossChainIndexingProposalOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetPendingCrossChainIndexingProposalOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetPendingCrossChainIndexingProposalOutput(GetPendingCrossChainIndexingProposalOutput other) : this() { + proposalId_ = other.proposalId_ != null ? other.proposalId_.Clone() : null; + proposer_ = other.proposer_ != null ? other.proposer_.Clone() : null; + toBeReleased_ = other.toBeReleased_; + proposedCrossChainBlockData_ = other.proposedCrossChainBlockData_ != null ? other.proposedCrossChainBlockData_.Clone() : null; + expiredTime_ = other.expiredTime_ != null ? other.expiredTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetPendingCrossChainIndexingProposalOutput Clone() { + return new GetPendingCrossChainIndexingProposalOutput(this); + } + + /// Field number for the "proposal_id" field. + public const int ProposalIdFieldNumber = 1; + private global::AElf.Types.Hash proposalId_; + /// + /// The proposal id of cross chain indexing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash ProposalId { + get { return proposalId_; } + set { + proposalId_ = value; + } + } + + /// Field number for the "proposer" field. + public const int ProposerFieldNumber = 2; + private global::AElf.Types.Address proposer_; + /// + /// The proposer of cross chain indexing proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Proposer { + get { return proposer_; } + set { + proposer_ = value; + } + } + + /// Field number for the "to_be_released" field. + public const int ToBeReleasedFieldNumber = 3; + private bool toBeReleased_; + /// + /// True if the proposal can be released, otherwise false. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ToBeReleased { + get { return toBeReleased_; } + set { + toBeReleased_ = value; + } + } + + /// Field number for the "proposed_cross_chain_block_data" field. + public const int ProposedCrossChainBlockDataFieldNumber = 4; + private global::AElf.Standards.ACS7.CrossChainBlockData proposedCrossChainBlockData_; + /// + /// The cross chain data proposed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.CrossChainBlockData ProposedCrossChainBlockData { + get { return proposedCrossChainBlockData_; } + set { + proposedCrossChainBlockData_ = value; + } + } + + /// Field number for the "expired_time" field. + public const int ExpiredTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiredTime_; + /// + /// The proposal expiration time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiredTime { + get { return expiredTime_; } + set { + expiredTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetPendingCrossChainIndexingProposalOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetPendingCrossChainIndexingProposalOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ProposalId, other.ProposalId)) return false; + if (!object.Equals(Proposer, other.Proposer)) return false; + if (ToBeReleased != other.ToBeReleased) return false; + if (!object.Equals(ProposedCrossChainBlockData, other.ProposedCrossChainBlockData)) return false; + if (!object.Equals(ExpiredTime, other.ExpiredTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposalId_ != null) hash ^= ProposalId.GetHashCode(); + if (proposer_ != null) hash ^= Proposer.GetHashCode(); + if (ToBeReleased != false) hash ^= ToBeReleased.GetHashCode(); + if (proposedCrossChainBlockData_ != null) hash ^= ProposedCrossChainBlockData.GetHashCode(); + if (expiredTime_ != null) hash ^= ExpiredTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposalId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ProposalId); + } + if (proposer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Proposer); + } + if (ToBeReleased != false) { + output.WriteRawTag(24); + output.WriteBool(ToBeReleased); + } + if (proposedCrossChainBlockData_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ProposedCrossChainBlockData); + } + if (expiredTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ExpiredTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposalId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposalId); + } + if (proposer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Proposer); + } + if (ToBeReleased != false) { + size += 1 + 1; + } + if (proposedCrossChainBlockData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProposedCrossChainBlockData); + } + if (expiredTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiredTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetPendingCrossChainIndexingProposalOutput other) { + if (other == null) { + return; + } + if (other.proposalId_ != null) { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + ProposalId.MergeFrom(other.ProposalId); + } + if (other.proposer_ != null) { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + Proposer.MergeFrom(other.Proposer); + } + if (other.ToBeReleased != false) { + ToBeReleased = other.ToBeReleased; + } + if (other.proposedCrossChainBlockData_ != null) { + if (proposedCrossChainBlockData_ == null) { + ProposedCrossChainBlockData = new global::AElf.Standards.ACS7.CrossChainBlockData(); + } + ProposedCrossChainBlockData.MergeFrom(other.ProposedCrossChainBlockData); + } + if (other.expiredTime_ != null) { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiredTime.MergeFrom(other.ExpiredTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposalId_ == null) { + ProposalId = new global::AElf.Types.Hash(); + } + input.ReadMessage(ProposalId); + break; + } + case 18: { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + input.ReadMessage(Proposer); + break; + } + case 24: { + ToBeReleased = input.ReadBool(); + break; + } + case 34: { + if (proposedCrossChainBlockData_ == null) { + ProposedCrossChainBlockData = new global::AElf.Standards.ACS7.CrossChainBlockData(); + } + input.ReadMessage(ProposedCrossChainBlockData); + break; + } + case 42: { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiredTime); + break; + } + } + } + } + + } + + public sealed partial class SideChainInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainInfo(SideChainInfo other) : this() { + proposer_ = other.proposer_ != null ? other.proposer_.Clone() : null; + sideChainStatus_ = other.sideChainStatus_; + sideChainId_ = other.sideChainId_; + creationTimestamp_ = other.creationTimestamp_ != null ? other.creationTimestamp_.Clone() : null; + creationHeightOnParentChain_ = other.creationHeightOnParentChain_; + indexingPrice_ = other.indexingPrice_; + isPrivilegePreserved_ = other.isPrivilegePreserved_; + arrearsInfo_ = other.arrearsInfo_.Clone(); + indexingFeeController_ = other.indexingFeeController_ != null ? other.indexingFeeController_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainInfo Clone() { + return new SideChainInfo(this); + } + + /// Field number for the "proposer" field. + public const int ProposerFieldNumber = 1; + private global::AElf.Types.Address proposer_; + /// + /// The proposer who propose to create the side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Proposer { + get { return proposer_; } + set { + proposer_ = value; + } + } + + /// Field number for the "side_chain_status" field. + public const int SideChainStatusFieldNumber = 2; + private global::AElf.Contracts.CrossChain.SideChainStatus sideChainStatus_ = global::AElf.Contracts.CrossChain.SideChainStatus.Fatal; + /// + /// The status of side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Contracts.CrossChain.SideChainStatus SideChainStatus { + get { return sideChainStatus_; } + set { + sideChainStatus_ = value; + } + } + + /// Field number for the "side_chain_id" field. + public const int SideChainIdFieldNumber = 3; + private int sideChainId_; + /// + /// The side chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int SideChainId { + get { return sideChainId_; } + set { + sideChainId_ = value; + } + } + + /// Field number for the "creation_timestamp" field. + public const int CreationTimestampFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp creationTimestamp_; + /// + /// The time of side chain created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreationTimestamp { + get { return creationTimestamp_; } + set { + creationTimestamp_ = value; + } + } + + /// Field number for the "creation_height_on_parent_chain" field. + public const int CreationHeightOnParentChainFieldNumber = 5; + private long creationHeightOnParentChain_; + /// + /// The height of side chain created on parent chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long CreationHeightOnParentChain { + get { return creationHeightOnParentChain_; } + set { + creationHeightOnParentChain_ = value; + } + } + + /// Field number for the "indexing_price" field. + public const int IndexingPriceFieldNumber = 6; + private long indexingPrice_; + /// + /// The price of indexing fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long IndexingPrice { + get { return indexingPrice_; } + set { + indexingPrice_ = value; + } + } + + /// Field number for the "is_privilege_preserved" field. + public const int IsPrivilegePreservedFieldNumber = 7; + private bool isPrivilegePreserved_; + /// + /// True if chain privilege needed, otherwise false. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsPrivilegePreserved { + get { return isPrivilegePreserved_; } + set { + isPrivilegePreserved_ = value; + } + } + + /// Field number for the "arrears_info" field. + public const int ArrearsInfoFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_arrearsInfo_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 66); + private readonly pbc::MapField arrearsInfo_ = new pbc::MapField(); + /// + /// creditor and amounts for the chain indexing fee debt + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField ArrearsInfo { + get { return arrearsInfo_; } + } + + /// Field number for the "indexing_fee_controller" field. + public const int IndexingFeeControllerFieldNumber = 9; + private global::AuthorityInfo indexingFeeController_; + /// + /// The controller of indexing fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AuthorityInfo IndexingFeeController { + get { return indexingFeeController_; } + set { + indexingFeeController_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Proposer, other.Proposer)) return false; + if (SideChainStatus != other.SideChainStatus) return false; + if (SideChainId != other.SideChainId) return false; + if (!object.Equals(CreationTimestamp, other.CreationTimestamp)) return false; + if (CreationHeightOnParentChain != other.CreationHeightOnParentChain) return false; + if (IndexingPrice != other.IndexingPrice) return false; + if (IsPrivilegePreserved != other.IsPrivilegePreserved) return false; + if (!ArrearsInfo.Equals(other.ArrearsInfo)) return false; + if (!object.Equals(IndexingFeeController, other.IndexingFeeController)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (proposer_ != null) hash ^= Proposer.GetHashCode(); + if (SideChainStatus != global::AElf.Contracts.CrossChain.SideChainStatus.Fatal) hash ^= SideChainStatus.GetHashCode(); + if (SideChainId != 0) hash ^= SideChainId.GetHashCode(); + if (creationTimestamp_ != null) hash ^= CreationTimestamp.GetHashCode(); + if (CreationHeightOnParentChain != 0L) hash ^= CreationHeightOnParentChain.GetHashCode(); + if (IndexingPrice != 0L) hash ^= IndexingPrice.GetHashCode(); + if (IsPrivilegePreserved != false) hash ^= IsPrivilegePreserved.GetHashCode(); + hash ^= ArrearsInfo.GetHashCode(); + if (indexingFeeController_ != null) hash ^= IndexingFeeController.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (proposer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Proposer); + } + if (SideChainStatus != global::AElf.Contracts.CrossChain.SideChainStatus.Fatal) { + output.WriteRawTag(16); + output.WriteEnum((int) SideChainStatus); + } + if (SideChainId != 0) { + output.WriteRawTag(24); + output.WriteInt32(SideChainId); + } + if (creationTimestamp_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreationTimestamp); + } + if (CreationHeightOnParentChain != 0L) { + output.WriteRawTag(40); + output.WriteInt64(CreationHeightOnParentChain); + } + if (IndexingPrice != 0L) { + output.WriteRawTag(48); + output.WriteInt64(IndexingPrice); + } + if (IsPrivilegePreserved != false) { + output.WriteRawTag(56); + output.WriteBool(IsPrivilegePreserved); + } + arrearsInfo_.WriteTo(output, _map_arrearsInfo_codec); + if (indexingFeeController_ != null) { + output.WriteRawTag(74); + output.WriteMessage(IndexingFeeController); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (proposer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Proposer); + } + if (SideChainStatus != global::AElf.Contracts.CrossChain.SideChainStatus.Fatal) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SideChainStatus); + } + if (SideChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SideChainId); + } + if (creationTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreationTimestamp); + } + if (CreationHeightOnParentChain != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CreationHeightOnParentChain); + } + if (IndexingPrice != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IndexingPrice); + } + if (IsPrivilegePreserved != false) { + size += 1 + 1; + } + size += arrearsInfo_.CalculateSize(_map_arrearsInfo_codec); + if (indexingFeeController_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IndexingFeeController); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainInfo other) { + if (other == null) { + return; + } + if (other.proposer_ != null) { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + Proposer.MergeFrom(other.Proposer); + } + if (other.SideChainStatus != global::AElf.Contracts.CrossChain.SideChainStatus.Fatal) { + SideChainStatus = other.SideChainStatus; + } + if (other.SideChainId != 0) { + SideChainId = other.SideChainId; + } + if (other.creationTimestamp_ != null) { + if (creationTimestamp_ == null) { + CreationTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreationTimestamp.MergeFrom(other.CreationTimestamp); + } + if (other.CreationHeightOnParentChain != 0L) { + CreationHeightOnParentChain = other.CreationHeightOnParentChain; + } + if (other.IndexingPrice != 0L) { + IndexingPrice = other.IndexingPrice; + } + if (other.IsPrivilegePreserved != false) { + IsPrivilegePreserved = other.IsPrivilegePreserved; + } + arrearsInfo_.Add(other.arrearsInfo_); + if (other.indexingFeeController_ != null) { + if (indexingFeeController_ == null) { + IndexingFeeController = new global::AuthorityInfo(); + } + IndexingFeeController.MergeFrom(other.IndexingFeeController); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + input.ReadMessage(Proposer); + break; + } + case 16: { + SideChainStatus = (global::AElf.Contracts.CrossChain.SideChainStatus) input.ReadEnum(); + break; + } + case 24: { + SideChainId = input.ReadInt32(); + break; + } + case 34: { + if (creationTimestamp_ == null) { + CreationTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreationTimestamp); + break; + } + case 40: { + CreationHeightOnParentChain = input.ReadInt64(); + break; + } + case 48: { + IndexingPrice = input.ReadInt64(); + break; + } + case 56: { + IsPrivilegePreserved = input.ReadBool(); + break; + } + case 66: { + arrearsInfo_.AddEntriesFrom(input, _map_arrearsInfo_codec); + break; + } + case 74: { + if (indexingFeeController_ == null) { + IndexingFeeController = new global::AuthorityInfo(); + } + input.ReadMessage(IndexingFeeController); + break; + } + } + } + } + + } + + public sealed partial class GetChainStatusOutput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetChainStatusOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetChainStatusOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetChainStatusOutput(GetChainStatusOutput other) : this() { + status_ = other.status_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetChainStatusOutput Clone() { + return new GetChainStatusOutput(this); + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 1; + private global::AElf.Contracts.CrossChain.SideChainStatus status_ = global::AElf.Contracts.CrossChain.SideChainStatus.Fatal; + /// + /// The status of side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Contracts.CrossChain.SideChainStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetChainStatusOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetChainStatusOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Status != other.Status) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Status != global::AElf.Contracts.CrossChain.SideChainStatus.Fatal) hash ^= Status.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Status != global::AElf.Contracts.CrossChain.SideChainStatus.Fatal) { + output.WriteRawTag(8); + output.WriteEnum((int) Status); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Status != global::AElf.Contracts.CrossChain.SideChainStatus.Fatal) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetChainStatusOutput other) { + if (other == null) { + return; + } + if (other.Status != global::AElf.Contracts.CrossChain.SideChainStatus.Fatal) { + Status = other.Status; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Status = (global::AElf.Contracts.CrossChain.SideChainStatus) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class SideChainCreationRequestState : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainCreationRequestState()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainCreationRequestState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainCreationRequestState(SideChainCreationRequestState other) : this() { + sideChainCreationRequest_ = other.sideChainCreationRequest_ != null ? other.sideChainCreationRequest_.Clone() : null; + expiredTime_ = other.expiredTime_ != null ? other.expiredTime_.Clone() : null; + proposer_ = other.proposer_ != null ? other.proposer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainCreationRequestState Clone() { + return new SideChainCreationRequestState(this); + } + + /// Field number for the "side_chain_creation_request" field. + public const int SideChainCreationRequestFieldNumber = 1; + private global::AElf.Standards.ACS7.SideChainCreationRequest sideChainCreationRequest_; + /// + /// The parameters of creating side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Standards.ACS7.SideChainCreationRequest SideChainCreationRequest { + get { return sideChainCreationRequest_; } + set { + sideChainCreationRequest_ = value; + } + } + + /// Field number for the "expired_time" field. + public const int ExpiredTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiredTime_; + /// + /// The expiration date of the proposal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiredTime { + get { return expiredTime_; } + set { + expiredTime_ = value; + } + } + + /// Field number for the "proposer" field. + public const int ProposerFieldNumber = 3; + private global::AElf.Types.Address proposer_; + /// + /// The proposer who proposed to create the side chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Proposer { + get { return proposer_; } + set { + proposer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainCreationRequestState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainCreationRequestState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SideChainCreationRequest, other.SideChainCreationRequest)) return false; + if (!object.Equals(ExpiredTime, other.ExpiredTime)) return false; + if (!object.Equals(Proposer, other.Proposer)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (sideChainCreationRequest_ != null) hash ^= SideChainCreationRequest.GetHashCode(); + if (expiredTime_ != null) hash ^= ExpiredTime.GetHashCode(); + if (proposer_ != null) hash ^= Proposer.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (sideChainCreationRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SideChainCreationRequest); + } + if (expiredTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExpiredTime); + } + if (proposer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Proposer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (sideChainCreationRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SideChainCreationRequest); + } + if (expiredTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiredTime); + } + if (proposer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Proposer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainCreationRequestState other) { + if (other == null) { + return; + } + if (other.sideChainCreationRequest_ != null) { + if (sideChainCreationRequest_ == null) { + SideChainCreationRequest = new global::AElf.Standards.ACS7.SideChainCreationRequest(); + } + SideChainCreationRequest.MergeFrom(other.SideChainCreationRequest); + } + if (other.expiredTime_ != null) { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiredTime.MergeFrom(other.ExpiredTime); + } + if (other.proposer_ != null) { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + Proposer.MergeFrom(other.Proposer); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sideChainCreationRequest_ == null) { + SideChainCreationRequest = new global::AElf.Standards.ACS7.SideChainCreationRequest(); + } + input.ReadMessage(SideChainCreationRequest); + break; + } + case 18: { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiredTime); + break; + } + case 26: { + if (proposer_ == null) { + Proposer = new global::AElf.Types.Address(); + } + input.ReadMessage(Proposer); + break; + } + } + } + } + + } + + public sealed partial class ChangeSideChainIndexingFeeControllerInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeSideChainIndexingFeeControllerInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChangeSideChainIndexingFeeControllerInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChangeSideChainIndexingFeeControllerInput(ChangeSideChainIndexingFeeControllerInput other) : this() { + chainId_ = other.chainId_; + authorityInfo_ = other.authorityInfo_ != null ? other.authorityInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChangeSideChainIndexingFeeControllerInput Clone() { + return new ChangeSideChainIndexingFeeControllerInput(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private int chainId_; + /// + /// The side chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + /// Field number for the "authority_info" field. + public const int AuthorityInfoFieldNumber = 2; + private global::AuthorityInfo authorityInfo_; + /// + /// The changed controller of indexing fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AuthorityInfo AuthorityInfo { + get { return authorityInfo_; } + set { + authorityInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChangeSideChainIndexingFeeControllerInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ChangeSideChainIndexingFeeControllerInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (!object.Equals(AuthorityInfo, other.AuthorityInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (authorityInfo_ != null) hash ^= AuthorityInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (authorityInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AuthorityInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (authorityInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthorityInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ChangeSideChainIndexingFeeControllerInput other) { + if (other == null) { + return; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + if (other.authorityInfo_ != null) { + if (authorityInfo_ == null) { + AuthorityInfo = new global::AuthorityInfo(); + } + AuthorityInfo.MergeFrom(other.AuthorityInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + case 18: { + if (authorityInfo_ == null) { + AuthorityInfo = new global::AuthorityInfo(); + } + input.ReadMessage(AuthorityInfo); + break; + } + } + } + } + + } + + public sealed partial class SideChainLifetimeControllerChanged : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainLifetimeControllerChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainLifetimeControllerChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainLifetimeControllerChanged(SideChainLifetimeControllerChanged other) : this() { + authorityInfo_ = other.authorityInfo_ != null ? other.authorityInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainLifetimeControllerChanged Clone() { + return new SideChainLifetimeControllerChanged(this); + } + + /// Field number for the "authority_info" field. + public const int AuthorityInfoFieldNumber = 1; + private global::AuthorityInfo authorityInfo_; + /// + /// The changed controller of side chain lifetime. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AuthorityInfo AuthorityInfo { + get { return authorityInfo_; } + set { + authorityInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainLifetimeControllerChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainLifetimeControllerChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AuthorityInfo, other.AuthorityInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (authorityInfo_ != null) hash ^= AuthorityInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (authorityInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AuthorityInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (authorityInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthorityInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainLifetimeControllerChanged other) { + if (other == null) { + return; + } + if (other.authorityInfo_ != null) { + if (authorityInfo_ == null) { + AuthorityInfo = new global::AuthorityInfo(); + } + AuthorityInfo.MergeFrom(other.AuthorityInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (authorityInfo_ == null) { + AuthorityInfo = new global::AuthorityInfo(); + } + input.ReadMessage(AuthorityInfo); + break; + } + } + } + } + + } + + public sealed partial class CrossChainIndexingControllerChanged : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainIndexingControllerChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainIndexingControllerChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainIndexingControllerChanged(CrossChainIndexingControllerChanged other) : this() { + authorityInfo_ = other.authorityInfo_ != null ? other.authorityInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainIndexingControllerChanged Clone() { + return new CrossChainIndexingControllerChanged(this); + } + + /// Field number for the "authority_info" field. + public const int AuthorityInfoFieldNumber = 1; + private global::AuthorityInfo authorityInfo_; + /// + /// The changed controller of indexing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AuthorityInfo AuthorityInfo { + get { return authorityInfo_; } + set { + authorityInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainIndexingControllerChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CrossChainIndexingControllerChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AuthorityInfo, other.AuthorityInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (authorityInfo_ != null) hash ^= AuthorityInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (authorityInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AuthorityInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (authorityInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthorityInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CrossChainIndexingControllerChanged other) { + if (other == null) { + return; + } + if (other.authorityInfo_ != null) { + if (authorityInfo_ == null) { + AuthorityInfo = new global::AuthorityInfo(); + } + AuthorityInfo.MergeFrom(other.AuthorityInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (authorityInfo_ == null) { + AuthorityInfo = new global::AuthorityInfo(); + } + input.ReadMessage(AuthorityInfo); + break; + } + } + } + } + + } + + public sealed partial class SideChainIndexingFeeControllerChanged : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainIndexingFeeControllerChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexingFeeControllerChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexingFeeControllerChanged(SideChainIndexingFeeControllerChanged other) : this() { + chainId_ = other.chainId_; + authorityInfo_ = other.authorityInfo_ != null ? other.authorityInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexingFeeControllerChanged Clone() { + return new SideChainIndexingFeeControllerChanged(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private int chainId_; + /// + /// The side chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + /// Field number for the "authority_info" field. + public const int AuthorityInfoFieldNumber = 2; + private global::AuthorityInfo authorityInfo_; + /// + /// The changed controller of side chain indexing fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AuthorityInfo AuthorityInfo { + get { return authorityInfo_; } + set { + authorityInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainIndexingFeeControllerChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainIndexingFeeControllerChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (!object.Equals(AuthorityInfo, other.AuthorityInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (authorityInfo_ != null) hash ^= AuthorityInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (authorityInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AuthorityInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (authorityInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthorityInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainIndexingFeeControllerChanged other) { + if (other == null) { + return; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + if (other.authorityInfo_ != null) { + if (authorityInfo_ == null) { + AuthorityInfo = new global::AuthorityInfo(); + } + AuthorityInfo.MergeFrom(other.AuthorityInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + case 18: { + if (authorityInfo_ == null) { + AuthorityInfo = new global::AuthorityInfo(); + } + input.ReadMessage(AuthorityInfo); + break; + } + } + } + } + + } + + public sealed partial class AcceptCrossChainIndexingProposalInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AcceptCrossChainIndexingProposalInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptCrossChainIndexingProposalInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptCrossChainIndexingProposalInput(AcceptCrossChainIndexingProposalInput other) : this() { + chainId_ = other.chainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptCrossChainIndexingProposalInput Clone() { + return new AcceptCrossChainIndexingProposalInput(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private int chainId_; + /// + /// The chain id of accepted indexing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AcceptCrossChainIndexingProposalInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AcceptCrossChainIndexingProposalInput 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public void MergeFrom(AcceptCrossChainIndexingProposalInput other) { + if (other == null) { + return; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + } + } + } + + } + + public sealed partial class SideChainIndexed : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SideChainIndexed()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexed(SideChainIndexed other) : this() { + chainId_ = other.chainId_; + indexedHeight_ = other.indexedHeight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SideChainIndexed Clone() { + return new SideChainIndexed(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private int chainId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + /// Field number for the "indexed_height" field. + public const int IndexedHeightFieldNumber = 2; + private long indexedHeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long IndexedHeight { + get { return indexedHeight_; } + set { + indexedHeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SideChainIndexed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SideChainIndexed other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (IndexedHeight != other.IndexedHeight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (IndexedHeight != 0L) hash ^= IndexedHeight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (IndexedHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(IndexedHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (IndexedHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IndexedHeight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SideChainIndexed other) { + if (other == null) { + return; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + if (other.IndexedHeight != 0L) { + IndexedHeight = other.IndexedHeight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + case 16: { + IndexedHeight = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class ParentChainIndexed : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParentChainIndexed()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.CrossChain.CrossChainContractReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ParentChainIndexed() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ParentChainIndexed(ParentChainIndexed other) : this() { + chainId_ = other.chainId_; + indexedHeight_ = other.indexedHeight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ParentChainIndexed Clone() { + return new ParentChainIndexed(this); + } + + /// Field number for the "chain_id" field. + public const int ChainIdFieldNumber = 1; + private int chainId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + /// Field number for the "indexed_height" field. + public const int IndexedHeightFieldNumber = 2; + private long indexedHeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long IndexedHeight { + get { return indexedHeight_; } + set { + indexedHeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ParentChainIndexed); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ParentChainIndexed other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChainId != other.ChainId) return false; + if (IndexedHeight != other.IndexedHeight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ChainId != 0) hash ^= ChainId.GetHashCode(); + if (IndexedHeight != 0L) hash ^= IndexedHeight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (IndexedHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(IndexedHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChainId); + } + if (IndexedHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IndexedHeight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ParentChainIndexed other) { + if (other == null) { + return; + } + if (other.ChainId != 0) { + ChainId = other.ChainId; + } + if (other.IndexedHeight != 0L) { + IndexedHeight = other.IndexedHeight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + case 16: { + IndexedHeight = input.ReadInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/ReceiptMaker.g.cs b/src/EbridgeIndexer/Contracts/ReceiptMaker.g.cs new file mode 100644 index 0000000..56636a8 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/ReceiptMaker.g.cs @@ -0,0 +1,743 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: receipt_maker.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 EBridge.Contracts.ReceiptMakerContract { + + /// Holder for reflection information generated from receipt_maker.proto + public static partial class ReceiptMakerReflection { + + #region Descriptor + /// File descriptor for receipt_maker.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ReceiptMakerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNyZWNlaXB0X21ha2VyLnByb3RvGg9hZWxmL2NvcmUucHJvdG8aEmFlbGYv", + "b3B0aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGh5n", + "b29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8iSgoTR2V0UmVjZWlwdEhh", + "c2hJbnB1dBIcCghzcGFjZV9pZBgBIAEoCzIKLmFlbGYuSGFzaBIVCg1yZWNl", + "aXB0X2luZGV4GAIgASgDImoKF0dldFJlY2VpcHRIYXNoTGlzdElucHV0EhgK", + "EGZpcnN0X2xlYWZfaW5kZXgYASABKAMSFwoPbGFzdF9sZWFmX2luZGV4GAIg", + "ASgDEhwKCHNwYWNlX2lkGAMgASgLMgouYWVsZi5IYXNoIkEKGEdldFJlY2Vp", + "cHRIYXNoTGlzdE91dHB1dBIlChFyZWNlaXB0X2hhc2hfbGlzdBgBIAMoCzIK", + "LmFlbGYuSGFzaDLmAQoUUmVjZWlwdE1ha2VyQ29udHJhY3QSQQoPR2V0UmVj", + "ZWlwdENvdW50EgouYWVsZi5IYXNoGhsuZ29vZ2xlLnByb3RvYnVmLkludDY0", + "VmFsdWUiBYiJ9wEBEjkKDkdldFJlY2VpcHRIYXNoEhQuR2V0UmVjZWlwdEhh", + "c2hJbnB1dBoKLmFlbGYuSGFzaCIFiIn3AQESUAoSR2V0UmVjZWlwdEhhc2hM", + "aXN0EhguR2V0UmVjZWlwdEhhc2hMaXN0SW5wdXQaGS5HZXRSZWNlaXB0SGFz", + "aExpc3RPdXRwdXQiBYiJ9wEBQimqAiZFQnJpZGdlLkNvbnRyYWN0cy5SZWNl", + "aXB0TWFrZXJDb250cmFjdGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashInput), global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashInput.Parser, new[]{ "SpaceId", "ReceiptIndex" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashListInput), global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashListInput.Parser, new[]{ "FirstLeafIndex", "LastLeafIndex", "SpaceId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashListOutput), global::EBridge.Contracts.ReceiptMakerContract.GetReceiptHashListOutput.Parser, new[]{ "ReceiptHashList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class GetReceiptHashInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetReceiptHashInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.ReceiptMakerContract.ReceiptMakerReflection.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 GetReceiptHashInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptHashInput(GetReceiptHashInput other) : this() { + spaceId_ = other.spaceId_ != null ? other.spaceId_.Clone() : null; + receiptIndex_ = other.receiptIndex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptHashInput Clone() { + return new GetReceiptHashInput(this); + } + + /// Field number for the "space_id" field. + public const int SpaceIdFieldNumber = 1; + private global::AElf.Types.Hash spaceId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SpaceId { + get { return spaceId_; } + set { + spaceId_ = value; + } + } + + /// Field number for the "receipt_index" field. + public const int ReceiptIndexFieldNumber = 2; + private long receiptIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ReceiptIndex { + get { return receiptIndex_; } + set { + receiptIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetReceiptHashInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetReceiptHashInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SpaceId, other.SpaceId)) return false; + if (ReceiptIndex != other.ReceiptIndex) return 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 (spaceId_ != null) hash ^= SpaceId.GetHashCode(); + if (ReceiptIndex != 0L) hash ^= ReceiptIndex.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (spaceId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SpaceId); + } + if (ReceiptIndex != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ReceiptIndex); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (spaceId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SpaceId); + } + if (ReceiptIndex != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ReceiptIndex); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (spaceId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpaceId); + } + if (ReceiptIndex != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReceiptIndex); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetReceiptHashInput other) { + if (other == null) { + return; + } + if (other.spaceId_ != null) { + if (spaceId_ == null) { + SpaceId = new global::AElf.Types.Hash(); + } + SpaceId.MergeFrom(other.SpaceId); + } + if (other.ReceiptIndex != 0L) { + ReceiptIndex = other.ReceiptIndex; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (spaceId_ == null) { + SpaceId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SpaceId); + break; + } + case 16: { + ReceiptIndex = 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 (spaceId_ == null) { + SpaceId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SpaceId); + break; + } + case 16: { + ReceiptIndex = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetReceiptHashListInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetReceiptHashListInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.ReceiptMakerContract.ReceiptMakerReflection.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 GetReceiptHashListInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptHashListInput(GetReceiptHashListInput other) : this() { + firstLeafIndex_ = other.firstLeafIndex_; + lastLeafIndex_ = other.lastLeafIndex_; + spaceId_ = other.spaceId_ != null ? other.spaceId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptHashListInput Clone() { + return new GetReceiptHashListInput(this); + } + + /// Field number for the "first_leaf_index" field. + public const int FirstLeafIndexFieldNumber = 1; + private long firstLeafIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long FirstLeafIndex { + get { return firstLeafIndex_; } + set { + firstLeafIndex_ = value; + } + } + + /// Field number for the "last_leaf_index" field. + public const int LastLeafIndexFieldNumber = 2; + private long lastLeafIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long LastLeafIndex { + get { return lastLeafIndex_; } + set { + lastLeafIndex_ = value; + } + } + + /// Field number for the "space_id" field. + public const int SpaceIdFieldNumber = 3; + private global::AElf.Types.Hash spaceId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash SpaceId { + get { return spaceId_; } + set { + spaceId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetReceiptHashListInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetReceiptHashListInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FirstLeafIndex != other.FirstLeafIndex) return false; + if (LastLeafIndex != other.LastLeafIndex) return false; + if (!object.Equals(SpaceId, other.SpaceId)) return 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 (FirstLeafIndex != 0L) hash ^= FirstLeafIndex.GetHashCode(); + if (LastLeafIndex != 0L) hash ^= LastLeafIndex.GetHashCode(); + if (spaceId_ != null) hash ^= SpaceId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (FirstLeafIndex != 0L) { + output.WriteRawTag(8); + output.WriteInt64(FirstLeafIndex); + } + if (LastLeafIndex != 0L) { + output.WriteRawTag(16); + output.WriteInt64(LastLeafIndex); + } + if (spaceId_ != null) { + output.WriteRawTag(26); + output.WriteMessage(SpaceId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FirstLeafIndex != 0L) { + output.WriteRawTag(8); + output.WriteInt64(FirstLeafIndex); + } + if (LastLeafIndex != 0L) { + output.WriteRawTag(16); + output.WriteInt64(LastLeafIndex); + } + if (spaceId_ != null) { + output.WriteRawTag(26); + output.WriteMessage(SpaceId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FirstLeafIndex != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(FirstLeafIndex); + } + if (LastLeafIndex != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(LastLeafIndex); + } + if (spaceId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpaceId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetReceiptHashListInput other) { + if (other == null) { + return; + } + if (other.FirstLeafIndex != 0L) { + FirstLeafIndex = other.FirstLeafIndex; + } + if (other.LastLeafIndex != 0L) { + LastLeafIndex = other.LastLeafIndex; + } + if (other.spaceId_ != null) { + if (spaceId_ == null) { + SpaceId = new global::AElf.Types.Hash(); + } + SpaceId.MergeFrom(other.SpaceId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + FirstLeafIndex = input.ReadInt64(); + break; + } + case 16: { + LastLeafIndex = input.ReadInt64(); + break; + } + case 26: { + if (spaceId_ == null) { + SpaceId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SpaceId); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + FirstLeafIndex = input.ReadInt64(); + break; + } + case 16: { + LastLeafIndex = input.ReadInt64(); + break; + } + case 26: { + if (spaceId_ == null) { + SpaceId = new global::AElf.Types.Hash(); + } + input.ReadMessage(SpaceId); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetReceiptHashListOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetReceiptHashListOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.ReceiptMakerContract.ReceiptMakerReflection.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 GetReceiptHashListOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptHashListOutput(GetReceiptHashListOutput other) : this() { + receiptHashList_ = other.receiptHashList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetReceiptHashListOutput Clone() { + return new GetReceiptHashListOutput(this); + } + + /// Field number for the "receipt_hash_list" field. + public const int ReceiptHashListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_receiptHashList_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Types.Hash.Parser); + private readonly pbc::RepeatedField receiptHashList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ReceiptHashList { + get { return receiptHashList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetReceiptHashListOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetReceiptHashListOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!receiptHashList_.Equals(other.receiptHashList_)) return 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 ^= receiptHashList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + receiptHashList_.WriteTo(output, _repeated_receiptHashList_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) { + receiptHashList_.WriteTo(ref output, _repeated_receiptHashList_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 += receiptHashList_.CalculateSize(_repeated_receiptHashList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetReceiptHashListOutput other) { + if (other == null) { + return; + } + receiptHashList_.Add(other.receiptHashList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + receiptHashList_.AddEntriesFrom(input, _repeated_receiptHashList_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: { + receiptHashList_.AddEntriesFrom(ref input, _repeated_receiptHashList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/TokenContract.c.cs b/src/EbridgeIndexer/Contracts/TokenContract.c.cs new file mode 100644 index 0000000..27b05d4 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/TokenContract.c.cs @@ -0,0 +1,344 @@ +// +// 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, + }; + } + } + + 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, + }; + } + } + + 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, + }; + } + } + + #endregion +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/TokenContract.g.cs b/src/EbridgeIndexer/Contracts/TokenContract.g.cs new file mode 100644 index 0000000..0d5595e --- /dev/null +++ b/src/EbridgeIndexer/Contracts/TokenContract.g.cs @@ -0,0 +1,12202 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: token_contract.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Contracts.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", + "cHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90byLvAQoJVG9r", + "ZW5JbmZvEg4KBnN5bWJvbBgBIAEoCRISCgp0b2tlbl9uYW1lGAIgASgJEg4K", + "BnN1cHBseRgDIAEoAxIUCgx0b3RhbF9zdXBwbHkYBCABKAMSEAoIZGVjaW1h", + "bHMYBSABKAUSHQoGaXNzdWVyGAYgASgLMg0uYWVsZi5BZGRyZXNzEhMKC2lz", + "X2J1cm5hYmxlGAcgASgIEhYKDmlzc3VlX2NoYWluX2lkGAggASgFEg4KBmlz", + "c3VlZBgJIAEoAxIqCg1leHRlcm5hbF9pbmZvGAogASgLMhMudG9rZW4uRXh0", + "ZXJuYWxJbmZvImsKDEV4dGVybmFsSW5mbxItCgV2YWx1ZRgBIAMoCzIeLnRv", + "a2VuLkV4dGVybmFsSW5mby5WYWx1ZUVudHJ5GiwKClZhbHVlRW50cnkSCwoD", + "a2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASL5AQoLQ3JlYXRlSW5wdXQS", + "DgoGc3ltYm9sGAEgASgJEhIKCnRva2VuX25hbWUYAiABKAkSFAoMdG90YWxf", + "c3VwcGx5GAMgASgDEhAKCGRlY2ltYWxzGAQgASgFEh0KBmlzc3VlchgFIAEo", + "CzINLmFlbGYuQWRkcmVzcxITCgtpc19idXJuYWJsZRgGIAEoCBImCg9sb2Nr", + "X3doaXRlX2xpc3QYByADKAsyDS5hZWxmLkFkZHJlc3MSFgoOaXNzdWVfY2hh", + "aW5faWQYCCABKAUSKgoNZXh0ZXJuYWxfaW5mbxgJIAEoCzITLnRva2VuLkV4", + "dGVybmFsSW5mbyIsChpTZXRQcmltYXJ5VG9rZW5TeW1ib2xJbnB1dBIOCgZz", + "eW1ib2wYASABKAkiVQoKSXNzdWVJbnB1dBIOCgZzeW1ib2wYASABKAkSDgoG", + "YW1vdW50GAIgASgDEgwKBG1lbW8YAyABKAkSGQoCdG8YBCABKAsyDS5hZWxm", + "LkFkZHJlc3MiWAoNVHJhbnNmZXJJbnB1dBIZCgJ0bxgBIAEoCzINLmFlbGYu", + "QWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSDgoGYW1vdW50GAMgASgDEgwKBG1l", + "bW8YBCABKAkidwoJTG9ja0lucHV0Eh4KB2FkZHJlc3MYASABKAsyDS5hZWxm", + "LkFkZHJlc3MSGwoHbG9ja19pZBgCIAEoCzIKLmFlbGYuSGFzaBIOCgZzeW1i", + "b2wYAyABKAkSDQoFdXNhZ2UYBCABKAkSDgoGYW1vdW50GAUgASgDInkKC1Vu", + "bG9ja0lucHV0Eh4KB2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3MSGwoH", + "bG9ja19pZBgCIAEoCzIKLmFlbGYuSGFzaBIOCgZzeW1ib2wYAyABKAkSDQoF", + "dXNhZ2UYBCABKAkSDgoGYW1vdW50GAUgASgDInkKEVRyYW5zZmVyRnJvbUlu", + "cHV0EhsKBGZyb20YASABKAsyDS5hZWxmLkFkZHJlc3MSGQoCdG8YAiABKAsy", + "DS5hZWxmLkFkZHJlc3MSDgoGc3ltYm9sGAMgASgJEg4KBmFtb3VudBgEIAEo", + "AxIMCgRtZW1vGAUgASgJIk4KDEFwcHJvdmVJbnB1dBIeCgdzcGVuZGVyGAEg", + "ASgLMg0uYWVsZi5BZGRyZXNzEg4KBnN5bWJvbBgCIAEoCRIOCgZhbW91bnQY", + "AyABKAMiUAoOVW5BcHByb3ZlSW5wdXQSHgoHc3BlbmRlchgBIAEoCzINLmFl", + "bGYuQWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSDgoGYW1vdW50GAMgASgDIisK", + "CUJ1cm5JbnB1dBIOCgZzeW1ib2wYASABKAkSDgoGYW1vdW50GAIgASgDIqkB", + "ChhDaGFyZ2VSZXNvdXJjZVRva2VuSW5wdXQSPgoIY29zdF9kaWMYASADKAsy", + "LC50b2tlbi5DaGFyZ2VSZXNvdXJjZVRva2VuSW5wdXQuQ29zdERpY0VudHJ5", + "Eh0KBmNhbGxlchgCIAEoCzINLmFlbGYuQWRkcmVzcxouCgxDb3N0RGljRW50", + "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4ASJ+ChJUcmFuc2Fj", + "dGlvbkZlZUJpbGwSOAoIZmVlc19tYXAYASADKAsyJi50b2tlbi5UcmFuc2Fj", + "dGlvbkZlZUJpbGwuRmVlc01hcEVudHJ5Gi4KDEZlZXNNYXBFbnRyeRILCgNr", + "ZXkYASABKAkSDQoFdmFsdWUYAiABKAM6AjgBItoBChNDaGVja1RocmVzaG9s", + "ZElucHV0Eh0KBnNlbmRlchgBIAEoCzINLmFlbGYuQWRkcmVzcxJOChNzeW1i", + "b2xfdG9fdGhyZXNob2xkGAIgAygLMjEudG9rZW4uQ2hlY2tUaHJlc2hvbGRJ", + "bnB1dC5TeW1ib2xUb1RocmVzaG9sZEVudHJ5EhoKEmlzX2NoZWNrX2FsbG93", + "YW5jZRgDIAEoCBo4ChZTeW1ib2xUb1RocmVzaG9sZEVudHJ5EgsKA2tleRgB", + "IAEoCRINCgV2YWx1ZRgCIAEoAzoCOAEiIwoRR2V0VG9rZW5JbmZvSW5wdXQS", + "DgoGc3ltYm9sGAEgASgJIj8KD0dldEJhbGFuY2VJbnB1dBIOCgZzeW1ib2wY", + "ASABKAkSHAoFb3duZXIYAiABKAsyDS5hZWxmLkFkZHJlc3MiUQoQR2V0QmFs", + "YW5jZU91dHB1dBIOCgZzeW1ib2wYASABKAkSHAoFb3duZXIYAiABKAsyDS5h", + "ZWxmLkFkZHJlc3MSDwoHYmFsYW5jZRgDIAEoAyJhChFHZXRBbGxvd2FuY2VJ", + "bnB1dBIOCgZzeW1ib2wYASABKAkSHAoFb3duZXIYAiABKAsyDS5hZWxmLkFk", + "ZHJlc3MSHgoHc3BlbmRlchgDIAEoCzINLmFlbGYuQWRkcmVzcyJ1ChJHZXRB", + "bGxvd2FuY2VPdXRwdXQSDgoGc3ltYm9sGAEgASgJEhwKBW93bmVyGAIgASgL", + "Mg0uYWVsZi5BZGRyZXNzEh4KB3NwZW5kZXIYAyABKAsyDS5hZWxmLkFkZHJl", + "c3MSEQoJYWxsb3dhbmNlGAQgASgDIo8BChdDcm9zc0NoYWluVHJhbnNmZXJJ", + "bnB1dBIZCgJ0bxgBIAEoCzINLmFlbGYuQWRkcmVzcxIOCgZzeW1ib2wYAiAB", + "KAkSDgoGYW1vdW50GAMgASgDEgwKBG1lbW8YBCABKAkSEwoLdG9fY2hhaW5f", + "aWQYBSABKAUSFgoOaXNzdWVfY2hhaW5faWQYBiABKAUinAEKG0Nyb3NzQ2hh", + "aW5SZWNlaXZlVG9rZW5JbnB1dBIVCg1mcm9tX2NoYWluX2lkGAEgASgFEhsK", + "E3BhcmVudF9jaGFpbl9oZWlnaHQYAiABKAMSIgoadHJhbnNmZXJfdHJhbnNh", + "Y3Rpb25fYnl0ZXMYAyABKAwSJQoLbWVya2xlX3BhdGgYBCABKAsyEC5hZWxm", + "Lk1lcmtsZVBhdGgiRAoSSXNJbldoaXRlTGlzdElucHV0Eg4KBnN5bWJvbBgB", + "IAEoCRIeCgdhZGRyZXNzGAIgASgLMg0uYWVsZi5BZGRyZXNzImMKFFN5bWJv", + "bFRvUGF5VHhTaXplRmVlEhQKDHRva2VuX3N5bWJvbBgBIAEoCRIZChFiYXNl", + "X3Rva2VuX3dlaWdodBgCIAEoBRIaChJhZGRlZF90b2tlbl93ZWlnaHQYAyAB", + "KAUiWwoYU3ltYm9sTGlzdFRvUGF5VHhTaXplRmVlEj8KGnN5bWJvbHNfdG9f", + "cGF5X3R4X3NpemVfZmVlGAEgAygLMhsudG9rZW4uU3ltYm9sVG9QYXlUeFNp", + "emVGZWUiuQEKGkNoYXJnZVRyYW5zYWN0aW9uRmVlc0lucHV0EhMKC21ldGhv", + "ZF9uYW1lGAEgASgJEicKEGNvbnRyYWN0X2FkZHJlc3MYAiABKAsyDS5hZWxm", + "LkFkZHJlc3MSHAoUdHJhbnNhY3Rpb25fc2l6ZV9mZWUYAyABKAMSPwoac3lt", + "Ym9sc190b19wYXlfdHhfc2l6ZV9mZWUYBCADKAsyGy50b2tlbi5TeW1ib2xU", + "b1BheVR4U2l6ZUZlZSJMChtDaGFyZ2VUcmFuc2FjdGlvbkZlZXNPdXRwdXQS", + "DwoHc3VjY2VzcxgBIAEoCBIcChRjaGFyZ2luZ19pbmZvcm1hdGlvbhgCIAEo", + "CSJMCgxDYWxsYmFja0luZm8SJwoQY29udHJhY3RfYWRkcmVzcxgBIAEoCzIN", + "LmFlbGYuQWRkcmVzcxITCgttZXRob2RfbmFtZRgCIAEoCSJnChZFeHRyYVRv", + "a2VuTGlzdE1vZGlmaWVkEkcKHnN5bWJvbF9saXN0X3RvX3BheV90eF9zaXpl", + "X2ZlZRgBIAEoCzIfLnRva2VuLlN5bWJvbExpc3RUb1BheVR4U2l6ZUZlZToE", + "oLsYASJjChRHZXRMb2NrZWRBbW91bnRJbnB1dBIeCgdhZGRyZXNzGAEgASgL", + "Mg0uYWVsZi5BZGRyZXNzEg4KBnN5bWJvbBgCIAEoCRIbCgdsb2NrX2lkGAMg", + "ASgLMgouYWVsZi5IYXNoInQKFUdldExvY2tlZEFtb3VudE91dHB1dBIeCgdh", + "ZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRyZXNzEg4KBnN5bWJvbBgCIAEoCRIb", + "Cgdsb2NrX2lkGAMgASgLMgouYWVsZi5IYXNoEg4KBmFtb3VudBgEIAEoAyIw", + "Cg1Ub2tlbkluZm9MaXN0Eh8KBXZhbHVlGAEgAygLMhAudG9rZW4uVG9rZW5J", + "bmZvIkEKLkdldENyb3NzQ2hhaW5UcmFuc2ZlclRva2VuQ29udHJhY3RBZGRy", + "ZXNzSW5wdXQSDwoHY2hhaW5JZBgBIAEoBSKSAQoaQ3Jvc3NDaGFpbkNyZWF0", + "ZVRva2VuSW5wdXQSFQoNZnJvbV9jaGFpbl9pZBgBIAEoBRIbChNwYXJlbnRf", + "Y2hhaW5faGVpZ2h0GAIgASgDEhkKEXRyYW5zYWN0aW9uX2J5dGVzGAMgASgM", + "EiUKC21lcmtsZV9wYXRoGAQgASgLMhAuYWVsZi5NZXJrbGVQYXRoIq4DCh5J", + "bml0aWFsaXplRnJvbVBhcmVudENoYWluSW5wdXQSUgoPcmVzb3VyY2VfYW1v", + "dW50GAEgAygLMjkudG9rZW4uSW5pdGlhbGl6ZUZyb21QYXJlbnRDaGFpbklu", + "cHV0LlJlc291cmNlQW1vdW50RW50cnkSgwEKKXJlZ2lzdGVyZWRfb3RoZXJf", + "dG9rZW5fY29udHJhY3RfYWRkcmVzc2VzGAIgAygLMlAudG9rZW4uSW5pdGlh", + "bGl6ZUZyb21QYXJlbnRDaGFpbklucHV0LlJlZ2lzdGVyZWRPdGhlclRva2Vu", + "Q29udHJhY3RBZGRyZXNzZXNFbnRyeRIeCgdjcmVhdG9yGAMgASgLMg0uYWVs", + "Zi5BZGRyZXNzGjUKE1Jlc291cmNlQW1vdW50RW50cnkSCwoDa2V5GAEgASgJ", + "Eg0KBXZhbHVlGAIgASgFOgI4ARpbCipSZWdpc3RlcmVkT3RoZXJUb2tlbkNv", + "bnRyYWN0QWRkcmVzc2VzRW50cnkSCwoDa2V5GAEgASgFEhwKBXZhbHVlGAIg", + "ASgLMg0uYWVsZi5BZGRyZXNzOgI4ASJnChdVcGRhdGVDb2VmZmljaWVudHNJ", + "bnB1dBIVCg1waWVjZV9udW1iZXJzGAEgAygFEjUKDGNvZWZmaWNpZW50cxgC", + "IAEoCzIfLnRva2VuLkNhbGN1bGF0ZUZlZUNvZWZmaWNpZW50cyIuCh1DYWxj", + "dWxhdGVGZWVQaWVjZUNvZWZmaWNpZW50cxINCgV2YWx1ZRgBIAMoBSJ5ChhD", + "YWxjdWxhdGVGZWVDb2VmZmljaWVudHMSFgoOZmVlX3Rva2VuX3R5cGUYASAB", + "KAUSRQoXcGllY2VfY29lZmZpY2llbnRzX2xpc3QYAiADKAsyJC50b2tlbi5D", + "YWxjdWxhdGVGZWVQaWVjZUNvZWZmaWNpZW50cyJNChtBbGxDYWxjdWxhdGVG", + "ZWVDb2VmZmljaWVudHMSLgoFdmFsdWUYASADKAsyHy50b2tlbi5DYWxjdWxh", + "dGVGZWVDb2VmZmljaWVudHMitwEKF1RvdGFsVHJhbnNhY3Rpb25GZWVzTWFw", + "EjgKBXZhbHVlGAEgAygLMikudG9rZW4uVG90YWxUcmFuc2FjdGlvbkZlZXNN", + "YXAuVmFsdWVFbnRyeRIeCgpibG9ja19oYXNoGAIgASgLMgouYWVsZi5IYXNo", + "EhQKDGJsb2NrX2hlaWdodBgDIAEoAxosCgpWYWx1ZUVudHJ5EgsKA2tleRgB", + "IAEoCRINCgV2YWx1ZRgCIAEoAzoCOAEiggEKF1RvdGFsUmVzb3VyY2VUb2tl", + "bnNNYXBzEjEKBXZhbHVlGAEgAygLMiIudG9rZW4uQ29udHJhY3RUb3RhbFJl", + "c291cmNlVG9rZW5zEh4KCmJsb2NrX2hhc2gYAiABKAsyCi5hZWxmLkhhc2gS", + "FAoMYmxvY2tfaGVpZ2h0GAMgASgDInkKG0NvbnRyYWN0VG90YWxSZXNvdXJj", + "ZVRva2VucxInChBjb250cmFjdF9hZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRy", + "ZXNzEjEKCnRva2Vuc19tYXAYAiABKAsyHS50b2tlbi5Ub3RhbFJlc291cmNl", + "VG9rZW5zTWFwIn8KFlRvdGFsUmVzb3VyY2VUb2tlbnNNYXASNwoFdmFsdWUY", + "ASADKAsyKC50b2tlbi5Ub3RhbFJlc291cmNlVG9rZW5zTWFwLlZhbHVlRW50", + "cnkaLAoKVmFsdWVFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAM6", + "AjgBIlEKFkNoYW5nZVRva2VuSXNzdWVySW5wdXQSDgoGc3ltYm9sGAEgASgJ", + "EicKEG5ld190b2tlbl9Jc3N1ZXIYAiABKAsyDS5hZWxmLkFkZHJlc3MiVAoW", + "UmVzZXRFeHRlcm5hbEluZm9JbnB1dBIOCgZzeW1ib2wYASABKAkSKgoNZXh0", + "ZXJuYWxfaW5mbxgCIAEoCzITLnRva2VuLkV4dGVybmFsSW5mbyIbCgpTdHJp", + "bmdMaXN0Eg0KBXZhbHVlGAEgAygJIo4BCgtUcmFuc2ZlcnJlZBIiCgRmcm9t", + "GAEgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIgCgJ0bxgCIAEoCzINLmFl", + "bGYuQWRkcmVzc0IFiI/1AQESFQoGc3ltYm9sGAMgASgJQgWIj/UBARIOCgZh", + "bW91bnQYBCABKAMSDAoEbWVtbxgFIAEoCToEoLsYASKDAQoIQXBwcm92ZWQS", + "IwoFb3duZXIYASABKAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEBEiUKB3NwZW5k", + "ZXIYAiABKAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEBEhUKBnN5bWJvbBgDIAEo", + "CUIFiI/1AQESDgoGYW1vdW50GAQgASgDOgSguxgBIoUBCgpVbkFwcHJvdmVk", + "EiMKBW93bmVyGAEgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIlCgdzcGVu", + "ZGVyGAIgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIVCgZzeW1ib2wYAyAB", + "KAlCBYiP9QEBEg4KBmFtb3VudBgEIAEoAzoEoLsYASJbCgZCdXJuZWQSJAoG", + "YnVybmVyGAEgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIVCgZzeW1ib2wY", + "AiABKAlCBYiP9QEBEg4KBmFtb3VudBgDIAEoAzoEoLsYASI4ChpDaGFpblBy", + "aW1hcnlUb2tlblN5bWJvbFNldBIUCgx0b2tlbl9zeW1ib2wYASABKAk6BKC7", + "GAEiawocQ2FsY3VsYXRlRmVlQWxnb3JpdGhtVXBkYXRlZBJFChlhbGxfdHlw", + "ZV9mZWVfY29lZmZpY2llbnRzGAEgASgLMiIudG9rZW4uQWxsQ2FsY3VsYXRl", + "RmVlQ29lZmZpY2llbnRzOgSguxgBIjUKDVJlbnRhbENoYXJnZWQSDgoGc3lt", + "Ym9sGAEgASgJEg4KBmFtb3VudBgCIAEoAzoEoLsYASJICiBSZW50YWxBY2Nv", + "dW50QmFsYW5jZUluc3VmZmljaWVudBIOCgZzeW1ib2wYASABKAkSDgoGYW1v", + "dW50GAIgASgDOgSguxgBItgBCgxUb2tlbkNyZWF0ZWQSDgoGc3ltYm9sGAEg", + "ASgJEhIKCnRva2VuX25hbWUYAiABKAkSFAoMdG90YWxfc3VwcGx5GAMgASgD", + "EhAKCGRlY2ltYWxzGAQgASgFEh0KBmlzc3VlchgFIAEoCzINLmFlbGYuQWRk", + "cmVzcxITCgtpc19idXJuYWJsZRgGIAEoCBIWCg5pc3N1ZV9jaGFpbl9pZBgH", + "IAEoBRIqCg1leHRlcm5hbF9pbmZvGAggASgLMhMudG9rZW4uRXh0ZXJuYWxJ", + "bmZvOgSguxgBIlcKBklzc3VlZBIOCgZzeW1ib2wYASABKAkSDgoGYW1vdW50", + "GAIgASgDEgwKBG1lbW8YAyABKAkSGQoCdG8YBCABKAsyDS5hZWxmLkFkZHJl", + "c3M6BKC7GAEisAEKFUNyb3NzQ2hhaW5UcmFuc2ZlcnJlZBIbCgRmcm9tGAEg", + "ASgLMg0uYWVsZi5BZGRyZXNzEhkKAnRvGAIgASgLMg0uYWVsZi5BZGRyZXNz", + "Eg4KBnN5bWJvbBgDIAEoCRIOCgZhbW91bnQYBCABKAMSDAoEbWVtbxgFIAEo", + "CRITCgt0b19jaGFpbl9pZBgGIAEoBRIWCg5pc3N1ZV9jaGFpbl9pZBgHIAEo", + "BToEoLsYASL5AQoSQ3Jvc3NDaGFpblJlY2VpdmVkEhsKBGZyb20YASABKAsy", + "DS5hZWxmLkFkZHJlc3MSGQoCdG8YAiABKAsyDS5hZWxmLkFkZHJlc3MSDgoG", + "c3ltYm9sGAMgASgJEg4KBmFtb3VudBgEIAEoAxIMCgRtZW1vGAUgASgJEhUK", + "DWZyb21fY2hhaW5faWQYBiABKAUSFgoOaXNzdWVfY2hhaW5faWQYByABKAUS", + "GwoTcGFyZW50X2NoYWluX2hlaWdodBgIIAEoAxIrChd0cmFuc2Zlcl90cmFu", + "c2FjdGlvbl9pZBgJIAEoCzIKLmFlbGYuSGFzaDoEoLsYASJXChNFeHRlcm5h", + "bEluZm9DaGFuZ2VkEg4KBnN5bWJvbBgBIAEoCRIqCg1leHRlcm5hbF9pbmZv", + "GAIgASgLMhMudG9rZW4uRXh0ZXJuYWxJbmZvOgSguxgBKkQKC0ZlZVR5cGVF", + "bnVtEggKBFJFQUQQABILCgdTVE9SQUdFEAESCQoFV1JJVEUQAhILCgdUUkFG", + "RklDEAMSBgoCVFgQBDLKHAoNVG9rZW5Db250cmFjdBI2CgZDcmVhdGUSEi50", + "b2tlbi5DcmVhdGVJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjQK", + "BUlzc3VlEhEudG9rZW4uSXNzdWVJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5F", + "bXB0eSIAEjoKCFRyYW5zZmVyEhQudG9rZW4uVHJhbnNmZXJJbnB1dBoWLmdv", + "b2dsZS5wcm90b2J1Zi5FbXB0eSIAEkIKDFRyYW5zZmVyRnJvbRIYLnRva2Vu", + "LlRyYW5zZmVyRnJvbUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAS", + "OAoHQXBwcm92ZRITLnRva2VuLkFwcHJvdmVJbnB1dBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAEjwKCVVuQXBwcm92ZRIVLnRva2VuLlVuQXBwcm92ZUlu", + "cHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASMgoETG9jaxIQLnRva2Vu", + "LkxvY2tJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjYKBlVubG9j", + "axISLnRva2VuLlVubG9ja0lucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "IgASMgoEQnVybhIQLnRva2VuLkJ1cm5JbnB1dBoWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eSIAEkwKEUNoYW5nZVRva2VuSXNzdWVyEh0udG9rZW4uQ2hhbmdl", + "VG9rZW5Jc3N1ZXJJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElQK", + "FVNldFByaW1hcnlUb2tlblN5bWJvbBIhLnRva2VuLlNldFByaW1hcnlUb2tl", + "blN5bWJvbElucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASTgoSQ3Jv", + "c3NDaGFpblRyYW5zZmVyEh4udG9rZW4uQ3Jvc3NDaGFpblRyYW5zZmVySW5w", + "dXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJWChZDcm9zc0NoYWluUmVj", + "ZWl2ZVRva2VuEiIudG9rZW4uQ3Jvc3NDaGFpblJlY2VpdmVUb2tlbklucHV0", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASVAoVQ3Jvc3NDaGFpbkNyZWF0", + "ZVRva2VuEiEudG9rZW4uQ3Jvc3NDaGFpbkNyZWF0ZVRva2VuSW5wdXQaFi5n", + "b29nbGUucHJvdG9idWYuRW1wdHkiABJcChlJbml0aWFsaXplRnJvbVBhcmVu", + "dENoYWluEiUudG9rZW4uSW5pdGlhbGl6ZUZyb21QYXJlbnRDaGFpbklucHV0", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASUAoUQ2xhaW1UcmFuc2FjdGlv", + "bkZlZXMSHi50b2tlbi5Ub3RhbFRyYW5zYWN0aW9uRmVlc01hcBoWLmdvb2ds", + "ZS5wcm90b2J1Zi5FbXB0eSIAEmAKFUNoYXJnZVRyYW5zYWN0aW9uRmVlcxIh", + "LnRva2VuLkNoYXJnZVRyYW5zYWN0aW9uRmVlc0lucHV0GiIudG9rZW4uQ2hh", + "cmdlVHJhbnNhY3Rpb25GZWVzT3V0cHV0IgASRgoOQ2hlY2tUaHJlc2hvbGQS", + "Gi50b2tlbi5DaGVja1RocmVzaG9sZElucHV0GhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5IgASRwoTSW5pdGlhbENvZWZmaWNpZW50cxIWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eRoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEk8KE0RvbmF0", + "ZVJlc291cmNlVG9rZW4SHi50b2tlbi5Ub3RhbFJlc291cmNlVG9rZW5zTWFw", + "cxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElAKE0NoYXJnZVJlc291cmNl", + "VG9rZW4SHy50b2tlbi5DaGFyZ2VSZXNvdXJjZVRva2VuSW5wdXQaFi5nb29n", + "bGUucHJvdG9idWYuRW1wdHkiABJGChJDaGVja1Jlc291cmNlVG9rZW4SFi5n", + "b29nbGUucHJvdG9idWYuRW1wdHkaFi5nb29nbGUucHJvdG9idWYuRW1wdHki", + "ABJVChhTZXRTeW1ib2xzVG9QYXlUeFNpemVGZWUSHy50b2tlbi5TeW1ib2xM", + "aXN0VG9QYXlUeFNpemVGZWUaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJX", + "ChtVcGRhdGVDb2VmZmljaWVudHNGb3JTZW5kZXISHi50b2tlbi5VcGRhdGVD", + "b2VmZmljaWVudHNJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElkK", + "HVVwZGF0ZUNvZWZmaWNpZW50c0ZvckNvbnRyYWN0Eh4udG9rZW4uVXBkYXRl", + "Q29lZmZpY2llbnRzSW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJS", + "Ch5Jbml0aWFsaXplQXV0aG9yaXplZENvbnRyb2xsZXISFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJMChFSZXNl", + "dEV4dGVybmFsSW5mbxIdLnRva2VuLlJlc2V0RXh0ZXJuYWxJbmZvSW5wdXQa", + "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJLCiBBZGRBZGRyZXNzVG9DcmVh", + "dGVUb2tlbldoaXRlTGlzdBINLmFlbGYuQWRkcmVzcxoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAElAKJVJlbW92ZUFkZHJlc3NGcm9tQ3JlYXRlVG9rZW5X", + "aGl0ZUxpc3QSDS5hZWxmLkFkZHJlc3MaFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkiABJBCgxHZXRUb2tlbkluZm8SGC50b2tlbi5HZXRUb2tlbkluZm9JbnB1", + "dBoQLnRva2VuLlRva2VuSW5mbyIFiIn3AQESRQoSR2V0TmF0aXZlVG9rZW5J", + "bmZvEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhAudG9rZW4uVG9rZW5JbmZv", + "IgWIifcBARJLChRHZXRSZXNvdXJjZVRva2VuSW5mbxIWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eRoULnRva2VuLlRva2VuSW5mb0xpc3QiBYiJ9wEBEkQKCkdl", + "dEJhbGFuY2USFi50b2tlbi5HZXRCYWxhbmNlSW5wdXQaFy50b2tlbi5HZXRC", + "YWxhbmNlT3V0cHV0IgWIifcBARJKCgxHZXRBbGxvd2FuY2USGC50b2tlbi5H", + "ZXRBbGxvd2FuY2VJbnB1dBoZLnRva2VuLkdldEFsbG93YW5jZU91dHB1dCIF", + "iIn3AQESTQoNSXNJbldoaXRlTGlzdBIZLnRva2VuLklzSW5XaGl0ZUxpc3RJ", + "bnB1dBoaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUiBYiJ9wEBElMKD0dl", + "dExvY2tlZEFtb3VudBIbLnRva2VuLkdldExvY2tlZEFtb3VudElucHV0Ghwu", + "dG9rZW4uR2V0TG9ja2VkQW1vdW50T3V0cHV0IgWIifcBARJ4CilHZXRDcm9z", + "c0NoYWluVHJhbnNmZXJUb2tlbkNvbnRyYWN0QWRkcmVzcxI1LnRva2VuLkdl", + "dENyb3NzQ2hhaW5UcmFuc2ZlclRva2VuQ29udHJhY3RBZGRyZXNzSW5wdXQa", + "DS5hZWxmLkFkZHJlc3MiBYiJ9wEBElQKFUdldFByaW1hcnlUb2tlblN5bWJv", + "bBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRocLmdvb2dsZS5wcm90b2J1Zi5T", + "dHJpbmdWYWx1ZSIFiIn3AQESbQomR2V0Q2FsY3VsYXRlRmVlQ29lZmZpY2ll", + "bnRzRm9yQ29udHJhY3QSGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRof", + "LnRva2VuLkNhbGN1bGF0ZUZlZUNvZWZmaWNpZW50cyIFiIn3AQESZgokR2V0", + "Q2FsY3VsYXRlRmVlQ29lZmZpY2llbnRzRm9yU2VuZGVyEhYuZ29vZ2xlLnBy", + "b3RvYnVmLkVtcHR5Gh8udG9rZW4uQ2FsY3VsYXRlRmVlQ29lZmZpY2llbnRz", + "IgWIifcBARJaChhHZXRTeW1ib2xzVG9QYXlUeFNpemVGZWUSFi5nb29nbGUu", + "cHJvdG9idWYuRW1wdHkaHy50b2tlbi5TeW1ib2xMaXN0VG9QYXlUeFNpemVG", + "ZWUiBYiJ9wEBElEKJEdldExhdGVzdFRvdGFsVHJhbnNhY3Rpb25GZWVzTWFw", + "SGFzaBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoKLmFlbGYuSGFzaCIFiIn3", + "AQESUQokR2V0TGF0ZXN0VG90YWxSZXNvdXJjZVRva2Vuc01hcHNIYXNoEhYu", + "Z29vZ2xlLnByb3RvYnVmLkVtcHR5GgouYWVsZi5IYXNoIgWIifcBARJfChxJ", + "c1Rva2VuQXZhaWxhYmxlRm9yTWV0aG9kRmVlEhwuZ29vZ2xlLnByb3RvYnVm", + "LlN0cmluZ1ZhbHVlGhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZSIFiIn3", + "AQESTAoYSXNJbkNyZWF0ZVRva2VuV2hpdGVMaXN0Eg0uYWVsZi5BZGRyZXNz", + "GhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZSIFiIn3AQESUgoeR2V0UmVz", + "ZXJ2ZWRFeHRlcm5hbEluZm9LZXlMaXN0EhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5GhEudG9rZW4uU3RyaW5nTGlzdCIFiIn3AQFCHKoCGUFFbGYuQ29udHJh", + "Y3RzLk11bHRpVG9rZW5iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AElf.Contracts.MultiToken.FeeTypeEnum), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TokenInfo), global::AElf.Contracts.MultiToken.TokenInfo.Parser, new[]{ "Symbol", "TokenName", "Supply", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "Issued", "ExternalInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ExternalInfo), global::AElf.Contracts.MultiToken.ExternalInfo.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CreateInput), global::AElf.Contracts.MultiToken.CreateInput.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "LockWhiteList", "IssueChainId", "ExternalInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.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.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.Transferred), global::AElf.Contracts.MultiToken.Transferred.Parser, new[]{ "From", "To", "Symbol", "Amount", "Memo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Approved), global::AElf.Contracts.MultiToken.Approved.Parser, new[]{ "Owner", "Spender", "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UnApproved), global::AElf.Contracts.MultiToken.UnApproved.Parser, new[]{ "Owner", "Spender", "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Burned), global::AElf.Contracts.MultiToken.Burned.Parser, new[]{ "Burner", "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ChainPrimaryTokenSymbolSet), global::AElf.Contracts.MultiToken.ChainPrimaryTokenSymbolSet.Parser, new[]{ "TokenSymbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CalculateFeeAlgorithmUpdated), global::AElf.Contracts.MultiToken.CalculateFeeAlgorithmUpdated.Parser, new[]{ "AllTypeFeeCoefficients" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RentalCharged), global::AElf.Contracts.MultiToken.RentalCharged.Parser, new[]{ "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RentalAccountBalanceInsufficient), global::AElf.Contracts.MultiToken.RentalAccountBalanceInsufficient.Parser, new[]{ "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TokenCreated), global::AElf.Contracts.MultiToken.TokenCreated.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "ExternalInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.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) + })); + } + #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 { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TokenInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token_name" field. + public const int TokenNameFieldNumber = 2; + private string tokenName_ = ""; + /// + /// The full name of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TokenName { + get { return tokenName_; } + set { + tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "supply" field. + public const int SupplyFieldNumber = 3; + private long supply_; + /// + /// The current supply of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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 created the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TokenInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (TokenName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName); + } + 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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class ExternalInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ExternalInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ExternalInfo(ExternalInfo other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public pbc::MapField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ExternalInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public override int GetHashCode() { + int hash = 1; + hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + value_.WriteTo(output, _map_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_map_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ExternalInfo other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _map_value_codec); + break; + } + } + } + } + + } + + public sealed partial class CreateInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token_name" field. + public const int TokenNameFieldNumber = 2; + private string tokenName_ = ""; + /// + /// The full name of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TokenName { + get { return tokenName_; } + set { + tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "total_supply" field. + public const int TotalSupplyFieldNumber = 3; + private long totalSupply_; + /// + /// The total supply of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TotalSupply { + get { return totalSupply_; } + set { + totalSupply_ = value; + } + } + + /// Field number for the "decimals" field. + public const int DecimalsFieldNumber = 4; + private int decimals_; + /// + /// The precision of the token + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 created the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (TokenName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName); + } + 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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class SetPrimaryTokenSymbolInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetPrimaryTokenSymbolInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetPrimaryTokenSymbolInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetPrimaryTokenSymbolInput(SetPrimaryTokenSymbolInput other) : this() { + symbol_ = other.symbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetPrimaryTokenSymbolInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class IssueInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IssueInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IssueInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as IssueInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (to_ != null) { + output.WriteRawTag(34); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class TransferInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TransferInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TransferInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (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; + } + } + } + } + + } + + public sealed partial class LockInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LockInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LockInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as LockInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (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); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + 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; + } + } + } + } + + } + + public sealed partial class UnlockInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnlockInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnlockInput(UnlockInput other) : this() { + address_ = other.address_ != null ? other.address_.Clone() : null; + lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null; + symbol_ = other.symbol_; + usage_ = other.usage_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnlockInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (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); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + 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; + } + } + } + } + + } + + public sealed partial class TransferFromInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferFromInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TransferFromInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TransferFromInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (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; + } + } + } + } + + } + + public sealed partial class ApproveInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApproveInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ApproveInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ApproveInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class UnApproveInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnApproveInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnApproveInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnApproveInput(UnApproveInput other) : this() { + spender_ = other.spender_ != null ? other.spender_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnApproveInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class BurnInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BurnInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BurnInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BurnInput(BurnInput other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BurnInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class ChargeResourceTokenInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargeResourceTokenInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChargeResourceTokenInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChargeResourceTokenInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + costDic_.WriteTo(output, _map_costDic_codec); + if (caller_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + costDic_.AddEntriesFrom(input, _map_costDic_codec); + break; + } + case 18: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + } + + } + + public sealed partial class TransactionFeeBill : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeBill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TransactionFeeBill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TransactionFeeBill(TransactionFeeBill other) : this() { + feesMap_ = other.feesMap_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public pbc::MapField FeesMap { + get { return feesMap_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TransactionFeeBill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public override int GetHashCode() { + int hash = 1; + hash ^= FeesMap.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + feesMap_.WriteTo(output, _map_feesMap_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += feesMap_.CalculateSize(_map_feesMap_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(TransactionFeeBill other) { + if (other == null) { + return; + } + feesMap_.Add(other.feesMap_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + feesMap_.AddEntriesFrom(input, _map_feesMap_codec); + break; + } + } + } + } + + } + + public sealed partial class CheckThresholdInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CheckThresholdInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CheckThresholdInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public bool IsCheckAllowance { + get { return isCheckAllowance_; } + set { + isCheckAllowance_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CheckThresholdInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + 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); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (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; + } + } + } + } + + } + + public sealed partial class GetTokenInfoInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTokenInfoInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTokenInfoInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTokenInfoInput(GetTokenInfoInput other) : this() { + symbol_ = other.symbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetTokenInfoInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class GetBalanceInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBalanceInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBalanceInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetBalanceInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + } + + } + + public sealed partial class GetBalanceOutput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBalanceOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBalanceOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public long Balance { + get { return balance_; } + set { + balance_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetBalanceOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class GetAllowanceInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllowanceInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAllowanceInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public global::AElf.Types.Address Spender { + get { return spender_; } + set { + spender_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAllowanceInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class GetAllowanceOutput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllowanceOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAllowanceOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public long Allowance { + get { return allowance_; } + set { + allowance_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAllowanceOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class CrossChainTransferInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainTransferInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainTransferInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + 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] + 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] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainTransferInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (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; + } + } + } + } + + } + + public sealed partial class CrossChainReceiveTokenInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainReceiveTokenInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainReceiveTokenInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public global::AElf.Types.MerklePath MerklePath { + get { return merklePath_; } + set { + merklePath_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainReceiveTokenInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + 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; + } + } + } + } + + } + + public sealed partial class IsInWhiteListInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IsInWhiteListInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IsInWhiteListInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public global::AElf.Types.Address Address { + get { return address_; } + set { + address_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as IsInWhiteListInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + } + } + } + + } + + public sealed partial class SymbolToPayTxSizeFee : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SymbolToPayTxSizeFee()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SymbolToPayTxSizeFee() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SymbolToPayTxSizeFee(SymbolToPayTxSizeFee other) : this() { + tokenSymbol_ = other.tokenSymbol_; + baseTokenWeight_ = other.baseTokenWeight_; + addedTokenWeight_ = other.addedTokenWeight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public int AddedTokenWeight { + get { return addedTokenWeight_; } + set { + addedTokenWeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SymbolToPayTxSizeFee); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TokenSymbol = input.ReadString(); + break; + } + case 16: { + BaseTokenWeight = input.ReadInt32(); + break; + } + case 24: { + AddedTokenWeight = input.ReadInt32(); + break; + } + } + } + } + + } + + public sealed partial class SymbolListToPayTxSizeFee : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SymbolListToPayTxSizeFee()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SymbolListToPayTxSizeFee() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SymbolListToPayTxSizeFee(SymbolListToPayTxSizeFee other) : this() { + symbolsToPayTxSizeFee_ = other.symbolsToPayTxSizeFee_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public pbc::RepeatedField SymbolsToPayTxSizeFee { + get { return symbolsToPayTxSizeFee_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SymbolListToPayTxSizeFee); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public override int GetHashCode() { + int hash = 1; + hash ^= symbolsToPayTxSizeFee_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + symbolsToPayTxSizeFee_.WriteTo(output, _repeated_symbolsToPayTxSizeFee_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += symbolsToPayTxSizeFee_.CalculateSize(_repeated_symbolsToPayTxSizeFee_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SymbolListToPayTxSizeFee other) { + if (other == null) { + return; + } + symbolsToPayTxSizeFee_.Add(other.symbolsToPayTxSizeFee_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + symbolsToPayTxSizeFee_.AddEntriesFrom(input, _repeated_symbolsToPayTxSizeFee_codec); + break; + } + } + } + } + + } + + public sealed partial class ChargeTransactionFeesInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargeTransactionFeesInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChargeTransactionFeesInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public pbc::RepeatedField SymbolsToPayTxSizeFee { + get { return symbolsToPayTxSizeFee_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChargeTransactionFeesInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output, _repeated_symbolsToPayTxSizeFee_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class ChargeTransactionFeesOutput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargeTransactionFeesOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChargeTransactionFeesOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChargeTransactionFeesOutput(ChargeTransactionFeesOutput other) : this() { + success_ = other.success_; + chargingInformation_ = other.chargingInformation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public string ChargingInformation { + get { return chargingInformation_; } + set { + chargingInformation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChargeTransactionFeesOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Success = input.ReadBool(); + break; + } + case 18: { + ChargingInformation = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class CallbackInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallbackInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CallbackInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CallbackInfo(CallbackInfo other) : this() { + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + methodName_ = other.methodName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CallbackInfo Clone() { + return new CallbackInfo(this); + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 1; + private global::AElf.Types.Address contractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + /// Field number for the "method_name" field. + public const int MethodNameFieldNumber = 2; + private string methodName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string MethodName { + get { return methodName_; } + set { + methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CallbackInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CallbackInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (MethodName != other.MethodName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); + if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MethodName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (MethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CallbackInfo other) { + if (other == null) { + return; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.MethodName.Length != 0) { + MethodName = other.MethodName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + MethodName = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class ExtraTokenListModified : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtraTokenListModified()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ExtraTokenListModified() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ExtraTokenListModified(ExtraTokenListModified other) : this() { + symbolListToPayTxSizeFee_ = other.symbolListToPayTxSizeFee_ != null ? other.symbolListToPayTxSizeFee_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee SymbolListToPayTxSizeFee { + get { return symbolListToPayTxSizeFee_; } + set { + symbolListToPayTxSizeFee_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ExtraTokenListModified); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (symbolListToPayTxSizeFee_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SymbolListToPayTxSizeFee); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (symbolListToPayTxSizeFee_ == null) { + SymbolListToPayTxSizeFee = new global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee(); + } + input.ReadMessage(SymbolListToPayTxSizeFee); + break; + } + } + } + } + + } + + public sealed partial class GetLockedAmountInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLockedAmountInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetLockedAmountInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public global::AElf.Types.Hash LockId { + get { return lockId_; } + set { + lockId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetLockedAmountInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (lockId_ != null) { + output.WriteRawTag(26); + output.WriteMessage(LockId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (address_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + } + if (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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 26: { + if (lockId_ == null) { + LockId = new global::AElf.Types.Hash(); + } + input.ReadMessage(LockId); + break; + } + } + } + } + + } + + public sealed partial class GetLockedAmountOutput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLockedAmountOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetLockedAmountOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetLockedAmountOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (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); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + 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; + } + } + } + } + + } + + public sealed partial class TokenInfoList : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenInfoList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TokenInfoList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TokenInfoList(TokenInfoList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TokenInfoList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(TokenInfoList other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + } + + } + + public sealed partial class GetCrossChainTransferTokenContractAddressInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCrossChainTransferTokenContractAddressInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetCrossChainTransferTokenContractAddressInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetCrossChainTransferTokenContractAddressInput(GetCrossChainTransferTokenContractAddressInput other) : this() { + chainId_ = other.chainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public int ChainId { + get { return chainId_; } + set { + chainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetCrossChainTransferTokenContractAddressInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + } + } + } + + } + + public sealed partial class CrossChainCreateTokenInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainCreateTokenInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainCreateTokenInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public global::AElf.Types.MerklePath MerklePath { + get { return merklePath_; } + set { + merklePath_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainCreateTokenInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + 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; + } + } + } + } + + } + + public sealed partial class InitializeFromParentChainInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializeFromParentChainInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InitializeFromParentChainInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public global::AElf.Types.Address Creator { + get { return creator_; } + set { + creator_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as InitializeFromParentChainInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + 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); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class UpdateCoefficientsInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCoefficientsInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateCoefficientsInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public global::AElf.Contracts.MultiToken.CalculateFeeCoefficients Coefficients { + get { return coefficients_; } + set { + coefficients_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UpdateCoefficientsInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + pieceNumbers_.WriteTo(output, _repeated_pieceNumbers_codec); + if (coefficients_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Coefficients); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + 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; + } + } + } + } + + } + + public sealed partial class CalculateFeePieceCoefficients : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeePieceCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CalculateFeePieceCoefficients() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CalculateFeePieceCoefficients(CalculateFeePieceCoefficients other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CalculateFeePieceCoefficients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CalculateFeePieceCoefficients other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + } + + } + + public sealed partial class CalculateFeeCoefficients : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeeCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CalculateFeeCoefficients() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CalculateFeeCoefficients(CalculateFeeCoefficients other) : this() { + feeTokenType_ = other.feeTokenType_; + pieceCoefficientsList_ = other.pieceCoefficientsList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public pbc::RepeatedField PieceCoefficientsList { + get { return pieceCoefficientsList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CalculateFeeCoefficients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (FeeTokenType != 0) { + output.WriteRawTag(8); + output.WriteInt32(FeeTokenType); + } + pieceCoefficientsList_.WriteTo(output, _repeated_pieceCoefficientsList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + FeeTokenType = input.ReadInt32(); + break; + } + case 18: { + pieceCoefficientsList_.AddEntriesFrom(input, _repeated_pieceCoefficientsList_codec); + break; + } + } + } + } + + } + + public sealed partial class AllCalculateFeeCoefficients : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AllCalculateFeeCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AllCalculateFeeCoefficients() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AllCalculateFeeCoefficients(AllCalculateFeeCoefficients other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AllCalculateFeeCoefficients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AllCalculateFeeCoefficients other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + } + + } + + public sealed partial class TotalTransactionFeesMap : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalTransactionFeesMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TotalTransactionFeesMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public long BlockHeight { + get { return blockHeight_; } + set { + blockHeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TotalTransactionFeesMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + value_.WriteTo(output, _map_value_codec); + if (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _map_value_codec); + break; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class TotalResourceTokensMaps : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalResourceTokensMaps()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TotalResourceTokensMaps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public long BlockHeight { + get { return blockHeight_; } + set { + blockHeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TotalResourceTokensMaps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + value_.WriteTo(output, _repeated_value_codec); + if (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class ContractTotalResourceTokens : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractTotalResourceTokens()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContractTotalResourceTokens() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public global::AElf.Contracts.MultiToken.TotalResourceTokensMap TokensMap { + get { return tokensMap_; } + set { + tokensMap_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContractTotalResourceTokens); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (tokensMap_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TokensMap); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (tokensMap_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TokensMap); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + if (tokensMap_ == null) { + TokensMap = new global::AElf.Contracts.MultiToken.TotalResourceTokensMap(); + } + input.ReadMessage(TokensMap); + break; + } + } + } + } + + } + + public sealed partial class TotalResourceTokensMap : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalResourceTokensMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TotalResourceTokensMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TotalResourceTokensMap(TotalResourceTokensMap other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public pbc::MapField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TotalResourceTokensMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public override int GetHashCode() { + int hash = 1; + hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + value_.WriteTo(output, _map_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_map_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(TotalResourceTokensMap other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _map_value_codec); + break; + } + } + } + } + + } + + public sealed partial class ChangeTokenIssuerInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeTokenIssuerInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChangeTokenIssuerInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public global::AElf.Types.Address NewTokenIssuer { + get { return newTokenIssuer_; } + set { + newTokenIssuer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChangeTokenIssuerInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (newTokenIssuer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(NewTokenIssuer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (newTokenIssuer_ == null) { + NewTokenIssuer = new global::AElf.Types.Address(); + } + input.ReadMessage(NewTokenIssuer); + break; + } + } + } + } + + } + + public sealed partial class ResetExternalInfoInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResetExternalInfoInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResetExternalInfoInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ResetExternalInfoInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + } + } + } + + } + + public sealed partial class StringList : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StringList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StringList(StringList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StringList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StringList other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + } + + } + + public sealed partial class Transferred : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Transferred()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Transferred() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Transferred(Transferred other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Transferred); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Transferred other) { + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (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; + } + } + } + } + + } + + public sealed partial class Approved : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Approved()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Approved() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Approved(Approved other) : this() { + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + spender_ = other.spender_ != null ? other.spender_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Approved Clone() { + return new Approved(this); + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; + /// + /// The address of the token owner. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + /// Field number for the "spender" field. + public const int SpenderFieldNumber = 2; + private global::AElf.Types.Address spender_; + /// + /// The address that allowance be increased. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Spender { + get { return spender_; } + set { + spender_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of approved token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of approved token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Approved); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (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; + } + } + } + } + + } + + public sealed partial class UnApproved : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnApproved()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[48]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnApproved() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnApproved(UnApproved other) : this() { + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + spender_ = other.spender_ != null ? other.spender_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnApproved Clone() { + return new UnApproved(this); + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; + /// + /// The address of the token owner. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + /// Field number for the "spender" field. + public const int SpenderFieldNumber = 2; + private global::AElf.Types.Address spender_; + /// + /// The address that allowance be decreased. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Spender { + get { return spender_; } + set { + spender_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of un-approved token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of un-approved token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnApproved); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (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; + } + } + } + } + + } + + public sealed partial class Burned : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Burned()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[49]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Burned() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Burned(Burned other) : this() { + burner_ = other.burner_ != null ? other.burner_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Burned Clone() { + return new Burned(this); + } + + /// Field number for the "burner" field. + public const int BurnerFieldNumber = 1; + private global::AElf.Types.Address burner_; + /// + /// The address who wants to burn token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address Burner { + get { return burner_; } + set { + burner_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + private string symbol_ = ""; + /// + /// The symbol of burned token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 3; + private long amount_; + /// + /// The amount of burned token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Burned); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + input.ReadMessage(Burner); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class ChainPrimaryTokenSymbolSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainPrimaryTokenSymbolSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[50]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainPrimaryTokenSymbolSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChainPrimaryTokenSymbolSet(ChainPrimaryTokenSymbolSet other) : this() { + tokenSymbol_ = other.tokenSymbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public string TokenSymbol { + get { return tokenSymbol_; } + set { + tokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChainPrimaryTokenSymbolSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TokenSymbol = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class CalculateFeeAlgorithmUpdated : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeeAlgorithmUpdated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[51]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CalculateFeeAlgorithmUpdated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CalculateFeeAlgorithmUpdated(CalculateFeeAlgorithmUpdated other) : this() { + allTypeFeeCoefficients_ = other.allTypeFeeCoefficients_ != null ? other.allTypeFeeCoefficients_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients AllTypeFeeCoefficients { + get { return allTypeFeeCoefficients_; } + set { + allTypeFeeCoefficients_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CalculateFeeAlgorithmUpdated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (allTypeFeeCoefficients_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + input.ReadMessage(AllTypeFeeCoefficients); + break; + } + } + } + } + + } + + public sealed partial class RentalCharged : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalCharged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[52]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RentalCharged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RentalCharged(RentalCharged other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RentalCharged Clone() { + return new RentalCharged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of rental fee charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The amount of rental fee charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RentalCharged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public void MergeFrom(RentalCharged 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class RentalAccountBalanceInsufficient : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalAccountBalanceInsufficient()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[53]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RentalAccountBalanceInsufficient() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RentalAccountBalanceInsufficient(RentalAccountBalanceInsufficient other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RentalAccountBalanceInsufficient); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class TokenCreated : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenCreated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[54]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TokenCreated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TokenCreated Clone() { + return new TokenCreated(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token_name" field. + public const int TokenNameFieldNumber = 2; + private string tokenName_ = ""; + /// + /// The full name of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TokenName { + get { return tokenName_; } + set { + tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "total_supply" field. + public const int TotalSupplyFieldNumber = 3; + private long totalSupply_; + /// + /// The total supply of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TotalSupply { + get { return totalSupply_; } + set { + totalSupply_ = value; + } + } + + /// Field number for the "decimals" field. + public const int DecimalsFieldNumber = 4; + private int decimals_; + /// + /// The precision of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 created the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TokenCreated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (TokenName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName); + } + 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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class Issued : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Issued()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[55]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Issued() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Issued); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (to_ != null) { + output.WriteRawTag(34); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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; + } + } + } + } + + } + + public sealed partial class CrossChainTransferred : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainTransferred()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[56]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainTransferred() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainTransferred(CrossChainTransferred other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + toChainId_ = other.toChainId_; + issueChainId_ = other.issueChainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainTransferred Clone() { + return new CrossChainTransferred(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// 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] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to_chain_id" field. + public const int ToChainIdFieldNumber = 6; + private int toChainId_; + /// + /// The destination chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ToChainId { + get { return toChainId_; } + set { + toChainId_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainTransferred); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (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; + } + } + } + } + + } + + public sealed partial class CrossChainReceived : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainReceived()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[57]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainReceived() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainReceived(CrossChainReceived other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + fromChainId_ = other.fromChainId_; + issueChainId_ = other.issueChainId_; + parentChainHeight_ = other.parentChainHeight_; + transferTransactionId_ = other.transferTransactionId_ != null ? other.transferTransactionId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CrossChainReceived Clone() { + return new CrossChainReceived(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// 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] + 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] + 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] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 6; + private int fromChainId_; + /// + /// The destination chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + /// 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] + 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] + public global::AElf.Types.Hash TransferTransactionId { + get { return transferTransactionId_; } + set { + transferTransactionId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CrossChainReceived); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (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; + } + } + } + } + + } + + public sealed partial class ExternalInfoChanged : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalInfoChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[58]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ExternalInfoChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ExternalInfoChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream 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(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/TokenContractImpl.c.cs b/src/EbridgeIndexer/Contracts/TokenContractImpl.c.cs new file mode 100644 index 0000000..3921b0f --- /dev/null +++ b/src/EbridgeIndexer/Contracts/TokenContractImpl.c.cs @@ -0,0 +1,24 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: token_contract_impl.proto +// +// Original file comments: +// * +// MultiToken contract. +// +// The MultiToken contract is mainly used to manage the user's account and transaction fees related Settings. +// +// Implement AElf Standards ACS1 and ACS2. +#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 + #endregion +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/TokenContractImpl.g.cs b/src/EbridgeIndexer/Contracts/TokenContractImpl.g.cs new file mode 100644 index 0000000..4125246 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/TokenContractImpl.g.cs @@ -0,0 +1,2151 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: token_contract_impl.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace AElf.Contracts.MultiToken { + + /// Holder for reflection information generated from token_contract_impl.proto + public static partial class TokenContractImplReflection { + + #region Descriptor + /// File descriptor for token_contract_impl.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TokenContractImplReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0b2tlbl9jb250cmFjdF9pbXBsLnByb3RvEgl0b2tlbmltcGwaD2FlbGYv", + "Y29yZS5wcm90bxoKYWNzMS5wcm90bxoKYWNzMi5wcm90bxoUdG9rZW5fY29u", + "dHJhY3QucHJvdG8aFXRyYW5zYWN0aW9uX2ZlZS5wcm90bxoUYXV0aG9yaXR5", + "X2luZm8ucHJvdG8icwoZQWR2YW5jZVJlc291cmNlVG9rZW5JbnB1dBInChBj", + "b250cmFjdF9hZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRyZXNzEh0KFXJlc291", + "cmNlX3Rva2VuX3N5bWJvbBgCIAEoCRIOCgZhbW91bnQYAyABKAMidAoaVGFr", + "ZVJlc291cmNlVG9rZW5CYWNrSW5wdXQSJwoQY29udHJhY3RfYWRkcmVzcxgB", + "IAEoCzINLmFlbGYuQWRkcmVzcxIdChVyZXNvdXJjZV90b2tlbl9zeW1ib2wY", + "AiABKAkSDgoGYW1vdW50GAMgASgDItIBCitSZWdpc3RlckNyb3NzQ2hhaW5U", + "b2tlbkNvbnRyYWN0QWRkcmVzc0lucHV0EhUKDWZyb21fY2hhaW5faWQYASAB", + "KAUSGwoTcGFyZW50X2NoYWluX2hlaWdodBgCIAEoAxIZChF0cmFuc2FjdGlv", + "bl9ieXRlcxgDIAEoDBIlCgttZXJrbGVfcGF0aBgEIAEoCzIQLmFlbGYuTWVy", + "a2xlUGF0aBItChZ0b2tlbl9jb250cmFjdF9hZGRyZXNzGAUgASgLMg0uYWVs", + "Zi5BZGRyZXNzIr0CChxWYWxpZGF0ZVRva2VuSW5mb0V4aXN0c0lucHV0Eg4K", + "BnN5bWJvbBgBIAEoCRISCgp0b2tlbl9uYW1lGAIgASgJEhQKDHRvdGFsX3N1", + "cHBseRgDIAEoAxIQCghkZWNpbWFscxgEIAEoBRIdCgZpc3N1ZXIYBSABKAsy", + "DS5hZWxmLkFkZHJlc3MSEwoLaXNfYnVybmFibGUYBiABKAgSFgoOaXNzdWVf", + "Y2hhaW5faWQYByABKAUSUAoNZXh0ZXJuYWxfaW5mbxgIIAMoCzI5LnRva2Vu", + "aW1wbC5WYWxpZGF0ZVRva2VuSW5mb0V4aXN0c0lucHV0LkV4dGVybmFsSW5m", + "b0VudHJ5GjMKEUV4dGVybmFsSW5mb0VudHJ5EgsKA2tleRgBIAEoCRINCgV2", + "YWx1ZRgCIAEoCToCOAEifAoRVXBkYXRlUmVudGFsSW5wdXQSOAoGcmVudGFs", + "GAEgAygLMigudG9rZW5pbXBsLlVwZGF0ZVJlbnRhbElucHV0LlJlbnRhbEVu", + "dHJ5Gi0KC1JlbnRhbEVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEo", + "AzoCOAEipwEKGlVwZGF0ZVJlbnRlZFJlc291cmNlc0lucHV0ElIKD3Jlc291", + "cmNlX2Ftb3VudBgBIAMoCzI5LnRva2VuaW1wbC5VcGRhdGVSZW50ZWRSZXNv", + "dXJjZXNJbnB1dC5SZXNvdXJjZUFtb3VudEVudHJ5GjUKE1Jlc291cmNlQW1v", + "dW50RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4ASJxCg1S", + "ZXNvdXJjZVVzYWdlEjIKBXZhbHVlGAEgAygLMiMudG9rZW5pbXBsLlJlc291", + "cmNlVXNhZ2UuVmFsdWVFbnRyeRosCgpWYWx1ZUVudHJ5EgsKA2tleRgBIAEo", + "CRINCgV2YWx1ZRgCIAEoBToCOAEiXwogR2V0VmlydHVhbEFkZHJlc3NGb3JM", + "b2NraW5nSW5wdXQSHgoHYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxIb", + "Cgdsb2NrX2lkGAIgASgLMgouYWVsZi5IYXNoIosBCgxPd25pbmdSZW50YWwS", + "RAoPcmVzb3VyY2VfYW1vdW50GAEgAygLMisudG9rZW5pbXBsLk93bmluZ1Jl", + "bnRhbC5SZXNvdXJjZUFtb3VudEVudHJ5GjUKE1Jlc291cmNlQW1vdW50RW50", + "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4ASKnAQoVT3duaW5n", + "UmVudGFsVW5pdFZhbHVlElQKE3Jlc291cmNlX3VuaXRfdmFsdWUYASADKAsy", + "Ny50b2tlbmltcGwuT3duaW5nUmVudGFsVW5pdFZhbHVlLlJlc291cmNlVW5p", + "dFZhbHVlRW50cnkaOAoWUmVzb3VyY2VVbml0VmFsdWVFbnRyeRILCgNrZXkY", + "ASABKAkSDQoFdmFsdWUYAiABKAM6AjgBIkcKF1RyYW5zZmVyVG9Db250cmFj", + "dElucHV0Eg4KBnN5bWJvbBgBIAEoCRIOCgZhbW91bnQYAiABKAMSDAoEbWVt", + "bxgDIAEoCSKaAQoRVXNlckZlZUNvbnRyb2xsZXISJwoPcm9vdF9jb250cm9s", + "bGVyGAEgASgLMg4uQXV0aG9yaXR5SW5mbxItChVwYXJsaWFtZW50X2NvbnRy", + "b2xsZXIYAiABKAsyDi5BdXRob3JpdHlJbmZvEi0KFXJlZmVyZW5kdW1fY29u", + "dHJvbGxlchgDIAEoCzIOLkF1dGhvcml0eUluZm8ingEKFkRldmVsb3BlckZl", + "ZUNvbnRyb2xsZXISJwoPcm9vdF9jb250cm9sbGVyGAEgASgLMg4uQXV0aG9y", + "aXR5SW5mbxItChVwYXJsaWFtZW50X2NvbnRyb2xsZXIYAiABKAsyDi5BdXRo", + "b3JpdHlJbmZvEiwKFGRldmVsb3Blcl9jb250cm9sbGVyGAMgASgLMg4uQXV0", + "aG9yaXR5SW5mbzKjEAoRVG9rZW5Db250cmFjdEltcGwSVgoUQWR2YW5jZVJl", + "c291cmNlVG9rZW4SJC50b2tlbmltcGwuQWR2YW5jZVJlc291cmNlVG9rZW5J", + "bnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElgKFVRha2VSZXNvdXJj", + "ZVRva2VuQmFjaxIlLnRva2VuaW1wbC5UYWtlUmVzb3VyY2VUb2tlbkJhY2tJ", + "bnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEnoKJlJlZ2lzdGVyQ3Jv", + "c3NDaGFpblRva2VuQ29udHJhY3RBZGRyZXNzEjYudG9rZW5pbXBsLlJlZ2lz", + "dGVyQ3Jvc3NDaGFpblRva2VuQ29udHJhY3RBZGRyZXNzSW5wdXQaFi5nb29n", + "bGUucHJvdG9idWYuRW1wdHkiABI5Cg5TZXRGZWVSZWNlaXZlchINLmFlbGYu", + "QWRkcmVzcxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElwKF1ZhbGlkYXRl", + "VG9rZW5JbmZvRXhpc3RzEicudG9rZW5pbXBsLlZhbGlkYXRlVG9rZW5JbmZv", + "RXhpc3RzSW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJGCgxVcGRh", + "dGVSZW50YWwSHC50b2tlbmltcGwuVXBkYXRlUmVudGFsSW5wdXQaFi5nb29n", + "bGUucHJvdG9idWYuRW1wdHkiABJYChVVcGRhdGVSZW50ZWRSZXNvdXJjZXMS", + "JS50b2tlbmltcGwuVXBkYXRlUmVudGVkUmVzb3VyY2VzSW5wdXQaFi5nb29n", + "bGUucHJvdG9idWYuRW1wdHkiABJSChJUcmFuc2ZlclRvQ29udHJhY3QSIi50", + "b2tlbmltcGwuVHJhbnNmZXJUb0NvbnRyYWN0SW5wdXQaFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkiABJLCh9DaGFuZ2VTaWRlQ2hhaW5SZW50YWxDb250cm9s", + "bGVyEg4uQXV0aG9yaXR5SW5mbxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIA", + "ElEKJUNoYW5nZVN5bWJvbHNUb1BheVRYU2l6ZUZlZUNvbnRyb2xsZXISDi5B", + "dXRob3JpdHlJbmZvGhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASXwozQ2hh", + "bmdlQ3Jvc3NDaGFpblRva2VuQ29udHJhY3RSZWdpc3RyYXRpb25Db250cm9s", + "bGVyEg4uQXV0aG9yaXR5SW5mbxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIA", + "EkMKF0NoYW5nZVVzZXJGZWVDb250cm9sbGVyEg4uQXV0aG9yaXR5SW5mbxoW", + "Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkUKGUNoYW5nZURldmVsb3BlckNv", + "bnRyb2xsZXISDi5BdXRob3JpdHlJbmZvGhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IgASPgoOR2V0RmVlUmVjZWl2ZXISFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkaDS5hZWxmLkFkZHJlc3MiBYiJ9wEBEksKEEdldFJlc291cmNlVXNhZ2US", + "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkaGC50b2tlbmltcGwuUmVzb3VyY2VV", + "c2FnZSIFiIn3AQESUwoiR2V0U3ltYm9sc1RvUGF5VFhTaXplRmVlQ29udHJv", + "bGxlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoOLkF1dGhvcml0eUluZm8i", + "BYiJ9wEBEmEKMEdldENyb3NzQ2hhaW5Ub2tlbkNvbnRyYWN0UmVnaXN0cmF0", + "aW9uQ29udHJvbGxlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoOLkF1dGhv", + "cml0eUluZm8iBYiJ9wEBElMKFEdldFVzZXJGZWVDb250cm9sbGVyEhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5GhwudG9rZW5pbXBsLlVzZXJGZWVDb250cm9s", + "bGVyIgWIifcBARJdChlHZXREZXZlbG9wZXJGZWVDb250cm9sbGVyEhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5GiEudG9rZW5pbXBsLkRldmVsb3BlckZlZUNv", + "bnRyb2xsZXIiBYiJ9wEBElcKJkdldFNpZGVDaGFpblJlbnRhbENvbnRyb2xs", + "ZXJDcmVhdGVJbmZvEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gg4uQXV0aG9y", + "aXR5SW5mbyIFiIn3AQESYAobR2V0VmlydHVhbEFkZHJlc3NGb3JMb2NraW5n", + "EisudG9rZW5pbXBsLkdldFZpcnR1YWxBZGRyZXNzRm9yTG9ja2luZ0lucHV0", + "Gg0uYWVsZi5BZGRyZXNzIgWIifcBARJJCg9HZXRPd25pbmdSZW50YWwSFi5n", + "b29nbGUucHJvdG9idWYuRW1wdHkaFy50b2tlbmltcGwuT3duaW5nUmVudGFs", + "IgWIifcBARJbChhHZXRPd25pbmdSZW50YWxVbml0VmFsdWUSFi5nb29nbGUu", + "cHJvdG9idWYuRW1wdHkaIC50b2tlbmltcGwuT3duaW5nUmVudGFsVW5pdFZh", + "bHVlIgWIifcBARpossz2ASxBRWxmLkNvbnRyYWN0cy5NdWx0aVRva2VuLlRv", + "a2VuQ29udHJhY3RTdGF0ZcrK9gEKYWNzMS5wcm90b8rK9gEKYWNzMi5wcm90", + "b8rK9gEUdG9rZW5fY29udHJhY3QucHJvdG9CHKoCGUFFbGYuQ29udHJhY3Rz", + "Lk11bHRpVG9rZW5iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.AdvanceResourceTokenInput), global::AElf.Contracts.MultiToken.AdvanceResourceTokenInput.Parser, new[]{ "ContractAddress", "ResourceTokenSymbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TakeResourceTokenBackInput), global::AElf.Contracts.MultiToken.TakeResourceTokenBackInput.Parser, new[]{ "ContractAddress", "ResourceTokenSymbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RegisterCrossChainTokenContractAddressInput), global::AElf.Contracts.MultiToken.RegisterCrossChainTokenContractAddressInput.Parser, new[]{ "FromChainId", "ParentChainHeight", "TransactionBytes", "MerklePath", "TokenContractAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ValidateTokenInfoExistsInput), global::AElf.Contracts.MultiToken.ValidateTokenInfoExistsInput.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "ExternalInfo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UpdateRentalInput), global::AElf.Contracts.MultiToken.UpdateRentalInput.Parser, new[]{ "Rental" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UpdateRentedResourcesInput), global::AElf.Contracts.MultiToken.UpdateRentedResourcesInput.Parser, new[]{ "ResourceAmount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResourceUsage), global::AElf.Contracts.MultiToken.ResourceUsage.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetVirtualAddressForLockingInput), global::AElf.Contracts.MultiToken.GetVirtualAddressForLockingInput.Parser, new[]{ "Address", "LockId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.OwningRental), global::AElf.Contracts.MultiToken.OwningRental.Parser, new[]{ "ResourceAmount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.OwningRentalUnitValue), global::AElf.Contracts.MultiToken.OwningRentalUnitValue.Parser, new[]{ "ResourceUnitValue" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransferToContractInput), global::AElf.Contracts.MultiToken.TransferToContractInput.Parser, new[]{ "Symbol", "Amount", "Memo" }, null, null, null, null), + })); + } + #endregion + + } + #region Messages + public sealed partial class AdvanceResourceTokenInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdvanceResourceTokenInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceResourceTokenInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceResourceTokenInput(AdvanceResourceTokenInput other) : this() { + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + resourceTokenSymbol_ = other.resourceTokenSymbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceResourceTokenInput Clone() { + return new AdvanceResourceTokenInput(this); + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 1; + private global::AElf.Types.Address contractAddress_; + /// + /// The contract address to transfer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + /// Field number for the "resource_token_symbol" field. + public const int ResourceTokenSymbolFieldNumber = 2; + private string resourceTokenSymbol_ = ""; + /// + /// The resource token symbol to transfer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ResourceTokenSymbol { + get { return resourceTokenSymbol_; } + set { + resourceTokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 3; + private long amount_; + /// + /// The amount of resource token to transfer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AdvanceResourceTokenInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AdvanceResourceTokenInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (ResourceTokenSymbol != other.ResourceTokenSymbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); + if (ResourceTokenSymbol.Length != 0) hash ^= ResourceTokenSymbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (ResourceTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (ResourceTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceTokenSymbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AdvanceResourceTokenInput other) { + if (other == null) { + return; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.ResourceTokenSymbol.Length != 0) { + ResourceTokenSymbol = other.ResourceTokenSymbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + ResourceTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class TakeResourceTokenBackInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakeResourceTokenBackInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TakeResourceTokenBackInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TakeResourceTokenBackInput(TakeResourceTokenBackInput other) : this() { + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + resourceTokenSymbol_ = other.resourceTokenSymbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TakeResourceTokenBackInput Clone() { + return new TakeResourceTokenBackInput(this); + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 1; + private global::AElf.Types.Address contractAddress_; + /// + /// The contract address to take back. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + /// Field number for the "resource_token_symbol" field. + public const int ResourceTokenSymbolFieldNumber = 2; + private string resourceTokenSymbol_ = ""; + /// + /// The resource token symbol to take back. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ResourceTokenSymbol { + get { return resourceTokenSymbol_; } + set { + resourceTokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 3; + private long amount_; + /// + /// The amount of resource token to take back. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TakeResourceTokenBackInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(TakeResourceTokenBackInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (ResourceTokenSymbol != other.ResourceTokenSymbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); + if (ResourceTokenSymbol.Length != 0) hash ^= ResourceTokenSymbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (ResourceTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (ResourceTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceTokenSymbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(TakeResourceTokenBackInput other) { + if (other == null) { + return; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.ResourceTokenSymbol.Length != 0) { + ResourceTokenSymbol = other.ResourceTokenSymbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + ResourceTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class RegisterCrossChainTokenContractAddressInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterCrossChainTokenContractAddressInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegisterCrossChainTokenContractAddressInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegisterCrossChainTokenContractAddressInput(RegisterCrossChainTokenContractAddressInput other) : this() { + fromChainId_ = other.fromChainId_; + parentChainHeight_ = other.parentChainHeight_; + transactionBytes_ = other.transactionBytes_; + merklePath_ = other.merklePath_ != null ? other.merklePath_.Clone() : null; + tokenContractAddress_ = other.tokenContractAddress_ != null ? other.tokenContractAddress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegisterCrossChainTokenContractAddressInput Clone() { + return new RegisterCrossChainTokenContractAddressInput(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] + 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 parent chain height of the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 raw bytes of the transfer transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.MerklePath MerklePath { + get { return merklePath_; } + set { + merklePath_ = value; + } + } + + /// Field number for the "token_contract_address" field. + public const int TokenContractAddressFieldNumber = 5; + private global::AElf.Types.Address tokenContractAddress_; + /// + /// The token contract address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Address TokenContractAddress { + get { return tokenContractAddress_; } + set { + tokenContractAddress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RegisterCrossChainTokenContractAddressInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RegisterCrossChainTokenContractAddressInput 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; + if (!object.Equals(TokenContractAddress, other.TokenContractAddress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (tokenContractAddress_ != null) hash ^= TokenContractAddress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (FromChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(FromChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ParentChainHeight); + } + if (TransactionBytes.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(TransactionBytes); + } + if (merklePath_ != null) { + output.WriteRawTag(34); + output.WriteMessage(MerklePath); + } + if (tokenContractAddress_ != null) { + output.WriteRawTag(42); + output.WriteMessage(TokenContractAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (tokenContractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TokenContractAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RegisterCrossChainTokenContractAddressInput 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); + } + if (other.tokenContractAddress_ != null) { + if (tokenContractAddress_ == null) { + TokenContractAddress = new global::AElf.Types.Address(); + } + TokenContractAddress.MergeFrom(other.TokenContractAddress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + FromChainId = input.ReadInt32(); + break; + } + case 16: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 26: { + TransactionBytes = input.ReadBytes(); + break; + } + case 34: { + if (merklePath_ == null) { + MerklePath = new global::AElf.Types.MerklePath(); + } + input.ReadMessage(MerklePath); + break; + } + case 42: { + if (tokenContractAddress_ == null) { + TokenContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(TokenContractAddress); + break; + } + } + } + } + + } + + public sealed partial class ValidateTokenInfoExistsInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidateTokenInfoExistsInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ValidateTokenInfoExistsInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ValidateTokenInfoExistsInput(ValidateTokenInfoExistsInput 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_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ValidateTokenInfoExistsInput Clone() { + return new ValidateTokenInfoExistsInput(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token_name" field. + public const int TokenNameFieldNumber = 2; + private string tokenName_ = ""; + /// + /// The full name of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TokenName { + get { return tokenName_; } + set { + tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "total_supply" field. + public const int TotalSupplyFieldNumber = 3; + private long totalSupply_; + /// + /// The total supply of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TotalSupply { + get { return totalSupply_; } + set { + totalSupply_ = value; + } + } + + /// Field number for the "decimals" field. + public const int DecimalsFieldNumber = 4; + private int decimals_; + /// + /// The precision of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 created the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + /// Field number for the "external_info" field. + public const int ExternalInfoFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_externalInfo_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); + private readonly pbc::MapField externalInfo_ = new pbc::MapField(); + /// + /// The external information of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField ExternalInfo { + get { return externalInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ValidateTokenInfoExistsInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ValidateTokenInfoExistsInput 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 (!ExternalInfo.Equals(other.ExternalInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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(); + hash ^= ExternalInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + externalInfo_.WriteTo(output, _map_externalInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (TokenName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName); + } + 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); + } + size += externalInfo_.CalculateSize(_map_externalInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ValidateTokenInfoExistsInput 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; + } + externalInfo_.Add(other.externalInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 42: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 66: { + externalInfo_.AddEntriesFrom(input, _map_externalInfo_codec); + break; + } + } + } + } + + } + + public sealed partial class UpdateRentalInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateRentalInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateRentalInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateRentalInput(UpdateRentalInput other) : this() { + rental_ = other.rental_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateRentalInput Clone() { + return new UpdateRentalInput(this); + } + + /// Field number for the "rental" field. + public const int RentalFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_rental_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10); + private readonly pbc::MapField rental_ = new pbc::MapField(); + /// + /// The unit price of resource tokens, symbol -> unit price. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField Rental { + get { return rental_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UpdateRentalInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UpdateRentalInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Rental.Equals(other.Rental)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= Rental.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + rental_.WriteTo(output, _map_rental_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += rental_.CalculateSize(_map_rental_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UpdateRentalInput other) { + if (other == null) { + return; + } + rental_.Add(other.rental_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + rental_.AddEntriesFrom(input, _map_rental_codec); + break; + } + } + } + } + + } + + public sealed partial class UpdateRentedResourcesInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateRentedResourcesInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateRentedResourcesInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateRentedResourcesInput(UpdateRentedResourcesInput other) : this() { + resourceAmount_ = other.resourceAmount_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateRentedResourcesInput Clone() { + return new UpdateRentedResourcesInput(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(); + /// + /// Amount of resource tokens consumed per minute, symbol -> resource consumption. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField ResourceAmount { + get { return resourceAmount_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UpdateRentedResourcesInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UpdateRentedResourcesInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!ResourceAmount.Equals(other.ResourceAmount)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= ResourceAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + resourceAmount_.WriteTo(output, _map_resourceAmount_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += resourceAmount_.CalculateSize(_map_resourceAmount_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UpdateRentedResourcesInput other) { + if (other == null) { + return; + } + resourceAmount_.Add(other.resourceAmount_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + resourceAmount_.AddEntriesFrom(input, _map_resourceAmount_codec); + break; + } + } + } + } + + } + + public sealed partial class ResourceUsage : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceUsage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResourceUsage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResourceUsage(ResourceUsage other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResourceUsage Clone() { + return new ResourceUsage(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.ForInt32(16, 0), 10); + private readonly pbc::MapField value_ = new pbc::MapField(); + /// + /// The amount of resource tokens usage, symbol -> amount. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ResourceUsage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ResourceUsage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Value.Equals(other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + value_.WriteTo(output, _map_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_map_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ResourceUsage other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _map_value_codec); + break; + } + } + } + } + + } + + public sealed partial class GetVirtualAddressForLockingInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetVirtualAddressForLockingInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetVirtualAddressForLockingInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetVirtualAddressForLockingInput(GetVirtualAddressForLockingInput other) : this() { + address_ = other.address_ != null ? other.address_.Clone() : null; + lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetVirtualAddressForLockingInput Clone() { + return new GetVirtualAddressForLockingInput(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] + 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_; + /// + /// The id of the lock. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AElf.Types.Hash LockId { + get { return lockId_; } + set { + lockId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetVirtualAddressForLockingInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetVirtualAddressForLockingInput 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (address_ != null) hash ^= Address.GetHashCode(); + if (lockId_ != null) hash ^= LockId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (lockId_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LockId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (address_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + } + if (lockId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LockId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetVirtualAddressForLockingInput 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); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + if (lockId_ == null) { + LockId = new global::AElf.Types.Hash(); + } + input.ReadMessage(LockId); + break; + } + } + } + } + + } + + public sealed partial class OwningRental : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwningRental()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OwningRental() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OwningRental(OwningRental other) : this() { + resourceAmount_ = other.resourceAmount_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OwningRental Clone() { + return new OwningRental(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.ForInt64(16, 0L), 10); + private readonly pbc::MapField resourceAmount_ = new pbc::MapField(); + /// + /// The amount of resource tokens owed, symbol -> amount. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField ResourceAmount { + get { return resourceAmount_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OwningRental); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OwningRental other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!ResourceAmount.Equals(other.ResourceAmount)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= ResourceAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + resourceAmount_.WriteTo(output, _map_resourceAmount_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += resourceAmount_.CalculateSize(_map_resourceAmount_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OwningRental other) { + if (other == null) { + return; + } + resourceAmount_.Add(other.resourceAmount_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + resourceAmount_.AddEntriesFrom(input, _map_resourceAmount_codec); + break; + } + } + } + } + + } + + public sealed partial class OwningRentalUnitValue : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwningRentalUnitValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OwningRentalUnitValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OwningRentalUnitValue(OwningRentalUnitValue other) : this() { + resourceUnitValue_ = other.resourceUnitValue_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OwningRentalUnitValue Clone() { + return new OwningRentalUnitValue(this); + } + + /// Field number for the "resource_unit_value" field. + public const int ResourceUnitValueFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_resourceUnitValue_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10); + private readonly pbc::MapField resourceUnitValue_ = new pbc::MapField(); + /// + /// Resource unit price, symbol -> unit price. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField ResourceUnitValue { + get { return resourceUnitValue_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OwningRentalUnitValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OwningRentalUnitValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!ResourceUnitValue.Equals(other.ResourceUnitValue)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= ResourceUnitValue.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + resourceUnitValue_.WriteTo(output, _map_resourceUnitValue_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += resourceUnitValue_.CalculateSize(_map_resourceUnitValue_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OwningRentalUnitValue other) { + if (other == null) { + return; + } + resourceUnitValue_.Add(other.resourceUnitValue_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + resourceUnitValue_.AddEntriesFrom(input, _map_resourceUnitValue_codec); + break; + } + } + } + } + + } + + public sealed partial class TransferToContractInput : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferToContractInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TransferToContractInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TransferToContractInput(TransferToContractInput other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TransferToContractInput Clone() { + return new TransferToContractInput(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TransferToContractInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(TransferToContractInput 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(TransferToContractInput 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; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Memo = input.ReadString(); + break; + } + } + } + } + + } + + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/Contracts/TokenPoolContract.c.cs b/src/EbridgeIndexer/Contracts/TokenPoolContract.c.cs new file mode 100644 index 0000000..3dd8316 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/TokenPoolContract.c.cs @@ -0,0 +1,236 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: token_pool_contract.proto +// +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace EBridge.Contracts.TokenPool { + + #region Events + public partial class Locked : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public Locked GetNonIndexed() + { + return new Locked + { + FromChainId = FromChainId, + ToChainId = ToChainId, + TargetTokenSymbol = TargetTokenSymbol, + Amount = Amount, + Sender = Sender, + }; + } + } + + public partial class Released : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public Released GetNonIndexed() + { + return new Released + { + FromChainId = FromChainId, + ToChainId = ToChainId, + TargetTokenSymbol = TargetTokenSymbol, + Amount = Amount, + Receiver = Receiver, + }; + } + } + + public partial class LiquidityAdded : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public LiquidityAdded GetNonIndexed() + { + return new LiquidityAdded + { + TokenSymbol = TokenSymbol, + Amount = Amount, + Provider = Provider, + }; + } + } + + public partial class LiquidityRemoved : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public LiquidityRemoved GetNonIndexed() + { + return new LiquidityRemoved + { + TokenSymbol = TokenSymbol, + Amount = Amount, + Provider = Provider, + }; + } + } + + #endregion + public static partial class TokenPoolContractContainer + { + static readonly string __ServiceName = "TokenPoolContract"; + + #region Marshallers + static readonly aelf::Marshaller __Marshaller_InitializeInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.TokenPool.InitializeInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Empty = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Empty.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_LockInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.TokenPool.LockInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_ReleaseInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.TokenPool.ReleaseInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_AddLiquidityInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.TokenPool.AddLiquidityInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_RemoveLiquidityInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.TokenPool.RemoveLiquidityInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_aelf_Address = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Address.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_MigratorInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.TokenPool.MigratorInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetTokenPoolInfoInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.TokenPool.GetTokenPoolInfoInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_TokenPoolInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.TokenPool.TokenPoolInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetLiquidityInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::EBridge.Contracts.TokenPool.GetLiquidityInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Int64Value = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Int64Value.Parser.ParseFrom); + #endregion + + #region Methods + static readonly aelf::Method __Method_Initialize = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Initialize", + __Marshaller_InitializeInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Lock = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Lock", + __Marshaller_LockInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Release = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Release", + __Marshaller_ReleaseInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_AddLiquidity = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "AddLiquidity", + __Marshaller_AddLiquidityInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_RemoveLiquidity = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "RemoveLiquidity", + __Marshaller_RemoveLiquidityInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetAdmin = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetAdmin", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetBridgeContract = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetBridgeContract", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Migrator = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Migrator", + __Marshaller_MigratorInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetTokenPoolInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTokenPoolInfo", + __Marshaller_GetTokenPoolInfoInput, + __Marshaller_TokenPoolInfo); + + static readonly aelf::Method __Method_GetLiquidity = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetLiquidity", + __Marshaller_GetLiquidityInput, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetRemovableLiquidity = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetRemovableLiquidity", + __Marshaller_GetLiquidityInput, + __Marshaller_google_protobuf_Int64Value); + + static readonly aelf::Method __Method_GetAdmin = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetAdmin", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_GetBridgeContract = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetBridgeContract", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Address); + + #endregion + + #region Descriptors + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.Descriptor.Services[0]; } + } + + public static global::System.Collections.Generic.IReadOnlyList Descriptors + { + get + { + return new global::System.Collections.Generic.List() + { + global::AElf.Standards.ACS12.Acs12Reflection.Descriptor.Services[0], + global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.Descriptor.Services[0], + }; + } + } + #endregion + + /// Base class for the contract of TokenPoolContract + + } +} +#endregion + diff --git a/src/EbridgeIndexer/Contracts/TokenPoolContract.g.cs b/src/EbridgeIndexer/Contracts/TokenPoolContract.g.cs new file mode 100644 index 0000000..0235d24 --- /dev/null +++ b/src/EbridgeIndexer/Contracts/TokenPoolContract.g.cs @@ -0,0 +1,3671 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: token_pool_contract.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EBridge.Contracts.TokenPool { + + /// Holder for reflection information generated from token_pool_contract.proto + public static partial class TokenPoolContractReflection { + + #region Descriptor + /// File descriptor for token_pool_contract.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TokenPoolContractReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0b2tlbl9wb29sX2NvbnRyYWN0LnByb3RvGg9hZWxmL2NvcmUucHJvdG8a", + "EmFlbGYvb3B0aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnBy", + "b3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGh5nb29nbGUv", + "cHJvdG9idWYvd3JhcHBlcnMucHJvdG8aC2FjczEyLnByb3RvIl8KD0luaXRp", + "YWxpemVJbnB1dBIuChdicmlkZ2VfY29udHJhY3RfYWRkcmVzcxgBIAEoCzIN", + "LmFlbGYuQWRkcmVzcxIcCgVhZG1pbhgCIAEoCzINLmFlbGYuQWRkcmVzcyJw", + "CglMb2NrSW5wdXQSFwoPdGFyZ2V0X2NoYWluX2lkGAEgASgJEhsKE3Rhcmdl", + "dF90b2tlbl9zeW1ib2wYAiABKAkSDgoGYW1vdW50GAMgASgDEh0KBnNlbmRl", + "chgEIAEoCzINLmFlbGYuQWRkcmVzcyJzCgxSZWxlYXNlSW5wdXQSFQoNZnJv", + "bV9jaGFpbl9pZBgBIAEoCRIbChN0YXJnZXRfdG9rZW5fc3ltYm9sGAIgASgJ", + "Eg4KBmFtb3VudBgDIAEoAxIfCghyZWNlaXZlchgEIAEoCzINLmFlbGYuQWRk", + "cmVzcyI5ChFBZGRMaXF1aWRpdHlJbnB1dBIUCgx0b2tlbl9zeW1ib2wYASAB", + "KAkSDgoGYW1vdW50GAMgASgDIjwKFFJlbW92ZUxpcXVpZGl0eUlucHV0EhQK", + "DHRva2VuX3N5bWJvbBgBIAEoCRIOCgZhbW91bnQYAyABKAMicwoNTWlncmF0", + "b3JJbnB1dBIfCghwcm92aWRlchgBIAEoCzINLmFlbGYuQWRkcmVzcxIUCgx0", + "b2tlbl9zeW1ib2wYAiABKAkSFgoOZGVwb3NpdF9hbW91bnQYAyABKAMSEwoL", + "bG9ja19hbW91bnQYBCABKAMiLQoVR2V0VG9rZW5Qb29sSW5mb0lucHV0EhQK", + "DHRva2VuX3N5bWJvbBgBIAEoCSJ4Cg1Ub2tlblBvb2xJbmZvEiwKFXRva2Vu", + "X3ZpcnR1YWxfYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxImChJ0b2tl", + "bl92aXJ0dWFsX2hhc2gYAiABKAsyCi5hZWxmLkhhc2gSEQoJbGlxdWlkaXR5", + "GAMgASgDIkoKEUdldExpcXVpZGl0eUlucHV0Eh8KCHByb3ZpZGVyGAEgASgL", + "Mg0uYWVsZi5BZGRyZXNzEhQKDHRva2VuX3N5bWJvbBgCIAEoCSKGAQoGTG9j", + "a2VkEhUKDWZyb21fY2hhaW5faWQYASABKAkSEwoLdG9fY2hhaW5faWQYAiAB", + "KAkSGwoTdGFyZ2V0X3Rva2VuX3N5bWJvbBgDIAEoCRIOCgZhbW91bnQYBCAB", + "KAMSHQoGc2VuZGVyGAUgASgLMg0uYWVsZi5BZGRyZXNzOgSguxgBIooBCghS", + "ZWxlYXNlZBIVCg1mcm9tX2NoYWluX2lkGAEgASgJEhMKC3RvX2NoYWluX2lk", + "GAIgASgJEhsKE3RhcmdldF90b2tlbl9zeW1ib2wYAyABKAkSDgoGYW1vdW50", + "GAQgASgDEh8KCHJlY2VpdmVyGAUgASgLMg0uYWVsZi5BZGRyZXNzOgSguxgB", + "Il0KDkxpcXVpZGl0eUFkZGVkEhQKDHRva2VuX3N5bWJvbBgBIAEoCRIOCgZh", + "bW91bnQYAiABKAMSHwoIcHJvdmlkZXIYAyABKAsyDS5hZWxmLkFkZHJlc3M6", + "BKC7GAEiXwoQTGlxdWlkaXR5UmVtb3ZlZBIUCgx0b2tlbl9zeW1ib2wYASAB", + "KAkSDgoGYW1vdW50GAIgASgDEh8KCHByb3ZpZGVyGAMgASgLMg0uYWVsZi5B", + "ZGRyZXNzOgSguxgBMvwGChFUb2tlblBvb2xDb250cmFjdBI4CgpJbml0aWFs", + "aXplEhAuSW5pdGlhbGl6ZUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "IgASLAoETG9jaxIKLkxvY2tJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", + "eSIAEjIKB1JlbGVhc2USDS5SZWxlYXNlSW5wdXQaFi5nb29nbGUucHJvdG9i", + "dWYuRW1wdHkiABI8CgxBZGRMaXF1aWRpdHkSEi5BZGRMaXF1aWRpdHlJbnB1", + "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkIKD1JlbW92ZUxpcXVpZGl0", + "eRIVLlJlbW92ZUxpcXVpZGl0eUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IgASMwoIU2V0QWRtaW4SDS5hZWxmLkFkZHJlc3MaFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkiABI8ChFTZXRCcmlkZ2VDb250cmFjdBINLmFlbGYuQWRk", + "cmVzcxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjQKCE1pZ3JhdG9yEg4u", + "TWlncmF0b3JJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkEKEEdl", + "dFRva2VuUG9vbEluZm8SFi5HZXRUb2tlblBvb2xJbmZvSW5wdXQaDi5Ub2tl", + "blBvb2xJbmZvIgWIifcBARJGCgxHZXRMaXF1aWRpdHkSEi5HZXRMaXF1aWRp", + "dHlJbnB1dBobLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlIgWIifcBARJP", + "ChVHZXRSZW1vdmFibGVMaXF1aWRpdHkSEi5HZXRMaXF1aWRpdHlJbnB1dBob", + "Lmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlIgWIifcBARI4CghHZXRBZG1p", + "bhIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoNLmFlbGYuQWRkcmVzcyIFiIn3", + "AQESQQoRR2V0QnJpZGdlQ29udHJhY3QSFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkaDS5hZWxmLkFkZHJlc3MiBYiJ9wEBGkeyzPYBMkVCcmlkZ2UuQ29udHJh", + "Y3RzLlRva2VuUG9vbC5Ub2tlblBvb2xDb250cmFjdFN0YXRlysr2AQthY3Mx", + "Mi5wcm90b0IeqgIbRUJyaWRnZS5Db250cmFjdHMuVG9rZW5Qb29sYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::AElf.Standards.ACS12.Acs12Reflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.InitializeInput), global::EBridge.Contracts.TokenPool.InitializeInput.Parser, new[]{ "BridgeContractAddress", "Admin" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.LockInput), global::EBridge.Contracts.TokenPool.LockInput.Parser, new[]{ "TargetChainId", "TargetTokenSymbol", "Amount", "Sender" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.ReleaseInput), global::EBridge.Contracts.TokenPool.ReleaseInput.Parser, new[]{ "FromChainId", "TargetTokenSymbol", "Amount", "Receiver" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.AddLiquidityInput), global::EBridge.Contracts.TokenPool.AddLiquidityInput.Parser, new[]{ "TokenSymbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.RemoveLiquidityInput), global::EBridge.Contracts.TokenPool.RemoveLiquidityInput.Parser, new[]{ "TokenSymbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.MigratorInput), global::EBridge.Contracts.TokenPool.MigratorInput.Parser, new[]{ "Provider", "TokenSymbol", "DepositAmount", "LockAmount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.GetTokenPoolInfoInput), global::EBridge.Contracts.TokenPool.GetTokenPoolInfoInput.Parser, new[]{ "TokenSymbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.TokenPoolInfo), global::EBridge.Contracts.TokenPool.TokenPoolInfo.Parser, new[]{ "TokenVirtualAddress", "TokenVirtualHash", "Liquidity" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.GetLiquidityInput), global::EBridge.Contracts.TokenPool.GetLiquidityInput.Parser, new[]{ "Provider", "TokenSymbol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.Locked), global::EBridge.Contracts.TokenPool.Locked.Parser, new[]{ "FromChainId", "ToChainId", "TargetTokenSymbol", "Amount", "Sender" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.Released), global::EBridge.Contracts.TokenPool.Released.Parser, new[]{ "FromChainId", "ToChainId", "TargetTokenSymbol", "Amount", "Receiver" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.LiquidityAdded), global::EBridge.Contracts.TokenPool.LiquidityAdded.Parser, new[]{ "TokenSymbol", "Amount", "Provider" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EBridge.Contracts.TokenPool.LiquidityRemoved), global::EBridge.Contracts.TokenPool.LiquidityRemoved.Parser, new[]{ "TokenSymbol", "Amount", "Provider" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class InitializeInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializeInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitializeInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitializeInput(InitializeInput other) : this() { + bridgeContractAddress_ = other.bridgeContractAddress_ != null ? other.bridgeContractAddress_.Clone() : null; + admin_ = other.admin_ != null ? other.admin_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitializeInput Clone() { + return new InitializeInput(this); + } + + /// Field number for the "bridge_contract_address" field. + public const int BridgeContractAddressFieldNumber = 1; + private global::AElf.Types.Address bridgeContractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address BridgeContractAddress { + get { return bridgeContractAddress_; } + set { + bridgeContractAddress_ = value; + } + } + + /// Field number for the "admin" field. + public const int AdminFieldNumber = 2; + private global::AElf.Types.Address admin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Admin { + get { return admin_; } + set { + admin_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InitializeInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InitializeInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BridgeContractAddress, other.BridgeContractAddress)) return false; + if (!object.Equals(Admin, other.Admin)) return 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 (bridgeContractAddress_ != null) hash ^= BridgeContractAddress.GetHashCode(); + if (admin_ != null) hash ^= Admin.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (bridgeContractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BridgeContractAddress); + } + if (admin_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Admin); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (bridgeContractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BridgeContractAddress); + } + if (admin_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Admin); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (bridgeContractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BridgeContractAddress); + } + if (admin_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Admin); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InitializeInput other) { + if (other == null) { + return; + } + if (other.bridgeContractAddress_ != null) { + if (bridgeContractAddress_ == null) { + BridgeContractAddress = new global::AElf.Types.Address(); + } + BridgeContractAddress.MergeFrom(other.BridgeContractAddress); + } + if (other.admin_ != null) { + if (admin_ == null) { + Admin = new global::AElf.Types.Address(); + } + Admin.MergeFrom(other.Admin); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (bridgeContractAddress_ == null) { + BridgeContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(BridgeContractAddress); + break; + } + case 18: { + if (admin_ == null) { + Admin = new global::AElf.Types.Address(); + } + input.ReadMessage(Admin); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (bridgeContractAddress_ == null) { + BridgeContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(BridgeContractAddress); + break; + } + case 18: { + if (admin_ == null) { + Admin = new global::AElf.Types.Address(); + } + input.ReadMessage(Admin); + 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::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 LockInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockInput(LockInput other) : this() { + targetChainId_ = other.targetChainId_; + targetTokenSymbol_ = other.targetTokenSymbol_; + amount_ = other.amount_; + sender_ = other.sender_ != null ? other.sender_.Clone() : null; + _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 "target_chain_id" field. + public const int TargetChainIdFieldNumber = 1; + private string targetChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetChainId { + get { return targetChainId_; } + set { + targetChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_token_symbol" field. + public const int TargetTokenSymbolFieldNumber = 2; + private string targetTokenSymbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetTokenSymbol { + get { return targetTokenSymbol_; } + set { + targetTokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 3; + 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 "sender" field. + public const int SenderFieldNumber = 4; + private global::AElf.Types.Address sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Sender { + get { return sender_; } + set { + sender_ = value; + } + } + + [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 (TargetChainId != other.TargetChainId) return false; + if (TargetTokenSymbol != other.TargetTokenSymbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Sender, other.Sender)) return 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 (TargetChainId.Length != 0) hash ^= TargetChainId.GetHashCode(); + if (TargetTokenSymbol.Length != 0) hash ^= TargetTokenSymbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (sender_ != null) hash ^= Sender.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TargetChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TargetChainId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (sender_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Sender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TargetChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TargetChainId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (sender_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Sender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TargetChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetChainId); + } + if (TargetTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetTokenSymbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (sender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sender); + } + 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.TargetChainId.Length != 0) { + TargetChainId = other.TargetChainId; + } + if (other.TargetTokenSymbol.Length != 0) { + TargetTokenSymbol = other.TargetTokenSymbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.sender_ != null) { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + Sender.MergeFrom(other.Sender); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + TargetChainId = input.ReadString(); + break; + } + case 18: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + case 34: { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + input.ReadMessage(Sender); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TargetChainId = input.ReadString(); + break; + } + case 18: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + case 34: { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + input.ReadMessage(Sender); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReleaseInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReleaseInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 ReleaseInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReleaseInput(ReleaseInput other) : this() { + fromChainId_ = other.fromChainId_; + targetTokenSymbol_ = other.targetTokenSymbol_; + 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 ReleaseInput Clone() { + return new ReleaseInput(this); + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 1; + private string fromChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_token_symbol" field. + public const int TargetTokenSymbolFieldNumber = 2; + private string targetTokenSymbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetTokenSymbol { + get { return targetTokenSymbol_; } + set { + targetTokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 3; + 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 = 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 ReleaseInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReleaseInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FromChainId != other.FromChainId) return false; + if (TargetTokenSymbol != other.TargetTokenSymbol) 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 (FromChainId.Length != 0) hash ^= FromChainId.GetHashCode(); + if (TargetTokenSymbol.Length != 0) hash ^= TargetTokenSymbol.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 (FromChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FromChainId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + 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 (FromChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FromChainId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + 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 (FromChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromChainId); + } + if (TargetTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetTokenSymbol); + } + 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(ReleaseInput other) { + if (other == null) { + return; + } + if (other.FromChainId.Length != 0) { + FromChainId = other.FromChainId; + } + if (other.TargetTokenSymbol.Length != 0) { + TargetTokenSymbol = other.TargetTokenSymbol; + } + 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: { + FromChainId = input.ReadString(); + break; + } + case 18: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + 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: { + FromChainId = input.ReadString(); + break; + } + case 18: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + } + #endif + + } + + public sealed partial class AddLiquidityInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddLiquidityInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 AddLiquidityInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddLiquidityInput(AddLiquidityInput other) : this() { + tokenSymbol_ = other.tokenSymbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddLiquidityInput Clone() { + return new AddLiquidityInput(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 "amount" field. + public const int AmountFieldNumber = 3; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddLiquidityInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddLiquidityInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TokenSymbol != other.TokenSymbol) 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 (TokenSymbol.Length != 0) hash ^= TokenSymbol.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 (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + 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 (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + 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 (TokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenSymbol); + } + 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(AddLiquidityInput other) { + if (other == null) { + return; + } + if (other.TokenSymbol.Length != 0) { + TokenSymbol = other.TokenSymbol; + } + 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: { + TokenSymbol = 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: { + TokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveLiquidityInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveLiquidityInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 RemoveLiquidityInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveLiquidityInput(RemoveLiquidityInput other) : this() { + tokenSymbol_ = other.tokenSymbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveLiquidityInput Clone() { + return new RemoveLiquidityInput(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 "amount" field. + public const int AmountFieldNumber = 3; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveLiquidityInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveLiquidityInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TokenSymbol != other.TokenSymbol) 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 (TokenSymbol.Length != 0) hash ^= TokenSymbol.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 (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + 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 (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + 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 (TokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenSymbol); + } + 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(RemoveLiquidityInput other) { + if (other == null) { + return; + } + if (other.TokenSymbol.Length != 0) { + TokenSymbol = other.TokenSymbol; + } + 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: { + TokenSymbol = 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: { + TokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MigratorInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MigratorInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 MigratorInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigratorInput(MigratorInput other) : this() { + provider_ = other.provider_ != null ? other.provider_.Clone() : null; + tokenSymbol_ = other.tokenSymbol_; + depositAmount_ = other.depositAmount_; + lockAmount_ = other.lockAmount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigratorInput Clone() { + return new MigratorInput(this); + } + + /// Field number for the "provider" field. + public const int ProviderFieldNumber = 1; + private global::AElf.Types.Address provider_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Provider { + get { return provider_; } + set { + provider_ = value; + } + } + + /// Field number for the "token_symbol" field. + public const int TokenSymbolFieldNumber = 2; + 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 "deposit_amount" field. + public const int DepositAmountFieldNumber = 3; + private long depositAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DepositAmount { + get { return depositAmount_; } + set { + depositAmount_ = value; + } + } + + /// Field number for the "lock_amount" field. + public const int LockAmountFieldNumber = 4; + private long lockAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long LockAmount { + get { return lockAmount_; } + set { + lockAmount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MigratorInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MigratorInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Provider, other.Provider)) return false; + if (TokenSymbol != other.TokenSymbol) return false; + if (DepositAmount != other.DepositAmount) return false; + if (LockAmount != other.LockAmount) return 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 (provider_ != null) hash ^= Provider.GetHashCode(); + if (TokenSymbol.Length != 0) hash ^= TokenSymbol.GetHashCode(); + if (DepositAmount != 0L) hash ^= DepositAmount.GetHashCode(); + if (LockAmount != 0L) hash ^= LockAmount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (provider_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Provider); + } + if (TokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenSymbol); + } + if (DepositAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DepositAmount); + } + if (LockAmount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(LockAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (provider_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Provider); + } + if (TokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenSymbol); + } + if (DepositAmount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DepositAmount); + } + if (LockAmount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(LockAmount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (provider_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Provider); + } + if (TokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenSymbol); + } + if (DepositAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DepositAmount); + } + if (LockAmount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(LockAmount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MigratorInput other) { + if (other == null) { + return; + } + if (other.provider_ != null) { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + Provider.MergeFrom(other.Provider); + } + if (other.TokenSymbol.Length != 0) { + TokenSymbol = other.TokenSymbol; + } + if (other.DepositAmount != 0L) { + DepositAmount = other.DepositAmount; + } + if (other.LockAmount != 0L) { + LockAmount = other.LockAmount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + input.ReadMessage(Provider); + break; + } + case 18: { + TokenSymbol = input.ReadString(); + break; + } + case 24: { + DepositAmount = input.ReadInt64(); + break; + } + case 32: { + LockAmount = 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 (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + input.ReadMessage(Provider); + break; + } + case 18: { + TokenSymbol = input.ReadString(); + break; + } + case 24: { + DepositAmount = input.ReadInt64(); + break; + } + case 32: { + LockAmount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTokenPoolInfoInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTokenPoolInfoInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 GetTokenPoolInfoInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTokenPoolInfoInput(GetTokenPoolInfoInput other) : this() { + tokenSymbol_ = other.tokenSymbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTokenPoolInfoInput Clone() { + return new GetTokenPoolInfoInput(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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTokenPoolInfoInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTokenPoolInfoInput 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(GetTokenPoolInfoInput 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 TokenPoolInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenPoolInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 TokenPoolInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenPoolInfo(TokenPoolInfo other) : this() { + tokenVirtualAddress_ = other.tokenVirtualAddress_ != null ? other.tokenVirtualAddress_.Clone() : null; + tokenVirtualHash_ = other.tokenVirtualHash_ != null ? other.tokenVirtualHash_.Clone() : null; + liquidity_ = other.liquidity_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenPoolInfo Clone() { + return new TokenPoolInfo(this); + } + + /// Field number for the "token_virtual_address" field. + public const int TokenVirtualAddressFieldNumber = 1; + private global::AElf.Types.Address tokenVirtualAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address TokenVirtualAddress { + get { return tokenVirtualAddress_; } + set { + tokenVirtualAddress_ = value; + } + } + + /// Field number for the "token_virtual_hash" field. + public const int TokenVirtualHashFieldNumber = 2; + private global::AElf.Types.Hash tokenVirtualHash_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash TokenVirtualHash { + get { return tokenVirtualHash_; } + set { + tokenVirtualHash_ = value; + } + } + + /// Field number for the "liquidity" field. + public const int LiquidityFieldNumber = 3; + private long liquidity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Liquidity { + get { return liquidity_; } + set { + liquidity_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TokenPoolInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenPoolInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TokenVirtualAddress, other.TokenVirtualAddress)) return false; + if (!object.Equals(TokenVirtualHash, other.TokenVirtualHash)) return false; + if (Liquidity != other.Liquidity) return 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 (tokenVirtualAddress_ != null) hash ^= TokenVirtualAddress.GetHashCode(); + if (tokenVirtualHash_ != null) hash ^= TokenVirtualHash.GetHashCode(); + if (Liquidity != 0L) hash ^= Liquidity.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (tokenVirtualAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TokenVirtualAddress); + } + if (tokenVirtualHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TokenVirtualHash); + } + if (Liquidity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Liquidity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (tokenVirtualAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TokenVirtualAddress); + } + if (tokenVirtualHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TokenVirtualHash); + } + if (Liquidity != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Liquidity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (tokenVirtualAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TokenVirtualAddress); + } + if (tokenVirtualHash_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TokenVirtualHash); + } + if (Liquidity != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Liquidity); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TokenPoolInfo other) { + if (other == null) { + return; + } + if (other.tokenVirtualAddress_ != null) { + if (tokenVirtualAddress_ == null) { + TokenVirtualAddress = new global::AElf.Types.Address(); + } + TokenVirtualAddress.MergeFrom(other.TokenVirtualAddress); + } + if (other.tokenVirtualHash_ != null) { + if (tokenVirtualHash_ == null) { + TokenVirtualHash = new global::AElf.Types.Hash(); + } + TokenVirtualHash.MergeFrom(other.TokenVirtualHash); + } + if (other.Liquidity != 0L) { + Liquidity = other.Liquidity; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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 (tokenVirtualAddress_ == null) { + TokenVirtualAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(TokenVirtualAddress); + break; + } + case 18: { + if (tokenVirtualHash_ == null) { + TokenVirtualHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(TokenVirtualHash); + break; + } + case 24: { + Liquidity = 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 (tokenVirtualAddress_ == null) { + TokenVirtualAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(TokenVirtualAddress); + break; + } + case 18: { + if (tokenVirtualHash_ == null) { + TokenVirtualHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(TokenVirtualHash); + break; + } + case 24: { + Liquidity = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetLiquidityInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLiquidityInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 GetLiquidityInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLiquidityInput(GetLiquidityInput other) : this() { + provider_ = other.provider_ != null ? other.provider_.Clone() : null; + tokenSymbol_ = other.tokenSymbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLiquidityInput Clone() { + return new GetLiquidityInput(this); + } + + /// Field number for the "provider" field. + public const int ProviderFieldNumber = 1; + private global::AElf.Types.Address provider_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Provider { + get { return provider_; } + set { + provider_ = value; + } + } + + /// Field number for the "token_symbol" field. + public const int TokenSymbolFieldNumber = 2; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetLiquidityInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetLiquidityInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Provider, other.Provider)) return false; + 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 (provider_ != null) hash ^= Provider.GetHashCode(); + 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 (provider_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Provider); + } + if (TokenSymbol.Length != 0) { + output.WriteRawTag(18); + 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 (provider_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Provider); + } + if (TokenSymbol.Length != 0) { + output.WriteRawTag(18); + 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 (provider_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Provider); + } + 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(GetLiquidityInput other) { + if (other == null) { + return; + } + if (other.provider_ != null) { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + Provider.MergeFrom(other.Provider); + } + 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: { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + input.ReadMessage(Provider); + break; + } + case 18: { + 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: { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + input.ReadMessage(Provider); + break; + } + case 18: { + TokenSymbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Locked : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Locked()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 Locked() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Locked(Locked other) : this() { + fromChainId_ = other.fromChainId_; + toChainId_ = other.toChainId_; + targetTokenSymbol_ = other.targetTokenSymbol_; + amount_ = other.amount_; + sender_ = other.sender_ != null ? other.sender_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Locked Clone() { + return new Locked(this); + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 1; + private string fromChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to_chain_id" field. + public const int ToChainIdFieldNumber = 2; + private string toChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ToChainId { + get { return toChainId_; } + set { + toChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_token_symbol" field. + public const int TargetTokenSymbolFieldNumber = 3; + private string targetTokenSymbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetTokenSymbol { + get { return targetTokenSymbol_; } + set { + targetTokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + 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 "sender" field. + public const int SenderFieldNumber = 5; + private global::AElf.Types.Address sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Sender { + get { return sender_; } + set { + sender_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Locked); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Locked other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FromChainId != other.FromChainId) return false; + if (ToChainId != other.ToChainId) return false; + if (TargetTokenSymbol != other.TargetTokenSymbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Sender, other.Sender)) return 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.Length != 0) hash ^= FromChainId.GetHashCode(); + if (ToChainId.Length != 0) hash ^= ToChainId.GetHashCode(); + if (TargetTokenSymbol.Length != 0) hash ^= TargetTokenSymbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (sender_ != null) hash ^= Sender.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FromChainId); + } + if (ToChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ToChainId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (sender_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Sender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FromChainId); + } + if (ToChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ToChainId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (sender_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Sender); + } + if (_unknownFields != 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.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromChainId); + } + if (ToChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ToChainId); + } + if (TargetTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetTokenSymbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (sender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sender); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Locked other) { + if (other == null) { + return; + } + if (other.FromChainId.Length != 0) { + FromChainId = other.FromChainId; + } + if (other.ToChainId.Length != 0) { + ToChainId = other.ToChainId; + } + if (other.TargetTokenSymbol.Length != 0) { + TargetTokenSymbol = other.TargetTokenSymbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.sender_ != null) { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + Sender.MergeFrom(other.Sender); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + FromChainId = input.ReadString(); + break; + } + case 18: { + ToChainId = input.ReadString(); + break; + } + case 26: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + input.ReadMessage(Sender); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + FromChainId = input.ReadString(); + break; + } + case 18: { + ToChainId = input.ReadString(); + break; + } + case 26: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + input.ReadMessage(Sender); + break; + } + } + } + } + #endif + + } + + public sealed partial class Released : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Released()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 Released() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Released(Released other) : this() { + fromChainId_ = other.fromChainId_; + toChainId_ = other.toChainId_; + targetTokenSymbol_ = other.targetTokenSymbol_; + 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 Released Clone() { + return new Released(this); + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 1; + private string fromChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to_chain_id" field. + public const int ToChainIdFieldNumber = 2; + private string toChainId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ToChainId { + get { return toChainId_; } + set { + toChainId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_token_symbol" field. + public const int TargetTokenSymbolFieldNumber = 3; + private string targetTokenSymbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetTokenSymbol { + get { return targetTokenSymbol_; } + set { + targetTokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + 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 = 5; + 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 Released); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Released other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FromChainId != other.FromChainId) return false; + if (ToChainId != other.ToChainId) return false; + if (TargetTokenSymbol != other.TargetTokenSymbol) 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 (FromChainId.Length != 0) hash ^= FromChainId.GetHashCode(); + if (ToChainId.Length != 0) hash ^= ToChainId.GetHashCode(); + if (TargetTokenSymbol.Length != 0) hash ^= TargetTokenSymbol.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 (FromChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FromChainId); + } + if (ToChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ToChainId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (receiver_ != null) { + output.WriteRawTag(42); + 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 (FromChainId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FromChainId); + } + if (ToChainId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ToChainId); + } + if (TargetTokenSymbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TargetTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (receiver_ != null) { + output.WriteRawTag(42); + 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 (FromChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromChainId); + } + if (ToChainId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ToChainId); + } + if (TargetTokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetTokenSymbol); + } + 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(Released other) { + if (other == null) { + return; + } + if (other.FromChainId.Length != 0) { + FromChainId = other.FromChainId; + } + if (other.ToChainId.Length != 0) { + ToChainId = other.ToChainId; + } + if (other.TargetTokenSymbol.Length != 0) { + TargetTokenSymbol = other.TargetTokenSymbol; + } + 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: { + FromChainId = input.ReadString(); + break; + } + case 18: { + ToChainId = input.ReadString(); + break; + } + case 26: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + 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: { + FromChainId = input.ReadString(); + break; + } + case 18: { + ToChainId = input.ReadString(); + break; + } + case 26: { + TargetTokenSymbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + } + #endif + + } + + public sealed partial class LiquidityAdded : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LiquidityAdded()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 LiquidityAdded() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LiquidityAdded(LiquidityAdded other) : this() { + tokenSymbol_ = other.tokenSymbol_; + amount_ = other.amount_; + provider_ = other.provider_ != null ? other.provider_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LiquidityAdded Clone() { + return new LiquidityAdded(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 "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 "provider" field. + public const int ProviderFieldNumber = 3; + private global::AElf.Types.Address provider_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Provider { + get { return provider_; } + set { + provider_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LiquidityAdded); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LiquidityAdded other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TokenSymbol != other.TokenSymbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Provider, other.Provider)) return 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 (Amount != 0L) hash ^= Amount.GetHashCode(); + if (provider_ != null) hash ^= Provider.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (provider_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Provider); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (provider_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Provider); + } + if (_unknownFields != 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 (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (provider_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Provider); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LiquidityAdded other) { + if (other == null) { + return; + } + if (other.TokenSymbol.Length != 0) { + TokenSymbol = other.TokenSymbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.provider_ != null) { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + Provider.MergeFrom(other.Provider); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + input.ReadMessage(Provider); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + input.ReadMessage(Provider); + break; + } + } + } + } + #endif + + } + + public sealed partial class LiquidityRemoved : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LiquidityRemoved()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EBridge.Contracts.TokenPool.TokenPoolContractReflection.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 LiquidityRemoved() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LiquidityRemoved(LiquidityRemoved other) : this() { + tokenSymbol_ = other.tokenSymbol_; + amount_ = other.amount_; + provider_ = other.provider_ != null ? other.provider_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LiquidityRemoved Clone() { + return new LiquidityRemoved(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 "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 "provider" field. + public const int ProviderFieldNumber = 3; + private global::AElf.Types.Address provider_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Provider { + get { return provider_; } + set { + provider_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LiquidityRemoved); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LiquidityRemoved other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TokenSymbol != other.TokenSymbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Provider, other.Provider)) return 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 (Amount != 0L) hash ^= Amount.GetHashCode(); + if (provider_ != null) hash ^= Provider.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (provider_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Provider); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (provider_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Provider); + } + if (_unknownFields != 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 (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (provider_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Provider); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LiquidityRemoved other) { + if (other == null) { + return; + } + if (other.TokenSymbol.Length != 0) { + TokenSymbol = other.TokenSymbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.provider_ != null) { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + Provider.MergeFrom(other.Provider); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + input.ReadMessage(Provider); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (provider_ == null) { + Provider = new global::AElf.Types.Address(); + } + input.ReadMessage(Provider); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/EbridgeIndexer/EbridgeConst.cs b/src/EbridgeIndexer/EbridgeConst.cs new file mode 100644 index 0000000..13bd3e9 --- /dev/null +++ b/src/EbridgeIndexer/EbridgeConst.cs @@ -0,0 +1,32 @@ +namespace EbridgeIndexer; + +public class EbridgeConst +{ + public const string AELF = "AELF"; + public const string tDVV = "tDVV"; + public const string tDVW = "tDVW"; + + //AELF-TestNet + // public const string BridgeContractAddress = "2LUmicHyH4RXrMjG4beDwuDsiWJESyLkgkwPdGTR8kahRzq5XS"; + // public const string TokenPoolContractAddress = "2WHXRoLRjbUTDQsuqR5CntygVfnDb125qdJkudev4kVNbLhTdG"; + // public const string MultiTokenContractAddress = "JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE"; + // public const string CrossChainContractAddress = "2SQ9LeGZYSWmfJcYuQkDQxgd3HzwjamAaaL4Tge2eFSXw2cseq"; + + //AELF + public const string BridgeContractAddress = "2dKF3svqDXrYtA5mYwKfADiHajo37mLZHPHVVuGbEDoD9jSgE8"; + public const string MultiTokenContractAddress = "JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE"; + public const string TokenPoolContractAddress = "2TXvtjgTiMwjvEyWGEvfbeQ9P6zVK55pTPcmzvLFBDCMLNUYXV"; + public const string CrossChainContractAddress = "2SQ9LeGZYSWmfJcYuQkDQxgd3HzwjamAaaL4Tge2eFSXw2cseq"; + + //tDVV + public const string BridgeContractAddressTDVV = "GZs6wyPDfz3vdEmgVd3FyrQfaWSXo9uRvc7Fbp5KSLKwMAANd"; + public const string MultiTokenContractAddressTDVV = "7RzVGiuVWkvL4VfVHdZfQF2Tri3sgLe9U991bohHFfSRZXuGX"; + public const string CrossChainContractAddressTDVV = "2snHc8AMh9QMbCAa7XXmdZZVM5EBZUUPDdLjemwUJkBnL6k8z9"; + public const string TokenPoolContractAddressTDVV = "ttm4YsRRTV2zWx7hDpBV5gfLfWhqtde8N4XYQtZyoTyKi3tq9"; + + //tDVW + public const string BridgeContractAddressTDVW = "293dHYMKjfEuTEkveb5h775avTyW69jBgHMYiWQqtdSdTfsfEP"; + public const string MultiTokenContractAddressTDVW = "ASh2Wt7nSEmYqnGxPPzp4pnVDU4uhj1XW9Se5VeZcX2UDdyjx"; + public const string CrossChainContractAddressTDVW = "2PC7Jhb5V6iZXxz8uQUWvWubYkAoCVhtRGSL7VhTWX85R8DBuN"; + public const string TokenPoolContractAddressTDVW = "2DCTaXxFH63uG9tdXPGgGst7LK18y5zjBVfxamz1MQSi5hiuPM"; +} \ No newline at end of file diff --git a/src/EbridgeIndexer/EbridgeIndexer.csproj b/src/EbridgeIndexer/EbridgeIndexer.csproj new file mode 100644 index 0000000..d354959 --- /dev/null +++ b/src/EbridgeIndexer/EbridgeIndexer.csproj @@ -0,0 +1,13 @@ + + + + net8.0 + enable + + + + + + + + diff --git a/src/EbridgeIndexer/EbridgeIndexerAutoMapperProfile.cs b/src/EbridgeIndexer/EbridgeIndexerAutoMapperProfile.cs new file mode 100644 index 0000000..099fd18 --- /dev/null +++ b/src/EbridgeIndexer/EbridgeIndexerAutoMapperProfile.cs @@ -0,0 +1,149 @@ +using AeFinder.Sdk.Processor; +using AElf; +using AElf.Contracts.CrossChain; +using AElf.Contracts.MultiToken; +using AElf.Types; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using AutoMapper; +using EBridge.Contracts.Bridge; + +namespace EbridgeIndexer; + +public class EbridgeIndexerAutoMapperProfile : Profile +{ + public EbridgeIndexerAutoMapperProfile() + { + CreateMap(); + + //CrossChainLimitInfo + CreateMap() + .ForMember(des => des.ToChainId, opt + => opt.MapFrom(source => source.TargetChainId + )).ForMember(des => des.DefaultDailyLimit, opt + => opt.MapFrom(source => source.ReceiptDailyLimit + )).ForMember(des => des.CurrentDailyLimit, opt + => opt.MapFrom(source => source.CurrentReceiptDailyLimit + )).ForMember(des => des.RefreshTime, opt + => opt.MapFrom(source => source.ReceiptRefreshTime.ToDateTime() + )); + CreateMap() + .ForMember(des => des.ToChainId, opt + => opt.MapFrom(source => source.TargetChainId + )).ForMember(des => des.CurrentDailyLimit, opt + => opt.MapFrom(source => source.CurrentReceiptDailyLimitAmount + )).ForMember(des => des.CurrentBucketTokenAmount, opt + => opt.MapFrom(source => source.CurrentReceiptBucketTokenAmount + )).ForMember(des => des.RefreshTime, opt + => opt.MapFrom(source => source.ReceiptDailyLimitRefreshTime.ToDateTime() + )).ForMember(des => des.BucketUpdateTime, opt + => opt.MapFrom(source => source.ReceiptBucketUpdateTime.ToDateTime() + )); + CreateMap() + .ForMember(des => des.ToChainId, opt + => opt.MapFrom(source => source.TargetChainId + )).ForMember(des => des.Capacity, opt + => opt.MapFrom(source => source.ReceiptCapacity + )).ForMember(des => des.RefillRate, opt + => opt.MapFrom(source => source.ReceiptRefillRate + )).ForMember(des => des.IsEnable, opt + => opt.MapFrom(source => source.ReceiptBucketIsEnable + )).ForMember(des => des.CurrentBucketTokenAmount, opt + => opt.MapFrom(source => source.CurrentReceiptBucketTokenAmount + )).ForMember(des => des.BucketUpdateTime, opt + => opt.MapFrom(source => source.ReceiptBucketUpdateTime.ToDateTime() + )); + CreateMap() + .ForMember(des => des.DefaultDailyLimit, opt + => opt.MapFrom(source => source.SwapDailyLimit + )).ForMember(des => des.CurrentDailyLimit, opt + => opt.MapFrom(source => source.CurrentSwapDailyLimit + )).ForMember(des => des.RefreshTime, opt + => opt.MapFrom(source => source.SwapRefreshTime.ToDateTime() + )); + CreateMap() + .ForMember(des => des.CurrentDailyLimit, opt + => opt.MapFrom(source => source.CurrentSwapDailyLimitAmount + )).ForMember(des => des.CurrentBucketTokenAmount, opt + => opt.MapFrom(source => source.CurrentSwapBucketTokenAmount + )).ForMember(des => des.RefreshTime, opt + => opt.MapFrom(source => source.SwapDailyLimitRefreshTime.ToDateTime() + )).ForMember(des => des.BucketUpdateTime, opt + => opt.MapFrom(source => source.SwapBucketUpdateTime.ToDateTime() + )); + CreateMap() + .ForMember(des => des.Capacity, opt + => opt.MapFrom(source => source.SwapCapacity + )).ForMember(des => des.RefillRate, opt + => opt.MapFrom(source => source.SwapRefillRate + )).ForMember(des => des.IsEnable, opt + => opt.MapFrom(source => source.SwapBucketIsEnable + )).ForMember(des => des.CurrentBucketTokenAmount, opt + => opt.MapFrom(source => source.CurrentSwapBucketTokenAmount + )).ForMember(des => des.BucketUpdateTime, opt + => opt.MapFrom(source => source.SwapBucketUpdateTime.ToDateTime() + )); + // Common + CreateMap().ConvertUsing(s => s == null ? null : s.ToHex()); + CreateMap().ConvertUsing(s => s.ToBase58()); + + CreateMap() + .ForMember(d => d.FromChainId, opt => opt.MapFrom(o => ChainHelper.ConvertChainIdToBase58(o.FromChainId))) + .ForMember(d => d.TransferTransactionId, opt => opt.MapFrom(o => o.TransferTransactionId.ToHex())) + .ForMember(d => d.ReceiveAmount, opt => opt.MapFrom(o => o.Amount)) + .ForMember(d => d.ReceiveTokenSymbol, opt => opt.MapFrom(o => o.Symbol)) + .ForMember(d => d.FromAddress, opt => opt.MapFrom(o => o.From.ToBase58())) + .ForMember(d => d.ToAddress, opt => opt.MapFrom(o => o.To.ToBase58())); + + CreateMap() + .ForMember(d => d.TransferAmount, opt => opt.MapFrom(o => o.Amount)) + .ForMember(d => d.TransferTokenSymbol, opt => opt.MapFrom(o => o.Symbol)) + .ForMember(d => d.ToChainId, opt => opt.MapFrom(o => ChainHelper.ConvertChainIdToBase58(o.ToChainId))) + .ForMember(d => d.FromAddress, opt => opt.MapFrom(o => o.From.ToBase58())) + .ForMember(d => d.ToAddress, opt => opt.MapFrom(o => o.To.ToBase58())); + + // CrossChain + CreateMap() + .ForMember(d => d.IndexChainId, opt => opt.MapFrom(o => ChainHelper.ConvertChainIdToBase58(o.ChainId))) + .ForMember(d => d.IndexBlockHeight, opt => opt.MapFrom(o => o.IndexedHeight)); + + CreateMap() + .ForMember(d => d.IndexChainId, opt => opt.MapFrom(o => ChainHelper.ConvertChainIdToBase58(o.ChainId))) + .ForMember(d => d.IndexBlockHeight, opt => opt.MapFrom(o => o.IndexedHeight)); + + CreateMap() + .ForMember(d=>d.BlockHash, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockHash)) + .ForMember(d=>d.BlockHeight, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockHeight)) + .ForMember(d=>d.BlockTime, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockTime)) + .ForMember(d=>d.ChainId, opt=>opt.MapFrom(o=>o.Metadata.ChainId)); + CreateMap() + .ForMember(d=>d.BlockHash, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockHash)) + .ForMember(d=>d.BlockHeight, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockHeight)) + .ForMember(d=>d.BlockTime, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockTime)) + .ForMember(d=>d.ChainId, opt=>opt.MapFrom(o=>o.Metadata.ChainId)); + + // Bridge + CreateMap() + .ForMember(d => d.TransferAmount, opt => opt.MapFrom(o => o.Amount)) + .ForMember(d => d.FromAddress, opt => opt.MapFrom(o => o.Owner.ToBase58())) + .ForMember(d => d.ToAddress, opt => opt.MapFrom(o => o.TargetAddress)) + .ForMember(d => d.TransferTokenSymbol, opt => opt.MapFrom(o => o.Symbol)) + .ForMember(d => d.ToChainId, opt => opt.MapFrom(o => o.TargetChainId)); + + CreateMap() + .ForMember(d => d.ReceiveAmount, opt => opt.MapFrom(o => o.Amount)) + .ForMember(d => d.ReceiveTokenSymbol, opt => opt.MapFrom(o => o.Symbol)) + .ForMember(d => d.ToAddress, opt => opt.MapFrom(o => o.Address.ToBase58())); + // TokenPool + CreateMap() + .ForMember(d=>d.BlockHash, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockHash)) + .ForMember(d=>d.BlockHeight, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockHeight)) + .ForMember(d=>d.BlockTime, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockTime)) + .ForMember(d=>d.ChainId, opt=>opt.MapFrom(o=>o.Metadata.ChainId)); + CreateMap() + .ForMember(d=>d.BlockHash, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockHash)) + .ForMember(d=>d.BlockHeight, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockHeight)) + .ForMember(d=>d.BlockTime, opt=>opt.MapFrom(o=>o.Metadata.Block.BlockTime)) + .ForMember(d=>d.ChainId, opt=>opt.MapFrom(o=>o.Metadata.ChainId)); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/EbridgeIndexerModule.cs b/src/EbridgeIndexer/EbridgeIndexerModule.cs new file mode 100644 index 0000000..4775b14 --- /dev/null +++ b/src/EbridgeIndexer/EbridgeIndexerModule.cs @@ -0,0 +1,41 @@ +using AeFinder.Sdk.Processor; +using EbridgeIndexer.GraphQL; +using EbridgeIndexer.Processors; +using EbridgeIndexer.Processors.Bridge; +using EbridgeIndexer.Processors.CrossChain; +using EbridgeIndexer.Processors.CrossChainLimit; +using EbridgeIndexer.Processors.Token; +using EbridgeIndexer.Processors.TokenPool; +using GraphQL.Types; +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp.AutoMapper; +using Volo.Abp.Modularity; + +namespace EbridgeIndexer; + +public class EbridgeIndexerModule: AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + Configure(options => { options.AddMaps(); }); + context.Services.AddSingleton(); + + // Add your LogEventProcessor implementation. + 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(); + context.Services.AddSingleton(); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Entities/CrossChainIndexingInfoIndex.cs b/src/EbridgeIndexer/Entities/CrossChainIndexingInfoIndex.cs new file mode 100644 index 0000000..9efb5ff --- /dev/null +++ b/src/EbridgeIndexer/Entities/CrossChainIndexingInfoIndex.cs @@ -0,0 +1,10 @@ +using AeFinder.Sdk.Entities; +using Nest; + +namespace EbridgeIndexer.Entities; + +public class CrossChainIndexingInfoIndex : AeFinderEntity, IAeFinderEntity +{ + [Keyword] public string IndexChainId { get; set; } + public long IndexBlockHeight { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Entities/CrossChainLimitInfoIndex.cs b/src/EbridgeIndexer/Entities/CrossChainLimitInfoIndex.cs new file mode 100644 index 0000000..14ccd48 --- /dev/null +++ b/src/EbridgeIndexer/Entities/CrossChainLimitInfoIndex.cs @@ -0,0 +1,45 @@ +using AeFinder.Sdk.Entities; +using Nest; + +namespace EbridgeIndexer.Entities; + +public class CrossChainLimitInfoIndex: AeFinderEntity, IAeFinderEntity +{ + [Keyword] public string FromChainId { get; set; } + + [Keyword] public string ToChainId { get; set; } + + [Keyword] public string Symbol { get; set; } + + public CrossChainLimitType LimitType { get; set; } + + // Default Daily Limit + public long DefaultDailyLimit { get; set; } + + // Refresh Time + public DateTime? RefreshTime { get; set; } + + // Current Daily Limit + public long CurrentDailyLimit { get; set; } + + // Token Bucket Capacity + public long Capacity { get; set; } + + // Refill Rate + public long RefillRate { get; set; } + + // IsEnable + public bool IsEnable { get; set; } + + // Current Bucket TokenAmount + public long CurrentBucketTokenAmount { get; set; } + + // Bucket Update Time + public DateTime? BucketUpdateTime { get; set; } +} + +public enum CrossChainLimitType +{ + Receipt, + Swap +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Entities/CrossChainTransferInfoIndex.cs b/src/EbridgeIndexer/Entities/CrossChainTransferInfoIndex.cs new file mode 100644 index 0000000..08eafee --- /dev/null +++ b/src/EbridgeIndexer/Entities/CrossChainTransferInfoIndex.cs @@ -0,0 +1,37 @@ +using AeFinder.Sdk.Entities; +using Nest; + +namespace EbridgeIndexer.Entities; + +public class CrossChainTransferInfoIndex : AeFinderEntity, IAeFinderEntity +{ + [Keyword] public string FromChainId { get; set; } + [Keyword] public string ToChainId { get; set; } + [Keyword] public string FromAddress { get; set; } + [Keyword] public string ToAddress { get; set; } + [Keyword] public string TransferTransactionId { get; set; } + [Keyword] public string ReceiveTransactionId { get; set; } + public DateTime TransferTime { get; set; } + public long TransferBlockHeight { get; set; } + public DateTime ReceiveTime { get; set; } + public long TransferAmount { get; set; } + public long ReceiveAmount { get; set; } + [Keyword] public string ReceiptId { get; set; } + public string TransferTokenSymbol { get; set; } + public string ReceiveTokenSymbol { get; set; } + public TransferType TransferType { get; set; } + public CrossChainType CrossChainType { get; set; } + public long ReceiveBlockHeight { get; set; } +} + +public enum TransferType +{ + Transfer, + Receive +} + +public enum CrossChainType +{ + Homogeneous, + Heterogeneous +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Entities/PoolLiquidityRecordIndex.cs b/src/EbridgeIndexer/Entities/PoolLiquidityRecordIndex.cs new file mode 100644 index 0000000..4d4af7f --- /dev/null +++ b/src/EbridgeIndexer/Entities/PoolLiquidityRecordIndex.cs @@ -0,0 +1,15 @@ +using AeFinder.Sdk.Entities; +using Nest; + +namespace EbridgeIndexer.Entities; + +public class PoolLiquidityRecordIndex : AeFinderEntity, IAeFinderEntity +{ + [Keyword] public string ChainId { get; set; } + [Keyword] public string TokenSymbol { get; set; } + public long Liquidity { get; set; } + public LiquidityType LiquidityType { get; set; } + public DateTime UpdateTime { get; set; } + [Keyword] public string TransactionId { get; set; } + +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Entities/UserLiquidityRecordIndex.cs b/src/EbridgeIndexer/Entities/UserLiquidityRecordIndex.cs new file mode 100644 index 0000000..b7e9720 --- /dev/null +++ b/src/EbridgeIndexer/Entities/UserLiquidityRecordIndex.cs @@ -0,0 +1,22 @@ +using AeFinder.Sdk.Entities; +using Nest; + +namespace EbridgeIndexer.Entities; + +public class UserLiquidityRecordIndex : AeFinderEntity, IAeFinderEntity +{ + [Keyword] public string ChainId { get; set; } + [Keyword] public string TokenSymbol { get; set; } + public long Liquidity { get; set; } + [Keyword] public string Provider { get; set; } + public LiquidityType LiquidityType { get; set; } + public DateTime UpdateTime { get; set; } + +} + +public enum LiquidityType +{ + Add = 0, + Remove = 1 +} + diff --git a/src/EbridgeIndexer/GraphQL/AeIndexerSchema.cs b/src/EbridgeIndexer/GraphQL/AeIndexerSchema.cs new file mode 100644 index 0000000..36337fa --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/AeIndexerSchema.cs @@ -0,0 +1,10 @@ +using AeFinder.Sdk; + +namespace EbridgeIndexer.GraphQL; + +public class AeIndexerSchema : AppSchema +{ + public AeIndexerSchema(IServiceProvider serviceProvider) : base(serviceProvider) + { + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/CrossChainIndexingInfoDto.cs b/src/EbridgeIndexer/GraphQL/CrossChainIndexingInfoDto.cs new file mode 100644 index 0000000..be855c1 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/CrossChainIndexingInfoDto.cs @@ -0,0 +1,7 @@ +namespace EbridgeIndexer.GraphQL; + +public class CrossChainIndexingInfoDto : GraphQLDto +{ + public string IndexChainId { get; set; } + public long IndexBlockHeight { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/CrossChainLimitInfoDto.cs b/src/EbridgeIndexer/GraphQL/CrossChainLimitInfoDto.cs new file mode 100644 index 0000000..3bc67e6 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/CrossChainLimitInfoDto.cs @@ -0,0 +1,41 @@ +using AeFinder.Sdk.Dtos; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.GraphQL; + +public class CrossChainLimitInfoDto +{ + public string Id { get; set; } + + public string FromChainId { get; set; } + + public string ToChainId { get; set; } + + public string Symbol { get; set; } + + public CrossChainLimitType LimitType { get; set; } + + // Default Daily Limit + public long DefaultDailyLimit { get; set; } + + // Refresh Time + public DateTime RefreshTime { get; set; } + + // Current Daily Limit + public long CurrentDailyLimit { get; set; } + + // Token Bucket Capacity + public long Capacity { get; set; } + + // Refill Rate + public long RefillRate { get; set; } + + // IsEnable + public bool IsEnable { get; set; } + + // Current Bucket TokenAmount + public long CurrentBucketTokenAmount { get; set; } + + // Bucket Update Time + public DateTime BucketUpdateTime { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/CrossChainLimitInfoPageResultDto.cs b/src/EbridgeIndexer/GraphQL/CrossChainLimitInfoPageResultDto.cs new file mode 100644 index 0000000..8fca11d --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/CrossChainLimitInfoPageResultDto.cs @@ -0,0 +1,8 @@ +namespace EbridgeIndexer.GraphQL; + +public class CrossChainLimitInfoPageResultDto +{ + public long TotalRecordCount { get; set; } + + public List Data { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/CrossChainTransferInfoDto.cs b/src/EbridgeIndexer/GraphQL/CrossChainTransferInfoDto.cs new file mode 100644 index 0000000..aa30f76 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/CrossChainTransferInfoDto.cs @@ -0,0 +1,24 @@ +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.GraphQL; + +public class CrossChainTransferInfoDto : GraphQLDto +{ + public string FromChainId { get; set; } + public string ToChainId { get; set; } + public string FromAddress { get; set; } + public string ToAddress { get; set; } + public string TransferTransactionId { get; set; } + public string ReceiveTransactionId { get; set; } + public DateTime TransferTime { get; set; } + public long TransferBlockHeight { get; set; } + public DateTime ReceiveTime { get; set; } + public long TransferAmount { get; set; } + public long ReceiveAmount { get; set; } + public string ReceiptId { get; set; } + public string TransferTokenSymbol { get; set; } + public string ReceiveTokenSymbol { get; set; } + public TransferType TransferType { get; set; } + public CrossChainType CrossChainType { get; set; } + public long ReceiveBlockHeight { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/GetCrossChainInfoInput.cs b/src/EbridgeIndexer/GraphQL/GetCrossChainInfoInput.cs new file mode 100644 index 0000000..f713bb3 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/GetCrossChainInfoInput.cs @@ -0,0 +1,7 @@ +namespace EbridgeIndexer.GraphQL; + +public class GetCrossChainInfoInput +{ + public string ChainId { get; set; } + public string TransactionId { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/GetCrossChainLimitInfoInput.cs b/src/EbridgeIndexer/GraphQL/GetCrossChainLimitInfoInput.cs new file mode 100644 index 0000000..42d7c60 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/GetCrossChainLimitInfoInput.cs @@ -0,0 +1,12 @@ +namespace Ebridge.Indexer.Plugin.GraphQL; + +public class GetCrossChainLimitInfoInput +{ + public int SkipCount { get; set; } + + public string FromChainId { get; set; } + + public string ToChainId { get; set; } + + public string Symbol { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/GetCrossChainTransferInfoByReceiptIdInput.cs b/src/EbridgeIndexer/GraphQL/GetCrossChainTransferInfoByReceiptIdInput.cs new file mode 100644 index 0000000..2f7e240 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/GetCrossChainTransferInfoByReceiptIdInput.cs @@ -0,0 +1,7 @@ +namespace EbridgeIndexer.GraphQL; + +public class GetCrossChainTransferInfoByReceiptIdInput +{ + public string ChainId { get; set; } + public string ReceiptId { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/GraphQLDto.cs b/src/EbridgeIndexer/GraphQL/GraphQLDto.cs new file mode 100644 index 0000000..7a853a2 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/GraphQLDto.cs @@ -0,0 +1,10 @@ +namespace EbridgeIndexer.GraphQL; + +public class GraphQLDto +{ + public string Id { get; set; } + public string ChainId { get; set; } + public string BlockHash { get; set; } + public long BlockHeight { get; set; } + public DateTime BlockTime { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/PoolLiquidityRecordDto.cs b/src/EbridgeIndexer/GraphQL/PoolLiquidityRecordDto.cs new file mode 100644 index 0000000..46278ba --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/PoolLiquidityRecordDto.cs @@ -0,0 +1,12 @@ +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.GraphQL; + +public class PoolLiquidityRecordDto : GraphQLDto +{ + public string TokenSymbol { get; set; } + public long Liquidity { get; set; } + public LiquidityType LiquidityType { get; set; } + public DateTime UpdateTime { get; set; } + +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/Query.cs b/src/EbridgeIndexer/GraphQL/Query.cs new file mode 100644 index 0000000..ece4405 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/Query.cs @@ -0,0 +1,171 @@ +using AeFinder.Sdk; +using Ebridge.Indexer.Plugin.GraphQL; +using EbridgeIndexer.Entities; +using GraphQL; +using Volo.Abp.ObjectMapping; + +namespace EbridgeIndexer.GraphQL; + +public class Query +{ + private const int MaxResultCount = 10000; + + [Name("queryCrossChainLimitInfos")] + public static async Task QueryCrossChainLimitInfosAsync( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, + GetCrossChainLimitInfoInput input) + { + var queryable = await repository.GetQueryableAsync(); + if (!input.FromChainId.IsNullOrEmpty()) + { + queryable = queryable.Where(a => a.FromChainId == input.FromChainId); + } + + if (!input.ToChainId.IsNullOrEmpty()) + { + queryable = queryable.Where(a => a.ToChainId == input.ToChainId); + } + + if (!input.Symbol.IsNullOrEmpty()) + { + queryable = queryable.Where(a => a.Symbol == input.Symbol); + + } + + var result = queryable.Skip(input.SkipCount).Take(MaxResultCount).ToList(); + var dataList = objectMapper.Map, List>(result); + return new CrossChainLimitInfoPageResultDto + { + TotalRecordCount = queryable.Count(), + Data = dataList + }; + } + + public static async Task> CrossChainIndexingInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, + QueryInput input) + { + input.Validate(); + + var queryable = await repository.GetQueryableAsync(); + + queryable = queryable.Where(a => a.Metadata.ChainId == input.ChainId); + + if (input.StartBlockHeight > 0) + { + queryable = queryable.Where(a => a.Metadata.Block.BlockHeight >= input.StartBlockHeight); + } + + if (input.EndBlockHeight > 0) + { + queryable = queryable.Where(a => a.Metadata.Block.BlockHeight <= input.EndBlockHeight); + } + + var result = queryable.OrderBy(o => o.Metadata.Block.BlockHeight).Take(input.MaxMaxResultCount).ToList(); + return objectMapper.Map, List>(result); + } + + public static async Task> CrossChainTransferInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, QueryInput input) + { + input.Validate(); + + var queryable = await repository.GetQueryableAsync(); + + queryable = queryable.Where(a => a.Metadata.ChainId == input.ChainId); + + if (input.StartBlockHeight > 0) + { + queryable = queryable.Where(a => a.Metadata.Block.BlockHeight >= input.StartBlockHeight); + } + + if (input.EndBlockHeight > 0) + { + queryable = queryable.Where(a => a.Metadata.Block.BlockHeight <= input.EndBlockHeight); + } + + var result = queryable.OrderBy(o => o.Metadata.Block.BlockHeight).Take(input.MaxMaxResultCount).ToList(); + return objectMapper.Map, List>(result); + } + public static async Task QueryCrossChainTransferInfoByReceiptId( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetCrossChainTransferInfoByReceiptIdInput input) + { + var queryable = await repository.GetQueryableAsync(); + queryable = queryable.Where(a => a.Metadata.ChainId == input.ChainId); + queryable = queryable.Where(a => a.ReceiptId == input.ReceiptId); + var result = queryable.FirstOrDefault(); + return result == null ? null : objectMapper.Map(result); + } + public static async Task HomogeneousCrossChainReceiveInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetCrossChainInfoInput input) + { + var queryable = await repository.GetQueryableAsync(); + queryable = queryable.Where(a => a.Metadata.ChainId == input.ChainId); + queryable = queryable.Where(a => a.ReceiveTransactionId == input.TransactionId); + var result = queryable.FirstOrDefault(); + return result == null ? null : objectMapper.Map(result); + } + public static async Task HomogeneousCrossChainTransferInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, GetCrossChainInfoInput input) + { + var queryable = await repository.GetQueryableAsync(); + queryable = queryable.Where(a => a.Metadata.ChainId == input.ChainId); + queryable = queryable.Where(a => a.TransferTransactionId == input.TransactionId); + var result = queryable.FirstOrDefault(); + return result == null ? null : objectMapper.Map(result); + } + + public static async Task> PoolLiquidityInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, QueryInput input) + { + input.Validate(); + + var queryable = await repository.GetQueryableAsync(); + + queryable = queryable.Where(a => a.Metadata.ChainId == input.ChainId); + + if (input.StartBlockHeight > 0) + { + queryable = queryable.Where(a => a.Metadata.Block.BlockHeight >= input.StartBlockHeight); + } + + if (input.EndBlockHeight > 0) + { + queryable = queryable.Where(a => a.Metadata.Block.BlockHeight <= input.EndBlockHeight); + } + + var result = queryable.OrderBy(o => o.Metadata.Block.BlockHeight).Take(input.MaxMaxResultCount).ToList(); + return objectMapper.Map, List>(result); + } + + public static async Task> UserLiquidityInfo( + [FromServices] IReadOnlyRepository repository, + [FromServices] IObjectMapper objectMapper, QueryInput input) + { + input.Validate(); + + var queryable = await repository.GetQueryableAsync(); + + queryable = queryable.Where(a => a.Metadata.ChainId == input.ChainId); + + if (input.StartBlockHeight > 0) + { + queryable = queryable.Where(a => a.Metadata.Block.BlockHeight >= input.StartBlockHeight); + } + + if (input.EndBlockHeight > 0) + { + queryable = queryable.Where(a => a.Metadata.Block.BlockHeight <= input.EndBlockHeight); + } + + var result = queryable.OrderBy(o => o.Metadata.Block.BlockHeight).Take(input.MaxMaxResultCount).ToList(); + return objectMapper.Map, List>(result); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/QueryInput.cs b/src/EbridgeIndexer/GraphQL/QueryInput.cs new file mode 100644 index 0000000..94be26a --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/QueryInput.cs @@ -0,0 +1,18 @@ +namespace EbridgeIndexer.GraphQL; + +public class QueryInput +{ + public string ChainId { get; set; } + public long StartBlockHeight { get; set; } + public long EndBlockHeight { get; set; } + + public int MaxMaxResultCount { get; set; } = 1000; + public void Validate() + { + if (EndBlockHeight - StartBlockHeight +1 > MaxMaxResultCount) + { + throw new ArgumentOutOfRangeException(nameof(MaxMaxResultCount), + $"Max allowed value for {nameof(MaxMaxResultCount)} is {MaxMaxResultCount}."); + } + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/SyncStateDto.cs b/src/EbridgeIndexer/GraphQL/SyncStateDto.cs new file mode 100644 index 0000000..90c8a72 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/SyncStateDto.cs @@ -0,0 +1,6 @@ +namespace Ebridge.Indexer.Plugin.GraphQL; + +public class SyncStateDto +{ + public long ConfirmedBlockHeight { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/GraphQL/UserLiquidityRecordDto.cs b/src/EbridgeIndexer/GraphQL/UserLiquidityRecordDto.cs new file mode 100644 index 0000000..6d68156 --- /dev/null +++ b/src/EbridgeIndexer/GraphQL/UserLiquidityRecordDto.cs @@ -0,0 +1,12 @@ +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.GraphQL; + +public class UserLiquidityRecordDto : GraphQLDto +{ + public string Provider { get; set; } + public string TokenSymbol { get; set; } + public long Liquidity { get; set; } + public LiquidityType LiquidityType { get; set; } + public DateTime UpdateTime { get; set; } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/IdGenerateHelper.cs b/src/EbridgeIndexer/IdGenerateHelper.cs new file mode 100644 index 0000000..372b55b --- /dev/null +++ b/src/EbridgeIndexer/IdGenerateHelper.cs @@ -0,0 +1,9 @@ +namespace EbridgeIndexer; + +public static class IdGenerateHelper +{ + public static string GetId(params object[] inputs) + { + return inputs.JoinAsString("-"); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Bridge/BridgeProcessorBase.cs b/src/EbridgeIndexer/Processors/Bridge/BridgeProcessorBase.cs new file mode 100644 index 0000000..16b5e62 --- /dev/null +++ b/src/EbridgeIndexer/Processors/Bridge/BridgeProcessorBase.cs @@ -0,0 +1,26 @@ +using AeFinder.Sdk.Processor; +using AElf.CSharp.Core; +using Volo.Abp.ObjectMapping; + +namespace EbridgeIndexer.Processors.Bridge; + +public abstract class BridgeProcessorBase : LogEventProcessorBase + where TEvent : IEvent, new() +{ + protected IObjectMapper ObjectMapper => LazyServiceProvider.LazyGetRequiredService(); + + public override string GetContractAddress(string chainId) + { + return chainId switch + { + EbridgeConst.AELF => EbridgeConst.BridgeContractAddress, + EbridgeConst.tDVV => EbridgeConst.BridgeContractAddressTDVV, + EbridgeConst.tDVW => EbridgeConst.BridgeContractAddressTDVW, + _ => string.Empty + }; + } + + public override async Task ProcessAsync(TEvent logEvent, LogEventContext context) + { + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Bridge/ReceiptCreatedProcessor.cs b/src/EbridgeIndexer/Processors/Bridge/ReceiptCreatedProcessor.cs new file mode 100644 index 0000000..0e3f0fa --- /dev/null +++ b/src/EbridgeIndexer/Processors/Bridge/ReceiptCreatedProcessor.cs @@ -0,0 +1,30 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.Bridge; + +public class ReceiptCreatedProcessor : BridgeProcessorBase +{ + public override async Task ProcessAsync(ReceiptCreated logEvent, LogEventContext context) + { + Logger.LogInformation( + "ReceiptCreatedProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + var id = IdGenerateHelper.GetId(context.ChainId, context.Transaction.TransactionId); + var info = new CrossChainTransferInfoIndex + { + Id = id, + FromChainId = context.ChainId, + TransferBlockHeight = context.Block.BlockHeight, + TransferTime = context.Block.BlockTime, + TransferTransactionId = context.Transaction.TransactionId, + TransferType = TransferType.Transfer, + CrossChainType = CrossChainType.Heterogeneous + }; + ObjectMapper.Map(logEvent, info); + await SaveEntityAsync(info); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Bridge/ReceiptDailyLimitSetProcessor.cs b/src/EbridgeIndexer/Processors/Bridge/ReceiptDailyLimitSetProcessor.cs new file mode 100644 index 0000000..678358e --- /dev/null +++ b/src/EbridgeIndexer/Processors/Bridge/ReceiptDailyLimitSetProcessor.cs @@ -0,0 +1,24 @@ +using AeFinder.Sdk.Processor; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; +using EbridgeIndexer.Processors.Bridge; + +namespace EbridgeIndexer.Processors.CrossChainLimit; + +public class ReceiptDailyLimitSetProcessor : BridgeProcessorBase +{ + public override async Task ProcessAsync(ReceiptDailyLimitSet logEvent, LogEventContext context) + { + var id = IdGenerateHelper.GetId(context.ChainId, logEvent.TargetChainId, logEvent.Symbol); + var limitInfoIndex = await GetEntityAsync(id); + if (limitInfoIndex == null) + { + limitInfoIndex = new CrossChainLimitInfoIndex(); + limitInfoIndex.Id = id; + limitInfoIndex.FromChainId = context.ChainId; + limitInfoIndex.LimitType = CrossChainLimitType.Receipt; + } + ObjectMapper.Map(logEvent, limitInfoIndex); + await SaveEntityAsync(limitInfoIndex); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Bridge/ReceiptLimitChangedProcessor.cs b/src/EbridgeIndexer/Processors/Bridge/ReceiptLimitChangedProcessor.cs new file mode 100644 index 0000000..c59be18 --- /dev/null +++ b/src/EbridgeIndexer/Processors/Bridge/ReceiptLimitChangedProcessor.cs @@ -0,0 +1,24 @@ +using AeFinder.Sdk.Processor; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; +using EbridgeIndexer.Processors.Bridge; + +namespace EbridgeIndexer.Processors.CrossChainLimit; + +public class ReceiptLimitChangedProcessor : BridgeProcessorBase +{ + public override async Task ProcessAsync(ReceiptLimitChanged logEvent, LogEventContext context) + { + var id = IdGenerateHelper.GetId(context.ChainId, logEvent.TargetChainId, logEvent.Symbol); + var limitInfoIndex = await GetEntityAsync(id); + if (limitInfoIndex == null) + { + limitInfoIndex = new CrossChainLimitInfoIndex(); + limitInfoIndex.Id = id; + limitInfoIndex.FromChainId = context.ChainId; + limitInfoIndex.LimitType = CrossChainLimitType.Receipt; + } + ObjectMapper.Map(logEvent, limitInfoIndex); + await SaveEntityAsync(limitInfoIndex); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Bridge/ReceiptTokenBucketSetProcessor.cs b/src/EbridgeIndexer/Processors/Bridge/ReceiptTokenBucketSetProcessor.cs new file mode 100644 index 0000000..4e15203 --- /dev/null +++ b/src/EbridgeIndexer/Processors/Bridge/ReceiptTokenBucketSetProcessor.cs @@ -0,0 +1,24 @@ +using AeFinder.Sdk.Processor; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; +using EbridgeIndexer.Processors.Bridge; + +namespace EbridgeIndexer.Processors.CrossChainLimit; + +public class ReceiptTokenBucketSetProcessor : BridgeProcessorBase +{ + public override async Task ProcessAsync(ReceiptTokenBucketSet logEvent, LogEventContext context) + { + var id = IdGenerateHelper.GetId(context.ChainId, logEvent.TargetChainId, logEvent.Symbol); + var limitInfoIndex = await GetEntityAsync(id); + if (limitInfoIndex == null) + { + limitInfoIndex = new CrossChainLimitInfoIndex(); + limitInfoIndex.Id = id; + limitInfoIndex.FromChainId = context.ChainId; + limitInfoIndex.LimitType = CrossChainLimitType.Receipt; + } + ObjectMapper.Map(logEvent, limitInfoIndex); + await SaveEntityAsync(limitInfoIndex); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Bridge/SwapDailyLimitSetProcessor.cs b/src/EbridgeIndexer/Processors/Bridge/SwapDailyLimitSetProcessor.cs new file mode 100644 index 0000000..6158e01 --- /dev/null +++ b/src/EbridgeIndexer/Processors/Bridge/SwapDailyLimitSetProcessor.cs @@ -0,0 +1,24 @@ +using AeFinder.Sdk.Processor; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; +using EbridgeIndexer.Processors.Bridge; + +namespace EbridgeIndexer.Processors.CrossChainLimit; + +public class SwapDailyLimitSetProcessor : BridgeProcessorBase +{ + public override async Task ProcessAsync(SwapDailyLimitSet logEvent, LogEventContext context) + { + var id = IdGenerateHelper.GetId(logEvent.FromChainId, context.ChainId, logEvent.Symbol); + var limitInfoIndex = await GetEntityAsync(id); + if (limitInfoIndex == null) + { + limitInfoIndex = new CrossChainLimitInfoIndex(); + limitInfoIndex.Id = id; + limitInfoIndex.ToChainId = context.ChainId; + limitInfoIndex.LimitType = CrossChainLimitType.Swap; + } + ObjectMapper.Map(logEvent, limitInfoIndex); + await SaveEntityAsync(limitInfoIndex); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Bridge/SwapLimitChangedProcessor.cs b/src/EbridgeIndexer/Processors/Bridge/SwapLimitChangedProcessor.cs new file mode 100644 index 0000000..16b1795 --- /dev/null +++ b/src/EbridgeIndexer/Processors/Bridge/SwapLimitChangedProcessor.cs @@ -0,0 +1,24 @@ +using AeFinder.Sdk.Processor; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; +using EbridgeIndexer.Processors.Bridge; + +namespace EbridgeIndexer.Processors.CrossChainLimit; + +public class SwapLimitChangedProcessor : BridgeProcessorBase +{ + public override async Task ProcessAsync(SwapLimitChanged logEvent, LogEventContext context) + { + var id = IdGenerateHelper.GetId(logEvent.FromChainId, context.ChainId, logEvent.Symbol); + var limitInfoIndex = await GetEntityAsync(id); + if (limitInfoIndex == null) + { + limitInfoIndex = new CrossChainLimitInfoIndex(); + limitInfoIndex.Id = id; + limitInfoIndex.ToChainId = context.ChainId; + limitInfoIndex.LimitType = CrossChainLimitType.Swap; + } + ObjectMapper.Map(logEvent, limitInfoIndex); + await SaveEntityAsync(limitInfoIndex); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Bridge/SwapTokenBucketSetProcessor.cs b/src/EbridgeIndexer/Processors/Bridge/SwapTokenBucketSetProcessor.cs new file mode 100644 index 0000000..f40c420 --- /dev/null +++ b/src/EbridgeIndexer/Processors/Bridge/SwapTokenBucketSetProcessor.cs @@ -0,0 +1,24 @@ +using AeFinder.Sdk.Processor; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; +using EbridgeIndexer.Processors.Bridge; + +namespace EbridgeIndexer.Processors.CrossChainLimit; + +public class SwapTokenBucketSetProcessor : BridgeProcessorBase +{ + public override async Task ProcessAsync(SwapTokenBucketSet logEvent, LogEventContext context) + { + var id = IdGenerateHelper.GetId(logEvent.FromChainId, context.ChainId, logEvent.Symbol); + var limitInfoIndex = await GetEntityAsync(id); + if (limitInfoIndex == null) + { + limitInfoIndex = new CrossChainLimitInfoIndex(); + limitInfoIndex.Id = id; + limitInfoIndex.ToChainId = context.ChainId; + limitInfoIndex.LimitType = CrossChainLimitType.Swap; + } + ObjectMapper.Map(logEvent, limitInfoIndex); + await SaveEntityAsync(limitInfoIndex); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Bridge/TokenSwappedProcessor.cs b/src/EbridgeIndexer/Processors/Bridge/TokenSwappedProcessor.cs new file mode 100644 index 0000000..8b81acd --- /dev/null +++ b/src/EbridgeIndexer/Processors/Bridge/TokenSwappedProcessor.cs @@ -0,0 +1,32 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.Bridge; + +public class TokenSwappedProcessor : BridgeProcessorBase +{ + public override async Task ProcessAsync(TokenSwapped logEvent, LogEventContext context) + { + Logger.LogInformation( + "TokenSwappedProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", + context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + var id = IdGenerateHelper.GetId(context.ChainId, context.Transaction.TransactionId); + + var info = new CrossChainTransferInfoIndex + { + Id = id, + ReceiveTime = context.Block.BlockTime, + ReceiveTransactionId = context.Transaction.TransactionId, + ToChainId = context.ChainId, + TransferType = TransferType.Receive, + CrossChainType = CrossChainType.Heterogeneous, + ReceiveBlockHeight = context.Block.BlockHeight, + }; + ObjectMapper.Map(logEvent, info); + await SaveEntityAsync(info); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/CrossChain/CrossChainProcessorBase.cs b/src/EbridgeIndexer/Processors/CrossChain/CrossChainProcessorBase.cs new file mode 100644 index 0000000..ebde66b --- /dev/null +++ b/src/EbridgeIndexer/Processors/CrossChain/CrossChainProcessorBase.cs @@ -0,0 +1,22 @@ +using AeFinder.Sdk.Processor; +using AElf.CSharp.Core; +using Volo.Abp.ObjectMapping; + +namespace EbridgeIndexer.Processors.CrossChain; + +public abstract class CrossChainProcessorBase : LogEventProcessorBase + where TEvent : IEvent, new() +{ + protected IObjectMapper ObjectMapper => LazyServiceProvider.LazyGetRequiredService(); + + public override string GetContractAddress(string chainId) + { + return chainId switch + { + EbridgeConst.AELF => EbridgeConst.CrossChainContractAddress, + EbridgeConst.tDVV => EbridgeConst.CrossChainContractAddressTDVV, + EbridgeConst.tDVW => EbridgeConst.CrossChainContractAddressTDVW, + _ => string.Empty + }; + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/CrossChain/ParentChainIndexedProcessor.cs b/src/EbridgeIndexer/Processors/CrossChain/ParentChainIndexedProcessor.cs new file mode 100644 index 0000000..31860e9 --- /dev/null +++ b/src/EbridgeIndexer/Processors/CrossChain/ParentChainIndexedProcessor.cs @@ -0,0 +1,26 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElf.Contracts.CrossChain; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.CrossChain; + +public class ParentChainIndexedProcessor : CrossChainProcessorBase +{ + public override async Task ProcessAsync(ParentChainIndexed logEvent, LogEventContext context) + { + Logger.LogInformation( + "ParentChainIndexedProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", + context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + var id = IdGenerateHelper.GetId(context.ChainId, context.Transaction.TransactionId, logEvent.ChainId); + + var info = new CrossChainIndexingInfoIndex + { + Id = id + }; + ObjectMapper.Map(logEvent, info); + await SaveEntityAsync(info); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/CrossChain/SideChainIndexedProcessor.cs b/src/EbridgeIndexer/Processors/CrossChain/SideChainIndexedProcessor.cs new file mode 100644 index 0000000..27be046 --- /dev/null +++ b/src/EbridgeIndexer/Processors/CrossChain/SideChainIndexedProcessor.cs @@ -0,0 +1,26 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElf.Contracts.CrossChain; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.CrossChain; + +public class SideChainIndexedProcessor : CrossChainProcessorBase +{ + public override async Task ProcessAsync(SideChainIndexed logEvent, LogEventContext context) + { + Logger.LogInformation( + "ParentChainIndexedProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", + context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + var id = IdGenerateHelper.GetId(context.ChainId, context.Transaction.TransactionId, logEvent.ChainId); + + var info = new CrossChainIndexingInfoIndex + { + Id = id + }; + ObjectMapper.Map(logEvent, info); + await SaveEntityAsync(info); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Token/CrossChainReceivedProcessor.cs b/src/EbridgeIndexer/Processors/Token/CrossChainReceivedProcessor.cs new file mode 100644 index 0000000..920725f --- /dev/null +++ b/src/EbridgeIndexer/Processors/Token/CrossChainReceivedProcessor.cs @@ -0,0 +1,31 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElf.Contracts.MultiToken; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.Token; + +public class CrossChainReceivedProcessor: TokenProcessorBase +{ + public override async Task ProcessAsync(CrossChainReceived logEvent, LogEventContext context) + { + Logger.LogInformation( + "CrossChainReceivedProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", + context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + var id = IdGenerateHelper.GetId(context.ChainId, context.Transaction.TransactionId); + var info = new CrossChainTransferInfoIndex + { + Id = id, + ReceiveTime = context.Block.BlockTime, + ReceiveTransactionId = context.Transaction.TransactionId, + ToChainId = context.ChainId, + TransferType = TransferType.Receive, + CrossChainType = CrossChainType.Homogeneous, + ReceiveBlockHeight = context.Block.BlockHeight + }; + ObjectMapper.Map(logEvent, info); + await SaveEntityAsync(info); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Token/CrossChainTransferredProcessor.cs b/src/EbridgeIndexer/Processors/Token/CrossChainTransferredProcessor.cs new file mode 100644 index 0000000..3ea33cd --- /dev/null +++ b/src/EbridgeIndexer/Processors/Token/CrossChainTransferredProcessor.cs @@ -0,0 +1,32 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElf.Contracts.MultiToken; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.Token; + +public class CrossChainTransferredProcessor: TokenProcessorBase +{ + public override async Task ProcessAsync(CrossChainTransferred logEvent, LogEventContext context) + { + Logger.LogInformation( + "CrossChainTransferredProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", + context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + var id = IdGenerateHelper.GetId(context.ChainId, context.Transaction.TransactionId); + + var info = new CrossChainTransferInfoIndex + { + Id = id, + FromChainId = context.ChainId, + TransferBlockHeight = context.Block.BlockHeight, + TransferTime = context.Block.BlockTime, + TransferTransactionId = context.Transaction.TransactionId, + TransferType = TransferType.Transfer, + CrossChainType = CrossChainType.Homogeneous + }; + ObjectMapper.Map(logEvent, info); + await SaveEntityAsync(info); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/Token/TokenProcessorBase.cs b/src/EbridgeIndexer/Processors/Token/TokenProcessorBase.cs new file mode 100644 index 0000000..c35c2e6 --- /dev/null +++ b/src/EbridgeIndexer/Processors/Token/TokenProcessorBase.cs @@ -0,0 +1,23 @@ +using AeFinder.Sdk.Processor; +using AElf.CSharp.Core; +using Volo.Abp.ObjectMapping; + +namespace EbridgeIndexer.Processors.Token; + +public abstract class TokenProcessorBase : LogEventProcessorBase + where TEvent : IEvent, new() +{ + protected IObjectMapper ObjectMapper => LazyServiceProvider.LazyGetRequiredService(); + + public override string GetContractAddress(string chainId) + { + return chainId switch + { + EbridgeConst.AELF => EbridgeConst.MultiTokenContractAddress, + EbridgeConst.tDVV => EbridgeConst.MultiTokenContractAddressTDVV, + EbridgeConst.tDVW => EbridgeConst.MultiTokenContractAddressTDVW, + _ => string.Empty + }; + } + +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/TokenPool/LiquidityAddedProcessor.cs b/src/EbridgeIndexer/Processors/TokenPool/LiquidityAddedProcessor.cs new file mode 100644 index 0000000..c55b353 --- /dev/null +++ b/src/EbridgeIndexer/Processors/TokenPool/LiquidityAddedProcessor.cs @@ -0,0 +1,32 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using EBridge.Contracts.TokenPool; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.TokenPool; + +public class LiquidityAddedProcessor : TokenPoolProcessorBase +{ + public override async Task ProcessAsync(LiquidityAdded logEvent, LogEventContext context) + { + Logger.LogInformation( + "LiquidityAddedProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", + context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + var id = IdGenerateHelper.GetId(context.ChainId, context.Transaction.TransactionId); + var userLiquidity = new UserLiquidityRecordIndex + { + Id = id, + ChainId = context.ChainId, + Provider = logEvent.Provider.ToBase58(), + TokenSymbol = logEvent.TokenSymbol, + Liquidity = logEvent.Amount, + LiquidityType = LiquidityType.Add, + UpdateTime = context.Block.BlockTime + }; + await UpdateTokenPoolLiquidityAsync(context.ChainId, logEvent.TokenSymbol, logEvent.Amount, + context.Transaction.TransactionId, "LiquidityAdded", LiquidityType.Add, context.Block.BlockTime); + await SaveEntityAsync(userLiquidity); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/TokenPool/LiquidityRemovedProcessor.cs b/src/EbridgeIndexer/Processors/TokenPool/LiquidityRemovedProcessor.cs new file mode 100644 index 0000000..630ae21 --- /dev/null +++ b/src/EbridgeIndexer/Processors/TokenPool/LiquidityRemovedProcessor.cs @@ -0,0 +1,33 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using EBridge.Contracts.TokenPool; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.TokenPool; + +public class LiquidityRemovedProcessor : TokenPoolProcessorBase +{ + public override async Task ProcessAsync(LiquidityRemoved logEvent, LogEventContext context) + { + Logger.LogInformation( + "LiquidityRemovedProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", + context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + var id = IdGenerateHelper.GetId(context.ChainId, context.Transaction.TransactionId); + var userLiquidity = new UserLiquidityRecordIndex + { + Id = id, + ChainId = context.ChainId, + Provider = logEvent.Provider.ToBase58(), + TokenSymbol = logEvent.TokenSymbol, + Liquidity = logEvent.Amount, + LiquidityType = LiquidityType.Remove, + UpdateTime = context.Block.BlockTime + }; + + await UpdateTokenPoolLiquidityAsync(context.ChainId, logEvent.TokenSymbol, logEvent.Amount, + context.Transaction.TransactionId, "LiquidityRemoved", LiquidityType.Remove, context.Block.BlockTime); + await SaveEntityAsync(userLiquidity); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/TokenPool/LockedProcessor.cs b/src/EbridgeIndexer/Processors/TokenPool/LockedProcessor.cs new file mode 100644 index 0000000..ac1022d --- /dev/null +++ b/src/EbridgeIndexer/Processors/TokenPool/LockedProcessor.cs @@ -0,0 +1,20 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using EBridge.Contracts.TokenPool; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.TokenPool; + +public class LockedProcessor: TokenPoolProcessorBase +{ + public override async Task ProcessAsync(Locked logEvent, LogEventContext context) + { + Logger.LogInformation( + "LockedProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", + context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + await UpdateTokenPoolLiquidityAsync(context.ChainId, logEvent.TargetTokenSymbol, logEvent.Amount, + context.Transaction.TransactionId, "Locked", LiquidityType.Add, context.Block.BlockTime); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/TokenPool/ReleasedProcessor.cs b/src/EbridgeIndexer/Processors/TokenPool/ReleasedProcessor.cs new file mode 100644 index 0000000..147ece1 --- /dev/null +++ b/src/EbridgeIndexer/Processors/TokenPool/ReleasedProcessor.cs @@ -0,0 +1,20 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using EBridge.Contracts.TokenPool; +using EbridgeIndexer.Entities; + +namespace EbridgeIndexer.Processors.TokenPool; + +public class ReleasedProcessor: TokenPoolProcessorBase +{ + public override async Task ProcessAsync(Released logEvent, LogEventContext context) + { + Logger.LogInformation( + "ReleasedProcessor start, blockHeight:{Height}, blockHash:{Hash}, txId:{txId}", + context.Block.BlockHeight, + context.Block.BlockHash, + context.Transaction.TransactionId); + await UpdateTokenPoolLiquidityAsync(context.ChainId, logEvent.TargetTokenSymbol, logEvent.Amount, + context.Transaction.TransactionId, "Released", LiquidityType.Remove, context.Block.BlockTime); + } +} \ No newline at end of file diff --git a/src/EbridgeIndexer/Processors/TokenPool/TokenPoolProcessorBase.cs b/src/EbridgeIndexer/Processors/TokenPool/TokenPoolProcessorBase.cs new file mode 100644 index 0000000..f39dcd9 --- /dev/null +++ b/src/EbridgeIndexer/Processors/TokenPool/TokenPoolProcessorBase.cs @@ -0,0 +1,43 @@ +using AeFinder.Sdk.Logging; +using AeFinder.Sdk.Processor; +using AElf.CSharp.Core; +using EbridgeIndexer.Entities; +using Volo.Abp.ObjectMapping; + +namespace EbridgeIndexer.Processors.TokenPool; + +public abstract class TokenPoolProcessorBase : LogEventProcessorBase + where TEvent : IEvent, new() +{ + protected IObjectMapper ObjectMapper => LazyServiceProvider.LazyGetRequiredService(); + + public override string GetContractAddress(string chainId) + { + return chainId switch + { + EbridgeConst.AELF => EbridgeConst.TokenPoolContractAddress, + EbridgeConst.tDVV => EbridgeConst.TokenPoolContractAddressTDVV, + EbridgeConst.tDVW => EbridgeConst.TokenPoolContractAddressTDVW, + _ => string.Empty + }; + } + + protected async Task UpdateTokenPoolLiquidityAsync(string chainId, string symbol, long liquidity, string txId, + string eventName, LiquidityType liquidityType, DateTime blockTime) + { + Logger.LogInformation( + "UpdateTokenPoolLiquidityAsync start, chainId:{chainId}, symbol:{symbol}, liquidity:{liquidity}", chainId, + symbol, liquidity); + var id = IdGenerateHelper.GetId(chainId, txId, eventName); + var tokenPool = new PoolLiquidityRecordIndex + { + Id = id, + ChainId = chainId, + TokenSymbol = symbol, + Liquidity = liquidity, + LiquidityType = liquidityType, + UpdateTime = blockTime + }; + await SaveEntityAsync(tokenPool); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/AssemblyInfo.cs b/test/EbridgeIndexer.Tests/AssemblyInfo.cs new file mode 100644 index 0000000..41a898e --- /dev/null +++ b/test/EbridgeIndexer.Tests/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using Xunit; + +[assembly: CollectionBehavior(DisableTestParallelization = true)] \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/EbridgeIndexer.Tests.csproj b/test/EbridgeIndexer.Tests/EbridgeIndexer.Tests.csproj new file mode 100644 index 0000000..2e9d798 --- /dev/null +++ b/test/EbridgeIndexer.Tests/EbridgeIndexer.Tests.csproj @@ -0,0 +1,34 @@ + + + + net8.0 + enable + EbridgeIndexer + + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + diff --git a/test/EbridgeIndexer.Tests/EbridgeIndexerTestBase.cs b/test/EbridgeIndexer.Tests/EbridgeIndexerTestBase.cs new file mode 100644 index 0000000..448accf --- /dev/null +++ b/test/EbridgeIndexer.Tests/EbridgeIndexerTestBase.cs @@ -0,0 +1,8 @@ +using AeFinder.App.TestBase; + +namespace EbridgeIndexer; + +public abstract class EbridgeIndexerTestBase: AeFinderAppTestBase +{ + +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/EbridgeIndexerTestModule.cs b/test/EbridgeIndexer.Tests/EbridgeIndexerTestModule.cs new file mode 100644 index 0000000..aeac2dc --- /dev/null +++ b/test/EbridgeIndexer.Tests/EbridgeIndexerTestModule.cs @@ -0,0 +1,43 @@ +using AeFinder.App.TestBase; +using EbridgeIndexer.Processors.Bridge; +using EbridgeIndexer.Processors.CrossChain; +using EbridgeIndexer.Processors.CrossChainLimit; +using EbridgeIndexer.Processors.Token; +using EbridgeIndexer.Processors.TokenPool; +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp.Modularity; + +namespace EbridgeIndexer; + +[DependsOn( + typeof(AeFinderAppTestBaseModule), + typeof(EbridgeIndexerModule))] +public class EbridgeIndexerTestModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + Configure(options => { options.AddTypes(); }); + + // Add your Processors. + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + context.Services.AddSingleton(); + //ParentChainIndexedProcessor + context.Services.AddSingleton(); + //SideChainIndexedProcessor + context.Services.AddSingleton(); + //CrossChainTransferredProcessor + context.Services.AddSingleton(); + //CrossChainReceivedProcessor + 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/EbridgeIndexer.Tests/Processors/Bridge/ReceiptCreatedProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/Bridge/ReceiptCreatedProcessorTests.cs new file mode 100644 index 0000000..14dbc36 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Bridge/ReceiptCreatedProcessorTests.cs @@ -0,0 +1,88 @@ +using AeFinder.Sdk; +using AElf.Types; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors.Bridge; + +public class ReceiptCreatedProcessorTests : EbridgeIndexerTestBase +{ + private readonly ReceiptCreatedProcessor _receiptCreatedProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + + public ReceiptCreatedProcessorTests() + { + _receiptCreatedProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task Test() + { + var logEvent = new ReceiptCreated + { + TargetAddress = "TargetAddress", + ReceiptId = "ReceiptId", + Amount = 100, + Owner = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + Symbol = "ELF", + TargetChainId = "TargetChainId" + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _receiptCreatedProcessor.ProcessAsync(logEvent, logEventContext); + + var logEvent1 = new ReceiptCreated + { + TargetAddress = "TargetAddressA", + ReceiptId = "ReceiptIdA", + Amount = 200, + Owner = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + Symbol = "USDT", + TargetChainId = "tDVW" + }; + var logEventContext1 = GenerateLogEventContext(logEvent1); + logEventContext1.Transaction.TransactionId = "3ed1b52416b96aa061f4582b343908ed44f04842eb6b79b8376b6f300b70ce02"; + await _receiptCreatedProcessor.ProcessAsync(logEvent1, logEventContext1); + + var entities = await Query.CrossChainTransferInfo(_repository, _objectMapper, new QueryInput + { + ChainId = ChainId, + StartBlockHeight = 5, + EndBlockHeight = 100 + }); + entities.Count.ShouldBe(2); + entities[0].BlockHeight.ShouldBe(100); + entities[0].FromChainId.ShouldBe(ChainId); + entities[0].TransferTransactionId.ShouldBe(logEventContext.Transaction.TransactionId); + entities[0].FromAddress.ShouldBe("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"); + entities[0].ToAddress.ShouldBe("TargetAddress"); + entities[0].ReceiptId.ShouldBe("ReceiptId"); + entities[0].TransferAmount.ShouldBe(100); + entities[0].TransferTokenSymbol.ShouldBe("ELF"); + entities[0].TransferType.ShouldBe(TransferType.Transfer); + entities[0].CrossChainType.ShouldBe(CrossChainType.Heterogeneous); + entities[0].TransferTime.ShouldBe(logEventContext.Block.BlockTime); + entities[0].TransferBlockHeight.ShouldBe(logEventContext.Block.BlockHeight); + entities[0].ToChainId.ShouldBe("TargetChainId"); + + entities[1].BlockHeight.ShouldBe(100); + entities[1].FromChainId.ShouldBe(ChainId); + entities[1].TransferTransactionId.ShouldBe(logEventContext1.Transaction.TransactionId); + entities[1].FromAddress.ShouldBe("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"); + entities[1].ToAddress.ShouldBe("TargetAddressA"); + entities[1].ReceiptId.ShouldBe("ReceiptIdA"); + entities[1].TransferAmount.ShouldBe(200); + entities[1].TransferTokenSymbol.ShouldBe("USDT"); + entities[1].TransferType.ShouldBe(TransferType.Transfer); + entities[1].CrossChainType.ShouldBe(CrossChainType.Heterogeneous); + entities[1].TransferTime.ShouldBe(logEventContext1.Block.BlockTime); + entities[1].TransferBlockHeight.ShouldBe(logEventContext1.Block.BlockHeight); + entities[1].ToChainId.ShouldBe("tDVW"); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/Bridge/TokenSwappedProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/Bridge/TokenSwappedProcessorTests.cs new file mode 100644 index 0000000..a3943cb --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Bridge/TokenSwappedProcessorTests.cs @@ -0,0 +1,82 @@ +using AeFinder.Sdk; +using AElf.Types; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors.Bridge; + +public class TokenSwappedProcessorTests : EbridgeIndexerTestBase +{ + private readonly TokenSwappedProcessor _tokenSwappedProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + + public TokenSwappedProcessorTests() + { + _tokenSwappedProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task Test() + { + var logEvent = new TokenSwapped + { + ReceiptId = "ReceiptId", + Amount = 100, + Symbol = "ELF", + Address = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + FromChainId = "AELF" + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _tokenSwappedProcessor.ProcessAsync(logEvent, logEventContext); + + var logEvent1 = new TokenSwapped + { + ReceiptId = "ReceiptIdA", + Amount = 300, + Symbol = "USDT", + Address = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + FromChainId = "tDVW" + }; + var logEventContext1 = GenerateLogEventContext(logEvent1); + logEventContext1.Transaction.TransactionId = "3ed1b52416b96aa061f4582b343908ed44f04842eb6b79b8376b6f300b70ce02"; + await _tokenSwappedProcessor.ProcessAsync(logEvent1, logEventContext1); + + var entities = await Query.CrossChainTransferInfo(_repository, _objectMapper, new QueryInput + { + ChainId = ChainId, + StartBlockHeight = 5, + EndBlockHeight = 100 + }); + entities.Count.ShouldBe(2); + entities[0].BlockHeight.ShouldBe(100); + entities[0].FromChainId.ShouldBe("AELF"); + entities[0].ReceiveTransactionId.ShouldBe(logEventContext.Transaction.TransactionId); + entities[0].ToAddress.ShouldBe("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"); + entities[0].ReceiptId.ShouldBe("ReceiptId"); + entities[0].ReceiveAmount.ShouldBe(100); + entities[0].ReceiveTokenSymbol.ShouldBe("ELF"); + entities[0].TransferType.ShouldBe(TransferType.Receive); + entities[0].CrossChainType.ShouldBe(CrossChainType.Heterogeneous); + entities[0].ReceiveTime.ShouldBe(logEventContext.Block.BlockTime); + entities[0].ToChainId.ShouldBe("AELF"); + + entities[1].BlockHeight.ShouldBe(100); + entities[1].FromChainId.ShouldBe("tDVW"); + entities[1].ReceiveTransactionId.ShouldBe(logEventContext1.Transaction.TransactionId); + entities[1].ToAddress.ShouldBe("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"); + entities[1].ReceiptId.ShouldBe("ReceiptIdA"); + entities[1].ReceiveAmount.ShouldBe(300); + entities[1].ReceiveTokenSymbol.ShouldBe("USDT"); + entities[1].TransferType.ShouldBe(TransferType.Receive); + entities[1].CrossChainType.ShouldBe(CrossChainType.Heterogeneous); + entities[1].ReceiveTime.ShouldBe(logEventContext1.Block.BlockTime); + entities[1].ToChainId.ShouldBe(ChainId); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/CrossChain/ParentChainIndexedProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/CrossChain/ParentChainIndexedProcessorTests.cs new file mode 100644 index 0000000..4b42b52 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/CrossChain/ParentChainIndexedProcessorTests.cs @@ -0,0 +1,48 @@ +using AeFinder.Sdk; +using AElf.Contracts.CrossChain; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors.CrossChain; + +public class ParentChainIndexedProcessorTests : EbridgeIndexerTestBase +{ + private readonly ParentChainIndexedProcessor _parentChainIndexedProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + + public ParentChainIndexedProcessorTests() + { + _parentChainIndexedProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task Test() + { + var logEvent = new ParentChainIndexed + { + ChainId = 1, + IndexedHeight = 100 + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _parentChainIndexedProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.CrossChainIndexingInfo(_repository, _objectMapper, new QueryInput + { + ChainId = ChainId, + StartBlockHeight = 5, + EndBlockHeight = 100 + }); + entities.Count.ShouldBe(1); + entities[0].BlockHeight.ShouldBe(100); + entities[0].ChainId.ShouldBe(ChainId); + entities[0].IndexBlockHeight.ShouldBe(100); + entities[0].IndexChainId.ShouldBe("LUw"); + entities[0].BlockHash.ShouldBe(logEventContext.Block.BlockHash); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/CrossChain/SideChainIndexedProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/CrossChain/SideChainIndexedProcessorTests.cs new file mode 100644 index 0000000..f35ea71 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/CrossChain/SideChainIndexedProcessorTests.cs @@ -0,0 +1,48 @@ +using AeFinder.Sdk; +using AElf.Contracts.CrossChain; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors.CrossChain; + +public class SideChainIndexedProcessorTests : EbridgeIndexerTestBase +{ + private readonly SideChainIndexedProcessor _sideChainIndexedProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + + public SideChainIndexedProcessorTests() + { + _sideChainIndexedProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task Test() + { + var logEvent = new SideChainIndexed + { + ChainId = 1, + IndexedHeight = 100 + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _sideChainIndexedProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.CrossChainIndexingInfo(_repository, _objectMapper, new QueryInput + { + ChainId = ChainId, + StartBlockHeight = 5, + EndBlockHeight = 100 + }); + entities.Count.ShouldBe(1); + entities[0].BlockHeight.ShouldBe(100); + entities[0].ChainId.ShouldBe(ChainId); + entities[0].IndexBlockHeight.ShouldBe(100); + entities[0].IndexChainId.ShouldBe("LUw"); + entities[0].BlockHash.ShouldBe(logEventContext.Block.BlockHash); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/Limit/ReceiptDailyLimitSetProcessorTest.cs b/test/EbridgeIndexer.Tests/Processors/Limit/ReceiptDailyLimitSetProcessorTest.cs new file mode 100644 index 0000000..b48d172 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Limit/ReceiptDailyLimitSetProcessorTest.cs @@ -0,0 +1,54 @@ +using AeFinder.Sdk; +using EBridge.Contracts.Bridge; +using Ebridge.Indexer.Plugin.GraphQL; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using EbridgeIndexer.Processors.CrossChainLimit; +using Google.Protobuf.WellKnownTypes; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors; + +public class ReceiptDailyLimitSetProcessorTest : EbridgeIndexerTestBase +{ + private readonly ReceiptDailyLimitSetProcessor _receiptDailyLimitSetProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + public ReceiptDailyLimitSetProcessorTest() + { + _receiptDailyLimitSetProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + const string chainId = "AELF"; + + var logEvent = new ReceiptDailyLimitSet + { + Symbol = "ELF", + TargetChainId = "Sepolia", + ReceiptDailyLimit = 100, + ReceiptRefreshTime = Timestamp.FromDateTime(DateTime.UtcNow), + CurrentReceiptDailyLimit = 111, + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _receiptDailyLimitSetProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.QueryCrossChainLimitInfosAsync(_repository, _objectMapper, new GetCrossChainLimitInfoInput + { + ToChainId = logEvent.TargetChainId, + Symbol = logEvent.Symbol, + FromChainId = chainId, + SkipCount = 0 + }); + entities.ShouldNotBeNull(); + entities.Data[0].ToChainId.ShouldBe("Sepolia"); + entities.Data[0].DefaultDailyLimit.ShouldBe(100); + entities.Data[0].CurrentDailyLimit.ShouldBe(111); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/Limit/ReceiptLimitChangedProcessorTest.cs b/test/EbridgeIndexer.Tests/Processors/Limit/ReceiptLimitChangedProcessorTest.cs new file mode 100644 index 0000000..ed4a175 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Limit/ReceiptLimitChangedProcessorTest.cs @@ -0,0 +1,54 @@ +using AeFinder.Sdk; +using EBridge.Contracts.Bridge; +using Ebridge.Indexer.Plugin.GraphQL; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using EbridgeIndexer.Processors.CrossChainLimit; +using Google.Protobuf.WellKnownTypes; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors; + +public class ReceiptLimitChangedProcessorTest: EbridgeIndexerTestBase +{ + private readonly ReceiptLimitChangedProcessor _receiptLimitChangedProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + public ReceiptLimitChangedProcessorTest() + { + _receiptLimitChangedProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + const string chainId = "AELF"; + + var logEvent = new ReceiptLimitChanged + { + Symbol = "ELF", + TargetChainId = "Sepolia", + CurrentReceiptBucketTokenAmount = 100, + ReceiptDailyLimitRefreshTime = Timestamp.FromDateTime(DateTime.UtcNow), + CurrentReceiptDailyLimitAmount = 111 + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _receiptLimitChangedProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.QueryCrossChainLimitInfosAsync(_repository, _objectMapper, new GetCrossChainLimitInfoInput + { + ToChainId = logEvent.TargetChainId, + Symbol = logEvent.Symbol, + FromChainId = chainId, + SkipCount = 0 + }); + entities.ShouldNotBeNull(); + entities.Data[0].ToChainId.ShouldBe("Sepolia"); + entities.Data[0].CurrentDailyLimit.ShouldBe(111); + entities.Data[0].CurrentBucketTokenAmount.ShouldBe(100); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/Limit/ReceiptTokenBucketSetProcessorTest.cs b/test/EbridgeIndexer.Tests/Processors/Limit/ReceiptTokenBucketSetProcessorTest.cs new file mode 100644 index 0000000..5422f22 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Limit/ReceiptTokenBucketSetProcessorTest.cs @@ -0,0 +1,52 @@ +using AeFinder.Sdk; +using EBridge.Contracts.Bridge; +using EbridgeIndexer.GraphQL; +using Ebridge.Indexer.Plugin.GraphQL; +using EbridgeIndexer.Entities; +using EbridgeIndexer.Processors.CrossChainLimit; +using Shouldly; +using Xunit; +using Volo.Abp.ObjectMapping; + +namespace EbridgeIndexer.Processors; + +public class ReceiptTokenBucketSetProcessorTest : EbridgeIndexerTestBase +{ + private readonly ReceiptTokenBucketSetProcessor _receiptTokenBucketSetProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + public ReceiptTokenBucketSetProcessorTest() + { + _receiptTokenBucketSetProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + const string chainId = "AELF"; + + var logEvent = new ReceiptTokenBucketSet + { + Symbol = "ELF", + TargetChainId = "Sepolia", + ReceiptCapacity = 500000000000, + ReceiptRefillRate = 1670000000, + ReceiptBucketIsEnable = true, + //ReceiptBucketUpdateTime = DateTime.UtcNow.ToUniversalTime().ToTimestamp() + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _receiptTokenBucketSetProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.QueryCrossChainLimitInfosAsync(_repository, _objectMapper, new GetCrossChainLimitInfoInput + { + ToChainId = logEvent.TargetChainId, + Symbol = logEvent.Symbol, + FromChainId = chainId, + SkipCount = 0 + }); + entities.ShouldNotBeNull(); + entities.Data[0].ToChainId.ShouldBe("Sepolia"); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/Limit/SwapDailyLimitSetProcessorTest.cs b/test/EbridgeIndexer.Tests/Processors/Limit/SwapDailyLimitSetProcessorTest.cs new file mode 100644 index 0000000..5b1c273 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Limit/SwapDailyLimitSetProcessorTest.cs @@ -0,0 +1,51 @@ +using AeFinder.Sdk; +using EBridge.Contracts.Bridge; +using Ebridge.Indexer.Plugin.GraphQL; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using EbridgeIndexer.Processors.CrossChainLimit; +using Google.Protobuf.WellKnownTypes; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors; + +public class SwapDailyLimitSetProcessorTest : EbridgeIndexerTestBase +{ + private readonly SwapDailyLimitSetProcessor _swapDailyLimitSetProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + public SwapDailyLimitSetProcessorTest() + { + _swapDailyLimitSetProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + const string chainId = "AELF"; + + var logEvent = new SwapDailyLimitSet + { + Symbol = "ELF", + FromChainId = "Sepolia", + SwapDailyLimit = 100, + SwapRefreshTime = Timestamp.FromDateTime(DateTime.UtcNow), + CurrentSwapDailyLimit = 111, + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _swapDailyLimitSetProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.QueryCrossChainLimitInfosAsync(_repository, _objectMapper, new GetCrossChainLimitInfoInput + { + SkipCount = 0 + }); + entities.ShouldNotBeNull(); + entities.Data[0].FromChainId.ShouldBe("Sepolia"); + entities.Data[0].DefaultDailyLimit.ShouldBe(100); + entities.Data[0].CurrentDailyLimit.ShouldBe(111); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/Limit/SwapLimitChangedProcessorTest.cs b/test/EbridgeIndexer.Tests/Processors/Limit/SwapLimitChangedProcessorTest.cs new file mode 100644 index 0000000..d376699 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Limit/SwapLimitChangedProcessorTest.cs @@ -0,0 +1,51 @@ +using AeFinder.Sdk; +using EBridge.Contracts.Bridge; +using Ebridge.Indexer.Plugin.GraphQL; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using EbridgeIndexer.Processors.CrossChainLimit; +using Google.Protobuf.WellKnownTypes; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors; + +public class SwapLimitChangedProcessorTest : EbridgeIndexerTestBase +{ + private readonly SwapLimitChangedProcessor _swapLimitChangedProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + public SwapLimitChangedProcessorTest() + { + _swapLimitChangedProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + const string chainId = "AELF"; + + var logEvent = new SwapLimitChanged + { + Symbol = "ELF", + FromChainId = "Sepolia", + CurrentSwapDailyLimitAmount = 100, + SwapBucketUpdateTime = Timestamp.FromDateTime(DateTime.UtcNow), + CurrentSwapBucketTokenAmount = 111 + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _swapLimitChangedProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.QueryCrossChainLimitInfosAsync(_repository, _objectMapper, new GetCrossChainLimitInfoInput + { + SkipCount = 0 + }); + entities.ShouldNotBeNull(); + entities.Data[0].FromChainId.ShouldBe("Sepolia"); + entities.Data[0].CurrentDailyLimit.ShouldBe(100); + entities.Data[0].CurrentBucketTokenAmount.ShouldBe(111); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/Limit/SwapTokenBucketSetProcessorTest.cs b/test/EbridgeIndexer.Tests/Processors/Limit/SwapTokenBucketSetProcessorTest.cs new file mode 100644 index 0000000..83b409c --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Limit/SwapTokenBucketSetProcessorTest.cs @@ -0,0 +1,48 @@ +using AeFinder.Sdk; +using EBridge.Contracts.Bridge; +using Ebridge.Indexer.Plugin.GraphQL; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using EbridgeIndexer.Processors.CrossChainLimit; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors; + +public class SwapTokenBucketSetProcessorTest: EbridgeIndexerTestBase +{ + private readonly SwapTokenBucketSetProcessor _swapTokenBucketSetProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + public SwapTokenBucketSetProcessorTest() + { + _swapTokenBucketSetProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task HandleEventAsync_Test() + { + const string chainId = "AELF"; + + var logEvent = new SwapTokenBucketSet + { + Symbol = "ELF", + FromChainId = "Sepolia", + SwapCapacity = 500000000000, + SwapRefillRate = 1670000000, + SwapBucketIsEnable = true + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _swapTokenBucketSetProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.QueryCrossChainLimitInfosAsync(_repository, _objectMapper, new GetCrossChainLimitInfoInput + { + SkipCount = 0 + }); + entities.ShouldNotBeNull(); + entities.Data[0].ToChainId.ShouldBe("AELF"); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/Token/CrossChainReceivedProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/Token/CrossChainReceivedProcessorTests.cs new file mode 100644 index 0000000..48a40b9 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Token/CrossChainReceivedProcessorTests.cs @@ -0,0 +1,67 @@ +using AeFinder.Sdk; +using AElf.Types; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; +using AElf.Contracts.MultiToken; +using AElf.Types; + +namespace EbridgeIndexer.Processors.Token; + +public class CrossChainReceivedProcessorTests : EbridgeIndexerTestBase +{ + private readonly CrossChainReceivedProcessor _crossChainReceivedProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + + public CrossChainReceivedProcessorTests() + { + _crossChainReceivedProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task Test() + { + var logEvent = new CrossChainReceived + { + From = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + To = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + Symbol = "ELF", + Amount = 100, + Memo = "Memo", + FromChainId = 1, + IssueChainId = 1, + ParentChainHeight = 100, + TransferTransactionId = Hash.LoadFromHex("3ed1b52416b96aa061f4582b343908ed44f04842eb6b79b8376b6f300b70ce02"), + }; + + var logEventContext = GenerateLogEventContext(logEvent); + await _crossChainReceivedProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.CrossChainTransferInfo(_repository, _objectMapper, new QueryInput + { + ChainId = ChainId, + StartBlockHeight = 5, + EndBlockHeight = 100 + }); + entities.Count.ShouldBe(1); + entities[0].BlockHeight.ShouldBe(100); + + + var entity = await Query.HomogeneousCrossChainTransferInfo(_repository, _objectMapper, new GetCrossChainInfoInput + { + ChainId = ChainId, + TransactionId = "3ed1b52416b96aa061f4582b343908ed44f04842eb6b79b8376b6f300b70ce02" + }); + entity.ShouldNotBeNull(); + entity.BlockHeight.ShouldBe(100); + entity.FromChainId.ShouldBe("LUw"); + entity.TransferTransactionId.ShouldBe("3ed1b52416b96aa061f4582b343908ed44f04842eb6b79b8376b6f300b70ce02"); + entity.ReceiveTransactionId.ShouldBe(logEventContext.Transaction.TransactionId); + + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/Token/CrossChainTransferredProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/Token/CrossChainTransferredProcessorTests.cs new file mode 100644 index 0000000..fb7a875 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/Token/CrossChainTransferredProcessorTests.cs @@ -0,0 +1,62 @@ +using AeFinder.Sdk; +using AElf.Contracts.MultiToken; +using AElf.Types; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors.Token; + +public class CrossChainTransferredProcessorTests : EbridgeIndexerTestBase +{ + private readonly CrossChainTransferredProcessor _crossChainTransferredProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IObjectMapper _objectMapper; + + public CrossChainTransferredProcessorTests() + { + _crossChainTransferredProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + + [Fact] + public async Task Test() + { + var logEvent = new CrossChainTransferred + { + From = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + To = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + Symbol = "ELF", + Amount = 100, + Memo = "memo", + ToChainId = 1, + IssueChainId = 2 + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _crossChainTransferredProcessor.ProcessAsync(logEvent, logEventContext); + + var entities = await Query.CrossChainTransferInfo(_repository, _objectMapper, new QueryInput + { + ChainId = ChainId, + StartBlockHeight = 5, + EndBlockHeight = 100 + }); + entities.Count.ShouldBe(1); + entities[0].BlockHeight.ShouldBe(100); + entities[0].FromAddress.ShouldBe(logEvent.From.ToBase58()); + entities[0].CrossChainType.ShouldBe(CrossChainType.Homogeneous); + entities[0].BlockHeight.ShouldBe(100); + entities[0].FromChainId.ShouldBe(ChainId); + entities[0].TransferTransactionId.ShouldBe(logEventContext.Transaction.TransactionId); + entities[0].ToAddress.ShouldBe(logEvent.To.ToBase58()); + entities[0].TransferAmount.ShouldBe(100); + entities[0].TransferTokenSymbol.ShouldBe("ELF"); + entities[0].TransferType.ShouldBe(TransferType.Transfer); + entities[0].TransferTime.ShouldBe(logEventContext.Block.BlockTime); + entities[0].TransferBlockHeight.ShouldBe(logEventContext.Block.BlockHeight); + entities[0].ToChainId.ShouldBe("LUw"); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/TokenPool/LiquidityAddedProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/TokenPool/LiquidityAddedProcessorTests.cs new file mode 100644 index 0000000..2395dbf --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/TokenPool/LiquidityAddedProcessorTests.cs @@ -0,0 +1,83 @@ +using AeFinder.Sdk; +using AElf.Types; +using EBridge.Contracts.TokenPool; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors.TokenPool; + +public class LiquidityAddedProcessorTests : EbridgeIndexerTestBase +{ + private readonly LiquidityAddedProcessor _liquidityAddedProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IReadOnlyRepository _poolRepository; + + private readonly IObjectMapper _objectMapper; + + public LiquidityAddedProcessorTests() + { + _liquidityAddedProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _poolRepository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + [Fact] + public async Task Test() + { + var logEvent = new LiquidityAdded + { + Provider = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + TokenSymbol = "ELF", + Amount = 100 + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _liquidityAddedProcessor.ProcessAsync(logEvent, logEventContext); + + var logEvent1 = new LiquidityAdded + { + Provider = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + TokenSymbol = "ELF", + Amount = 50 + }; + var logEventContext1 = GenerateLogEventContext(logEvent1); + logEventContext1.Transaction.TransactionId = "3ed1b52416b96aa061f4582b343908ed44f04842eb6b79b8376b6f300b70ce02"; + await _liquidityAddedProcessor.ProcessAsync(logEvent1, logEventContext1); + + var entities = await Query.UserLiquidityInfo(_repository, _objectMapper, new QueryInput + { + ChainId = ChainId + }); + entities.Count.ShouldBe(2); + entities[0].BlockHeight.ShouldBe(100); + entities[0].ChainId.ShouldBe(ChainId); + entities[0].Provider.ShouldBe("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"); + entities[0].Liquidity.ShouldBe(100); + entities[0].TokenSymbol.ShouldBe("ELF"); + entities[0].LiquidityType.ShouldBe(LiquidityType.Add); + + entities[1].ChainId.ShouldBe(ChainId); + entities[1].Provider.ShouldBe("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"); + entities[1].Liquidity.ShouldBe(50); + entities[1].TokenSymbol.ShouldBe("ELF"); + entities[1].LiquidityType.ShouldBe(LiquidityType.Add); + + var entities1 = await Query.PoolLiquidityInfo(_poolRepository, _objectMapper, new QueryInput + { + ChainId = ChainId + }); + entities1.Count.ShouldBe(2); + entities1[0].BlockHeight.ShouldBe(100); + entities1[0].ChainId.ShouldBe(ChainId); + entities1[0].Liquidity.ShouldBe(100); + entities1[0].TokenSymbol.ShouldBe("ELF"); + entities1[0].LiquidityType.ShouldBe(LiquidityType.Add); + + entities1[1].ChainId.ShouldBe(ChainId); + entities1[1].Liquidity.ShouldBe(50); + entities1[1].TokenSymbol.ShouldBe("ELF"); + entities1[1].LiquidityType.ShouldBe(LiquidityType.Add); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/TokenPool/LiquidityRemovedProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/TokenPool/LiquidityRemovedProcessorTests.cs new file mode 100644 index 0000000..b00381b --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/TokenPool/LiquidityRemovedProcessorTests.cs @@ -0,0 +1,83 @@ +using AeFinder.Sdk; +using AElf.Types; +using EBridge.Contracts.TokenPool; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors.TokenPool; + +public class LiquidityRemovedProcessorTests : EbridgeIndexerTestBase +{ + private readonly LiquidityRemovedProcessor _liquidityRemovedProcessor; + private readonly IReadOnlyRepository _repository; + private readonly IReadOnlyRepository _poolRepository; + + private readonly IObjectMapper _objectMapper; + + public LiquidityRemovedProcessorTests() + { + _liquidityRemovedProcessor = GetRequiredService(); + _repository = GetRequiredService>(); + _poolRepository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + [Fact] + public async Task Test() + { + var logEvent = new LiquidityRemoved + { + Provider = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + TokenSymbol = "ELF", + Amount = 100 + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _liquidityRemovedProcessor.ProcessAsync(logEvent, logEventContext); + + var logEvent1 = new LiquidityRemoved + { + Provider = Address.FromBase58("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"), + TokenSymbol = "ELF", + Amount = 50 + }; + var logEventContext1 = GenerateLogEventContext(logEvent1); + logEventContext1.Transaction.TransactionId = "3ed1b52416b96aa061f4582b343908ed44f04842eb6b79b8376b6f300b70ce02"; + await _liquidityRemovedProcessor.ProcessAsync(logEvent1, logEventContext1); + + var entities = await Query.UserLiquidityInfo(_repository, _objectMapper, new QueryInput + { + ChainId = ChainId + }); + entities.Count.ShouldBe(2); + entities[0].BlockHeight.ShouldBe(100); + entities[0].ChainId.ShouldBe(ChainId); + entities[0].Provider.ShouldBe("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"); + entities[0].Liquidity.ShouldBe(100); + entities[0].TokenSymbol.ShouldBe("ELF"); + entities[0].LiquidityType.ShouldBe(LiquidityType.Remove); + + entities[1].ChainId.ShouldBe(ChainId); + entities[1].Provider.ShouldBe("28vdNy4wFgkan2jFhxshXTnJS5zR2LWxrTBVmKrSYTUWyWVZ8C"); + entities[1].Liquidity.ShouldBe(50); + entities[1].TokenSymbol.ShouldBe("ELF"); + entities[1].LiquidityType.ShouldBe(LiquidityType.Remove); + + var entities1 = await Query.PoolLiquidityInfo(_poolRepository, _objectMapper, new QueryInput + { + ChainId = ChainId + }); + entities1.Count.ShouldBe(2); + entities1[0].BlockHeight.ShouldBe(100); + entities1[0].ChainId.ShouldBe(ChainId); + entities1[0].Liquidity.ShouldBe(100); + entities1[0].TokenSymbol.ShouldBe("ELF"); + entities1[0].LiquidityType.ShouldBe(LiquidityType.Remove); + + entities1[1].ChainId.ShouldBe(ChainId); + entities1[1].Liquidity.ShouldBe(50); + entities1[1].TokenSymbol.ShouldBe("ELF"); + entities1[1].LiquidityType.ShouldBe(LiquidityType.Remove); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/TokenPool/LockedProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/TokenPool/LockedProcessorTests.cs new file mode 100644 index 0000000..15977bb --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/TokenPool/LockedProcessorTests.cs @@ -0,0 +1,60 @@ +using AeFinder.Sdk; +using EBridge.Contracts.TokenPool; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors.TokenPool; + +public class LockedProcessorTests: EbridgeIndexerTestBase +{ + private readonly LockedProcessor _lockedProcessor; + private readonly IReadOnlyRepository _poolRepository; + + private readonly IObjectMapper _objectMapper; + + public LockedProcessorTests() + { + _lockedProcessor = GetRequiredService(); + _poolRepository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + [Fact] + public async Task Test() + { + var logEvent = new Locked + { + TargetTokenSymbol = "ELF", + Amount = 100 + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _lockedProcessor.ProcessAsync(logEvent, logEventContext); + + var logEvent1 = new Locked + { + TargetTokenSymbol = "ELF", + Amount = 50 + }; + var logEventContext1 = GenerateLogEventContext(logEvent1); + logEventContext1.Transaction.TransactionId = "3ed1b52416b96aa061f4582b343908ed44f04842eb6b79b8376b6f300b70ce02"; + await _lockedProcessor.ProcessAsync(logEvent1, logEventContext1); + + var entities1 = await Query.PoolLiquidityInfo(_poolRepository, _objectMapper, new QueryInput + { + ChainId = ChainId + }); + entities1.Count.ShouldBe(2); + entities1[0].BlockHeight.ShouldBe(100); + entities1[0].ChainId.ShouldBe(ChainId); + entities1[0].Liquidity.ShouldBe(100); + entities1[0].TokenSymbol.ShouldBe("ELF"); + entities1[0].LiquidityType.ShouldBe(LiquidityType.Add); + + entities1[1].ChainId.ShouldBe(ChainId); + entities1[1].Liquidity.ShouldBe(50); + entities1[1].TokenSymbol.ShouldBe("ELF"); + entities1[1].LiquidityType.ShouldBe(LiquidityType.Add); + } +} \ No newline at end of file diff --git a/test/EbridgeIndexer.Tests/Processors/TokenPool/ReleasedProcessorTests.cs b/test/EbridgeIndexer.Tests/Processors/TokenPool/ReleasedProcessorTests.cs new file mode 100644 index 0000000..df90da0 --- /dev/null +++ b/test/EbridgeIndexer.Tests/Processors/TokenPool/ReleasedProcessorTests.cs @@ -0,0 +1,60 @@ +using AeFinder.Sdk; +using EBridge.Contracts.TokenPool; +using EbridgeIndexer.Entities; +using EbridgeIndexer.GraphQL; +using Shouldly; +using Volo.Abp.ObjectMapping; +using Xunit; + +namespace EbridgeIndexer.Processors.TokenPool; + +public class ReleasedProcessorTests: EbridgeIndexerTestBase +{ + private readonly ReleasedProcessor _releasedProcessor; + private readonly IReadOnlyRepository _poolRepository; + + private readonly IObjectMapper _objectMapper; + + public ReleasedProcessorTests() + { + _releasedProcessor = GetRequiredService(); + _poolRepository = GetRequiredService>(); + _objectMapper = GetRequiredService(); + } + [Fact] + public async Task Test() + { + var logEvent = new Released + { + TargetTokenSymbol = "ELF", + Amount = 100 + }; + var logEventContext = GenerateLogEventContext(logEvent); + await _releasedProcessor.ProcessAsync(logEvent, logEventContext); + + var logEvent1 = new Released + { + TargetTokenSymbol = "ELF", + Amount = 50 + }; + var logEventContext1 = GenerateLogEventContext(logEvent1); + logEventContext1.Transaction.TransactionId = "3ed1b52416b96aa061f4582b343908ed44f04842eb6b79b8376b6f300b70ce02"; + await _releasedProcessor.ProcessAsync(logEvent1, logEventContext1); + + var entities1 = await Query.PoolLiquidityInfo(_poolRepository, _objectMapper, new QueryInput + { + ChainId = ChainId + }); + entities1.Count.ShouldBe(2); + entities1[0].BlockHeight.ShouldBe(100); + entities1[0].ChainId.ShouldBe(ChainId); + entities1[0].Liquidity.ShouldBe(100); + entities1[0].TokenSymbol.ShouldBe("ELF"); + entities1[0].LiquidityType.ShouldBe(LiquidityType.Remove); + + entities1[1].ChainId.ShouldBe(ChainId); + entities1[1].Liquidity.ShouldBe(50); + entities1[1].TokenSymbol.ShouldBe("ELF"); + entities1[1].LiquidityType.ShouldBe(LiquidityType.Remove); + } +} \ No newline at end of file From e5bdc7fe2f30d544074eeb3e79eb7ad3aaf3ad7b Mon Sep 17 00:00:00 2001 From: ebridge-r <119044793+ebridge-r@users.noreply.github.com> Date: Mon, 8 Dec 2025 18:45:29 +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