From fd6c811a48caf12415f6e87cf3ea89d034117be1 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Tue, 26 Mar 2024 13:03:04 -0400 Subject: [PATCH 01/46] feat: Update to geth 1.13 (#1) * update geth * fix * use zbc geth * fix pebble * Fix statedb * fix some * fix x/evm * make it build * skip CI * Fix test name * Run some tests * run actions * skip integration tests * skip failing test * enable cancun --- .github/workflows/codeql-analysis.yml | 5 +- .github/workflows/dependencies.yml | 1 + .github/workflows/deploy-contract.yml | 2 + .github/workflows/goreleaser.yml | 3 +- .github/workflows/labeler.yml | 7 +- .github/workflows/markdown-links.yml | 7 +- .github/workflows/proto.yml | 2 + .github/workflows/security.yml | 1 + .github/workflows/semgrep.yml | 1 + .github/workflows/stale.yml | 1 + .github/workflows/test.yml | 6 +- app/ante/eth.go | 2 +- go.mod | 34 ++++++---- go.sum | 91 +++++++++++++++++--------- rpc/backend/sign_tx.go | 8 ++- rpc/namespaces/ethereum/debug/api.go | 12 ---- tests/importer/chain_ctx.go | 4 +- tests/importer/chain_ctx_test.go | 4 +- tests/importer/importer_test.go | 2 +- x/evm/keeper/gas.go | 2 +- x/evm/keeper/grpc_query.go | 4 +- x/evm/keeper/state_transition.go | 27 +------- x/evm/keeper/statedb_benchmark_test.go | 4 +- x/evm/keeper/statedb_test.go | 8 +-- x/evm/statedb/journal.go | 8 +-- x/evm/statedb/state_object.go | 9 ++- x/evm/statedb/statedb.go | 36 ++++++---- x/evm/statedb/statedb_test.go | 12 ++-- x/evm/types/chain_config.go | 2 + x/evm/types/tracer.go | 2 +- 30 files changed, 174 insertions(+), 133 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 58af739a23..0a290707f0 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,11 +18,12 @@ on: # The branches below must be a subset of the branches above branches: [develop] schedule: - - cron: '37 21 * * 4' + - cron: "37 21 * * 4" jobs: analyze: name: Analyze + if: false runs-on: ubuntu-latest permissions: actions: read @@ -32,7 +33,7 @@ jobs: strategy: fail-fast: false matrix: - language: ['go', 'javascript', 'python'] + language: ["go", "javascript", "python"] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] # Learn more: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index aa8ea5fdf7..54ed33982e 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -6,6 +6,7 @@ permissions: jobs: dependency-review: + if: false runs-on: ubuntu-latest steps: - uses: actions/setup-go@v4 diff --git a/.github/workflows/deploy-contract.yml b/.github/workflows/deploy-contract.yml index 4a6c3e58ec..ea1685ebe0 100644 --- a/.github/workflows/deploy-contract.yml +++ b/.github/workflows/deploy-contract.yml @@ -6,6 +6,7 @@ on: jobs: cleanup-runs: + if: false runs-on: ubuntu-latest steps: - uses: rokroskar/workflow-run-cleanup-action@master @@ -14,6 +15,7 @@ jobs: if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/develop'" deploy: + if: false runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 6dbc318535..dafbc411f4 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -6,6 +6,7 @@ on: - "v*.*.*" jobs: goreleaser: + if: false runs-on: ubuntu-latest environment: release steps: @@ -25,4 +26,4 @@ jobs: run: |- echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env - name: release publish - run: make release \ No newline at end of file + run: make release diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 0b7c0a98fb..6e81e96048 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -7,8 +7,9 @@ on: jobs: triage: + if: false runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/markdown-links.yml b/.github/workflows/markdown-links.yml index e1ead25e96..9f29ae6fc8 100644 --- a/.github/workflows/markdown-links.yml +++ b/.github/workflows/markdown-links.yml @@ -1,16 +1,17 @@ name: Check Markdown links -on: +on: pull_request: paths: - - '**.md' + - "**.md" push: branches: - develop paths: - - '**.md' + - "**.md" jobs: markdown-link-check: + if: false runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/proto.yml b/.github/workflows/proto.yml index ebdd6b4b41..d9a0d79c15 100644 --- a/.github/workflows/proto.yml +++ b/.github/workflows/proto.yml @@ -8,6 +8,7 @@ on: jobs: lint: + if: false runs-on: ubuntu-latest timeout-minutes: 5 steps: @@ -18,6 +19,7 @@ jobs: input: "proto" break-check: + if: false runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 377d08f0d4..3b3cdba0e7 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -11,6 +11,7 @@ jobs: security-events: write runs-on: ubuntu-latest + if: false env: GO111MODULE: on steps: diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 854db63346..3aa7172d55 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -12,6 +12,7 @@ on: jobs: # Update from: https://semgrep.dev/docs/semgrep-ci/sample-ci-configs/#github-actions semgrep: + if: false name: Scan runs-on: ubuntu-latest container: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e6e0b131d4..140aa32400 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -5,6 +5,7 @@ on: jobs: stale: + if: false runs-on: ubuntu-latest steps: - uses: actions/stale@v8 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0a2103535b..8e12b12ffc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,7 @@ jobs: if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" test-unit-cover: + if: false runs-on: ubuntu-latest steps: - uses: actions/setup-go@v4 @@ -84,6 +85,7 @@ jobs: if: env.GIT_DIFF integration_tests: + if: false runs-on: ubuntu-latest timeout-minutes: 60 strategy: @@ -113,7 +115,7 @@ jobs: - name: Run integration tests run: make run-integration-tests if: env.GIT_DIFF - - name: 'Tar debug files' + - name: "Tar debug files" if: failure() run: tar cfz debug_files.tar.gz -C /tmp/pytest-of-runner . - uses: actions/upload-artifact@v3 @@ -137,7 +139,7 @@ jobs: with: name: crypto-ethermint signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" - - name: 'instantiate integration test env' + - name: "instantiate integration test env" run: nix-store -r $(nix-instantiate tests/integration_tests/shell.nix) test-sim-nondeterminism: diff --git a/app/ante/eth.go b/app/ante/eth.go index bca039ea49..58a2c83ee9 100644 --- a/app/ante/eth.go +++ b/app/ante/eth.go @@ -112,7 +112,7 @@ func CheckEthGasConsume( blockHeight := big.NewInt(ctx.BlockHeight()) homestead := ethCfg.IsHomestead(blockHeight) istanbul := ethCfg.IsIstanbul(blockHeight) - shanghai := ethCfg.IsShanghai(uint64(ctx.BlockHeader().Time.Unix())) + shanghai := ethCfg.IsShanghai(big.NewInt(ctx.BlockHeader().Height), uint64(ctx.BlockHeader().Time.Unix())) var events sdk.Events // Use the lowest priority of all the messages as the final one. diff --git a/go.mod b/go.mod index 2e08090299..1807fdcf96 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,7 @@ require ( github.com/cosmos/ibc-go/v8 v8.1.0 github.com/cosmos/rosetta v0.50.3-1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc - github.com/ethereum/go-ethereum v1.10.26 + github.com/ethereum/go-ethereum v1.13.5 github.com/gogo/protobuf v1.3.2 github.com/golang/protobuf v1.5.4 github.com/gorilla/mux v1.8.1 @@ -73,8 +73,8 @@ require ( github.com/DataDog/datadog-go v4.8.3+incompatible // indirect github.com/DataDog/zstd v1.5.5 // indirect github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 // indirect - github.com/VictoriaMetrics/fastcache v1.6.0 // indirect + github.com/StackExchange/wmi v1.2.1 // indirect + github.com/VictoriaMetrics/fastcache v1.12.1 // indirect github.com/allegro/bigcache v1.2.1 // indirect github.com/aws/aws-sdk-go v1.44.224 // indirect github.com/beorn7/perks v1.0.1 // indirect @@ -92,14 +92,18 @@ require ( github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect github.com/cockroachdb/pebble v1.1.0 // indirect github.com/cockroachdb/redact v1.1.5 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect github.com/cometbft/cometbft-db v0.9.1 // indirect + github.com/consensys/bavard v0.1.13 // indirect + github.com/consensys/gnark-crypto v0.12.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.0.1 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect + github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect github.com/creachadair/atomicfile v0.3.1 // indirect github.com/creachadair/tomledit v0.0.24 // indirect github.com/danieljoos/wincred v1.2.0 // indirect @@ -110,11 +114,11 @@ require ( github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect github.com/dlclark/regexp2 v1.7.0 // indirect - github.com/dop251/goja v0.0.0-20230122112309-96b1610dd4f7 // indirect + github.com/dop251/goja v0.0.0-20230806174421-c933cf95e127 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect - github.com/edsrzf/mmap-go v1.0.0 // indirect github.com/emicklei/dot v1.6.1 // indirect + github.com/ethereum/c-kzg-4844 v0.4.0 // indirect github.com/fatih/color v1.16.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -138,6 +142,7 @@ require ( github.com/google/btree v1.1.2 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/orderedcode v0.0.1 // indirect + github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10 // indirect github.com/google/s2a-go v0.1.7 // indirect github.com/google/uuid v1.6.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect @@ -157,9 +162,9 @@ require ( github.com/hashicorp/yamux v0.1.1 // indirect github.com/hdevalence/ed25519consensus v0.2.0 // indirect github.com/holiman/bloomfilter/v2 v2.0.3 // indirect - github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c // indirect + github.com/holiman/uint256 v1.2.4 // indirect github.com/huandu/skiplist v1.2.0 // indirect - github.com/huin/goupnp v1.0.3 // indirect + github.com/huin/goupnp v1.3.0 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jackpal/go-nat-pmp v1.0.2 // indirect @@ -175,11 +180,12 @@ require ( github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-runewidth v0.0.9 // indirect + github.com/mattn/go-runewidth v0.0.13 // indirect github.com/minio/highwayhash v1.0.2 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mmcloughlin/addchain v0.4.0 // indirect github.com/mtibben/percent v0.2.1 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect @@ -192,6 +198,7 @@ require ( github.com/prometheus/common v0.47.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/rivo/uniseg v0.2.0 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/rs/zerolog v1.32.0 // indirect github.com/sagikazarmark/locafero v0.4.0 // indirect @@ -203,12 +210,13 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/objx v0.5.2 // indirect github.com/subosito/gotenv v1.6.0 // indirect + github.com/supranational/blst v0.3.11 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.0 // indirect - github.com/tklauser/go-sysconf v0.3.10 // indirect - github.com/tklauser/numcpus v0.4.0 // indirect + github.com/tklauser/go-sysconf v0.3.12 // indirect + github.com/tklauser/numcpus v0.6.1 // indirect github.com/ulikunitz/xz v0.5.11 // indirect github.com/zondax/hid v0.9.2 // indirect github.com/zondax/ledger-go v0.14.3 // indirect @@ -233,18 +241,18 @@ require ( google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c // indirect gopkg.in/ini.v1 v1.67.0 // indirect - gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect gopkg.in/yaml.v3 v3.0.1 // indirect gotest.tools/v3 v3.5.1 // indirect nhooyr.io/websocket v1.8.10 // indirect pgregory.net/rapid v1.1.0 // indirect + rsc.io/tmplfunc v0.0.3 // indirect ) replace ( // use cosmos keyring github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 - github.com/cockroachdb/pebble => github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811 - github.com/ethereum/go-ethereum => github.com/crypto-org-chain/go-ethereum v1.10.20-0.20231207063621-43cf32d91c3e + // todo: remove this when go ethereum release new version + github.com/cockroachdb/pebble v1.1.0 => github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 // Fix upstream GHSA-h395-qcrw-5vmq vulnerability. // TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 diff --git a/go.sum b/go.sum index b2c472bda2..63dbadf281 100644 --- a/go.sum +++ b/go.sum @@ -237,10 +237,10 @@ github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8= -github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= -github.com/VictoriaMetrics/fastcache v1.6.0 h1:C/3Oi3EiBCqufydp1neRZkqcwmEiuRT9c3fqvvgKm5o= -github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw= +github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDOSA= +github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= +github.com/VictoriaMetrics/fastcache v1.12.1 h1:i0mICQuojGDL3KblA7wUNlY5lOK6a4bwt3uRKnkZU40= +github.com/VictoriaMetrics/fastcache v1.12.1/go.mod h1:tX04vaqcNoQeGLD+ra5pU5sWkuxnzWhEzLwhP9w653o= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= @@ -324,12 +324,15 @@ github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= @@ -350,16 +353,18 @@ github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa/go.mod h1:x/1Gn8zydmfq github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/cockroachdb/datadriven v1.0.2 h1:H9MtNqVoVhvd9nCBwOyDjUEdZCREqbIdCJD93PBm/jA= -github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= +github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= +github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= github.com/cockroachdb/errors v1.11.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= -github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811 h1:ytcWPaNPhNoGMWEhDvS3zToKcDpRsLuRolQJBVGdozk= -github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811/go.mod h1:Nb5lgvnQ2+oGlE/EyZy4+2/CxRh9KfvCXnag1vtpxVM= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 h1:g+Y6IAf28JinY3zNdXwpw71SBGhLEb72kGQgiR5XKZM= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6/go.mod h1:acMRUGd/BK8AUmQNK3spUCCGzFLZU2bSST3NMXSq2Kc= github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONNbHU7MuEHboiFuA= github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c= @@ -367,6 +372,10 @@ github.com/cometbft/cometbft v0.38.6 h1:QSgpCzrGWJ2KUq1qpw+FCfASRpE27T6LQbfEHscd github.com/cometbft/cometbft v0.38.6/go.mod h1:8rSPxzUJYquCN8uuBgbUHOMg2KAwvr7CyUw+6ukO4nw= github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= +github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ= +github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= +github.com/consensys/gnark-crypto v0.12.1 h1:lHH39WuuFgVHONRl3J0LRBtuYdQTumFSDtJF7HpyG8M= +github.com/consensys/gnark-crypto v0.12.1/go.mod h1:v2Gy7L/4ZRosZ7Ivs+9SfUDr0f5UlG+EM5t7MPHiLuY= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= @@ -411,14 +420,14 @@ github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwc github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/crate-crypto/go-kzg-4844 v0.7.0 h1:C0vgZRk4q4EZ/JgPfzuSoxdCq3C3mOZMBShovmncxvA= +github.com/crate-crypto/go-kzg-4844 v0.7.0/go.mod h1:1kMhvPgI0Ky3yIa+9lFySEBUBXkYxeOi8ZF1sYioxhc= github.com/creachadair/atomicfile v0.3.1 h1:yQORkHjSYySh/tv5th1dkKcn02NEW5JleB84sjt+W4Q= github.com/creachadair/atomicfile v0.3.1/go.mod h1:mwfrkRxFKwpNAflYZzytbSwxvbK6fdGRRlp0KEQc0qU= github.com/creachadair/tomledit v0.0.24 h1:5Xjr25R2esu1rKCbQEmjZYlrhFkDspoAbAKb6QKQDhQ= github.com/creachadair/tomledit v0.0.24/go.mod h1:9qHbShRWQzSCcn617cMzg4eab1vbLCOjOshAWSzWr8U= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/crypto-org-chain/go-ethereum v1.10.20-0.20231207063621-43cf32d91c3e h1:vnyepPQ/m25+19xcTuBUdRxmltZ/EjVWNqEjhg7Ummk= -github.com/crypto-org-chain/go-ethereum v1.10.20-0.20231207063621-43cf32d91c3e/go.mod h1:+a8pUj1tOyJ2RinsNQD4326YS+leSoKGiG/uVVb0x6Y= github.com/danieljoos/wincred v1.2.0 h1:ozqKHaLK0W/ii4KVbbvluM91W2H3Sh0BncbUNPS7jLE= github.com/danieljoos/wincred v1.2.0/go.mod h1:FzQLLMKBFdvu+osBrnFODiv32YGwCfx0SkRa/eYHgec= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -454,8 +463,8 @@ github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5Xh github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/dop251/goja v0.0.0-20211022113120-dc8c55024d06/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= -github.com/dop251/goja v0.0.0-20230122112309-96b1610dd4f7 h1:kgvzE5wLsLa7XKfV85VZl40QXaMCaeFtHpPwJ8fhotY= -github.com/dop251/goja v0.0.0-20230122112309-96b1610dd4f7/go.mod h1:yRkwfj0CBpOGre+TwBsqPV0IH0Pk73e4PXJOeNDboGs= +github.com/dop251/goja v0.0.0-20230806174421-c933cf95e127 h1:qwcF+vdFrvPSEUDSX5RVoRccG8a5DhOdWdQ4zN62zzo= +github.com/dop251/goja v0.0.0-20230806174421-c933cf95e127/go.mod h1:QMWlm50DNe14hD7t24KEqZuUdC9sOTy8W6XbCU1mlw4= github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= github.com/dop251/goja_nodejs v0.0.0-20211022123610-8dd9abb0616d/go.mod h1:DngW8aVqWbuLRMHItjPUyqdj+HWPvnQe8V8y1nDpIbM= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= @@ -467,7 +476,6 @@ github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edsrzf/mmap-go v1.0.0 h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/emicklei/dot v1.6.1 h1:ujpDlBkkwgWUY+qPId5IwapRW/xEoligRSYjioR6DFI= github.com/emicklei/dot v1.6.1/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= @@ -484,6 +492,10 @@ github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go. github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= +github.com/ethereum/c-kzg-4844 v0.4.0 h1:3MS1s4JtA868KpJxroZoepdV0ZKBp3u/O5HcZ7R3nlY= +github.com/ethereum/c-kzg-4844 v0.4.0/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0= +github.com/ethereum/go-ethereum v1.13.5 h1:U6TCRciCqZRe4FPXmy1sMGxTfuk8P7u2UoinF3VbaFk= +github.com/ethereum/go-ethereum v1.13.5/go.mod h1:yMTu38GSuyxaYzQMViqNmQ1s3cE84abZexQmTgenWk0= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= @@ -532,6 +544,7 @@ github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= @@ -562,8 +575,8 @@ github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v4 v4.3.0 h1:kHL1vqdqWNfATmA0FNMdmZNMyZI1U6O31X4rlIPoBog= -github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= +github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= @@ -656,9 +669,13 @@ github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20230207041349-798e818bf904/go.mod h1:uglQLonpP8qtYCYyzA+8c/9qtqgA3qsXGYqCPKARAFg= +github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10 h1:CqYfpuYIjnlNxM3msdyPRKabhXZWbKjf3Q8BWROFBso= +github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= +github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -753,23 +770,25 @@ github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +github.com/holiman/billy v0.0.0-20230718173358-1c7e68d277a7 h1:3JQNjnMRil1yD0IfZKHF9GxxWKDJGj8I0IqOUol//sw= +github.com/holiman/billy v0.0.0-20230718173358-1c7e68d277a7/go.mod h1:5GuXa7vkL8u9FkFuWdVvfR5ix8hRB7DbOAaYULamFpc= github.com/holiman/bloomfilter/v2 v2.0.3 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao= github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= -github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c h1:DZfsyhDK1hnSS5lH8l+JggqzEleHteTYfutAiVlSUM8= -github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c/go.mod h1:SC8Ryt4n+UBbPbIBKaG9zbbDlp4jOru9xFZmPzLUTxw= +github.com/holiman/uint256 v1.2.4 h1:jUc4Nk8fm9jZabQuqr2JzednajVmBpC+oiTiXZJEApU= +github.com/holiman/uint256 v1.2.4/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/huin/goupnp v1.0.3 h1:N8No57ls+MnjlB+JPiCVSOyy/ot7MJTqlo7rn+NYSqQ= -github.com/huin/goupnp v1.0.3/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= -github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= +github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc= +github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= @@ -827,6 +846,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= +github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= @@ -857,8 +878,9 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= +github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= @@ -878,6 +900,9 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/pointerstructure v1.2.0 h1:O+i9nHnXS3l/9Wu7r4NrEdwA2VFTicjUEN1uBnDo34A= github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= +github.com/mmcloughlin/addchain v0.4.0 h1:SobOdjm2xLj1KkXN5/n0xTIWyZA2+s99UCY1iPfkHRY= +github.com/mmcloughlin/addchain v0.4.0/go.mod h1:A86O+tHqZLMNO4w6ZZ4FlVQEadcoqkyU72HC5wJ4RlU= +github.com/mmcloughlin/profile v0.1.1/go.mod h1:IhHD7q1ooxgwTgjxQYkACGA77oFTDdFVejUS1/tS/qU= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= @@ -1000,6 +1025,8 @@ github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3c github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= @@ -1089,6 +1116,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= +github.com/supranational/blst v0.3.11 h1:LyU6FolezeWAhvQk0k6O/d49jqgO52MSDDfYgbeoEm4= +github.com/supranational/blst v0.3.11/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= @@ -1104,10 +1133,10 @@ github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY= github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28= -github.com/tklauser/go-sysconf v0.3.10 h1:IJ1AZGZRWbY8T5Vfk04D9WOA5WSejdflXxP03OUqALw= -github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= -github.com/tklauser/numcpus v0.4.0 h1:E53Dm1HjH1/R2/aoCtXtPgzmElmn51aOkhCFSuZq//o= -github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= +github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= +github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= +github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= +github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8= @@ -1121,8 +1150,8 @@ github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0o github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa h1:5SqCsI/2Qya2bCzK15ozrqo2sZxkh0FHynJZOTVoV6Q= -github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa/go.mod h1:1CNUng3PtjQMtRzJO4FMXBQvkGtuYRxxiR9xMa7jMwI= +github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= +github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= @@ -1399,7 +1428,6 @@ golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1435,7 +1463,10 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= @@ -1786,8 +1817,6 @@ gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8= gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= -gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce h1:+JknDZhAj8YMt7GC73Ei8pv4MzjDUNPHgQWJdtMAaDU= -gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= @@ -1824,6 +1853,8 @@ pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU= +rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/rpc/backend/sign_tx.go b/rpc/backend/sign_tx.go index 1727120003..9f3765bdf9 100644 --- a/rpc/backend/sign_tx.go +++ b/rpc/backend/sign_tx.go @@ -64,7 +64,13 @@ func (b *Backend) SendTransaction(args evmtypes.TransactionArgs) (common.Hash, e return common.Hash{}, err } - signer := ethtypes.MakeSigner(b.ChainConfig(), new(big.Int).SetUint64(uint64(bn))) + h, err := b.CurrentHeader() + if err != nil { + b.logger.Debug("failed to fetch latest block header", "error", err.Error()) + return common.Hash{}, err + } + + signer := ethtypes.MakeSigner(b.ChainConfig(), new(big.Int).SetUint64(uint64(bn)), h.Time) // Sign transaction if err := msg.Sign(signer, b.clientCtx.Keyring); err != nil { diff --git a/rpc/namespaces/ethereum/debug/api.go b/rpc/namespaces/ethereum/debug/api.go index bfdae08af9..da1c8a3798 100644 --- a/rpc/namespaces/ethereum/debug/api.go +++ b/rpc/namespaces/ethereum/debug/api.go @@ -18,7 +18,6 @@ package debug import ( "bytes" "errors" - "fmt" "io" "os" "runtime" @@ -38,7 +37,6 @@ import ( "cosmossdk.io/log" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/consensus/ethash" "github.com/ethereum/go-ethereum/rlp" "github.com/evmos/ethermint/rpc/backend" rpctypes "github.com/evmos/ethermint/rpc/types" @@ -342,16 +340,6 @@ func (a *API) PrintBlock(number uint64) (string, error) { return spew.Sdump(block), nil } -// SeedHash retrieves the seed hash of a block. -func (a *API) SeedHash(number uint64) (string, error) { - _, err := a.backend.HeaderByNumber(rpctypes.BlockNumber(number)) - if err != nil { - return "", err - } - - return fmt.Sprintf("0x%x", ethash.SeedHash(number)), nil -} - // IntermediateRoots executes a block, and returns a list // of intermediate roots: the stateroot after each transaction. func (a *API) IntermediateRoots(hash common.Hash, _ *evmtypes.TraceConfig) ([]common.Hash, error) { diff --git a/tests/importer/chain_ctx.go b/tests/importer/chain_ctx.go index e8cb372bd5..235c38cd5c 100644 --- a/tests/importer/chain_ctx.go +++ b/tests/importer/chain_ctx.go @@ -149,7 +149,7 @@ func (cc *ChainContext) SealHash(_ *ethtypes.Header) common.Hash { // // TODO: Figure out if this needs to be hooked up to any part of the Cosmos SDK // handlers? -func (cc *ChainContext) VerifyHeader(_ ethcons.ChainHeaderReader, _ *ethtypes.Header, _ bool) error { +func (cc *ChainContext) VerifyHeader(_ ethcons.ChainHeaderReader, _ *ethtypes.Header) error { return nil } @@ -158,7 +158,7 @@ func (cc *ChainContext) VerifyHeader(_ ethcons.ChainHeaderReader, _ *ethtypes.He // // TODO: Figure out if this needs to be hooked up to any part of the Cosmos SDK // handlers? -func (cc *ChainContext) VerifyHeaders(_ ethcons.ChainHeaderReader, _ []*ethtypes.Header, _ []bool) (chan<- struct{}, <-chan error) { +func (cc *ChainContext) VerifyHeaders(_ ethcons.ChainHeaderReader, _ []*ethtypes.Header) (chan<- struct{}, <-chan error) { return nil, nil } diff --git a/tests/importer/chain_ctx_test.go b/tests/importer/chain_ctx_test.go index c694f1c68e..f865ff4627 100644 --- a/tests/importer/chain_ctx_test.go +++ b/tests/importer/chain_ctx_test.go @@ -92,14 +92,14 @@ func TestChainContextSeal(t *testing.T) { func TestChainContextVerifyHeader(t *testing.T) { cc := NewChainContext() - err := cc.VerifyHeader(nil, nil, false) + err := cc.VerifyHeader(nil, nil) require.Nil(t, err) } func TestChainContextVerifyHeaders(t *testing.T) { cc := NewChainContext() - ch, err := cc.VerifyHeaders(nil, nil, []bool{false}) + ch, err := cc.VerifyHeaders(nil, nil) require.Nil(t, err) require.Nil(t, ch) } diff --git a/tests/importer/importer_test.go b/tests/importer/importer_test.go index b60f602aa8..081dac2ba0 100644 --- a/tests/importer/importer_test.go +++ b/tests/importer/importer_test.go @@ -232,7 +232,7 @@ func applyTransaction( gp *ethcore.GasPool, evmKeeper *evmkeeper.Keeper, vmdb *statedb.StateDB, header *ethtypes.Header, tx *ethtypes.Transaction, usedGas *uint64, cfg ethvm.Config, ) (*ethtypes.Receipt, uint64, error) { - msg, err := ethcore.TransactionToMessage(tx, ethtypes.MakeSigner(config, header.Number), sdkmath.ZeroInt().BigInt()) + msg, err := ethcore.TransactionToMessage(tx, ethtypes.MakeSigner(config, header.Number, header.Time), sdkmath.ZeroInt().BigInt()) if err != nil { return nil, 0, err } diff --git a/x/evm/keeper/gas.go b/x/evm/keeper/gas.go index 0e802205dc..727c76c9ed 100644 --- a/x/evm/keeper/gas.go +++ b/x/evm/keeper/gas.go @@ -35,7 +35,7 @@ func (k *Keeper) GetEthIntrinsicGas(ctx sdk.Context, msg core.Message, cfg *para height := big.NewInt(ctx.BlockHeight()) homestead := cfg.IsHomestead(height) istanbul := cfg.IsIstanbul(height) - shanghai := cfg.IsShanghai(uint64(ctx.BlockHeader().Time.Unix())) + shanghai := cfg.IsShanghai(height, uint64(ctx.BlockTime().Unix())) return core.IntrinsicGas(msg.Data, msg.AccessList, isContractCreation, homestead, istanbul, shanghai) } diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index 3b86fbda0c..8daed227af 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -479,7 +479,7 @@ func (k Keeper) TraceTx(c context.Context, req *types.QueryTraceTxRequest) (*typ req, k, func(ctx sdk.Context, cfg *EVMConfig) (*core.Message, error) { - signer := ethtypes.MakeSigner(cfg.ChainConfig, big.NewInt(ctx.BlockHeight())) + signer := ethtypes.MakeSigner(cfg.ChainConfig, big.NewInt(ctx.BlockHeight()), uint64(ctx.BlockTime().Unix())) cfg.Tracer = types.NewNoOpTracer() for i, tx := range req.Predecessors { ethTx := tx.AsTransaction() @@ -546,7 +546,7 @@ func (k Keeper) TraceBlock(c context.Context, req *types.QueryTraceBlockRequest) if err != nil { return nil, status.Error(codes.Internal, "failed to load evm config") } - signer := ethtypes.MakeSigner(cfg.ChainConfig, big.NewInt(ctx.BlockHeight())) + signer := ethtypes.MakeSigner(cfg.ChainConfig, big.NewInt(ctx.BlockHeight()), uint64(ctx.BlockTime().Unix())) txsLength := len(req.Txs) results := make([]*types.TxTraceResult, 0, txsLength) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 5e534b461f..c1aabeff78 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -16,10 +16,8 @@ package keeper import ( - "bytes" "fmt" "math/big" - "sort" cmttypes "github.com/cometbft/cometbft/types" @@ -64,33 +62,12 @@ func (k *Keeper) NewEVM( BaseFee: cfg.BaseFee, Random: nil, // not supported } - if cfg.BlockOverrides != nil { - cfg.BlockOverrides.Apply(&blockCtx) - } txCtx := core.NewEVMTxContext(&msg) if cfg.Tracer == nil { cfg.Tracer = k.Tracer(ctx, msg, cfg.ChainConfig) } vmConfig := k.VMConfig(ctx, msg, cfg) - rules := cfg.ChainConfig.Rules(big.NewInt(ctx.BlockHeight()), cfg.ChainConfig.MergeNetsplitBlock != nil, blockCtx.Time) - contracts := make(map[common.Address]vm.PrecompiledContract) - active := make([]common.Address, 0) - for addr, c := range vm.DefaultPrecompiles(rules) { - contracts[addr] = c - active = append(active, addr) - } - for _, fn := range k.customContractFns { - c := fn(ctx, rules) - addr := c.Address() - contracts[addr] = c - active = append(active, addr) - } - sort.SliceStable(active, func(i, j int) bool { - return bytes.Compare(active[i].Bytes(), active[j].Bytes()) < 0 - }) - evm := vm.NewEVM(blockCtx, txCtx, stateDB, cfg.ChainConfig, vmConfig) - evm.WithPrecompiles(contracts, active) - return evm + return vm.NewEVM(blockCtx, txCtx, stateDB, cfg.ChainConfig, vmConfig) } // GetHashFn implements vm.GetHashFunc for Ethermint. It handles 3 cases: @@ -408,7 +385,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Execute the preparatory steps for state transition which includes: // - prepare accessList(post-berlin) // - reset transient storage(eip 1153) - stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.DefaultActivePrecompiles(rules), msg.AccessList) + stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) if contractCreation { // take over the nonce management from evm: diff --git a/x/evm/keeper/statedb_benchmark_test.go b/x/evm/keeper/statedb_benchmark_test.go index 3213271b89..8e2014be7c 100644 --- a/x/evm/keeper/statedb_benchmark_test.go +++ b/x/evm/keeper/statedb_benchmark_test.go @@ -180,7 +180,7 @@ func BenchmarkAddRefund(b *testing.B) { } } -func BenchmarkSuicide(b *testing.B) { +func BenchmarkSelfDestruct(b *testing.B) { suite := StatedbBenchmarkTestSuite{} suite.SetupTest(b) vmdb := suite.StateDB() @@ -193,6 +193,6 @@ func BenchmarkSuicide(b *testing.B) { vmdb.CreateAccount(addr) b.StartTimer() - vmdb.Suicide(addr) + vmdb.SelfDestruct(addr) } } diff --git a/x/evm/keeper/statedb_test.go b/x/evm/keeper/statedb_test.go index 9f4ed7e65b..cbb48118b5 100644 --- a/x/evm/keeper/statedb_test.go +++ b/x/evm/keeper/statedb_test.go @@ -494,10 +494,10 @@ func (suite *StateDBTestSuite) TestSuicide() { } // Call Suicide - suite.Require().Equal(true, db.Suicide(suite.Address)) + db.SelfDestruct(suite.Address) // Check suicided is marked - suite.Require().Equal(true, db.HasSuicided(suite.Address)) + suite.Require().Equal(true, db.HasSelfDestructed(suite.Address)) // Commit state suite.Require().NoError(db.Commit()) @@ -518,7 +518,7 @@ func (suite *StateDBTestSuite) TestSuicide() { // Check code is still present in addr2 and suicided is false suite.Require().NotNil(db.GetCode(addr2)) - suite.Require().Equal(false, db.HasSuicided(addr2)) + suite.Require().Equal(false, db.HasSelfDestructed(addr2)) } func (suite *StateDBTestSuite) TestExist() { @@ -530,7 +530,7 @@ func (suite *StateDBTestSuite) TestExist() { }{ {"success, account exists", suite.Address, func(vm.StateDB) {}, true}, {"success, has suicided", suite.Address, func(vmdb vm.StateDB) { - vmdb.Suicide(suite.Address) + vmdb.SelfDestruct(suite.Address) }, true}, {"success, account doesn't exist", tests.GenerateAddress(), func(vm.StateDB) {}, false}, } diff --git a/x/evm/statedb/journal.go b/x/evm/statedb/journal.go index 91f1a93763..c4fcf6f8e4 100644 --- a/x/evm/statedb/journal.go +++ b/x/evm/statedb/journal.go @@ -100,7 +100,7 @@ type ( resetObjectChange struct { prev *stateObject } - suicideChange struct { + selfDestructChange struct { account *common.Address prev bool // whether account had already suicided } @@ -155,14 +155,14 @@ func (ch resetObjectChange) Dirtied() *common.Address { return nil } -func (ch suicideChange) Revert(s *StateDB) { +func (ch selfDestructChange) Revert(s *StateDB) { obj := s.getStateObject(*ch.account) if obj != nil { - obj.suicided = ch.prev + obj.selfDestructed = ch.prev } } -func (ch suicideChange) Dirtied() *common.Address { +func (ch selfDestructChange) Dirtied() *common.Address { return ch.account } diff --git a/x/evm/statedb/state_object.go b/x/evm/statedb/state_object.go index a9cffe6525..0a7ae2a870 100644 --- a/x/evm/statedb/state_object.go +++ b/x/evm/statedb/state_object.go @@ -81,7 +81,10 @@ type stateObject struct { address common.Address // flags - suicided bool + selfDestructed bool + + // Flag whether the object was created in the current transaction + created bool } // newObject creates a state object, origAccount is nil if it's newly created. @@ -117,8 +120,8 @@ func (s *stateObject) empty() bool { return s.account.Nonce == 0 && bytes.Equal(s.account.CodeHash, emptyCodeHash) } -func (s *stateObject) markSuicided() { - s.suicided = true +func (s *stateObject) markSelfDestructed() { + s.selfDestructed = true } // diff --git a/x/evm/statedb/statedb.go b/x/evm/statedb/statedb.go index f4effb5e90..537954720a 100644 --- a/x/evm/statedb/statedb.go +++ b/x/evm/statedb/statedb.go @@ -236,11 +236,11 @@ func (s *StateDB) GetRefund() uint64 { return s.refund } -// HasSuicided returns if the contract is suicided in current transaction. -func (s *StateDB) HasSuicided(addr common.Address) bool { +// HasSelfDestructed returns if the contract is self-destructed in current transaction. +func (s *StateDB) HasSelfDestructed(addr common.Address) bool { stateObject := s.getStateObject(addr) if stateObject != nil { - return stateObject.suicided + return stateObject.selfDestructed } return false } @@ -289,6 +289,9 @@ func (s *StateDB) createObject(addr common.Address) *stateObject { } else { s.journal.append(resetObjectChange{prev: prev}) } + + newobj.created = true + s.setStateObject(newobj) return newobj } @@ -430,29 +433,38 @@ func (s *StateDB) SetStorage(addr common.Address, storage Storage) { stateObject.SetStorage(storage) } -// Suicide marks the given account as suicided. +// SelfDestruct marks the given account as self-destructed. // This clears the account balance. // // The account's state object is still available until the state is committed, -// getStateObject will return a non-nil account after Suicide. -func (s *StateDB) Suicide(addr common.Address) bool { +// getStateObject will return a non-nil account after SelfDestruct. +func (s *StateDB) SelfDestruct(addr common.Address) { stateObject := s.getStateObject(addr) if stateObject == nil { - return false + return } - s.journal.append(suicideChange{ + s.journal.append(selfDestructChange{ account: &addr, - prev: stateObject.suicided, + prev: stateObject.selfDestructed, }) - stateObject.markSuicided() + stateObject.markSelfDestructed() // clear balance balance := s.GetBalance(addr) if balance.Sign() > 0 { s.SubBalance(addr, balance) } +} + +func (s *StateDB) Selfdestruct6780(addr common.Address) { + stateObject := s.getStateObject(addr) + if stateObject == nil { + return + } - return true + if stateObject.created { + s.SelfDestruct(addr) + } } // SetTransientState sets transient storage for a given account. It @@ -608,7 +620,7 @@ func (s *StateDB) Commit() error { for _, addr := range s.journal.sortedDirties() { obj := s.stateObjects[addr] - if obj.suicided { + if obj.selfDestructed { if err := s.keeper.DeleteAccount(s.ctx, obj.Address()); err != nil { return errorsmod.Wrap(err, "failed to delete account") } diff --git a/x/evm/statedb/statedb_test.go b/x/evm/statedb/statedb_test.go index 5cae6986fe..1bbc65b1ec 100644 --- a/x/evm/statedb/statedb_test.go +++ b/x/evm/statedb/statedb_test.go @@ -83,8 +83,8 @@ func (suite *StateDBTestSuite) TestAccount() { }}, {"suicide", func(db *statedb.StateDB, cms storetypes.MultiStore) { // non-exist account. - suite.Require().False(db.Suicide(address)) - suite.Require().False(db.HasSuicided(address)) + db.SelfDestruct(address) + suite.Require().False(db.HasSelfDestructed(address)) // create a contract account db.CreateAccount(address) @@ -101,11 +101,11 @@ func (suite *StateDBTestSuite) TestAccount() { // suicide db = statedb.New(ctx, keeper, txConfig) - suite.Require().False(db.HasSuicided(address)) - suite.Require().True(db.Suicide(address)) + suite.Require().False(db.HasSelfDestructed(address)) + db.SelfDestruct(address) // check dirty state - suite.Require().True(db.HasSuicided(address)) + suite.Require().True(db.HasSelfDestructed(address)) // balance is cleared suite.Require().Equal(big.NewInt(0), db.GetBalance(address)) // but code and state are still accessible in dirty state @@ -343,7 +343,7 @@ func (suite *StateDBTestSuite) TestRevertSnapshot() { {"suicide", func(db vm.StateDB) { db.SetState(address, v1, v2) db.SetCode(address, []byte("hello world")) - suite.Require().True(db.Suicide(address)) + db.SelfDestruct(address) }}, {"add log", func(db vm.StateDB) { db.AddLog(ðtypes.Log{ diff --git a/x/evm/types/chain_config.go b/x/evm/types/chain_config.go index cdbee60aec..eac009a75b 100644 --- a/x/evm/types/chain_config.go +++ b/x/evm/types/chain_config.go @@ -74,6 +74,7 @@ func DefaultChainConfig() ChainConfig { grayGlacierBlock := sdkmath.ZeroInt() mergeNetsplitBlock := sdkmath.ZeroInt() shanghaiTime := sdkmath.ZeroInt() + cancunTime := sdkmath.ZeroInt() return ChainConfig{ HomesteadBlock: &homesteadBlock, @@ -94,6 +95,7 @@ func DefaultChainConfig() ChainConfig { GrayGlacierBlock: &grayGlacierBlock, MergeNetsplitBlock: &mergeNetsplitBlock, ShanghaiTime: &shanghaiTime, + CancunTime: &cancunTime, } } diff --git a/x/evm/types/tracer.go b/x/evm/types/tracer.go index d8269e6fb9..fc33d5a331 100644 --- a/x/evm/types/tracer.go +++ b/x/evm/types/tracer.go @@ -44,7 +44,7 @@ func NewTracer(tracer string, msg core.Message, cfg *params.ChainConfig, height, switch tracer { case TracerAccessList: - preCompiles := vm.DefaultActivePrecompiles(cfg.Rules(big.NewInt(height), cfg.MergeNetsplitBlock != nil, uint64(time))) + preCompiles := vm.ActivePrecompiles(cfg.Rules(big.NewInt(height), cfg.MergeNetsplitBlock != nil, uint64(time))) return logger.NewAccessListTracer(msg.AccessList, msg.From, *msg.To, preCompiles) case TracerJSON: return logger.NewJSONLogger(logCfg, os.Stderr) From de24adf4c2ecff2416931b15b2da99d13bb0d641 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:45:55 +0100 Subject: [PATCH 02/46] feat: Add RPC client for EVM methods --- x/evm/keeper/rpcclient.go | 17 +++++++++++++++++ x/evm/keeper/state_transition.go | 29 ++++++----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 x/evm/keeper/rpcclient.go diff --git a/x/evm/keeper/rpcclient.go b/x/evm/keeper/rpcclient.go new file mode 100644 index 0000000000..2d6a4a4eb8 --- /dev/null +++ b/x/evm/keeper/rpcclient.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "math/big" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/vm" +) + +// EvmRpcClient is an interface for calling methods on the vm.EVM struct, which +// is used to execute EVM transactions and lives in the SGX binary. +type EvmRpcClient interface { + // Call is the vm.EVM#Call method. + Call(caller vm.ContractRef, addr common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error) + // Call is the vm.EVM#Create method. + Create(caller vm.ContractRef, code []byte, gas uint64, value *big.Int) (ret []byte, contractAddr common.Address, leftOverGas uint64, err error) +} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index c1aabeff78..917c639445 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -49,25 +49,8 @@ func (k *Keeper) NewEVM( msg core.Message, cfg *EVMConfig, stateDB vm.StateDB, -) *vm.EVM { - blockCtx := vm.BlockContext{ - CanTransfer: core.CanTransfer, - Transfer: core.Transfer, - GetHash: k.GetHashFn(ctx), - Coinbase: cfg.CoinBase, - GasLimit: ethermint.BlockGasLimit(ctx), - BlockNumber: big.NewInt(ctx.BlockHeight()), - Time: uint64(ctx.BlockHeader().Time.Unix()), - Difficulty: big.NewInt(0), // unused. Only required in PoW context - BaseFee: cfg.BaseFee, - Random: nil, // not supported - } - txCtx := core.NewEVMTxContext(&msg) - if cfg.Tracer == nil { - cfg.Tracer = k.Tracer(ctx, msg, cfg.ChainConfig) - } - vmConfig := k.VMConfig(ctx, msg, cfg) - return vm.NewEVM(blockCtx, txCtx, stateDB, cfg.ChainConfig, vmConfig) +) EvmRpcClient { + panic("implement me: create a new RPC client") } // GetHashFn implements vm.GetHashFunc for Ethermint. It handles 3 cases: @@ -332,17 +315,17 @@ func (k *Keeper) ApplyMessageWithConfig( } stateDB := statedb.NewWithParams(ctx, k, cfg.TxConfig, cfg.Params.EvmDenom) - var evm *vm.EVM + if cfg.Overrides != nil { if err := cfg.Overrides.Apply(stateDB); err != nil { return nil, errorsmod.Wrap(err, "failed to apply state override") } } - evm = k.NewEVM(ctx, msg, cfg, stateDB) + evm := k.NewEVM(ctx, msg, cfg, stateDB) leftoverGas := msg.GasLimit sender := vm.AccountRef(msg.From) // Allow the tracer captures the tx level events, mainly the gas consumption. - vmCfg := evm.Config + vmCfg := k.VMConfig(ctx, msg, cfg) if vmCfg.Tracer != nil { if cfg.DebugTrace { // msg.GasPrice should have been set to effective gas price @@ -358,7 +341,7 @@ func (k *Keeper) ApplyMessageWithConfig( }() } - isLondon := cfg.ChainConfig.IsLondon(evm.Context.BlockNumber) + isLondon := cfg.ChainConfig.IsLondon(big.NewInt(ctx.BlockHeight())) contractCreation := msg.To == nil intrinsicGas, err := k.GetEthIntrinsicGas(ctx, msg, cfg.ChainConfig, contractCreation) if err != nil { From a80c27ee390458b388815eb8f55346d28fb279cb Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:10:18 +0100 Subject: [PATCH 03/46] wip --- x/evm/keeper/rpcclient.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/x/evm/keeper/rpcclient.go b/x/evm/keeper/rpcclient.go index 2d6a4a4eb8..f588587eef 100644 --- a/x/evm/keeper/rpcclient.go +++ b/x/evm/keeper/rpcclient.go @@ -7,6 +7,32 @@ import ( "github.com/ethereum/go-ethereum/core/vm" ) +type CallArgs struct { + caller vm.ContractRef + addr common.Address + input []byte + gas uint64 + value *big.Int +} + +type CallReply struct { + ret []byte + leftOverGas uint64 +} + +type CreateArgs struct { + caller vm.ContractRef + code []byte + gas uint64 + value *big.Int +} + +type CreateReply struct { + ret []byte + contractAddr common.Address + leftOverGas uint64 +} + // EvmRpcClient is an interface for calling methods on the vm.EVM struct, which // is used to execute EVM transactions and lives in the SGX binary. type EvmRpcClient interface { From 180a85834a0a9f9f0548512ace071a74bae4c683 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Thu, 28 Mar 2024 13:38:53 +0100 Subject: [PATCH 04/46] Implement basic server and client --- x/evm/keeper/rpcclient.go | 57 ++++++--- x/evm/keeper/rpcserver.go | 200 +++++++++++++++++++++++++++++++ x/evm/keeper/state_transition.go | 43 +++++++ 3 files changed, 286 insertions(+), 14 deletions(-) create mode 100644 x/evm/keeper/rpcserver.go diff --git a/x/evm/keeper/rpcclient.go b/x/evm/keeper/rpcclient.go index f588587eef..140b456e49 100644 --- a/x/evm/keeper/rpcclient.go +++ b/x/evm/keeper/rpcclient.go @@ -4,40 +4,69 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/vm" ) type CallArgs struct { - caller vm.ContractRef - addr common.Address - input []byte - gas uint64 - value *big.Int + Caller vm.ContractRef + Addr common.Address + Input []byte + Gas uint64 + Value *big.Int } type CallReply struct { - ret []byte - leftOverGas uint64 + Ret []byte + LeftOverGas uint64 } type CreateArgs struct { - caller vm.ContractRef - code []byte - gas uint64 - value *big.Int + Caller vm.ContractRef + Code []byte + Gas uint64 + Value *big.Int } type CreateReply struct { - ret []byte - contractAddr common.Address - leftOverGas uint64 + Ret []byte + ContractAddr common.Address + LeftOverGas uint64 } // EvmRpcClient is an interface for calling methods on the vm.EVM struct, which // is used to execute EVM transactions and lives in the SGX binary. type EvmRpcClient interface { + // PrepareTx prepares the EVM transaction for execution. It should be the + // first method called when executing an EVM transaction. + PrepareTx(args *PrepareTxArgs, reply *PrepareTxReply) error + // Call is the vm.EVM#Call method. Call(caller vm.ContractRef, addr common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error) // Call is the vm.EVM#Create method. Create(caller vm.ContractRef, code []byte, gas uint64, value *big.Int) (ret []byte, contractAddr common.Address, leftOverGas uint64, err error) } + +// PrepareTxArgs is the argument struct for the statedb.Keeper#PrepareTx method. +type PrepareTxArgs struct { + // PrepareTxBlockContext is the context of the block in which the transaction + // will be executed. + BlockContext PrepareTxBlockContext + // Msg is the EVM transaction message to run on the EVM. + Msg core.Message + // EvmConfig is the EVM configuration to set. + // + // IMPORTANT: the tracer field should not be set on this field here, + // because it is an interface and cannot be passed over RPC. + EvmConfig EVMConfig +} + +type PrepareTxBlockContext struct { + BlockHeight int64 + BlockGasLimit uint64 + BlockTime int64 +} + +// PrepareTxReply is the reply struct for the statedb.Keeper#PrepareTx method. +type PrepareTxReply struct { +} diff --git a/x/evm/keeper/rpcserver.go b/x/evm/keeper/rpcserver.go new file mode 100644 index 0000000000..77f53f293b --- /dev/null +++ b/x/evm/keeper/rpcserver.go @@ -0,0 +1,200 @@ +package keeper + +import ( + "math/big" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core" + "github.com/evmos/ethermint/x/evm/statedb" +) + +// KeeperRpcServer is a wrapper around the statedb.Keeper interface that provides an +// RPC server. +type KeeperRpcServer interface { + // GetHash returns the hash of the block at the given height. + GetHash(height *uint64, hash *common.Hash) error + + // Below methods are used by statedb.Keeper interface. + + AddBalance(args *AddBalanceArgs, reply *AddBalanceReply) error + SubBalance(args *SubBalanceArgs, reply *SubBalanceReply) error + GetBalance(args *GetBalanceArgs, reply *GetBalanceReply) error + + GetAccount(args *GetAccountArgs, reply *GetAccountReply) error + GetState(args *GetStateArgs, reply *GetStateReply) error + GetCode(args *GetCodeArgs, reply *GetCodeReply) error + + SetAccount(args *SetAccountArgs, reply *SetAccountReply) error + SetState(args *SetStateArgs, reply *SetStateReply) error + SetCode(args *SetCodeArgs, reply *SetCodeReply) error + DeleteAccount(args *DeleteAccountArgs, reply *DeleteAccountReply) error + + // Following methods statedb.Keeper are not used by the EVM, so are not + // implemented. They are included here for completeness. + // - SetBalance + // - GetParams + // - ForEachStorage +} + +type keeperRpcServer struct { + ctx sdk.Context + msg core.Message + evmCfg *EVMConfig + k *Keeper +} + +func (s *keeperRpcServer) GetHash(height *uint64, hash *common.Hash) error { + *hash = s.k.GetHashFn(s.ctx)(*height) + return nil +} + +func (s *keeperRpcServer) AddBalance(args *AddBalanceArgs, reply *AddBalanceReply) error { + return s.k.AddBalance(s.ctx, args.Addr, args.Amount) +} + +func (s *keeperRpcServer) SubBalance(args *SubBalanceArgs, reply *SubBalanceReply) error { + return s.k.SubBalance(s.ctx, args.Addr, args.Amount) +} + +func (s *keeperRpcServer) GetBalance(args *GetBalanceArgs, reply *GetBalanceReply) error { + reply.Balance = s.k.GetBalance(s.ctx, args.Addr, args.Denom) + return nil +} + +func (s *keeperRpcServer) GetAccount(args *GetAccountArgs, reply *GetAccountReply) error { + reply.Account = s.k.GetAccount(s.ctx, args.Addr) + return nil +} + +func (s *keeperRpcServer) GetState(args *GetStateArgs, reply *GetStateReply) error { + reply.Hash = s.k.GetState(s.ctx, args.Addr, args.Key) + return nil +} + +func (s *keeperRpcServer) GetCode(args *GetCodeArgs, reply *GetCodeReply) error { + reply.Code = s.k.GetCode(s.ctx, args.CodeHash) + return nil +} + +func (s *keeperRpcServer) SetAccount(args *SetAccountArgs, reply *SetAccountReply) error { + return s.k.SetAccount(s.ctx, args.Addr, args.Account) +} + +func (s *keeperRpcServer) SetState(args *SetStateArgs, reply *SetStateReply) error { + s.k.SetState(s.ctx, args.Addr, args.Key, args.Value) + return nil +} + +func (s *keeperRpcServer) SetCode(args *SetCodeArgs, reply *SetCodeReply) error { + s.k.SetCode(s.ctx, args.CodeHash, args.Code) + return nil +} + +func (s *keeperRpcServer) DeleteAccount(args *DeleteAccountArgs, reply *DeleteAccountReply) error { + return s.k.DeleteAccount(s.ctx, args.Addr) +} + +// AddBalanceArgs is the argument struct for the statedb.Keeper#AddBalance method. +type AddBalanceArgs struct { + Addr sdk.AccAddress + Amount sdk.Coins + Denom string +} + +// AddBalanceReply is the reply struct for the statedb.Keeper#AddBalance method. +type AddBalanceReply struct { +} + +// SubBalanceArgs is the argument struct for the statedb.Keeper#SubBalance method. +type SubBalanceArgs struct { + Addr sdk.AccAddress + Amount sdk.Coins + Denom string +} + +// SubBalanceReply is the reply struct for the statedb.Keeper#SubBalance method. +type SubBalanceReply struct { +} + +// GetBalanceArgs is the argument struct for the statedb.Keeper#GetBalance method. +type GetBalanceArgs struct { + Addr sdk.AccAddress + Denom string +} + +// GetBalanceReply is the reply struct for the statedb.Keeper#GetBalance method. +type GetBalanceReply struct { + Balance *big.Int +} + +// GetAccountArgs is the argument struct for the statedb.Keeper#GetAccount method. +type GetAccountArgs struct { + Addr common.Address +} + +// GetAccountReply is the reply struct for the statedb.Keeper#GetAccount method. +type GetAccountReply struct { + Account *statedb.Account +} + +// GetStateArgs is the argument struct for the statedb.Keeper#GetState method. +type GetStateArgs struct { + Addr common.Address + Key common.Hash +} + +// GetStateReply is the reply struct for the statedb.Keeper#GetState method. +type GetStateReply struct { + Hash common.Hash +} + +// GetCodeArgs is the argument struct for the statedb.Keeper#GetCode method. +type GetCodeArgs struct { + CodeHash common.Hash +} + +// GetCodeReply is the reply struct for the statedb.Keeper#GetCode method. +type GetCodeReply struct { + Code []byte +} + +// SetAccountArgs is the argument struct for the statedb.Keeper#SetAccount method. +type SetAccountArgs struct { + Addr common.Address + Account statedb.Account +} + +// SetAccountReply is the reply struct for the statedb.Keeper#SetAccount method. +type SetAccountReply struct { +} + +// SetStateArgs is the argument struct for the statedb.Keeper#SetState method. +type SetStateArgs struct { + Addr common.Address + Key common.Hash + Value []byte +} + +// SetStateReply is the reply struct for the statedb.Keeper#SetState method. +type SetStateReply struct { +} + +// SetCodeArgs is the argument struct for the statedb.Keeper#SetCode method. +type SetCodeArgs struct { + CodeHash []byte + Code []byte +} + +// SetCodeReply is the reply struct for the statedb.Keeper#SetCode method. +type SetCodeReply struct { +} + +// DeleteAccountArgs is the argument struct for the statedb.Keeper#DeleteAccount method. +type DeleteAccountArgs struct { + Addr common.Address +} + +// DeleteAccountReply is the reply struct for the statedb.Keeper#DeleteAccount method. +type DeleteAccountReply struct { +} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 917c639445..b90651cb75 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -18,6 +18,9 @@ package keeper import ( "fmt" "math/big" + "net" + "net/http" + "net/rpc" cmttypes "github.com/cometbft/cometbft/types" @@ -321,7 +324,47 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, errorsmod.Wrap(err, "failed to apply state override") } } + evm := k.NewEVM(ctx, msg, cfg, stateDB) + // TODO Think about whether the RPC server should be persistent or ephemeral + // - If it's persistent, we need to handle the lifecycle of the RPC server + // - If it's ephemeral, we need to create a new RPC server for each message + // - The current implementation is ephemeral + rpcSrv := keeperRpcServer{ + ctx: ctx, + msg: msg, + evmCfg: cfg, + k: k, + } + rpc.Register(rpcSrv) + rpc.HandleHTTP() + l, e := net.Listen("tcp", ":90090") + if e != nil { + return nil, e + } + http.Serve(l, nil) + defer l.Close() + + // Send the PrepareTx RPC call to the SGX binary. + args := PrepareTxArgs{ + BlockContext: PrepareTxBlockContext{ + BlockHeight: ctx.BlockHeight(), + BlockGasLimit: ethermint.BlockGasLimit(ctx), + BlockTime: ctx.BlockTime().Unix(), + }, + Msg: msg, + EvmConfig: *cfg, + } + client, err := rpc.DialHTTP("tcp", "localhost"+":90091") + if err != nil { + return nil, err + } + var reply PrepareTxReply + err = client.Call("SgxServer.PrepareTx", args, &reply) + if err != nil { + return nil, err + } + leftoverGas := msg.GasLimit sender := vm.AccountRef(msg.From) // Allow the tracer captures the tx level events, mainly the gas consumption. From b6f9eae836968018ffc9b7b8b553bc757f059818 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Thu, 28 Mar 2024 13:44:31 +0100 Subject: [PATCH 05/46] remove useless interface --- x/evm/keeper/rpcclient.go | 61 +++++++++++++------------------- x/evm/keeper/state_transition.go | 32 +++++++++++------ 2 files changed, 46 insertions(+), 47 deletions(-) diff --git a/x/evm/keeper/rpcclient.go b/x/evm/keeper/rpcclient.go index 140b456e49..fd371c63a0 100644 --- a/x/evm/keeper/rpcclient.go +++ b/x/evm/keeper/rpcclient.go @@ -8,6 +8,30 @@ import ( "github.com/ethereum/go-ethereum/core/vm" ) +// PrepareTxArgs is the argument struct for the statedb.Keeper#PrepareTx method. +type PrepareTxArgs struct { + // PrepareTxBlockContext is the context of the block in which the transaction + // will be executed. + BlockContext PrepareTxBlockContext + // Msg is the EVM transaction message to run on the EVM. + Msg core.Message + // EvmConfig is the EVM configuration to set. + // + // IMPORTANT: the tracer field should not be set on this field here, + // because it is an interface and cannot be passed over RPC. + EvmConfig EVMConfig +} + +type PrepareTxBlockContext struct { + BlockHeight int64 + BlockGasLimit uint64 + BlockTime int64 +} + +// PrepareTxReply is the reply struct for the statedb.Keeper#PrepareTx method. +type PrepareTxReply struct { +} + type CallArgs struct { Caller vm.ContractRef Addr common.Address @@ -33,40 +57,3 @@ type CreateReply struct { ContractAddr common.Address LeftOverGas uint64 } - -// EvmRpcClient is an interface for calling methods on the vm.EVM struct, which -// is used to execute EVM transactions and lives in the SGX binary. -type EvmRpcClient interface { - // PrepareTx prepares the EVM transaction for execution. It should be the - // first method called when executing an EVM transaction. - PrepareTx(args *PrepareTxArgs, reply *PrepareTxReply) error - - // Call is the vm.EVM#Call method. - Call(caller vm.ContractRef, addr common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error) - // Call is the vm.EVM#Create method. - Create(caller vm.ContractRef, code []byte, gas uint64, value *big.Int) (ret []byte, contractAddr common.Address, leftOverGas uint64, err error) -} - -// PrepareTxArgs is the argument struct for the statedb.Keeper#PrepareTx method. -type PrepareTxArgs struct { - // PrepareTxBlockContext is the context of the block in which the transaction - // will be executed. - BlockContext PrepareTxBlockContext - // Msg is the EVM transaction message to run on the EVM. - Msg core.Message - // EvmConfig is the EVM configuration to set. - // - // IMPORTANT: the tracer field should not be set on this field here, - // because it is an interface and cannot be passed over RPC. - EvmConfig EVMConfig -} - -type PrepareTxBlockContext struct { - BlockHeight int64 - BlockGasLimit uint64 - BlockTime int64 -} - -// PrepareTxReply is the reply struct for the statedb.Keeper#PrepareTx method. -type PrepareTxReply struct { -} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index b90651cb75..b062d1db98 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -52,8 +52,9 @@ func (k *Keeper) NewEVM( msg core.Message, cfg *EVMConfig, stateDB vm.StateDB, -) EvmRpcClient { - panic("implement me: create a new RPC client") +) (*rpc.Client, error) { + return rpc.DialHTTP("tcp", "localhost"+":90091") + } // GetHashFn implements vm.GetHashFunc for Ethermint. It handles 3 cases: @@ -325,7 +326,11 @@ func (k *Keeper) ApplyMessageWithConfig( } } - evm := k.NewEVM(ctx, msg, cfg, stateDB) + sgxRpcClient, err := k.NewEVM(ctx, msg, cfg, stateDB) + if err != nil { + return nil, errorsmod.Wrap(err, "failed to create new EVM") + } + // TODO Think about whether the RPC server should be persistent or ephemeral // - If it's persistent, we need to handle the lifecycle of the RPC server // - If it's ephemeral, we need to create a new RPC server for each message @@ -355,12 +360,9 @@ func (k *Keeper) ApplyMessageWithConfig( Msg: msg, EvmConfig: *cfg, } - client, err := rpc.DialHTTP("tcp", "localhost"+":90091") - if err != nil { - return nil, err - } + var reply PrepareTxReply - err = client.Call("SgxServer.PrepareTx", args, &reply) + err = sgxRpcClient.Call("SgxServer.PrepareTx", args, &reply) if err != nil { return nil, err } @@ -418,10 +420,20 @@ func (k *Keeper) ApplyMessageWithConfig( // - reset sender's nonce to msg.Nonce() before calling evm. // - increase sender's nonce by one no matter the result. stateDB.SetNonce(sender.Address(), msg.Nonce) - ret, _, leftoverGas, vmErr = evm.Create(sender, msg.Data, leftoverGas, msg.Value) + + var reply CreateReply + vmErr = sgxRpcClient.Call("SgxServer.Create", args, &reply) + + ret = reply.Ret + leftoverGas = reply.LeftOverGas + stateDB.SetNonce(sender.Address(), msg.Nonce+1) } else { - ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) + var reply CallReply + vmErr = sgxRpcClient.Call("SgxServer.Call", args, &reply) + + ret = reply.Ret + leftoverGas = reply.LeftOverGas } refundQuotient := params.RefundQuotient From b557acf23a9b21bc3d29b622bf26084cb7d093ee Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Thu, 28 Mar 2024 13:46:25 +0100 Subject: [PATCH 06/46] Rename --- x/evm/keeper/state_transition.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index b062d1db98..4cad529d51 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -47,7 +47,7 @@ import ( // NOTE: the RANDOM opcode is currently not supported since it requires // RANDAO implementation. See https://github.com/evmos/ethermint/pull/1520#pullrequestreview-1200504697 // for more information. -func (k *Keeper) NewEVM( +func (k *Keeper) NewSgxRpcClient( ctx sdk.Context, msg core.Message, cfg *EVMConfig, @@ -326,9 +326,9 @@ func (k *Keeper) ApplyMessageWithConfig( } } - sgxRpcClient, err := k.NewEVM(ctx, msg, cfg, stateDB) + sgxRpcClient, err := k.NewSgxRpcClient(ctx, msg, cfg, stateDB) if err != nil { - return nil, errorsmod.Wrap(err, "failed to create new EVM") + return nil, errorsmod.Wrap(err, "failed to create new SGX rpc client") } // TODO Think about whether the RPC server should be persistent or ephemeral From 6208ea35af22035f862be4152ebf571d8b72e893 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Thu, 28 Mar 2024 13:50:49 +0100 Subject: [PATCH 07/46] comments --- x/evm/keeper/rpcclient.go | 4 ++-- x/evm/keeper/rpcserver.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x/evm/keeper/rpcclient.go b/x/evm/keeper/rpcclient.go index fd371c63a0..95ad07160a 100644 --- a/x/evm/keeper/rpcclient.go +++ b/x/evm/keeper/rpcclient.go @@ -8,7 +8,7 @@ import ( "github.com/ethereum/go-ethereum/core/vm" ) -// PrepareTxArgs is the argument struct for the statedb.Keeper#PrepareTx method. +// PrepareTxArgs is the argument struct for the PrepareTx RPC method. type PrepareTxArgs struct { // PrepareTxBlockContext is the context of the block in which the transaction // will be executed. @@ -28,7 +28,7 @@ type PrepareTxBlockContext struct { BlockTime int64 } -// PrepareTxReply is the reply struct for the statedb.Keeper#PrepareTx method. +// PrepareTxArgs is the reply struct for the PrepareTx RPC method. type PrepareTxReply struct { } diff --git a/x/evm/keeper/rpcserver.go b/x/evm/keeper/rpcserver.go index 77f53f293b..7f7f137ded 100644 --- a/x/evm/keeper/rpcserver.go +++ b/x/evm/keeper/rpcserver.go @@ -9,8 +9,8 @@ import ( "github.com/evmos/ethermint/x/evm/statedb" ) -// KeeperRpcServer is a wrapper around the statedb.Keeper interface that provides an -// RPC server. +// KeeperRpcServer is a wrapper around the evm module's Keeper methods that +// serves as an RPC server. type KeeperRpcServer interface { // GetHash returns the hash of the block at the given height. GetHash(height *uint64, hash *common.Hash) error From 70b11caf2b46dea4a28cb098480d91a89d7154b7 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Mon, 1 Apr 2024 21:44:23 +0000 Subject: [PATCH 08/46] chore: add leftovergas to args --- x/evm/keeper/rpcclient.go | 3 +++ x/evm/keeper/state_transition.go | 1 + 2 files changed, 4 insertions(+) diff --git a/x/evm/keeper/rpcclient.go b/x/evm/keeper/rpcclient.go index 95ad07160a..ace880202e 100644 --- a/x/evm/keeper/rpcclient.go +++ b/x/evm/keeper/rpcclient.go @@ -20,6 +20,9 @@ type PrepareTxArgs struct { // IMPORTANT: the tracer field should not be set on this field here, // because it is an interface and cannot be passed over RPC. EvmConfig EVMConfig + + // Left over gas deducted from gas limit + LeftOverGas uint64 } type PrepareTxBlockContext struct { diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 4cad529d51..2c52a19d8b 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -415,6 +415,7 @@ func (k *Keeper) ApplyMessageWithConfig( // - reset transient storage(eip 1153) stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) + args.LeftOverGas = leftoverGas if contractCreation { // take over the nonce management from evm: // - reset sender's nonce to msg.Nonce() before calling evm. From bfd8ebf29445242b02108fc3dd9c8eedebd45a0b Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:02:54 +0200 Subject: [PATCH 09/46] cliean code --- x/evm/keeper/rpc_client.go | 125 ++++++++++++++++++ x/evm/keeper/{rpcserver.go => rpc_server.go} | 56 ++------ x/evm/keeper/rpcclient.go | 59 --------- x/evm/keeper/state_transition.go | 127 ++++++++++--------- 4 files changed, 209 insertions(+), 158 deletions(-) create mode 100644 x/evm/keeper/rpc_client.go rename x/evm/keeper/{rpcserver.go => rpc_server.go} (62%) delete mode 100644 x/evm/keeper/rpcclient.go diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go new file mode 100644 index 0000000000..2d47f18730 --- /dev/null +++ b/x/evm/keeper/rpc_client.go @@ -0,0 +1,125 @@ +package keeper + +import ( + "fmt" + "math/big" + "net/rpc" + + "cosmossdk.io/log" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core" + "github.com/ethereum/go-ethereum/core/vm" + "github.com/evmos/ethermint/x/evm/statedb" +) + +type sgxRpcClient struct { + logger log.Logger + cl *rpc.Client +} + +// newSgxRpcClient creates a new RPC client to communicate with the SGX binary. +func newSgxRpcClient(logger log.Logger) (*sgxRpcClient, error) { + // TODO Make ports configurable + cl, err := rpc.DialHTTP("tcp", "localhost"+":9092") + if err != nil { + return nil, err + } + + return &sgxRpcClient{ + logger: logger, + cl: cl, + }, nil +} + +func (c *sgxRpcClient) makeCall(method string, args, reply any) error { + c.logger.Debug(fmt.Sprintf("RPC call %s", method), "args", args) + err := c.cl.Call(method, args, reply) + if err != nil { + c.logger.Error(fmt.Sprintf("RPC call %s failed", method), "err", err) + } else { + c.logger.Debug(fmt.Sprintf("RPC call %s", method), "reply", reply) + } + return err +} + +func (c *sgxRpcClient) PrepareTx(args *PrepareTxArgs, reply *PrepareTxReply) error { + return c.makeCall("SgxRpcServer.PrepareTx", args, reply) +} + +func (c *sgxRpcClient) Call(args *CallArgs, reply *CallReply) error { + return c.makeCall("SgxRpcServer.Call", args, reply) +} + +func (c *sgxRpcClient) Create(args *CreateArgs, reply *CreateReply) error { + return c.makeCall("SgxRpcServer.Create", args, reply) +} + +// PrepareTxEVMConfig only contains the fields from EVMConfig that are needed +// to create a new EVM instance. This is used to pass the EVM configuration +// over RPC to the SGX binary. +type PrepareTxEVMConfig struct { + // ChainConfig is the EVM chain configuration in JSON format. Since the + // underlying params.ChainConfig struct contains pointer fields, they are + // not serializable over RPC with gob. Instead, the JSON representation is + // used. + ChainConfigJson []byte + + // Fields from EVMConfig + CoinBase common.Address + BaseFee *big.Int + TxConfig statedb.TxConfig + DebugTrace bool + + // Fields from EVMConfig.FeeMarketParams struct + NoBaseFee bool + + // Fields from EVMConfig.Params struct + EvmDenom string + ExtraEips []int +} + +// PrepareTxArgs is the argument struct for the SgxRpcServer.PrepareTx RPC method. +type PrepareTxArgs struct { + // Header is the Tendermint header of the block in which the transaction + // will be executed. + Header cmtproto.Header + // Msg is the EVM transaction message to run on the EVM. + Msg core.Message + // EvmConfig is the EVM configuration to set. + EvmConfig PrepareTxEVMConfig +} + +// PrepareTxArgs is the reply struct for the SgxRpcServer.PrepareTx RPC method. +type PrepareTxReply struct { +} + +// CallArgs is the argument struct for the SgxRpcServer.Call RPC method. +type CallArgs struct { + Caller vm.AccountRef + Addr common.Address + Input []byte + Gas uint64 + Value *big.Int +} + +// CallReply is the reply struct for the SgxRpcServer.Call RPC method. +type CallReply struct { + Ret []byte + LeftOverGas uint64 +} + +// CreateArgs is the argument struct for the SgxRpcServer.Create RPC method. +type CreateArgs struct { + Caller vm.AccountRef + Code []byte + Gas uint64 + Value *big.Int +} + +// CreateReply is the reply struct for the SgxRpcServer.Create RPC method. +type CreateReply struct { + Ret []byte + ContractAddr common.Address + LeftOverGas uint64 +} diff --git a/x/evm/keeper/rpcserver.go b/x/evm/keeper/rpc_server.go similarity index 62% rename from x/evm/keeper/rpcserver.go rename to x/evm/keeper/rpc_server.go index 7f7f137ded..6aff116e38 100644 --- a/x/evm/keeper/rpcserver.go +++ b/x/evm/keeper/rpc_server.go @@ -9,89 +9,63 @@ import ( "github.com/evmos/ethermint/x/evm/statedb" ) -// KeeperRpcServer is a wrapper around the evm module's Keeper methods that -// serves as an RPC server. -type KeeperRpcServer interface { - // GetHash returns the hash of the block at the given height. - GetHash(height *uint64, hash *common.Hash) error - - // Below methods are used by statedb.Keeper interface. - - AddBalance(args *AddBalanceArgs, reply *AddBalanceReply) error - SubBalance(args *SubBalanceArgs, reply *SubBalanceReply) error - GetBalance(args *GetBalanceArgs, reply *GetBalanceReply) error - - GetAccount(args *GetAccountArgs, reply *GetAccountReply) error - GetState(args *GetStateArgs, reply *GetStateReply) error - GetCode(args *GetCodeArgs, reply *GetCodeReply) error - - SetAccount(args *SetAccountArgs, reply *SetAccountReply) error - SetState(args *SetStateArgs, reply *SetStateReply) error - SetCode(args *SetCodeArgs, reply *SetCodeReply) error - DeleteAccount(args *DeleteAccountArgs, reply *DeleteAccountReply) error - - // Following methods statedb.Keeper are not used by the EVM, so are not - // implemented. They are included here for completeness. - // - SetBalance - // - GetParams - // - ForEachStorage -} - -type keeperRpcServer struct { +// EthmRpcServer is a RPC server wrapper around the keeper. It is updated on +// each new sdk.Message with the latest context and Ethereum core.Message. +type EthmRpcServer struct { ctx sdk.Context msg core.Message evmCfg *EVMConfig k *Keeper } -func (s *keeperRpcServer) GetHash(height *uint64, hash *common.Hash) error { +func (s *EthmRpcServer) GetHash(height *uint64, hash *common.Hash) error { *hash = s.k.GetHashFn(s.ctx)(*height) return nil } -func (s *keeperRpcServer) AddBalance(args *AddBalanceArgs, reply *AddBalanceReply) error { +func (s *EthmRpcServer) AddBalance(args *AddBalanceArgs, reply *AddBalanceReply) error { return s.k.AddBalance(s.ctx, args.Addr, args.Amount) } -func (s *keeperRpcServer) SubBalance(args *SubBalanceArgs, reply *SubBalanceReply) error { +func (s *EthmRpcServer) SubBalance(args *SubBalanceArgs, reply *SubBalanceReply) error { return s.k.SubBalance(s.ctx, args.Addr, args.Amount) } -func (s *keeperRpcServer) GetBalance(args *GetBalanceArgs, reply *GetBalanceReply) error { +func (s *EthmRpcServer) GetBalance(args *GetBalanceArgs, reply *GetBalanceReply) error { reply.Balance = s.k.GetBalance(s.ctx, args.Addr, args.Denom) return nil } -func (s *keeperRpcServer) GetAccount(args *GetAccountArgs, reply *GetAccountReply) error { +func (s *EthmRpcServer) GetAccount(args *GetAccountArgs, reply *GetAccountReply) error { reply.Account = s.k.GetAccount(s.ctx, args.Addr) return nil } -func (s *keeperRpcServer) GetState(args *GetStateArgs, reply *GetStateReply) error { +func (s *EthmRpcServer) GetState(args *GetStateArgs, reply *GetStateReply) error { reply.Hash = s.k.GetState(s.ctx, args.Addr, args.Key) return nil } -func (s *keeperRpcServer) GetCode(args *GetCodeArgs, reply *GetCodeReply) error { +func (s *EthmRpcServer) GetCode(args *GetCodeArgs, reply *GetCodeReply) error { reply.Code = s.k.GetCode(s.ctx, args.CodeHash) return nil } -func (s *keeperRpcServer) SetAccount(args *SetAccountArgs, reply *SetAccountReply) error { +func (s *EthmRpcServer) SetAccount(args *SetAccountArgs, reply *SetAccountReply) error { return s.k.SetAccount(s.ctx, args.Addr, args.Account) } -func (s *keeperRpcServer) SetState(args *SetStateArgs, reply *SetStateReply) error { +func (s *EthmRpcServer) SetState(args *SetStateArgs, reply *SetStateReply) error { s.k.SetState(s.ctx, args.Addr, args.Key, args.Value) return nil } -func (s *keeperRpcServer) SetCode(args *SetCodeArgs, reply *SetCodeReply) error { +func (s *EthmRpcServer) SetCode(args *SetCodeArgs, reply *SetCodeReply) error { s.k.SetCode(s.ctx, args.CodeHash, args.Code) return nil } -func (s *keeperRpcServer) DeleteAccount(args *DeleteAccountArgs, reply *DeleteAccountReply) error { +func (s *EthmRpcServer) DeleteAccount(args *DeleteAccountArgs, reply *DeleteAccountReply) error { return s.k.DeleteAccount(s.ctx, args.Addr) } @@ -99,7 +73,6 @@ func (s *keeperRpcServer) DeleteAccount(args *DeleteAccountArgs, reply *DeleteAc type AddBalanceArgs struct { Addr sdk.AccAddress Amount sdk.Coins - Denom string } // AddBalanceReply is the reply struct for the statedb.Keeper#AddBalance method. @@ -110,7 +83,6 @@ type AddBalanceReply struct { type SubBalanceArgs struct { Addr sdk.AccAddress Amount sdk.Coins - Denom string } // SubBalanceReply is the reply struct for the statedb.Keeper#SubBalance method. diff --git a/x/evm/keeper/rpcclient.go b/x/evm/keeper/rpcclient.go deleted file mode 100644 index 95ad07160a..0000000000 --- a/x/evm/keeper/rpcclient.go +++ /dev/null @@ -1,59 +0,0 @@ -package keeper - -import ( - "math/big" - - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/vm" -) - -// PrepareTxArgs is the argument struct for the PrepareTx RPC method. -type PrepareTxArgs struct { - // PrepareTxBlockContext is the context of the block in which the transaction - // will be executed. - BlockContext PrepareTxBlockContext - // Msg is the EVM transaction message to run on the EVM. - Msg core.Message - // EvmConfig is the EVM configuration to set. - // - // IMPORTANT: the tracer field should not be set on this field here, - // because it is an interface and cannot be passed over RPC. - EvmConfig EVMConfig -} - -type PrepareTxBlockContext struct { - BlockHeight int64 - BlockGasLimit uint64 - BlockTime int64 -} - -// PrepareTxArgs is the reply struct for the PrepareTx RPC method. -type PrepareTxReply struct { -} - -type CallArgs struct { - Caller vm.ContractRef - Addr common.Address - Input []byte - Gas uint64 - Value *big.Int -} - -type CallReply struct { - Ret []byte - LeftOverGas uint64 -} - -type CreateArgs struct { - Caller vm.ContractRef - Code []byte - Gas uint64 - Value *big.Int -} - -type CreateReply struct { - Ret []byte - ContractAddr common.Address - LeftOverGas uint64 -} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 4cad529d51..a45f8944d3 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -16,6 +16,7 @@ package keeper import ( + "encoding/json" "fmt" "math/big" "net" @@ -39,24 +40,6 @@ import ( "github.com/ethereum/go-ethereum/params" ) -// NewEVM generates a go-ethereum VM from the provided Message fields and the chain parameters -// (ChainConfig and module Params). It additionally sets the validator operator address as the -// coinbase address to make it available for the COINBASE opcode, even though there is no -// beneficiary of the coinbase transaction (since we're not mining). -// -// NOTE: the RANDOM opcode is currently not supported since it requires -// RANDAO implementation. See https://github.com/evmos/ethermint/pull/1520#pullrequestreview-1200504697 -// for more information. -func (k *Keeper) NewSgxRpcClient( - ctx sdk.Context, - msg core.Message, - cfg *EVMConfig, - stateDB vm.StateDB, -) (*rpc.Client, error) { - return rpc.DialHTTP("tcp", "localhost"+":90091") - -} - // GetHashFn implements vm.GetHashFunc for Ethermint. It handles 3 cases: // 1. The requested height matches the current height from context (and thus same epoch number) // 2. The requested height is from an previous height from the same chain epoch @@ -319,52 +302,20 @@ func (k *Keeper) ApplyMessageWithConfig( } stateDB := statedb.NewWithParams(ctx, k, cfg.TxConfig, cfg.Params.EvmDenom) - if cfg.Overrides != nil { if err := cfg.Overrides.Apply(stateDB); err != nil { return nil, errorsmod.Wrap(err, "failed to apply state override") } } - sgxRpcClient, err := k.NewSgxRpcClient(ctx, msg, cfg, stateDB) + sgxRpcClient, err := newSgxRpcClient(k.Logger(ctx)) if err != nil { return nil, errorsmod.Wrap(err, "failed to create new SGX rpc client") } - // TODO Think about whether the RPC server should be persistent or ephemeral - // - If it's persistent, we need to handle the lifecycle of the RPC server - // - If it's ephemeral, we need to create a new RPC server for each message - // - The current implementation is ephemeral - rpcSrv := keeperRpcServer{ - ctx: ctx, - msg: msg, - evmCfg: cfg, - k: k, - } - rpc.Register(rpcSrv) - rpc.HandleHTTP() - l, e := net.Listen("tcp", ":90090") - if e != nil { - return nil, e - } - http.Serve(l, nil) - defer l.Close() - - // Send the PrepareTx RPC call to the SGX binary. - args := PrepareTxArgs{ - BlockContext: PrepareTxBlockContext{ - BlockHeight: ctx.BlockHeight(), - BlockGasLimit: ethermint.BlockGasLimit(ctx), - BlockTime: ctx.BlockTime().Unix(), - }, - Msg: msg, - EvmConfig: *cfg, - } - - var reply PrepareTxReply - err = sgxRpcClient.Call("SgxServer.PrepareTx", args, &reply) + err = k.prepareTxForSgx(ctx, msg, cfg, sgxRpcClient) if err != nil { - return nil, err + return nil, errorsmod.Wrap(err, "failed to create new RPC server") } leftoverGas := msg.GasLimit @@ -422,16 +373,25 @@ func (k *Keeper) ApplyMessageWithConfig( stateDB.SetNonce(sender.Address(), msg.Nonce) var reply CreateReply - vmErr = sgxRpcClient.Call("SgxServer.Create", args, &reply) - + vmErr = sgxRpcClient.Create(&CreateArgs{ + Caller: sender, + Code: msg.Data, + Gas: leftoverGas, + Value: msg.Value, + }, &reply) ret = reply.Ret leftoverGas = reply.LeftOverGas stateDB.SetNonce(sender.Address(), msg.Nonce+1) } else { var reply CallReply - vmErr = sgxRpcClient.Call("SgxServer.Call", args, &reply) - + vmErr = sgxRpcClient.Call(&CallArgs{ + Caller: sender, + Addr: *msg.To, + Input: msg.Data, + Gas: leftoverGas, + Value: msg.Value, + }, &reply) ret = reply.Ret leftoverGas = reply.LeftOverGas } @@ -492,3 +452,56 @@ func (k *Keeper) ApplyMessageWithConfig( BlockHash: ctx.HeaderHash(), }, nil } + +// prepareTxForSgx prepares the transaction for the SGX enclave. It: +// - creates an RPC server around the keeper to receive requests sent by the +// SGX +// - sends a "PrepareTx" request to the SGX enclave with the relevant tx and +// block info +func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRpcClient *sgxRpcClient) error { + defer func() { + if r := recover(); r != nil { + ctx.Logger().Debug("recovered from panic", "error", r) + } + }() + + // Step 1. Create an RPC server to receive requests from the SGX enclave. + // + // TODO Think about whether the RPC server should be persistent or ephemeral + // - If it's persistent, we need to handle the lifecycle of the RPC server + // - If it's ephemeral, we need to create a new RPC server for each message + // The current implementation is ephemeral. + srv := &EthmRpcServer{k: k, ctx: ctx, msg: msg, evmCfg: cfg} + rpc.Register(srv) + rpc.HandleHTTP() + + l, err := net.Listen("tcp", ":9093") + if err != nil { + // TODO handle error + panic(err) + } + // TODO Handle shutdown + go http.Serve(l, nil) + + // Step 2. Send a "PrepareTx" request to the SGX enclave. + chainConfigJson, err := json.Marshal(cfg.ChainConfig) + if err != nil { + return err + } + ctx.HeaderHash() + args := PrepareTxArgs{ + Header: ctx.BlockHeader(), + Msg: msg, + EvmConfig: PrepareTxEVMConfig{ + ChainConfigJson: chainConfigJson, + CoinBase: cfg.CoinBase, + BaseFee: cfg.BaseFee, + TxConfig: cfg.TxConfig, + DebugTrace: cfg.DebugTrace, + NoBaseFee: cfg.FeeMarketParams.NoBaseFee, + EvmDenom: cfg.Params.EvmDenom, + }, + } + + return sgxRpcClient.PrepareTx(&args, &PrepareTxReply{}) +} From 11e65f032949642e813b02b0243df7f75f305438 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:19:04 +0200 Subject: [PATCH 10/46] fix build --- x/evm/keeper/state_transition.go | 1 - 1 file changed, 1 deletion(-) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 8a99d22aed..a45f8944d3 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -366,7 +366,6 @@ func (k *Keeper) ApplyMessageWithConfig( // - reset transient storage(eip 1153) stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) - args.LeftOverGas = leftoverGas if contractCreation { // take over the nonce management from evm: // - reset sender's nonce to msg.Nonce() before calling evm. From 5527f71079b3150a395d77b98db477dd36bff392 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:33:07 +0200 Subject: [PATCH 11/46] fix --- x/evm/keeper/rpc_client.go | 15 +++++---- x/evm/keeper/state_transition.go | 55 +++++++++++++++++++------------- 2 files changed, 40 insertions(+), 30 deletions(-) diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go index 2d47f18730..12836c111e 100644 --- a/x/evm/keeper/rpc_client.go +++ b/x/evm/keeper/rpc_client.go @@ -32,7 +32,7 @@ func newSgxRpcClient(logger log.Logger) (*sgxRpcClient, error) { }, nil } -func (c *sgxRpcClient) makeCall(method string, args, reply any) error { +func (c *sgxRpcClient) doCall(method string, args, reply any) error { c.logger.Debug(fmt.Sprintf("RPC call %s", method), "args", args) err := c.cl.Call(method, args, reply) if err != nil { @@ -43,16 +43,16 @@ func (c *sgxRpcClient) makeCall(method string, args, reply any) error { return err } -func (c *sgxRpcClient) PrepareTx(args *PrepareTxArgs, reply *PrepareTxReply) error { - return c.makeCall("SgxRpcServer.PrepareTx", args, reply) +func (c *sgxRpcClient) PrepareTx(args PrepareTxArgs, reply *PrepareTxReply) error { + return c.doCall("SgxRpcServer.PrepareTx", args, reply) } -func (c *sgxRpcClient) Call(args *CallArgs, reply *CallReply) error { - return c.makeCall("SgxRpcServer.Call", args, reply) +func (c *sgxRpcClient) Call(args CallArgs, reply *CallReply) error { + return c.doCall("SgxRpcServer.Call", args, reply) } -func (c *sgxRpcClient) Create(args *CreateArgs, reply *CreateReply) error { - return c.makeCall("SgxRpcServer.Create", args, reply) +func (c *sgxRpcClient) Create(args CreateArgs, reply *CreateReply) error { + return c.doCall("SgxRpcServer.Create", args, reply) } // PrepareTxEVMConfig only contains the fields from EVMConfig that are needed @@ -81,6 +81,7 @@ type PrepareTxEVMConfig struct { // PrepareTxArgs is the argument struct for the SgxRpcServer.PrepareTx RPC method. type PrepareTxArgs struct { + TxHash []byte // Header is the Tendermint header of the block in which the transaction // will be executed. Header cmtproto.Header diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index a45f8944d3..4199c929f0 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -373,7 +373,7 @@ func (k *Keeper) ApplyMessageWithConfig( stateDB.SetNonce(sender.Address(), msg.Nonce) var reply CreateReply - vmErr = sgxRpcClient.Create(&CreateArgs{ + vmErr = sgxRpcClient.Create(CreateArgs{ Caller: sender, Code: msg.Data, Gas: leftoverGas, @@ -385,7 +385,7 @@ func (k *Keeper) ApplyMessageWithConfig( stateDB.SetNonce(sender.Address(), msg.Nonce+1) } else { var reply CallReply - vmErr = sgxRpcClient.Call(&CallArgs{ + vmErr = sgxRpcClient.Call(CallArgs{ Caller: sender, Addr: *msg.To, Input: msg.Data, @@ -459,29 +459,11 @@ func (k *Keeper) ApplyMessageWithConfig( // - sends a "PrepareTx" request to the SGX enclave with the relevant tx and // block info func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRpcClient *sgxRpcClient) error { - defer func() { - if r := recover(); r != nil { - ctx.Logger().Debug("recovered from panic", "error", r) - } - }() - // Step 1. Create an RPC server to receive requests from the SGX enclave. - // - // TODO Think about whether the RPC server should be persistent or ephemeral - // - If it's persistent, we need to handle the lifecycle of the RPC server - // - If it's ephemeral, we need to create a new RPC server for each message - // The current implementation is ephemeral. - srv := &EthmRpcServer{k: k, ctx: ctx, msg: msg, evmCfg: cfg} - rpc.Register(srv) - rpc.HandleHTTP() - - l, err := net.Listen("tcp", ":9093") + err := k.runRpcServer(ctx, msg, cfg) if err != nil { - // TODO handle error - panic(err) + return err } - // TODO Handle shutdown - go http.Serve(l, nil) // Step 2. Send a "PrepareTx" request to the SGX enclave. chainConfigJson, err := json.Marshal(cfg.ChainConfig) @@ -503,5 +485,32 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf }, } - return sgxRpcClient.PrepareTx(&args, &PrepareTxReply{}) + return sgxRpcClient.PrepareTx(args, &PrepareTxReply{}) +} + +func (k *Keeper) runRpcServer(ctx sdk.Context, msg core.Message, cfg *EVMConfig) error { + defer func() { + if r := recover(); r != nil { + ctx.Logger().Debug("recovered from panic", "error", r) + } + }() + + // TODO Think about whether the RPC server should be persistent or ephemeral + // - If it's persistent, we need to handle the lifecycle of the RPC server + // - If it's ephemeral, we need to create a new RPC server for each message + // The current implementation is ephemeral. + srv := &EthmRpcServer{k: k, ctx: ctx, msg: msg, evmCfg: cfg} + rpc.Register(srv) + rpc.HandleHTTP() + + // TODO handle port customization + l, err := net.Listen("tcp", ":9093") + if err != nil { + // TODO handle error + panic(err) + } + // TODO Handle shutdown + go http.Serve(l, nil) + + return nil } From 2a46db5af13d66b0fa1f019025e04af11e9bd0f0 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:11:58 +0200 Subject: [PATCH 12/46] fixes --- x/evm/keeper/rpc_client.go | 6 +----- x/evm/keeper/state_transition.go | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go index 12836c111e..6dd75c7537 100644 --- a/x/evm/keeper/rpc_client.go +++ b/x/evm/keeper/rpc_client.go @@ -35,11 +35,7 @@ func newSgxRpcClient(logger log.Logger) (*sgxRpcClient, error) { func (c *sgxRpcClient) doCall(method string, args, reply any) error { c.logger.Debug(fmt.Sprintf("RPC call %s", method), "args", args) err := c.cl.Call(method, args, reply) - if err != nil { - c.logger.Error(fmt.Sprintf("RPC call %s failed", method), "err", err) - } else { - c.logger.Debug(fmt.Sprintf("RPC call %s", method), "reply", reply) - } + c.logger.Debug(fmt.Sprintf("RPC call %s", method), "reply", reply) return err } diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 4199c929f0..cd76d28110 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -460,7 +460,7 @@ func (k *Keeper) ApplyMessageWithConfig( // block info func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRpcClient *sgxRpcClient) error { // Step 1. Create an RPC server to receive requests from the SGX enclave. - err := k.runRpcServer(ctx, msg, cfg) + err := k.runRPCServer(ctx, msg, cfg) if err != nil { return err } @@ -488,7 +488,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf return sgxRpcClient.PrepareTx(args, &PrepareTxReply{}) } -func (k *Keeper) runRpcServer(ctx sdk.Context, msg core.Message, cfg *EVMConfig) error { +func (k *Keeper) runRPCServer(ctx sdk.Context, msg core.Message, cfg *EVMConfig) error { defer func() { if r := recover(); r != nil { ctx.Logger().Debug("recovered from panic", "error", r) From 54f1b260e1a5f93c57f2e87a8ab028303c803243 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Wed, 10 Apr 2024 09:32:30 +0000 Subject: [PATCH 13/46] chore: remove statedb in ethermint and change it to be rpc call --- x/evm/keeper/config.go | 40 ++++++++++++ x/evm/keeper/rpc_client.go | 108 +++++++++++++++++++++++++++++++ x/evm/keeper/state_transition.go | 78 ++++++++++++++++------ 3 files changed, 208 insertions(+), 18 deletions(-) diff --git a/x/evm/keeper/config.go b/x/evm/keeper/config.go index 928c742f4a..d11ebca417 100644 --- a/x/evm/keeper/config.go +++ b/x/evm/keeper/config.go @@ -16,6 +16,10 @@ package keeper import ( + "bytes" + "encoding/base64" + "encoding/gob" + "fmt" "math/big" errorsmod "cosmossdk.io/errors" @@ -112,3 +116,39 @@ func (k Keeper) VMConfig(ctx sdk.Context, _ core.Message, cfg *EVMConfig) vm.Con ExtraEips: cfg.Params.EIPs(), } } + +// go binary encoder +func ToGOB64(m *rpctypes.StateOverride) string { + if m == nil { + return "" + } + + b := bytes.Buffer{} + e := gob.NewEncoder(&b) + err := e.Encode(m) + if err != nil { + fmt.Println(`failed gob Encode`, err) + } + return base64.StdEncoding.EncodeToString(b.Bytes()) +} + +// go binary decoder +func FromGOB64(str string) *rpctypes.StateOverride { + if str == "" { + return nil + } + + m := rpctypes.StateOverride{} + by, err := base64.StdEncoding.DecodeString(str) + if err != nil { + fmt.Println(`failed base64 Decode`, err) + } + b := bytes.Buffer{} + b.Write(by) + d := gob.NewDecoder(&b) + err = d.Decode(&m) + if err != nil { + fmt.Println(`failed gob Decode`, err) + } + return &m +} diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go index 6dd75c7537..b5407c8e92 100644 --- a/x/evm/keeper/rpc_client.go +++ b/x/evm/keeper/rpc_client.go @@ -9,7 +9,9 @@ import ( cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" + ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/vm" + "github.com/ethereum/go-ethereum/params" "github.com/evmos/ethermint/x/evm/statedb" ) @@ -51,6 +53,38 @@ func (c *sgxRpcClient) Create(args CreateArgs, reply *CreateReply) error { return c.doCall("SgxRpcServer.Create", args, reply) } +func (c *sgxRpcClient) Commit(args CommitArgs, reply *CommitReply) error { + return c.doCall("SgxRpcServer.Commit", args, reply) +} + +func (c *sgxRpcClient) StateDBAddBalance(args StateDBAddBalanceArgs, reply *StateDBAddBalanceReply) error { + return c.doCall("SgxRpcServer.StateDBAddBalance", args, reply) +} + +func (c *sgxRpcClient) StateDBSubBalance(args StateDBSubBalanceArgs, reply *StateDBSubBalanceReply) error { + return c.doCall("SgxRpcServer.StateDBSubBalance", args, reply) +} + +func (c *sgxRpcClient) StateDBSetNonce(args StateDBSetNonceArgs, reply *StateDBSetNonceReply) error { + return c.doCall("SgxRpcServer.StateDBSetNonce", args, reply) +} + +func (c *sgxRpcClient) StateDBIncreaseNonce(args StateDBIncreaseNonceArgs, reply *StateDBIncreaseNonceReply) error { + return c.doCall("SgxRpcServer.StateDBIncreaseNonce", args, reply) +} + +func (c *sgxRpcClient) StateDBPrepare(args StateDBPrepareArgs, reply *StateDBPrepareReply) error { + return c.doCall("SgxRpcServer.StateDBPrepare", args, reply) +} + +func (c *sgxRpcClient) StateDBGetRefund(args StateDBGetRefundArgs, reply *StateDBGetRefundReply) error { + return c.doCall("SgxRpcServer.StateDBGetRefund", args, reply) +} + +func (c *sgxRpcClient) StateDBGetLogs(args StateDBGetLogsArgs, reply *StateDBGetLogsReply) error { + return c.doCall("SgxRpcServer.StateDBGetLogs", args, reply) +} + // PrepareTxEVMConfig only contains the fields from EVMConfig that are needed // to create a new EVM instance. This is used to pass the EVM configuration // over RPC to the SGX binary. @@ -73,6 +107,8 @@ type PrepareTxEVMConfig struct { // Fields from EVMConfig.Params struct EvmDenom string ExtraEips []int + // *rpctypes.StateOverride : original type + Overrides string } // PrepareTxArgs is the argument struct for the SgxRpcServer.PrepareTx RPC method. @@ -120,3 +156,75 @@ type CreateReply struct { ContractAddr common.Address LeftOverGas uint64 } + +// CommitArgs is the argument struct for the SgxRpcServer.Commit RPC method. +type CommitArgs struct { + Commit bool +} + +// CommitReply is the reply struct for the SgxRpcServer.Commit RPC method. +type CommitReply struct { +} + +// CommitArgs is the argument struct for the SgxRpcServer.StateDBSubBalance RPC method. +type StateDBSubBalanceArgs struct { + Caller vm.AccountRef + Msg core.Message +} + +// CommitReply is the reply struct for the SgxRpcServer.StateDBSubBalance RPC method. +type StateDBSubBalanceReply struct { +} + +// CommitArgs is the argument struct for the SgxRpcServer.StateDSetNonce RPC method. +type StateDBSetNonceArgs struct { + Caller vm.AccountRef + Nonce uint64 +} + +// CommitReply is the reply struct for the SgxRpcServer.StateDSetNonce RPC method. +type StateDBSetNonceReply struct { +} + +// StateDBAddBalanceArgs is the argument struct for the SgxRpcServer.StateDBAddBalance RPC method. +type StateDBAddBalanceArgs struct { + Caller vm.AccountRef + Msg core.Message + LeftoverGas uint64 +} + +// StateDBAddBalanceReply is the reply struct for the SgxRpcServer.StateDBAddBalance RPC method. +type StateDBAddBalanceReply struct { +} + +type StateDBPrepareArgs struct { + Msg core.Message + Rules params.Rules +} + +type StateDBPrepareReply struct { +} + +// StateDBIncreaseNonceArgs is the argument struct for the SgxRpcServer.StateDBIncreaseNonce RPC method. +type StateDBIncreaseNonceArgs struct { + Caller vm.AccountRef + Msg core.Message +} + +// StateDBIncreaseNonceReply is the reply struct for the SgxRpcServer.StateDBIncreaseNonce RPC method. +type StateDBIncreaseNonceReply struct { +} + +type StateDBGetRefundArgs struct { +} + +type StateDBGetRefundReply struct { + Refund uint64 +} + +type StateDBGetLogsArgs struct { +} + +type StateDBGetLogsReply struct { + Logs []*ethtypes.Log +} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index cd76d28110..23cb999470 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -29,7 +29,6 @@ import ( sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" ethermint "github.com/evmos/ethermint/types" - "github.com/evmos/ethermint/x/evm/statedb" "github.com/evmos/ethermint/x/evm/types" "github.com/ethereum/go-ethereum/common" @@ -301,13 +300,6 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, errorsmod.Wrap(types.ErrCallDisabled, "failed to call contract") } - stateDB := statedb.NewWithParams(ctx, k, cfg.TxConfig, cfg.Params.EvmDenom) - if cfg.Overrides != nil { - if err := cfg.Overrides.Apply(stateDB); err != nil { - return nil, errorsmod.Wrap(err, "failed to apply state override") - } - } - sgxRpcClient, err := newSgxRpcClient(k.Logger(ctx)) if err != nil { return nil, errorsmod.Wrap(err, "failed to create new SGX rpc client") @@ -325,13 +317,30 @@ func (k *Keeper) ApplyMessageWithConfig( if vmCfg.Tracer != nil { if cfg.DebugTrace { // msg.GasPrice should have been set to effective gas price - stateDB.SubBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit))) - stateDB.SetNonce(sender.Address(), stateDB.GetNonce(sender.Address())+1) + // stateDB.SubBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit))) + var reply StateDBSubBalanceReply + sgxRpcClient.StateDBSubBalance(StateDBSubBalanceArgs{ + Caller: sender, + Msg: msg, + }, &reply) + + // stateDB.SetNonce(sender.Address(), stateDB.GetNonce(sender.Address())+1) + var replyNonce StateDBIncreaseNonceReply + sgxRpcClient.StateDBIncreaseNonce(StateDBIncreaseNonceArgs{ + Caller: sender, + Msg: msg, + }, &replyNonce) } vmCfg.Tracer.CaptureTxStart(leftoverGas) defer func() { if cfg.DebugTrace { - stateDB.AddBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas))) + // stateDB.AddBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas))) + var reply StateDBAddBalanceReply + sgxRpcClient.StateDBAddBalance(StateDBAddBalanceArgs{ + Caller: sender, + Msg: msg, + LeftoverGas: leftoverGas, + }, &reply) } vmCfg.Tracer.CaptureTxEnd(leftoverGas) }() @@ -364,13 +373,23 @@ func (k *Keeper) ApplyMessageWithConfig( // Execute the preparatory steps for state transition which includes: // - prepare accessList(post-berlin) // - reset transient storage(eip 1153) - stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) + // stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) + var replyPrepare StateDBPrepareReply + sgxRpcClient.StateDBPrepare(StateDBPrepareArgs{ + Msg: msg, + Rules: rules, + }, &replyPrepare) if contractCreation { // take over the nonce management from evm: // - reset sender's nonce to msg.Nonce() before calling evm. // - increase sender's nonce by one no matter the result. - stateDB.SetNonce(sender.Address(), msg.Nonce) + // stateDB.SetNonce(sender.Address(), msg.Nonce) + var replyNonce StateDBSetNonceReply + sgxRpcClient.StateDBSetNonce(StateDBSetNonceArgs{ + Caller: sender, + Nonce: msg.Nonce, + }, &replyNonce) var reply CreateReply vmErr = sgxRpcClient.Create(CreateArgs{ @@ -382,7 +401,11 @@ func (k *Keeper) ApplyMessageWithConfig( ret = reply.Ret leftoverGas = reply.LeftOverGas - stateDB.SetNonce(sender.Address(), msg.Nonce+1) + // stateDB.SetNonce(sender.Address(), msg.Nonce+1) + sgxRpcClient.StateDBSetNonce(StateDBSetNonceArgs{ + Caller: sender, + Nonce: msg.Nonce + 1, + }, &replyNonce) } else { var reply CallReply vmErr = sgxRpcClient.Call(CallArgs{ @@ -407,9 +430,15 @@ func (k *Keeper) ApplyMessageWithConfig( if msg.GasLimit < leftoverGas { return nil, errorsmod.Wrap(types.ErrGasOverflow, "apply message") } + // refund gas temporaryGasUsed := msg.GasLimit - leftoverGas - leftoverGas += GasToRefund(stateDB.GetRefund(), temporaryGasUsed, refundQuotient) + + var replyRefund StateDBGetRefundReply + sgxRpcClient.StateDBGetRefund(StateDBGetRefundArgs{}, &replyRefund) + + refund := replyRefund.Refund + leftoverGas += GasToRefund(refund, temporaryGasUsed, refundQuotient) // EVM execution error needs to be available for the JSON-RPC client var vmError string @@ -419,9 +448,18 @@ func (k *Keeper) ApplyMessageWithConfig( // The dirty states in `StateDB` is either committed or discarded after return if commit { - if err := stateDB.Commit(); err != nil { - return nil, errorsmod.Wrap(err, "failed to commit stateDB") + var reply CommitReply + vmErr = sgxRpcClient.Commit(CommitArgs{ + Commit: true, + }, &reply) + + if vmErr != nil { + return nil, errorsmod.Wrap(err, "failed to commit sgx stateDB") } + + // if err := stateDB.Commit(); err != nil { + // return nil, errorsmod.Wrap(err, "failed to commit stateDB") + // } } // calculate a minimum amount of gas to be charged to sender if GasLimit @@ -443,11 +481,14 @@ func (k *Keeper) ApplyMessageWithConfig( // reset leftoverGas, to be used by the tracer leftoverGas = msg.GasLimit - gasUsed + var replyLog StateDBGetLogsReply + sgxRpcClient.StateDBGetLogs(StateDBGetLogsArgs{}, &replyLog) + return &types.MsgEthereumTxResponse{ GasUsed: gasUsed, VmError: vmError, Ret: ret, - Logs: types.NewLogsFromEth(stateDB.Logs()), + Logs: types.NewLogsFromEth(replyLog.Logs), Hash: cfg.TxConfig.TxHash.Hex(), BlockHash: ctx.HeaderHash(), }, nil @@ -482,6 +523,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf DebugTrace: cfg.DebugTrace, NoBaseFee: cfg.FeeMarketParams.NoBaseFee, EvmDenom: cfg.Params.EvmDenom, + Overrides: ToGOB64(cfg.Overrides), }, } From 2a11c0b906eda506b68affbb6d492a2ed91b5d04 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:46:18 +0200 Subject: [PATCH 14/46] Small changes and renames --- x/evm/keeper/rpc_client.go | 32 ++++++------ x/evm/keeper/state_transition.go | 83 +++++++++++++++++++++++--------- 2 files changed, 76 insertions(+), 39 deletions(-) diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go index b5407c8e92..af604eddf9 100644 --- a/x/evm/keeper/rpc_client.go +++ b/x/evm/keeper/rpc_client.go @@ -15,73 +15,73 @@ import ( "github.com/evmos/ethermint/x/evm/statedb" ) -type sgxRpcClient struct { +type sgxRPCClient struct { logger log.Logger cl *rpc.Client } -// newSgxRpcClient creates a new RPC client to communicate with the SGX binary. -func newSgxRpcClient(logger log.Logger) (*sgxRpcClient, error) { +// newSgxRPCClient creates a new RPC client to communicate with the SGX binary. +func newSgxRPCClient(logger log.Logger) (*sgxRPCClient, error) { // TODO Make ports configurable cl, err := rpc.DialHTTP("tcp", "localhost"+":9092") if err != nil { return nil, err } - return &sgxRpcClient{ + return &sgxRPCClient{ logger: logger, cl: cl, }, nil } -func (c *sgxRpcClient) doCall(method string, args, reply any) error { +func (c *sgxRPCClient) doCall(method string, args, reply any) error { c.logger.Debug(fmt.Sprintf("RPC call %s", method), "args", args) err := c.cl.Call(method, args, reply) c.logger.Debug(fmt.Sprintf("RPC call %s", method), "reply", reply) return err } -func (c *sgxRpcClient) PrepareTx(args PrepareTxArgs, reply *PrepareTxReply) error { +func (c *sgxRPCClient) PrepareTx(args PrepareTxArgs, reply *PrepareTxReply) error { return c.doCall("SgxRpcServer.PrepareTx", args, reply) } -func (c *sgxRpcClient) Call(args CallArgs, reply *CallReply) error { +func (c *sgxRPCClient) Call(args CallArgs, reply *CallReply) error { return c.doCall("SgxRpcServer.Call", args, reply) } -func (c *sgxRpcClient) Create(args CreateArgs, reply *CreateReply) error { +func (c *sgxRPCClient) Create(args CreateArgs, reply *CreateReply) error { return c.doCall("SgxRpcServer.Create", args, reply) } -func (c *sgxRpcClient) Commit(args CommitArgs, reply *CommitReply) error { +func (c *sgxRPCClient) Commit(args CommitArgs, reply *CommitReply) error { return c.doCall("SgxRpcServer.Commit", args, reply) } -func (c *sgxRpcClient) StateDBAddBalance(args StateDBAddBalanceArgs, reply *StateDBAddBalanceReply) error { +func (c *sgxRPCClient) StateDBAddBalance(args StateDBAddBalanceArgs, reply *StateDBAddBalanceReply) error { return c.doCall("SgxRpcServer.StateDBAddBalance", args, reply) } -func (c *sgxRpcClient) StateDBSubBalance(args StateDBSubBalanceArgs, reply *StateDBSubBalanceReply) error { +func (c *sgxRPCClient) StateDBSubBalance(args StateDBSubBalanceArgs, reply *StateDBSubBalanceReply) error { return c.doCall("SgxRpcServer.StateDBSubBalance", args, reply) } -func (c *sgxRpcClient) StateDBSetNonce(args StateDBSetNonceArgs, reply *StateDBSetNonceReply) error { +func (c *sgxRPCClient) StateDBSetNonce(args StateDBSetNonceArgs, reply *StateDBSetNonceReply) error { return c.doCall("SgxRpcServer.StateDBSetNonce", args, reply) } -func (c *sgxRpcClient) StateDBIncreaseNonce(args StateDBIncreaseNonceArgs, reply *StateDBIncreaseNonceReply) error { +func (c *sgxRPCClient) StateDBIncreaseNonce(args StateDBIncreaseNonceArgs, reply *StateDBIncreaseNonceReply) error { return c.doCall("SgxRpcServer.StateDBIncreaseNonce", args, reply) } -func (c *sgxRpcClient) StateDBPrepare(args StateDBPrepareArgs, reply *StateDBPrepareReply) error { +func (c *sgxRPCClient) StateDBPrepare(args StateDBPrepareArgs, reply *StateDBPrepareReply) error { return c.doCall("SgxRpcServer.StateDBPrepare", args, reply) } -func (c *sgxRpcClient) StateDBGetRefund(args StateDBGetRefundArgs, reply *StateDBGetRefundReply) error { +func (c *sgxRPCClient) StateDBGetRefund(args StateDBGetRefundArgs, reply *StateDBGetRefundReply) error { return c.doCall("SgxRpcServer.StateDBGetRefund", args, reply) } -func (c *sgxRpcClient) StateDBGetLogs(args StateDBGetLogsArgs, reply *StateDBGetLogsReply) error { +func (c *sgxRPCClient) StateDBGetLogs(args StateDBGetLogsArgs, reply *StateDBGetLogsReply) error { return c.doCall("SgxRpcServer.StateDBGetLogs", args, reply) } diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 23cb999470..a2acdccc75 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -300,12 +300,12 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, errorsmod.Wrap(types.ErrCallDisabled, "failed to call contract") } - sgxRpcClient, err := newSgxRpcClient(k.Logger(ctx)) + sgxRPCClient, err := newSgxRPCClient(k.Logger(ctx)) if err != nil { return nil, errorsmod.Wrap(err, "failed to create new SGX rpc client") } - err = k.prepareTxForSgx(ctx, msg, cfg, sgxRpcClient) + err = k.prepareTxForSgx(ctx, msg, cfg, sgxRPCClient) if err != nil { return nil, errorsmod.Wrap(err, "failed to create new RPC server") } @@ -317,30 +317,43 @@ func (k *Keeper) ApplyMessageWithConfig( if vmCfg.Tracer != nil { if cfg.DebugTrace { // msg.GasPrice should have been set to effective gas price + + // Ethermint original code: // stateDB.SubBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit))) var reply StateDBSubBalanceReply - sgxRpcClient.StateDBSubBalance(StateDBSubBalanceArgs{ + err := sgxRPCClient.StateDBSubBalance(StateDBSubBalanceArgs{ Caller: sender, Msg: msg, }, &reply) + if err != nil { + return nil, err + } + // Ethermint original code: // stateDB.SetNonce(sender.Address(), stateDB.GetNonce(sender.Address())+1) var replyNonce StateDBIncreaseNonceReply - sgxRpcClient.StateDBIncreaseNonce(StateDBIncreaseNonceArgs{ + err = sgxRPCClient.StateDBIncreaseNonce(StateDBIncreaseNonceArgs{ Caller: sender, Msg: msg, }, &replyNonce) + if err != nil { + return nil, err + } } vmCfg.Tracer.CaptureTxStart(leftoverGas) defer func() { if cfg.DebugTrace { + // Ethermint original code: // stateDB.AddBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas))) var reply StateDBAddBalanceReply - sgxRpcClient.StateDBAddBalance(StateDBAddBalanceArgs{ + err := sgxRPCClient.StateDBAddBalance(StateDBAddBalanceArgs{ Caller: sender, Msg: msg, LeftoverGas: leftoverGas, }, &reply) + if err != nil { + k.Logger(ctx).Error("failed to add balance to sgx stateDB", "error", err) + } } vmCfg.Tracer.CaptureTxEnd(leftoverGas) }() @@ -373,26 +386,38 @@ func (k *Keeper) ApplyMessageWithConfig( // Execute the preparatory steps for state transition which includes: // - prepare accessList(post-berlin) // - reset transient storage(eip 1153) + + // Ethermint original code: // stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) var replyPrepare StateDBPrepareReply - sgxRpcClient.StateDBPrepare(StateDBPrepareArgs{ + err = sgxRPCClient.StateDBPrepare(StateDBPrepareArgs{ Msg: msg, Rules: rules, }, &replyPrepare) + if err != nil { + return nil, err + } if contractCreation { // take over the nonce management from evm: // - reset sender's nonce to msg.Nonce() before calling evm. // - increase sender's nonce by one no matter the result. + + // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce) var replyNonce StateDBSetNonceReply - sgxRpcClient.StateDBSetNonce(StateDBSetNonceArgs{ + err := sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ Caller: sender, Nonce: msg.Nonce, }, &replyNonce) + if err != nil { + return nil, err + } + // Ethermint original code: + // ret, _, leftoverGas, vmErr = evm.Create(sender, msg.Data, leftoverGas, msg.Value) var reply CreateReply - vmErr = sgxRpcClient.Create(CreateArgs{ + vmErr = sgxRPCClient.Create(CreateArgs{ Caller: sender, Code: msg.Data, Gas: leftoverGas, @@ -401,14 +426,17 @@ func (k *Keeper) ApplyMessageWithConfig( ret = reply.Ret leftoverGas = reply.LeftOverGas + // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce+1) - sgxRpcClient.StateDBSetNonce(StateDBSetNonceArgs{ + sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ Caller: sender, Nonce: msg.Nonce + 1, }, &replyNonce) } else { + // Ethermint original code: + // ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) var reply CallReply - vmErr = sgxRpcClient.Call(CallArgs{ + vmErr = sgxRPCClient.Call(CallArgs{ Caller: sender, Addr: *msg.To, Input: msg.Data, @@ -434,8 +462,13 @@ func (k *Keeper) ApplyMessageWithConfig( // refund gas temporaryGasUsed := msg.GasLimit - leftoverGas + // Ethermint original code: + // leftoverGas += GasToRefund(stateDB.GetRefund(), temporaryGasUsed, refundQuotient) var replyRefund StateDBGetRefundReply - sgxRpcClient.StateDBGetRefund(StateDBGetRefundArgs{}, &replyRefund) + err = sgxRPCClient.StateDBGetRefund(StateDBGetRefundArgs{}, &replyRefund) + if err != nil { + return nil, err + } refund := replyRefund.Refund leftoverGas += GasToRefund(refund, temporaryGasUsed, refundQuotient) @@ -448,18 +481,17 @@ func (k *Keeper) ApplyMessageWithConfig( // The dirty states in `StateDB` is either committed or discarded after return if commit { + // Ethermint original code: + // if err := stateDB.Commit(); err != nil { + // return nil, errorsmod.Wrap(err, "failed to commit stateDB") + // } var reply CommitReply - vmErr = sgxRpcClient.Commit(CommitArgs{ + err := sgxRPCClient.Commit(CommitArgs{ Commit: true, }, &reply) - - if vmErr != nil { + if err != nil { return nil, errorsmod.Wrap(err, "failed to commit sgx stateDB") } - - // if err := stateDB.Commit(); err != nil { - // return nil, errorsmod.Wrap(err, "failed to commit stateDB") - // } } // calculate a minimum amount of gas to be charged to sender if GasLimit @@ -481,8 +513,13 @@ func (k *Keeper) ApplyMessageWithConfig( // reset leftoverGas, to be used by the tracer leftoverGas = msg.GasLimit - gasUsed + // Ethermint original code: + // Logs: types.NewLogsFromEth(stateDB.Logs()), var replyLog StateDBGetLogsReply - sgxRpcClient.StateDBGetLogs(StateDBGetLogsArgs{}, &replyLog) + err = sgxRPCClient.StateDBGetLogs(StateDBGetLogsArgs{}, &replyLog) + if err != nil { + return nil, err + } return &types.MsgEthereumTxResponse{ GasUsed: gasUsed, @@ -499,7 +536,7 @@ func (k *Keeper) ApplyMessageWithConfig( // SGX // - sends a "PrepareTx" request to the SGX enclave with the relevant tx and // block info -func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRpcClient *sgxRpcClient) error { +func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRPCClient *sgxRPCClient) error { // Step 1. Create an RPC server to receive requests from the SGX enclave. err := k.runRPCServer(ctx, msg, cfg) if err != nil { @@ -507,7 +544,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf } // Step 2. Send a "PrepareTx" request to the SGX enclave. - chainConfigJson, err := json.Marshal(cfg.ChainConfig) + ChainConfigJson, err := json.Marshal(cfg.ChainConfig) if err != nil { return err } @@ -516,7 +553,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf Header: ctx.BlockHeader(), Msg: msg, EvmConfig: PrepareTxEVMConfig{ - ChainConfigJson: chainConfigJson, + ChainConfigJson: ChainConfigJson, CoinBase: cfg.CoinBase, BaseFee: cfg.BaseFee, TxConfig: cfg.TxConfig, @@ -527,7 +564,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf }, } - return sgxRpcClient.PrepareTx(args, &PrepareTxReply{}) + return sgxRPCClient.PrepareTx(args, &PrepareTxReply{}) } func (k *Keeper) runRPCServer(ctx sdk.Context, msg core.Message, cfg *EVMConfig) error { From bd5eb10cef5e66f885a1e6765e99b4d231d44247 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Sat, 13 Apr 2024 14:01:46 +0000 Subject: [PATCH 15/46] chore: add qgRPC queries for sgx --- proto/ethermint/evm/v1/query.proto | 161 + x/evm/keeper/grpc_query.go | 149 + x/evm/types/query.pb.go | 9903 ++++++++++++++++++++-------- x/evm/types/query.pb.gw.go | 991 ++- 4 files changed, 8371 insertions(+), 2833 deletions(-) diff --git a/proto/ethermint/evm/v1/query.proto b/proto/ethermint/evm/v1/query.proto index 8898dd7287..83ee63c272 100644 --- a/proto/ethermint/evm/v1/query.proto +++ b/proto/ethermint/evm/v1/query.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package ethermint.evm.v1; import "cosmos/base/query/v1beta1/pagination.proto"; +import "cosmos/base/v1beta1/coin.proto"; import "ethermint/evm/v1/tx.proto"; import "ethermint/evm/v1/log.proto"; import "ethermint/evm/v1/params.proto"; @@ -81,6 +82,52 @@ service Query { rpc BaseFee(QueryBaseFeeRequest) returns (QueryBaseFeeResponse) { option (google.api.http).get = "/ethermint/evm/v1/base_fee"; } + + // ----------------------------------------- + // Query clients for evm keeper statedb access + rpc QueryGetHashStateDB(GetHashRequest) returns (GetHashResponse) { + option (google.api.http).get = "/ethermint/evm/v1/get_hash"; + } + + rpc PostAddBalanceStateDB(AddBalanceRequest) returns (AddBalanceResponse) { + option (google.api.http).post = "/ethermint/evm/v1/add_balance"; + } + + rpc PostSubBalanceStateDB(SubBalanceRequest) returns (SubBalanceResponse) { + option (google.api.http).post = "/ethermint/evm/v1/sub_balance"; + } + + rpc QueryGetBalanceStateDB(GetBalanceRequest) returns (GetBalanceResponse) { + option (google.api.http).get = "/ethermint/evm/v1/get_balance"; + } + + rpc QueryGetAccountStateDB(GetAccountRequest) returns (GetAccountResponse) { + option (google.api.http).get = "/ethermint/evm/v1/get_account"; + } + + rpc QueryGetStateStateDB(GetStateRequest) returns (GetStateResponse) { + option (google.api.http).get = "/ethermint/evm/v1/get_state"; + } + + rpc QueryGetCodeStateDB(GetCodeRequest) returns (GetCodeResponse) { + option (google.api.http).get = "/ethermint/evm/v1/get_code"; + } + + rpc PostSetAccountStateDB(SetAccountRequest) returns (SetAccountResponse) { + option (google.api.http).post = "/ethermint/evm/v1/set_account"; + } + + rpc PostSetStateStateDB(SetStateRequest) returns (SetStateResponse) { + option (google.api.http).post = "/ethermint/evm/v1/set_state"; + } + + rpc PostSetCodeStateDB(SetCodeRequest) returns (SetCodeResponse) { + option (google.api.http).post = "/ethermint/evm/v1/set_code"; + } + + rpc PostDeleteAccountStateDB(DeleteAccountRequest) returns (DeleteAccountResponse) { + option (google.api.http).post = "/ethermint/evm/v1/delete_account"; + } } // QueryAccountRequest is the request type for the Query/Account RPC method. @@ -336,3 +383,117 @@ message QueryBaseFeeResponse { // base_fee is the EIP1559 base fee string base_fee = 1 [(gogoproto.customtype) = "cosmossdk.io/math.Int"]; } + +message GetHashRequest { + uint64 height = 1; +} + +message GetHashResponse { + // hash *common.Hash + string hash = 1; +} + +message AddBalanceRequest { + // Addr sdk.AccAddress + string addr = 1; + // Amount sdk.Coins + repeated cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false] ; +} + +message AddBalanceResponse { +} + +message SubBalanceRequest { + // Addr sdk.AccAddress + string addr = 1; + // Amount sdk.Coins + repeated cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false] ; +} + +message SubBalanceResponse { +} + +message GetBalanceRequest { + // Addr sdk.AccAddress + string addr = 1; + // Denom string + string denom = 2; +} + +message GetBalanceResponse { + // Balance *big.Int + string balance = 1 [(gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false]; +} + +message GetAccountRequest { + // Addr common.Address + string addr = 1; +} + +message GetAccountResponse { + // accutal type is *statedb.Account + // Account *statedb.Account + bytes account = 1; +} + +message GetStateRequest { + // Addr common.Address + string addr = 1; + // Key common.Hash + string key = 2; +} + +message GetStateResponse { + // Hash common.Hash + string hash = 1; +} + +message GetCodeRequest { + // CodeHash common.Hash + string code_hash = 1; +} + +message GetCodeResponse { + // Code []byte + bytes code = 1; +} + +message SetAccountRequest { + // Addr common.Address + string addr = 1; + // Account statedb.Account + bytes account = 2; +} + +message SetAccountResponse { +} + +message SetStateRequest { + // Addr common.Address + string addr = 1; + // Key common.Hash + string key = 2; + // Value []byte + bytes value = 3; +} + +message SetStateResponse { +} + +message SetCodeRequest { + // CodeHash []byte + bytes code_hash = 1; + // Code []byte + bytes code = 2; +} + +message SetCodeResponse { +} + +message DeleteAccountRequest { + // Addr common.Address + string addr = 1; +} + +message DeleteAccountResponse { +} \ No newline at end of file diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index df8fcea004..b96c44d1bd 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -41,6 +41,7 @@ import ( rpctypes "github.com/evmos/ethermint/rpc/types" ethermint "github.com/evmos/ethermint/types" + "github.com/evmos/ethermint/x/evm/statedb" "github.com/evmos/ethermint/x/evm/types" ) @@ -754,3 +755,151 @@ func getChainID(ctx sdk.Context, chainID int64) (*big.Int, error) { } return big.NewInt(chainID), nil } + +// ------------------------------ +// StateDB queries for SGX party +// ------------------------------ + +// QueryGetHashStateDB queries hash in statedb for sgx +func (k Keeper) QueryGetHashStateDB(c context.Context, req *types.GetHashRequest) (*types.GetHashResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + hash := k.GetHashFn(ctx)(req.Height) + + res := &types.GetHashResponse{ + Hash: hash.Hex(), + } + + return res, nil +} + +// PostAddBalanceStateDB add balance in statedb for sgx +func (k Keeper) PostAddBalanceStateDB(c context.Context, req *types.AddBalanceRequest) (*types.AddBalanceResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + addr, err := sdk.AccAddressFromBech32(req.Addr) + if err != nil { + return nil, err + } + + err = k.AddBalance(ctx, addr, req.Amount) + if err != nil { + return nil, err + } + + return &types.AddBalanceResponse{}, nil +} + +// PostSubBalanceStateDB sub balance in statedb for sgx +func (k Keeper) PostSubBalanceStateDB(c context.Context, req *types.SubBalanceRequest) (*types.SubBalanceResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + addr, err := sdk.AccAddressFromBech32(req.Addr) + if err != nil { + return nil, err + } + + err = k.SubBalance(ctx, addr, req.Amount) + if err != nil { + return nil, err + } + + return &types.SubBalanceResponse{}, nil +} + +// QueryGetBalanceStateDB queries balance in statedb for sgx +func (k Keeper) QueryGetBalanceStateDB(c context.Context, req *types.GetBalanceRequest) (*types.GetBalanceResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + addr, err := sdk.AccAddressFromBech32(req.Addr) + if err != nil { + return nil, err + } + + balance := k.GetBalance(ctx, addr, req.Denom) + + return &types.GetBalanceResponse{ + Balance: sdkmath.NewIntFromBigInt(balance), + }, nil +} + +// QueryGetAccountStateDB queries account in statedb for sgx +func (k Keeper) QueryGetAccountStateDB(c context.Context, req *types.GetAccountRequest) (*types.GetAccountResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + addr := common.HexToAddress(req.Addr) + account := k.GetAccount(ctx, addr) + + res, err := json.Marshal(account) + if err != nil { + return nil, err + } + + return &types.GetAccountResponse{ + Account: res, + }, nil +} + +// QueryGetStateStateDB queries state in statedb for sgx +func (k Keeper) QueryGetStateStateDB(c context.Context, req *types.GetStateRequest) (*types.GetStateResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + addr := common.HexToAddress(req.Addr) + key := common.HexToHash(req.Key) + + hash := k.GetState(ctx, addr, key) + return &types.GetStateResponse{ + Hash: hash.Hex(), + }, nil +} + +// QueryGetCodeStateDB queries code in statedb for sgx +func (k Keeper) QueryGetCodeStateDB(c context.Context, req *types.GetCodeRequest) (*types.GetCodeResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + codeHash := common.HexToHash(req.CodeHash) + + code := k.GetCode(ctx, codeHash) + return &types.GetCodeResponse{ + Code: code, + }, nil +} + +// PostSetAccountStateDB sets account in statedb for sgx +func (k Keeper) PostSetAccountStateDB(c context.Context, req *types.SetAccountRequest) (*types.SetAccountResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + addr := common.HexToAddress(req.Addr) + + var account statedb.Account + err := json.Unmarshal(req.Account, &account) + if err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + err = k.SetAccount(ctx, addr, account) + if err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + return &types.SetAccountResponse{}, nil +} + +// PostSetStateStateDB sets state in statedb for sgx +func (k Keeper) PostSetStateStateDB(c context.Context, req *types.SetStateRequest) (*types.SetStateResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + addr := common.HexToAddress(req.Addr) + key := common.HexToHash(req.Key) + + k.SetState(ctx, addr, key, req.Value) + return &types.SetStateResponse{}, nil +} + +// PostSetCodeStateDB sets code in statedb for sgx +func (k Keeper) PostSetCodeStateDB(c context.Context, req *types.SetCodeRequest) (*types.SetCodeResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + + k.SetCode(ctx, req.CodeHash, req.Code) + return &types.SetCodeResponse{}, nil +} + +// PostDeleteAccountStateDB delete account in statedb for sgx +func (k Keeper) PostDeleteAccountStateDB(c context.Context, req *types.DeleteAccountRequest) (*types.DeleteAccountResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + addr := common.HexToAddress(req.Addr) + + k.DeleteAccount(ctx, addr) + return &types.DeleteAccountResponse{}, nil +} diff --git a/x/evm/types/query.pb.go b/x/evm/types/query.pb.go index 253948b1c9..2111afa5d1 100644 --- a/x/evm/types/query.pb.go +++ b/x/evm/types/query.pb.go @@ -8,6 +8,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/cosmos/cosmos-sdk/types" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" @@ -1468,2228 +1469,6428 @@ func (m *QueryBaseFeeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryBaseFeeResponse proto.InternalMessageInfo -func init() { - proto.RegisterType((*QueryAccountRequest)(nil), "ethermint.evm.v1.QueryAccountRequest") - proto.RegisterType((*QueryAccountResponse)(nil), "ethermint.evm.v1.QueryAccountResponse") - proto.RegisterType((*QueryCosmosAccountRequest)(nil), "ethermint.evm.v1.QueryCosmosAccountRequest") - proto.RegisterType((*QueryCosmosAccountResponse)(nil), "ethermint.evm.v1.QueryCosmosAccountResponse") - proto.RegisterType((*QueryValidatorAccountRequest)(nil), "ethermint.evm.v1.QueryValidatorAccountRequest") - proto.RegisterType((*QueryValidatorAccountResponse)(nil), "ethermint.evm.v1.QueryValidatorAccountResponse") - proto.RegisterType((*QueryBalanceRequest)(nil), "ethermint.evm.v1.QueryBalanceRequest") - proto.RegisterType((*QueryBalanceResponse)(nil), "ethermint.evm.v1.QueryBalanceResponse") - proto.RegisterType((*QueryStorageRequest)(nil), "ethermint.evm.v1.QueryStorageRequest") - proto.RegisterType((*QueryStorageResponse)(nil), "ethermint.evm.v1.QueryStorageResponse") - proto.RegisterType((*QueryCodeRequest)(nil), "ethermint.evm.v1.QueryCodeRequest") - proto.RegisterType((*QueryCodeResponse)(nil), "ethermint.evm.v1.QueryCodeResponse") - proto.RegisterType((*QueryTxLogsRequest)(nil), "ethermint.evm.v1.QueryTxLogsRequest") - proto.RegisterType((*QueryTxLogsResponse)(nil), "ethermint.evm.v1.QueryTxLogsResponse") - proto.RegisterType((*QueryParamsRequest)(nil), "ethermint.evm.v1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "ethermint.evm.v1.QueryParamsResponse") - proto.RegisterType((*EthCallRequest)(nil), "ethermint.evm.v1.EthCallRequest") - proto.RegisterType((*EstimateGasResponse)(nil), "ethermint.evm.v1.EstimateGasResponse") - proto.RegisterType((*QueryTraceTxRequest)(nil), "ethermint.evm.v1.QueryTraceTxRequest") - proto.RegisterType((*QueryTraceTxResponse)(nil), "ethermint.evm.v1.QueryTraceTxResponse") - proto.RegisterType((*QueryTraceCallRequest)(nil), "ethermint.evm.v1.QueryTraceCallRequest") - proto.RegisterType((*QueryTraceCallResponse)(nil), "ethermint.evm.v1.QueryTraceCallResponse") - proto.RegisterType((*QueryTraceBlockRequest)(nil), "ethermint.evm.v1.QueryTraceBlockRequest") - proto.RegisterType((*QueryTraceBlockResponse)(nil), "ethermint.evm.v1.QueryTraceBlockResponse") - proto.RegisterType((*QueryBaseFeeRequest)(nil), "ethermint.evm.v1.QueryBaseFeeRequest") - proto.RegisterType((*QueryBaseFeeResponse)(nil), "ethermint.evm.v1.QueryBaseFeeResponse") +type GetHashRequest struct { + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } -func init() { proto.RegisterFile("ethermint/evm/v1/query.proto", fileDescriptor_e15a877459347994) } - -var fileDescriptor_e15a877459347994 = []byte{ - // 1566 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 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0x35, 0xcd, 0xf8, 0xab, 0x17, 0xfd, 0x45, 0xa8, 0x82, 0x34, 0xe5, 0x46, 0x39, 0xbe, 0x71, - 0x81, 0xaf, 0x33, 0xe7, 0x2a, 0x90, 0xaf, 0xb5, 0xe4, 0x36, 0x9d, 0x32, 0xf6, 0xe4, 0x0d, 0x66, - 0xe4, 0xea, 0x87, 0x62, 0x51, 0xbb, 0x0a, 0x16, 0x05, 0x8e, 0x4f, 0x50, 0xbd, 0x56, 0x41, 0x8c, - 0x78, 0x7d, 0x97, 0x39, 0x01, 0xa6, 0x2d, 0xe2, 0xf6, 0xe3, 0xc8, 0xf0, 0xb5, 0x8b, 0x91, 0x5b, - 0x3d, 0x54, 0xc0, 0x52, 0x8c, 0x36, 0x79, 0xb1, 0x75, 0x70, 0x34, 0x40, 0xd5, 0xab, 0x31, 0x00, - 0xfb, 0x1a, 0xaf, 0x16, 0x04, 0xd1, 0x8e, 0xef, 0xe7, 0x57, 0x71, 0xcf, 0xdb, 0x32, 0x88, 0x3a, - 0x47, 0x47, 0x05, 0x91, 0x76, 0x55, 0x1a, 0xfb, 0x98, 0x11, 0x0f, 0xd9, 0xa3, 0x8d, 0xc1, 0x59, - 0x90, 0xd8, 0xc7, 0x07, 0x32, 0xde, 0xf8, 0x30, 0x64, 0x7e, 0x4b, 0x9a, 0xef, 0x28, 0x93, 0xe6, - 0xe7, 0xc0, 0x44, 0x0b, 0xd5, 0x9b, 0x81, 0x71, 0x7f, 0xa2, 0x9d, 0x03, 0xb3, 0x32, 0x94, 0x2a, - 0xaf, 0x74, 0xc9, 0x75, 0xf0, 0xbf, 0xd0, 0x39, 0x69, 0x02, 0x82, 0x24, 0x8f, 0x7d, 0x71, 0x6a, - 0xda, 0x14, 0x63, 0xed, 0x36, 0x80, 0x42, 0x70, 0xaf, 0x7d, 0x8d, 0xd8, 0x34, 0x30, 0x01, 0x41, - 0x52, 0x64, 0x8c, 0xaf, 0x5f, 0x8c, 0xe1, 0x25, 0x00, 0xba,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0x7f, 0xd8, 0x1d, 0x1b, 0xa3, 0x05, - 0x25, 0x8e, 0x93, 0x02, 0x47, 0x0e, 0x2e, 0xc6, 0xe1, 0x10, 0xf1, 0x70, 0x97, 0x17, 0x25, 0xd1, - 0x85, 0x86, 0x14, 0xa5, 0x70, 0xeb, 0x1b, 0x52, 0x94, 0x7a, 0x5a, 0xe1, 0x30, 0x7f, 0x04, 0x2d, - 0x72, 0xe7, 0xc2, 0x93, 0x17, 0x39, 0xe5, 0xe9, 0x8b, 0x9c, 0xf2, 0xfc, 0x45, 0x4e, 0x79, 0xf4, - 0x32, 0x37, 0xf6, 0xf4, 0x65, 0x6e, 0xec, 0x97, 0x97, 0xb9, 0xb1, 0x4f, 0xd7, 0x42, 0x14, 0x00, - 0xb7, 0x38, 0x03, 0xe8, 0x6a, 0x69, 0x0b, 0x3d, 0x82, 0x06, 0x94, 0x27, 0x05, 0xe3, 0x78, 0xe7, - 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x0f, 0xce, 0x6b, 0x84, 0x14, 0x00, 0x00, +func (m *GetHashRequest) Reset() { *m = GetHashRequest{} } +func (m *GetHashRequest) String() string { return proto.CompactTextString(m) } +func (*GetHashRequest) ProtoMessage() {} +func (*GetHashRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{26} +} +func (m *GetHashRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetHashRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetHashRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetHashRequest.Merge(m, src) +} +func (m *GetHashRequest) XXX_Size() int { + return m.Size() +} +func (m *GetHashRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetHashRequest.DiscardUnknown(m) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +var xxx_messageInfo_GetHashRequest proto.InternalMessageInfo -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Account queries an Ethereum account. - Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) - // CosmosAccount queries an Ethereum account's Cosmos Address. - CosmosAccount(ctx context.Context, in *QueryCosmosAccountRequest, opts ...grpc.CallOption) (*QueryCosmosAccountResponse, error) - // ValidatorAccount queries an Ethereum account's from a validator consensus - // Address. - ValidatorAccount(ctx context.Context, in *QueryValidatorAccountRequest, opts ...grpc.CallOption) (*QueryValidatorAccountResponse, error) - // Balance queries the balance of a the EVM denomination for a single - // EthAccount. - Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) - // Storage queries the balance of all coins for a single account. - Storage(ctx context.Context, in *QueryStorageRequest, opts ...grpc.CallOption) (*QueryStorageResponse, error) - // Code queries the balance of all coins for a single account. - Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error) - // Params queries the parameters of x/evm module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // EthCall implements the `eth_call` rpc api - EthCall(ctx context.Context, in *EthCallRequest, opts ...grpc.CallOption) (*MsgEthereumTxResponse, error) - // EstimateGas implements the `eth_estimateGas` rpc api - EstimateGas(ctx context.Context, in *EthCallRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error) - // TraceTx implements the `debug_traceTransaction` rpc api - TraceTx(ctx context.Context, in *QueryTraceTxRequest, opts ...grpc.CallOption) (*QueryTraceTxResponse, error) - // TraceBlock implements the `debug_traceBlockByNumber` and `debug_traceBlockByHash` rpc api - TraceBlock(ctx context.Context, in *QueryTraceBlockRequest, opts ...grpc.CallOption) (*QueryTraceBlockResponse, error) - // TraceCall implements the `debug_traceCall` rpc api - TraceCall(ctx context.Context, in *QueryTraceCallRequest, opts ...grpc.CallOption) (*QueryTraceCallResponse, error) - // BaseFee queries the base fee of the parent block of the current block, - // it's similar to feemarket module's method, but also checks london hardfork status. - BaseFee(ctx context.Context, in *QueryBaseFeeRequest, opts ...grpc.CallOption) (*QueryBaseFeeResponse, error) +func (m *GetHashRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 } -type queryClient struct { - cc grpc1.ClientConn +type GetHashResponse struct { + // hash *common.Hash + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} +func (m *GetHashResponse) Reset() { *m = GetHashResponse{} } +func (m *GetHashResponse) String() string { return proto.CompactTextString(m) } +func (*GetHashResponse) ProtoMessage() {} +func (*GetHashResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{27} } - -func (c *queryClient) Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) { - out := new(QueryAccountResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Account", in, out, opts...) - if err != nil { - return nil, err +func (m *GetHashResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetHashResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *GetHashResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetHashResponse.Merge(m, src) +} +func (m *GetHashResponse) XXX_Size() int { + return m.Size() +} +func (m *GetHashResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetHashResponse.DiscardUnknown(m) } -func (c *queryClient) CosmosAccount(ctx context.Context, in *QueryCosmosAccountRequest, opts ...grpc.CallOption) (*QueryCosmosAccountResponse, error) { - out := new(QueryCosmosAccountResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/CosmosAccount", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_GetHashResponse proto.InternalMessageInfo + +func (m *GetHashResponse) GetHash() string { + if m != nil { + return m.Hash } - return out, nil + return "" } -func (c *queryClient) ValidatorAccount(ctx context.Context, in *QueryValidatorAccountRequest, opts ...grpc.CallOption) (*QueryValidatorAccountResponse, error) { - out := new(QueryValidatorAccountResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/ValidatorAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type AddBalanceRequest struct { + // Addr sdk.AccAddress + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + // Amount sdk.Coins + Amount []types1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount"` } -func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { - out := new(QueryBalanceResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Balance", in, out, opts...) - if err != nil { - return nil, err +func (m *AddBalanceRequest) Reset() { *m = AddBalanceRequest{} } +func (m *AddBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*AddBalanceRequest) ProtoMessage() {} +func (*AddBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{28} +} +func (m *AddBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddBalanceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *AddBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddBalanceRequest.Merge(m, src) +} +func (m *AddBalanceRequest) XXX_Size() int { + return m.Size() +} +func (m *AddBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddBalanceRequest.DiscardUnknown(m) } -func (c *queryClient) Storage(ctx context.Context, in *QueryStorageRequest, opts ...grpc.CallOption) (*QueryStorageResponse, error) { - out := new(QueryStorageResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Storage", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_AddBalanceRequest proto.InternalMessageInfo + +func (m *AddBalanceRequest) GetAddr() string { + if m != nil { + return m.Addr } - return out, nil + return "" } -func (c *queryClient) Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error) { - out := new(QueryCodeResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Code", in, out, opts...) - if err != nil { - return nil, err +func (m *AddBalanceRequest) GetAmount() []types1.Coin { + if m != nil { + return m.Amount } - return out, nil + return nil } -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type AddBalanceResponse struct { } -func (c *queryClient) EthCall(ctx context.Context, in *EthCallRequest, opts ...grpc.CallOption) (*MsgEthereumTxResponse, error) { - out := new(MsgEthereumTxResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/EthCall", in, out, opts...) - if err != nil { - return nil, err +func (m *AddBalanceResponse) Reset() { *m = AddBalanceResponse{} } +func (m *AddBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*AddBalanceResponse) ProtoMessage() {} +func (*AddBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{29} +} +func (m *AddBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddBalanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *AddBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddBalanceResponse.Merge(m, src) +} +func (m *AddBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *AddBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AddBalanceResponse.DiscardUnknown(m) } -func (c *queryClient) EstimateGas(ctx context.Context, in *EthCallRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error) { - out := new(EstimateGasResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/EstimateGas", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +var xxx_messageInfo_AddBalanceResponse proto.InternalMessageInfo + +type SubBalanceRequest struct { + // Addr sdk.AccAddress + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + // Amount sdk.Coins + Amount []types1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount"` } -func (c *queryClient) TraceTx(ctx context.Context, in *QueryTraceTxRequest, opts ...grpc.CallOption) (*QueryTraceTxResponse, error) { - out := new(QueryTraceTxResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/TraceTx", in, out, opts...) - if err != nil { - return nil, err +func (m *SubBalanceRequest) Reset() { *m = SubBalanceRequest{} } +func (m *SubBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*SubBalanceRequest) ProtoMessage() {} +func (*SubBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{30} +} +func (m *SubBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SubBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SubBalanceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *SubBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubBalanceRequest.Merge(m, src) +} +func (m *SubBalanceRequest) XXX_Size() int { + return m.Size() +} +func (m *SubBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SubBalanceRequest.DiscardUnknown(m) } -func (c *queryClient) TraceBlock(ctx context.Context, in *QueryTraceBlockRequest, opts ...grpc.CallOption) (*QueryTraceBlockResponse, error) { - out := new(QueryTraceBlockResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/TraceBlock", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_SubBalanceRequest proto.InternalMessageInfo + +func (m *SubBalanceRequest) GetAddr() string { + if m != nil { + return m.Addr } - return out, nil + return "" } -func (c *queryClient) TraceCall(ctx context.Context, in *QueryTraceCallRequest, opts ...grpc.CallOption) (*QueryTraceCallResponse, error) { - out := new(QueryTraceCallResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/TraceCall", in, out, opts...) - if err != nil { - return nil, err +func (m *SubBalanceRequest) GetAmount() []types1.Coin { + if m != nil { + return m.Amount } - return out, nil + return nil } -func (c *queryClient) BaseFee(ctx context.Context, in *QueryBaseFeeRequest, opts ...grpc.CallOption) (*QueryBaseFeeResponse, error) { - out := new(QueryBaseFeeResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/BaseFee", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type SubBalanceResponse struct { } -// QueryServer is the server API for Query service. -type QueryServer interface { - // Account queries an Ethereum account. - Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error) - // CosmosAccount queries an Ethereum account's Cosmos Address. - CosmosAccount(context.Context, *QueryCosmosAccountRequest) (*QueryCosmosAccountResponse, error) - // ValidatorAccount queries an Ethereum account's from a validator consensus - // Address. - ValidatorAccount(context.Context, *QueryValidatorAccountRequest) (*QueryValidatorAccountResponse, error) - // Balance queries the balance of a the EVM denomination for a single - // EthAccount. - Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) - // Storage queries the balance of all coins for a single account. - Storage(context.Context, *QueryStorageRequest) (*QueryStorageResponse, error) - // Code queries the balance of all coins for a single account. - Code(context.Context, *QueryCodeRequest) (*QueryCodeResponse, error) - // Params queries the parameters of x/evm module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // EthCall implements the `eth_call` rpc api - EthCall(context.Context, *EthCallRequest) (*MsgEthereumTxResponse, error) - // EstimateGas implements the `eth_estimateGas` rpc api - EstimateGas(context.Context, *EthCallRequest) (*EstimateGasResponse, error) - // TraceTx implements the `debug_traceTransaction` rpc api - TraceTx(context.Context, *QueryTraceTxRequest) (*QueryTraceTxResponse, error) - // TraceBlock implements the `debug_traceBlockByNumber` and `debug_traceBlockByHash` rpc api - TraceBlock(context.Context, *QueryTraceBlockRequest) (*QueryTraceBlockResponse, error) - // TraceCall implements the `debug_traceCall` rpc api - TraceCall(context.Context, *QueryTraceCallRequest) (*QueryTraceCallResponse, error) - // BaseFee queries the base fee of the parent block of the current block, - // it's similar to feemarket module's method, but also checks london hardfork status. - BaseFee(context.Context, *QueryBaseFeeRequest) (*QueryBaseFeeResponse, error) +func (m *SubBalanceResponse) Reset() { *m = SubBalanceResponse{} } +func (m *SubBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*SubBalanceResponse) ProtoMessage() {} +func (*SubBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{31} } - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { +func (m *SubBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*QueryAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Account not implemented") +func (m *SubBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SubBalanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -func (*UnimplementedQueryServer) CosmosAccount(ctx context.Context, req *QueryCosmosAccountRequest) (*QueryCosmosAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CosmosAccount not implemented") +func (m *SubBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubBalanceResponse.Merge(m, src) } -func (*UnimplementedQueryServer) ValidatorAccount(ctx context.Context, req *QueryValidatorAccountRequest) (*QueryValidatorAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidatorAccount not implemented") +func (m *SubBalanceResponse) XXX_Size() int { + return m.Size() } -func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") +func (m *SubBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SubBalanceResponse.DiscardUnknown(m) } -func (*UnimplementedQueryServer) Storage(ctx context.Context, req *QueryStorageRequest) (*QueryStorageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Storage not implemented") + +var xxx_messageInfo_SubBalanceResponse proto.InternalMessageInfo + +type GetBalanceRequest struct { + // Addr sdk.AccAddress + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + // Denom string + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` } -func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryCodeRequest) (*QueryCodeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Code not implemented") + +func (m *GetBalanceRequest) Reset() { *m = GetBalanceRequest{} } +func (m *GetBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*GetBalanceRequest) ProtoMessage() {} +func (*GetBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{32} } -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +func (m *GetBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedQueryServer) EthCall(ctx context.Context, req *EthCallRequest) (*MsgEthereumTxResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EthCall not implemented") +func (m *GetBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetBalanceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -func (*UnimplementedQueryServer) EstimateGas(ctx context.Context, req *EthCallRequest) (*EstimateGasResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EstimateGas not implemented") +func (m *GetBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBalanceRequest.Merge(m, src) } -func (*UnimplementedQueryServer) TraceTx(ctx context.Context, req *QueryTraceTxRequest) (*QueryTraceTxResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TraceTx not implemented") +func (m *GetBalanceRequest) XXX_Size() int { + return m.Size() } -func (*UnimplementedQueryServer) TraceBlock(ctx context.Context, req *QueryTraceBlockRequest) (*QueryTraceBlockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TraceBlock not implemented") +func (m *GetBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetBalanceRequest.DiscardUnknown(m) } -func (*UnimplementedQueryServer) TraceCall(ctx context.Context, req *QueryTraceCallRequest) (*QueryTraceCallResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TraceCall not implemented") + +var xxx_messageInfo_GetBalanceRequest proto.InternalMessageInfo + +func (m *GetBalanceRequest) GetAddr() string { + if m != nil { + return m.Addr + } + return "" } -func (*UnimplementedQueryServer) BaseFee(ctx context.Context, req *QueryBaseFeeRequest) (*QueryBaseFeeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BaseFee not implemented") + +func (m *GetBalanceRequest) GetDenom() string { + if m != nil { + return m.Denom + } + return "" } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) +type GetBalanceResponse struct { + // Balance *big.Int + Balance cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=balance,proto3,customtype=cosmossdk.io/math.Int" json:"balance"` } -func _Query_Account_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Account(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/Account", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Account(ctx, req.(*QueryAccountRequest)) +func (m *GetBalanceResponse) Reset() { *m = GetBalanceResponse{} } +func (m *GetBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*GetBalanceResponse) ProtoMessage() {} +func (*GetBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{33} +} +func (m *GetBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetBalanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *GetBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBalanceResponse.Merge(m, src) +} +func (m *GetBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *GetBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetBalanceResponse.DiscardUnknown(m) } -func _Query_CosmosAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCosmosAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).CosmosAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/CosmosAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).CosmosAccount(ctx, req.(*QueryCosmosAccountRequest)) - } - return interceptor(ctx, in, info, handler) +var xxx_messageInfo_GetBalanceResponse proto.InternalMessageInfo + +type GetAccountRequest struct { + // Addr common.Address + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` } -func _Query_ValidatorAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryValidatorAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).ValidatorAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/ValidatorAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ValidatorAccount(ctx, req.(*QueryValidatorAccountRequest)) +func (m *GetAccountRequest) Reset() { *m = GetAccountRequest{} } +func (m *GetAccountRequest) String() string { return proto.CompactTextString(m) } +func (*GetAccountRequest) ProtoMessage() {} +func (*GetAccountRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{34} +} +func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAccountRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *GetAccountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAccountRequest.Merge(m, src) +} +func (m *GetAccountRequest) XXX_Size() int { + return m.Size() +} +func (m *GetAccountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetAccountRequest.DiscardUnknown(m) } -func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryBalanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Balance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/Balance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) +var xxx_messageInfo_GetAccountRequest proto.InternalMessageInfo + +func (m *GetAccountRequest) GetAddr() string { + if m != nil { + return m.Addr } - return interceptor(ctx, in, info, handler) + return "" } -func _Query_Storage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryStorageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Storage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/Storage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Storage(ctx, req.(*QueryStorageRequest)) - } - return interceptor(ctx, in, info, handler) +type GetAccountResponse struct { + // accutal type is *statedb.Account + // Account *statedb.Account + Account []byte `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` } -func _Query_Code_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCodeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Code(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/Code", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Code(ctx, req.(*QueryCodeRequest)) +func (m *GetAccountResponse) Reset() { *m = GetAccountResponse{} } +func (m *GetAccountResponse) String() string { return proto.CompactTextString(m) } +func (*GetAccountResponse) ProtoMessage() {} +func (*GetAccountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{35} +} +func (m *GetAccountResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAccountResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *GetAccountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAccountResponse.Merge(m, src) +} +func (m *GetAccountResponse) XXX_Size() int { + return m.Size() +} +func (m *GetAccountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetAccountResponse.DiscardUnknown(m) } -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) +var xxx_messageInfo_GetAccountResponse proto.InternalMessageInfo + +func (m *GetAccountResponse) GetAccount() []byte { + if m != nil { + return m.Account } - return interceptor(ctx, in, info, handler) + return nil } -func _Query_EthCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EthCallRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EthCall(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/EthCall", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EthCall(ctx, req.(*EthCallRequest)) - } - return interceptor(ctx, in, info, handler) +type GetStateRequest struct { + // Addr common.Address + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + // Key common.Hash + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` } -func _Query_EstimateGas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EthCallRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EstimateGas(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/EstimateGas", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EstimateGas(ctx, req.(*EthCallRequest)) +func (m *GetStateRequest) Reset() { *m = GetStateRequest{} } +func (m *GetStateRequest) String() string { return proto.CompactTextString(m) } +func (*GetStateRequest) ProtoMessage() {} +func (*GetStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{36} +} +func (m *GetStateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *GetStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStateRequest.Merge(m, src) +} +func (m *GetStateRequest) XXX_Size() int { + return m.Size() +} +func (m *GetStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetStateRequest.DiscardUnknown(m) } -func _Query_TraceTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTraceTxRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TraceTx(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/TraceTx", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TraceTx(ctx, req.(*QueryTraceTxRequest)) +var xxx_messageInfo_GetStateRequest proto.InternalMessageInfo + +func (m *GetStateRequest) GetAddr() string { + if m != nil { + return m.Addr } - return interceptor(ctx, in, info, handler) + return "" } -func _Query_TraceBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTraceBlockRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TraceBlock(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/TraceBlock", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TraceBlock(ctx, req.(*QueryTraceBlockRequest)) +func (m *GetStateRequest) GetKey() string { + if m != nil { + return m.Key } - return interceptor(ctx, in, info, handler) + return "" } -func _Query_TraceCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTraceCallRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TraceCall(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/TraceCall", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TraceCall(ctx, req.(*QueryTraceCallRequest)) - } - return interceptor(ctx, in, info, handler) +type GetStateResponse struct { + // Hash common.Hash + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } -func _Query_BaseFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryBaseFeeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).BaseFee(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.evm.v1.Query/BaseFee", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).BaseFee(ctx, req.(*QueryBaseFeeRequest)) +func (m *GetStateResponse) Reset() { *m = GetStateResponse{} } +func (m *GetStateResponse) String() string { return proto.CompactTextString(m) } +func (*GetStateResponse) ProtoMessage() {} +func (*GetStateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{37} +} +func (m *GetStateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) } - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ethermint.evm.v1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Account", - Handler: _Query_Account_Handler, - }, - { - MethodName: "CosmosAccount", - Handler: _Query_CosmosAccount_Handler, - }, - { - MethodName: "ValidatorAccount", - Handler: _Query_ValidatorAccount_Handler, - }, - { - MethodName: "Balance", - Handler: _Query_Balance_Handler, - }, - { - MethodName: "Storage", - Handler: _Query_Storage_Handler, - }, - { - MethodName: "Code", - Handler: _Query_Code_Handler, - }, - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "EthCall", - Handler: _Query_EthCall_Handler, - }, - { - MethodName: "EstimateGas", - Handler: _Query_EstimateGas_Handler, - }, - { - MethodName: "TraceTx", - Handler: _Query_TraceTx_Handler, - }, - { - MethodName: "TraceBlock", - Handler: _Query_TraceBlock_Handler, - }, - { - MethodName: "TraceCall", - Handler: _Query_TraceCall_Handler, - }, - { - MethodName: "BaseFee", - Handler: _Query_BaseFee_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "ethermint/evm/v1/query.proto", +func (m *GetStateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStateResponse.Merge(m, src) +} +func (m *GetStateResponse) XXX_Size() int { + return m.Size() +} +func (m *GetStateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetStateResponse.DiscardUnknown(m) } -func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_GetStateResponse proto.InternalMessageInfo + +func (m *GetStateResponse) GetHash() string { + if m != nil { + return m.Hash } - return dAtA[:n], nil + return "" } -func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type GetCodeRequest struct { + // CodeHash common.Hash + CodeHash string `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` } -func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa +func (m *GetCodeRequest) Reset() { *m = GetCodeRequest{} } +func (m *GetCodeRequest) String() string { return proto.CompactTextString(m) } +func (*GetCodeRequest) ProtoMessage() {} +func (*GetCodeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{38} +} +func (m *GetCodeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetCodeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return len(dAtA) - i, nil +} +func (m *GetCodeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCodeRequest.Merge(m, src) +} +func (m *GetCodeRequest) XXX_Size() int { + return m.Size() +} +func (m *GetCodeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetCodeRequest.DiscardUnknown(m) } -func (m *QueryAccountResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_GetCodeRequest proto.InternalMessageInfo + +func (m *GetCodeRequest) GetCodeHash() string { + if m != nil { + return m.CodeHash } - return dAtA[:n], nil + return "" } -func (m *QueryAccountResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type GetCodeResponse struct { + // Code []byte + Code []byte `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` } -func (m *QueryAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Nonce != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) - i-- - dAtA[i] = 0x18 - } - if len(m.CodeHash) > 0 { - i -= len(m.CodeHash) - copy(dAtA[i:], m.CodeHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash))) - i-- - dAtA[i] = 0x12 - } - if len(m.Balance) > 0 { - i -= len(m.Balance) - copy(dAtA[i:], m.Balance) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Balance))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *GetCodeResponse) Reset() { *m = GetCodeResponse{} } +func (m *GetCodeResponse) String() string { return proto.CompactTextString(m) } +func (*GetCodeResponse) ProtoMessage() {} +func (*GetCodeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{39} } - -func (m *QueryCosmosAccountRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *GetCodeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetCodeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *QueryCosmosAccountRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *GetCodeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCodeResponse.Merge(m, src) } - -func (m *QueryCosmosAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *GetCodeResponse) XXX_Size() int { + return m.Size() +} +func (m *GetCodeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetCodeResponse.DiscardUnknown(m) } -func (m *QueryCosmosAccountResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_GetCodeResponse proto.InternalMessageInfo + +func (m *GetCodeResponse) GetCode() []byte { + if m != nil { + return m.Code } - return dAtA[:n], nil + return nil } -func (m *QueryCosmosAccountResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type SetAccountRequest struct { + // Addr common.Address + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + // Account statedb.Account + Account []byte `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` } -func (m *QueryCosmosAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AccountNumber != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.AccountNumber)) - i-- - dAtA[i] = 0x18 - } - if m.Sequence != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x10 - } - if len(m.CosmosAddress) > 0 { - i -= len(m.CosmosAddress) - copy(dAtA[i:], m.CosmosAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.CosmosAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *SetAccountRequest) Reset() { *m = SetAccountRequest{} } +func (m *SetAccountRequest) String() string { return proto.CompactTextString(m) } +func (*SetAccountRequest) ProtoMessage() {} +func (*SetAccountRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{40} } - -func (m *QueryValidatorAccountRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *SetAccountRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetAccountRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *QueryValidatorAccountRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *SetAccountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetAccountRequest.Merge(m, src) +} +func (m *SetAccountRequest) XXX_Size() int { + return m.Size() +} +func (m *SetAccountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetAccountRequest.DiscardUnknown(m) } -func (m *QueryValidatorAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ConsAddress) > 0 { - i -= len(m.ConsAddress) - copy(dAtA[i:], m.ConsAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ConsAddress))) - i-- - dAtA[i] = 0xa +var xxx_messageInfo_SetAccountRequest proto.InternalMessageInfo + +func (m *SetAccountRequest) GetAddr() string { + if m != nil { + return m.Addr } - return len(dAtA) - i, nil + return "" } -func (m *QueryValidatorAccountResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *SetAccountRequest) GetAccount() []byte { + if m != nil { + return m.Account } - return dAtA[:n], nil + return nil } -func (m *QueryValidatorAccountResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type SetAccountResponse struct { } -func (m *QueryValidatorAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AccountNumber != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.AccountNumber)) - i-- - dAtA[i] = 0x18 - } - if m.Sequence != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x10 - } - if len(m.AccountAddress) > 0 { - i -= len(m.AccountAddress) - copy(dAtA[i:], m.AccountAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.AccountAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *SetAccountResponse) Reset() { *m = SetAccountResponse{} } +func (m *SetAccountResponse) String() string { return proto.CompactTextString(m) } +func (*SetAccountResponse) ProtoMessage() {} +func (*SetAccountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{41} } - -func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *SetAccountResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetAccountResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *SetAccountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetAccountResponse.Merge(m, src) +} +func (m *SetAccountResponse) XXX_Size() int { + return m.Size() +} +func (m *SetAccountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetAccountResponse.DiscardUnknown(m) } -func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +var xxx_messageInfo_SetAccountResponse proto.InternalMessageInfo + +type SetStateRequest struct { + // Addr common.Address + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + // Key common.Hash + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + // Value []byte + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` } -func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *SetStateRequest) Reset() { *m = SetStateRequest{} } +func (m *SetStateRequest) String() string { return proto.CompactTextString(m) } +func (*SetStateRequest) ProtoMessage() {} +func (*SetStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{42} +} +func (m *SetStateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetStateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil +} +func (m *SetStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetStateRequest.Merge(m, src) +} +func (m *SetStateRequest) XXX_Size() int { + return m.Size() +} +func (m *SetStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetStateRequest.DiscardUnknown(m) } -func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_SetStateRequest proto.InternalMessageInfo + +func (m *SetStateRequest) GetAddr() string { + if m != nil { + return m.Addr + } + return "" } -func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Balance) > 0 { - i -= len(m.Balance) - copy(dAtA[i:], m.Balance) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Balance))) - i-- - dAtA[i] = 0xa +func (m *SetStateRequest) GetKey() string { + if m != nil { + return m.Key } - return len(dAtA) - i, nil + return "" } -func (m *QueryStorageRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *SetStateRequest) GetValue() []byte { + if m != nil { + return m.Value } - return dAtA[:n], nil + return nil } -func (m *QueryStorageRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type SetStateResponse struct { } -func (m *QueryStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *SetStateResponse) Reset() { *m = SetStateResponse{} } +func (m *SetStateResponse) String() string { return proto.CompactTextString(m) } +func (*SetStateResponse) ProtoMessage() {} +func (*SetStateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{43} } - -func (m *QueryStorageResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *SetStateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetStateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *QueryStorageResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *SetStateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetStateResponse.Merge(m, src) } - -func (m *QueryStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *SetStateResponse) XXX_Size() int { + return m.Size() } - -func (m *QueryCodeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (m *SetStateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetStateResponse.DiscardUnknown(m) } -func (m *QueryCodeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +var xxx_messageInfo_SetStateResponse proto.InternalMessageInfo -func (m *QueryCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type SetCodeRequest struct { + // CodeHash []byte + CodeHash []byte `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` + // Code []byte + Code []byte `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` } -func (m *QueryCodeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *SetCodeRequest) Reset() { *m = SetCodeRequest{} } +func (m *SetCodeRequest) String() string { return proto.CompactTextString(m) } +func (*SetCodeRequest) ProtoMessage() {} +func (*SetCodeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{44} +} +func (m *SetCodeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetCodeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *QueryCodeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *SetCodeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetCodeRequest.Merge(m, src) +} +func (m *SetCodeRequest) XXX_Size() int { + return m.Size() +} +func (m *SetCodeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetCodeRequest.DiscardUnknown(m) } -func (m *QueryCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Code) > 0 { - i -= len(m.Code) - copy(dAtA[i:], m.Code) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) - i-- - dAtA[i] = 0xa +var xxx_messageInfo_SetCodeRequest proto.InternalMessageInfo + +func (m *SetCodeRequest) GetCodeHash() []byte { + if m != nil { + return m.CodeHash } - return len(dAtA) - i, nil + return nil } -func (m *QueryTxLogsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *SetCodeRequest) GetCode() []byte { + if m != nil { + return m.Code } - return dAtA[:n], nil + return nil } -func (m *QueryTxLogsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type SetCodeResponse struct { } -func (m *QueryTxLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) +func (m *SetCodeResponse) Reset() { *m = SetCodeResponse{} } +func (m *SetCodeResponse) String() string { return proto.CompactTextString(m) } +func (*SetCodeResponse) ProtoMessage() {} +func (*SetCodeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{45} +} +func (m *SetCodeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetCodeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - i-- - dAtA[i] = 0x12 - } - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash))) - i-- - dAtA[i] = 0xa + return b[:n], nil } - return len(dAtA) - i, nil } - -func (m *QueryTxLogsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (m *SetCodeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetCodeResponse.Merge(m, src) +} +func (m *SetCodeResponse) XXX_Size() int { + return m.Size() +} +func (m *SetCodeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetCodeResponse.DiscardUnknown(m) } -func (m *QueryTxLogsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_SetCodeResponse proto.InternalMessageInfo + +type DeleteAccountRequest struct { + // Addr common.Address + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` } -func (m *QueryTxLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Logs) > 0 { - for iNdEx := len(m.Logs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Logs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (m *DeleteAccountRequest) Reset() { *m = DeleteAccountRequest{} } +func (m *DeleteAccountRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteAccountRequest) ProtoMessage() {} +func (*DeleteAccountRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{46} +} +func (m *DeleteAccountRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteAccountRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - return len(dAtA) - i, nil } - -func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (m *DeleteAccountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteAccountRequest.Merge(m, src) } - -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *DeleteAccountRequest) XXX_Size() int { + return m.Size() } - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (m *DeleteAccountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteAccountRequest.DiscardUnknown(m) } -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_DeleteAccountRequest proto.InternalMessageInfo + +func (m *DeleteAccountRequest) GetAddr() string { + if m != nil { + return m.Addr } - return dAtA[:n], nil + return "" } -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type DeleteAccountResponse struct { } -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) +func (m *DeleteAccountResponse) Reset() { *m = DeleteAccountResponse{} } +func (m *DeleteAccountResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteAccountResponse) ProtoMessage() {} +func (*DeleteAccountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{47} +} +func (m *DeleteAccountResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteAccountResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) if err != nil { - return 0, err + return nil, err } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + return b[:n], nil } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil +} +func (m *DeleteAccountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteAccountResponse.Merge(m, src) +} +func (m *DeleteAccountResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteAccountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteAccountResponse.DiscardUnknown(m) } -func (m *EthCallRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_DeleteAccountResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*QueryAccountRequest)(nil), "ethermint.evm.v1.QueryAccountRequest") + proto.RegisterType((*QueryAccountResponse)(nil), "ethermint.evm.v1.QueryAccountResponse") + proto.RegisterType((*QueryCosmosAccountRequest)(nil), "ethermint.evm.v1.QueryCosmosAccountRequest") + proto.RegisterType((*QueryCosmosAccountResponse)(nil), "ethermint.evm.v1.QueryCosmosAccountResponse") + proto.RegisterType((*QueryValidatorAccountRequest)(nil), "ethermint.evm.v1.QueryValidatorAccountRequest") + proto.RegisterType((*QueryValidatorAccountResponse)(nil), "ethermint.evm.v1.QueryValidatorAccountResponse") + proto.RegisterType((*QueryBalanceRequest)(nil), "ethermint.evm.v1.QueryBalanceRequest") + proto.RegisterType((*QueryBalanceResponse)(nil), "ethermint.evm.v1.QueryBalanceResponse") + proto.RegisterType((*QueryStorageRequest)(nil), "ethermint.evm.v1.QueryStorageRequest") + proto.RegisterType((*QueryStorageResponse)(nil), "ethermint.evm.v1.QueryStorageResponse") + proto.RegisterType((*QueryCodeRequest)(nil), "ethermint.evm.v1.QueryCodeRequest") + proto.RegisterType((*QueryCodeResponse)(nil), "ethermint.evm.v1.QueryCodeResponse") + proto.RegisterType((*QueryTxLogsRequest)(nil), "ethermint.evm.v1.QueryTxLogsRequest") + proto.RegisterType((*QueryTxLogsResponse)(nil), "ethermint.evm.v1.QueryTxLogsResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "ethermint.evm.v1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "ethermint.evm.v1.QueryParamsResponse") + proto.RegisterType((*EthCallRequest)(nil), "ethermint.evm.v1.EthCallRequest") + proto.RegisterType((*EstimateGasResponse)(nil), "ethermint.evm.v1.EstimateGasResponse") + proto.RegisterType((*QueryTraceTxRequest)(nil), "ethermint.evm.v1.QueryTraceTxRequest") + proto.RegisterType((*QueryTraceTxResponse)(nil), "ethermint.evm.v1.QueryTraceTxResponse") + proto.RegisterType((*QueryTraceCallRequest)(nil), "ethermint.evm.v1.QueryTraceCallRequest") + proto.RegisterType((*QueryTraceCallResponse)(nil), "ethermint.evm.v1.QueryTraceCallResponse") + proto.RegisterType((*QueryTraceBlockRequest)(nil), "ethermint.evm.v1.QueryTraceBlockRequest") + proto.RegisterType((*QueryTraceBlockResponse)(nil), "ethermint.evm.v1.QueryTraceBlockResponse") + proto.RegisterType((*QueryBaseFeeRequest)(nil), "ethermint.evm.v1.QueryBaseFeeRequest") + proto.RegisterType((*QueryBaseFeeResponse)(nil), "ethermint.evm.v1.QueryBaseFeeResponse") + proto.RegisterType((*GetHashRequest)(nil), "ethermint.evm.v1.GetHashRequest") + proto.RegisterType((*GetHashResponse)(nil), "ethermint.evm.v1.GetHashResponse") + proto.RegisterType((*AddBalanceRequest)(nil), "ethermint.evm.v1.AddBalanceRequest") + proto.RegisterType((*AddBalanceResponse)(nil), "ethermint.evm.v1.AddBalanceResponse") + proto.RegisterType((*SubBalanceRequest)(nil), "ethermint.evm.v1.SubBalanceRequest") + proto.RegisterType((*SubBalanceResponse)(nil), "ethermint.evm.v1.SubBalanceResponse") + proto.RegisterType((*GetBalanceRequest)(nil), "ethermint.evm.v1.GetBalanceRequest") + proto.RegisterType((*GetBalanceResponse)(nil), "ethermint.evm.v1.GetBalanceResponse") + proto.RegisterType((*GetAccountRequest)(nil), "ethermint.evm.v1.GetAccountRequest") + proto.RegisterType((*GetAccountResponse)(nil), "ethermint.evm.v1.GetAccountResponse") + proto.RegisterType((*GetStateRequest)(nil), "ethermint.evm.v1.GetStateRequest") + proto.RegisterType((*GetStateResponse)(nil), "ethermint.evm.v1.GetStateResponse") + proto.RegisterType((*GetCodeRequest)(nil), "ethermint.evm.v1.GetCodeRequest") + proto.RegisterType((*GetCodeResponse)(nil), "ethermint.evm.v1.GetCodeResponse") + proto.RegisterType((*SetAccountRequest)(nil), "ethermint.evm.v1.SetAccountRequest") + proto.RegisterType((*SetAccountResponse)(nil), "ethermint.evm.v1.SetAccountResponse") + proto.RegisterType((*SetStateRequest)(nil), "ethermint.evm.v1.SetStateRequest") + proto.RegisterType((*SetStateResponse)(nil), "ethermint.evm.v1.SetStateResponse") + proto.RegisterType((*SetCodeRequest)(nil), "ethermint.evm.v1.SetCodeRequest") + proto.RegisterType((*SetCodeResponse)(nil), "ethermint.evm.v1.SetCodeResponse") + proto.RegisterType((*DeleteAccountRequest)(nil), "ethermint.evm.v1.DeleteAccountRequest") + proto.RegisterType((*DeleteAccountResponse)(nil), "ethermint.evm.v1.DeleteAccountResponse") +} + +func init() { proto.RegisterFile("ethermint/evm/v1/query.proto", fileDescriptor_e15a877459347994) } + +var fileDescriptor_e15a877459347994 = []byte{ + // 2099 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x5f, 0x6f, 0x1b, 0xc7, + 0x11, 0xd7, 0x89, 0x94, 0x48, 0x8d, 0x64, 0x5b, 0x5e, 0x4b, 0x31, 0x75, 0xd6, 0x3f, 0xaf, 0xfe, + 0xda, 0x96, 0x8f, 0x95, 0x1a, 0xc4, 0x68, 0x80, 0xa2, 0x91, 0x14, 0xc7, 0x4d, 0x63, 0x17, 0x2e, + 0x29, 0xf4, 0xa1, 0x40, 0xc1, 0x2e, 0x79, 0xeb, 0x23, 0x21, 0x92, 0xc7, 0xdc, 0x2e, 0x59, 0x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 0xaf, 0x61, 0x53, 0x56, 0x98, 0x91, 0x58, 0x83, 0x09, + 0x7c, 0x06, 0x57, 0xee, 0x32, 0xde, 0x68, 0x11, 0x4e, 0xef, 0x91, 0x40, 0x4d, 0x8b, 0x90, 0x71, + 0x88, 0x7f, 0xb4, 0x6c, 0x49, 0xfc, 0x8a, 0x19, 0x8f, 0x72, 0x79, 0xaa, 0x85, 0x92, 0xf8, 0x15, + 0x32, 0x7b, 0xad, 0x0a, 0xf5, 0x3c, 0xd7, 0xbf, 0xe9, 0x73, 0xa5, 0x5c, 0xaf, 0x75, 0x57, 0x0c, + 0xf1, 0x97, 0x19, 0xed, 0x1e, 0x22, 0x33, 0x9d, 0xf5, 0xb5, 0xca, 0x0e, 0x21, 0xd3, 0x62, 0x8e, + 0x52, 0xfd, 0x46, 0x5c, 0xf5, 0x0f, 0x98, 0x73, 0x57, 0xcc, 0xd1, 0x6e, 0xeb, 0xac, 0x5f, 0x12, + 0xb4, 0xe8, 0x35, 0x58, 0x08, 0xa7, 0x37, 0x29, 0x69, 0xfe, 0x68, 0x2d, 0xbe, 0x57, 0x8a, 0x3a, + 0x95, 0x44, 0xa5, 0x79, 0x1e, 0x0c, 0xd0, 0x29, 0x2c, 0x74, 0x3c, 0x6a, 0xd3, 0x1a, 0x65, 0xcc, + 0xf5, 0x58, 0x21, 0x2b, 0x7d, 0x73, 0xac, 0xf4, 0xc8, 0x26, 0x11, 0x70, 0xab, 0x4d, 0xb7, 0x76, + 0xae, 0x43, 0xdb, 0x8c, 0x54, 0xf2, 0xbc, 0x9c, 0xf3, 0x03, 0x1b, 0x5a, 0x03, 0xf0, 0x49, 0xe4, + 0xfd, 0x9b, 0x95, 0x1a, 0x99, 0x93, 0x33, 0x32, 0x65, 0x9d, 0xea, 0x65, 0x91, 0x55, 0x0b, 0x39, + 0x79, 0x0c, 0xd3, 0xf2, 0x53, 0xae, 0xa5, 0x53, 0xae, 0x75, 0xa6, 0x53, 0xee, 0x49, 0x5e, 0xf8,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xbc, 0x8f, 0x3e, 0x32, 0x00, 0x82, 0x72, 0x11, + 0xed, 0xa7, 0xb1, 0x0e, 0x57, 0xf8, 0xe6, 0x8d, 0x09, 0x28, 0x15, 0x8e, 0x1d, 0x89, 0x63, 0x03, + 0xad, 0x8d, 0xc2, 0x21, 0x6b, 0x67, 0xf4, 0x5b, 0x03, 0xe6, 0x06, 0x8d, 0x07, 0xda, 0x4b, 0xe3, + 0x1f, 0x36, 0xc7, 0xfe, 0x78, 0x42, 0x85, 0x63, 0x5b, 0xe2, 0x58, 0x47, 0xab, 0xa3, 0x70, 0x48, + 0x7f, 0x78, 0x4f, 0x04, 0x25, 0x59, 0xbb, 0xa6, 0x04, 0xa5, 0x70, 0xc1, 0x9c, 0x12, 0x94, 0x22, + 0x05, 0x74, 0x9a, 0x3d, 0x74, 0x61, 0x8d, 0xde, 0x57, 0x35, 0xb9, 0xaa, 0x84, 0x65, 0xc2, 0x7e, + 0xfd, 0x24, 0xc9, 0x2b, 0xa3, 0x55, 0xb5, 0x79, 0x3d, 0x85, 0x62, 0xbc, 0x7c, 0x87, 0x72, 0x99, + 0xf4, 0xd1, 0xc7, 0x06, 0x2c, 0x3f, 0x74, 0x19, 0x0f, 0x0a, 0x60, 0x0d, 0x21, 0x21, 0xd4, 0xc4, + 0xea, 0x70, 0x73, 0x3b, 0x9d, 0x28, 0xea, 0x10, 0x38, 0xc1, 0x21, 0x88, 0x6d, 0x57, 0xf4, 0x13, + 0xbf, 0xc6, 0x12, 0x14, 0xc5, 0x29, 0x58, 0x62, 0xb5, 0x79, 0x12, 0x96, 0x84, 0xf2, 0x3a, 0x05, + 0x0b, 0xeb, 0x56, 0x07, 0x58, 0xfe, 0x60, 0xa8, 0x5e, 0x37, 0x28, 0xa6, 0x53, 0xc0, 0xc4, 0x0a, + 0xf6, 0x24, 0x30, 0xf1, 0xb2, 0x3c, 0xed, 0xa6, 0x08, 0x0b, 0x25, 0x81, 0x51, 0x09, 0x39, 0x1d, + 0xcc, 0x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, 0x57, 0x5f, 0x72, 0x93, 0x4f, 0x43, 0xd5, + 0x59, 0xf9, 0x0a, 0xf5, 0xfd, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x59, 0xcb, 0xf9, 0xb8, + 0x1e, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Account queries an Ethereum account. + Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) + // CosmosAccount queries an Ethereum account's Cosmos Address. + CosmosAccount(ctx context.Context, in *QueryCosmosAccountRequest, opts ...grpc.CallOption) (*QueryCosmosAccountResponse, error) + // ValidatorAccount queries an Ethereum account's from a validator consensus + // Address. + ValidatorAccount(ctx context.Context, in *QueryValidatorAccountRequest, opts ...grpc.CallOption) (*QueryValidatorAccountResponse, error) + // Balance queries the balance of a the EVM denomination for a single + // EthAccount. + Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) + // Storage queries the balance of all coins for a single account. + Storage(ctx context.Context, in *QueryStorageRequest, opts ...grpc.CallOption) (*QueryStorageResponse, error) + // Code queries the balance of all coins for a single account. + Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error) + // Params queries the parameters of x/evm module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // EthCall implements the `eth_call` rpc api + EthCall(ctx context.Context, in *EthCallRequest, opts ...grpc.CallOption) (*MsgEthereumTxResponse, error) + // EstimateGas implements the `eth_estimateGas` rpc api + EstimateGas(ctx context.Context, in *EthCallRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error) + // TraceTx implements the `debug_traceTransaction` rpc api + TraceTx(ctx context.Context, in *QueryTraceTxRequest, opts ...grpc.CallOption) (*QueryTraceTxResponse, error) + // TraceBlock implements the `debug_traceBlockByNumber` and `debug_traceBlockByHash` rpc api + TraceBlock(ctx context.Context, in *QueryTraceBlockRequest, opts ...grpc.CallOption) (*QueryTraceBlockResponse, error) + // TraceCall implements the `debug_traceCall` rpc api + TraceCall(ctx context.Context, in *QueryTraceCallRequest, opts ...grpc.CallOption) (*QueryTraceCallResponse, error) + // BaseFee queries the base fee of the parent block of the current block, + // it's similar to feemarket module's method, but also checks london hardfork status. + BaseFee(ctx context.Context, in *QueryBaseFeeRequest, opts ...grpc.CallOption) (*QueryBaseFeeResponse, error) + // ----------------------------------------- + // Query clients for evm keeper statedb access + QueryGetHashStateDB(ctx context.Context, in *GetHashRequest, opts ...grpc.CallOption) (*GetHashResponse, error) + PostAddBalanceStateDB(ctx context.Context, in *AddBalanceRequest, opts ...grpc.CallOption) (*AddBalanceResponse, error) + PostSubBalanceStateDB(ctx context.Context, in *SubBalanceRequest, opts ...grpc.CallOption) (*SubBalanceResponse, error) + QueryGetBalanceStateDB(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) + QueryGetAccountStateDB(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) + QueryGetStateStateDB(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) + QueryGetCodeStateDB(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error) + PostSetAccountStateDB(ctx context.Context, in *SetAccountRequest, opts ...grpc.CallOption) (*SetAccountResponse, error) + PostSetStateStateDB(ctx context.Context, in *SetStateRequest, opts ...grpc.CallOption) (*SetStateResponse, error) + PostSetCodeStateDB(ctx context.Context, in *SetCodeRequest, opts ...grpc.CallOption) (*SetCodeResponse, error) + PostDeleteAccountStateDB(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) { + out := new(QueryAccountResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Account", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *EthCallRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) CosmosAccount(ctx context.Context, in *QueryCosmosAccountRequest, opts ...grpc.CallOption) (*QueryCosmosAccountResponse, error) { + out := new(QueryCosmosAccountResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/CosmosAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *EthCallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Overrides) > 0 { - i -= len(m.Overrides) - copy(dAtA[i:], m.Overrides) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Overrides))) - i-- - dAtA[i] = 0x2a - } - if m.ChainId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) - i-- - dAtA[i] = 0x20 - } - if len(m.ProposerAddress) > 0 { - i -= len(m.ProposerAddress) - copy(dAtA[i:], m.ProposerAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ProposerAddress))) - i-- - dAtA[i] = 0x1a - } - if m.GasCap != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GasCap)) - i-- - dAtA[i] = 0x10 - } - if len(m.Args) > 0 { - i -= len(m.Args) - copy(dAtA[i:], m.Args) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Args))) - i-- - dAtA[i] = 0xa +func (c *queryClient) ValidatorAccount(ctx context.Context, in *QueryValidatorAccountRequest, opts ...grpc.CallOption) (*QueryValidatorAccountResponse, error) { + out := new(QueryValidatorAccountResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/ValidatorAccount", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *EstimateGasResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { + out := new(QueryBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Balance", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *EstimateGasResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) Storage(ctx context.Context, in *QueryStorageRequest, opts ...grpc.CallOption) (*QueryStorageResponse, error) { + out := new(QueryStorageResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Storage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *EstimateGasResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VmError) > 0 { - i -= len(m.VmError) - copy(dAtA[i:], m.VmError) - i = encodeVarintQuery(dAtA, i, uint64(len(m.VmError))) - i-- - dAtA[i] = 0x1a +func (c *queryClient) Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error) { + out := new(QueryCodeResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Code", in, out, opts...) + if err != nil { + return nil, err } - if len(m.Ret) > 0 { - i -= len(m.Ret) - copy(dAtA[i:], m.Ret) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Ret))) - i-- - dAtA[i] = 0x12 + return out, nil +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/Params", in, out, opts...) + if err != nil { + return nil, err } - if m.Gas != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) - i-- - dAtA[i] = 0x8 + return out, nil +} + +func (c *queryClient) EthCall(ctx context.Context, in *EthCallRequest, opts ...grpc.CallOption) (*MsgEthereumTxResponse, error) { + out := new(MsgEthereumTxResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/EthCall", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryTraceTxRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) EstimateGas(ctx context.Context, in *EthCallRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error) { + out := new(EstimateGasResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/EstimateGas", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *QueryTraceTxRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) TraceTx(ctx context.Context, in *QueryTraceTxRequest, opts ...grpc.CallOption) (*QueryTraceTxResponse, error) { + out := new(QueryTraceTxResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/TraceTx", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *QueryTraceTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChainId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) - i-- - dAtA[i] = 0x48 - } - if len(m.ProposerAddress) > 0 { - i -= len(m.ProposerAddress) - copy(dAtA[i:], m.ProposerAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ProposerAddress))) - i-- - dAtA[i] = 0x42 - } - n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.BlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime):]) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintQuery(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x3a - if len(m.BlockHash) > 0 { - i -= len(m.BlockHash) - copy(dAtA[i:], m.BlockHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) - i-- - dAtA[i] = 0x32 - } - if m.BlockNumber != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) - i-- - dAtA[i] = 0x28 - } - if len(m.Predecessors) > 0 { - for iNdEx := len(m.Predecessors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Predecessors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if m.TraceConfig != nil { - { - size, err := m.TraceConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Msg != nil { - { - size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (c *queryClient) TraceBlock(ctx context.Context, in *QueryTraceBlockRequest, opts ...grpc.CallOption) (*QueryTraceBlockResponse, error) { + out := new(QueryTraceBlockResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/TraceBlock", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryTraceTxResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) TraceCall(ctx context.Context, in *QueryTraceCallRequest, opts ...grpc.CallOption) (*QueryTraceCallResponse, error) { + out := new(QueryTraceCallResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/TraceCall", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *QueryTraceTxResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) BaseFee(ctx context.Context, in *QueryBaseFeeRequest, opts ...grpc.CallOption) (*QueryBaseFeeResponse, error) { + out := new(QueryBaseFeeResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/BaseFee", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *QueryTraceTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0xa +func (c *queryClient) QueryGetHashStateDB(ctx context.Context, in *GetHashRequest, opts ...grpc.CallOption) (*GetHashResponse, error) { + out := new(GetHashResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetHashStateDB", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryTraceCallRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) PostAddBalanceStateDB(ctx context.Context, in *AddBalanceRequest, opts ...grpc.CallOption) (*AddBalanceResponse, error) { + out := new(AddBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostAddBalanceStateDB", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *QueryTraceCallRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) PostSubBalanceStateDB(ctx context.Context, in *SubBalanceRequest, opts ...grpc.CallOption) (*SubBalanceResponse, error) { + out := new(SubBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostSubBalanceStateDB", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *QueryTraceCallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChainId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) - i-- - dAtA[i] = 0x40 - } - n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.BlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime):]) - if err7 != nil { - return 0, err7 - } - i -= n7 - i = encodeVarintQuery(dAtA, i, uint64(n7)) - i-- - dAtA[i] = 0x3a - if len(m.BlockHash) > 0 { - i -= len(m.BlockHash) - copy(dAtA[i:], m.BlockHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) - i-- - dAtA[i] = 0x32 - } - if m.BlockNumber != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) - i-- - dAtA[i] = 0x28 - } - if m.TraceConfig != nil { - { - size, err := m.TraceConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ProposerAddress) > 0 { - i -= len(m.ProposerAddress) - copy(dAtA[i:], m.ProposerAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ProposerAddress))) - i-- - dAtA[i] = 0x1a - } - if m.GasCap != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GasCap)) - i-- - dAtA[i] = 0x10 - } - if len(m.Args) > 0 { - i -= len(m.Args) - copy(dAtA[i:], m.Args) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Args))) - i-- - dAtA[i] = 0xa +func (c *queryClient) QueryGetBalanceStateDB(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) { + out := new(GetBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetBalanceStateDB", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryTraceCallResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) QueryGetAccountStateDB(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { + out := new(GetAccountResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetAccountStateDB", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *QueryTraceCallResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) QueryGetStateStateDB(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) { + out := new(GetStateResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetStateStateDB", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *QueryTraceCallResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0xa +func (c *queryClient) QueryGetCodeStateDB(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error) { + out := new(GetCodeResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetCodeStateDB", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryTraceBlockRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) PostSetAccountStateDB(ctx context.Context, in *SetAccountRequest, opts ...grpc.CallOption) (*SetAccountResponse, error) { + out := new(SetAccountResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostSetAccountStateDB", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *QueryTraceBlockRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) PostSetStateStateDB(ctx context.Context, in *SetStateRequest, opts ...grpc.CallOption) (*SetStateResponse, error) { + out := new(SetStateResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostSetStateStateDB", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *QueryTraceBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChainId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) - i-- - dAtA[i] = 0x48 +func (c *queryClient) PostSetCodeStateDB(ctx context.Context, in *SetCodeRequest, opts ...grpc.CallOption) (*SetCodeResponse, error) { + out := new(SetCodeResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostSetCodeStateDB", in, out, opts...) + if err != nil { + return nil, err } - if len(m.ProposerAddress) > 0 { - i -= len(m.ProposerAddress) - copy(dAtA[i:], m.ProposerAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ProposerAddress))) - i-- - dAtA[i] = 0x42 + return out, nil +} + +func (c *queryClient) PostDeleteAccountStateDB(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error) { + out := new(DeleteAccountResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostDeleteAccountStateDB", in, out, opts...) + if err != nil { + return nil, err } - n9, err9 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.BlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime):]) - if err9 != nil { - return 0, err9 - } - i -= n9 - i = encodeVarintQuery(dAtA, i, uint64(n9)) - i-- - dAtA[i] = 0x3a - if len(m.BlockHash) > 0 { - i -= len(m.BlockHash) - copy(dAtA[i:], m.BlockHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) - i-- - dAtA[i] = 0x32 - } - if m.BlockNumber != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) - i-- - dAtA[i] = 0x28 - } - if m.TraceConfig != nil { - { - size, err := m.TraceConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Txs) > 0 { - for iNdEx := len(m.Txs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Txs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryTraceBlockResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// QueryServer is the server API for Query service. +type QueryServer interface { + // Account queries an Ethereum account. + Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error) + // CosmosAccount queries an Ethereum account's Cosmos Address. + CosmosAccount(context.Context, *QueryCosmosAccountRequest) (*QueryCosmosAccountResponse, error) + // ValidatorAccount queries an Ethereum account's from a validator consensus + // Address. + ValidatorAccount(context.Context, *QueryValidatorAccountRequest) (*QueryValidatorAccountResponse, error) + // Balance queries the balance of a the EVM denomination for a single + // EthAccount. + Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) + // Storage queries the balance of all coins for a single account. + Storage(context.Context, *QueryStorageRequest) (*QueryStorageResponse, error) + // Code queries the balance of all coins for a single account. + Code(context.Context, *QueryCodeRequest) (*QueryCodeResponse, error) + // Params queries the parameters of x/evm module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // EthCall implements the `eth_call` rpc api + EthCall(context.Context, *EthCallRequest) (*MsgEthereumTxResponse, error) + // EstimateGas implements the `eth_estimateGas` rpc api + EstimateGas(context.Context, *EthCallRequest) (*EstimateGasResponse, error) + // TraceTx implements the `debug_traceTransaction` rpc api + TraceTx(context.Context, *QueryTraceTxRequest) (*QueryTraceTxResponse, error) + // TraceBlock implements the `debug_traceBlockByNumber` and `debug_traceBlockByHash` rpc api + TraceBlock(context.Context, *QueryTraceBlockRequest) (*QueryTraceBlockResponse, error) + // TraceCall implements the `debug_traceCall` rpc api + TraceCall(context.Context, *QueryTraceCallRequest) (*QueryTraceCallResponse, error) + // BaseFee queries the base fee of the parent block of the current block, + // it's similar to feemarket module's method, but also checks london hardfork status. + BaseFee(context.Context, *QueryBaseFeeRequest) (*QueryBaseFeeResponse, error) + // ----------------------------------------- + // Query clients for evm keeper statedb access + QueryGetHashStateDB(context.Context, *GetHashRequest) (*GetHashResponse, error) + PostAddBalanceStateDB(context.Context, *AddBalanceRequest) (*AddBalanceResponse, error) + PostSubBalanceStateDB(context.Context, *SubBalanceRequest) (*SubBalanceResponse, error) + QueryGetBalanceStateDB(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) + QueryGetAccountStateDB(context.Context, *GetAccountRequest) (*GetAccountResponse, error) + QueryGetStateStateDB(context.Context, *GetStateRequest) (*GetStateResponse, error) + QueryGetCodeStateDB(context.Context, *GetCodeRequest) (*GetCodeResponse, error) + PostSetAccountStateDB(context.Context, *SetAccountRequest) (*SetAccountResponse, error) + PostSetStateStateDB(context.Context, *SetStateRequest) (*SetStateResponse, error) + PostSetCodeStateDB(context.Context, *SetCodeRequest) (*SetCodeResponse, error) + PostDeleteAccountStateDB(context.Context, *DeleteAccountRequest) (*DeleteAccountResponse, error) } -func (m *QueryTraceBlockResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { } -func (m *QueryTraceBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*QueryAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Account not implemented") } - -func (m *QueryBaseFeeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedQueryServer) CosmosAccount(ctx context.Context, req *QueryCosmosAccountRequest) (*QueryCosmosAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CosmosAccount not implemented") } - -func (m *QueryBaseFeeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedQueryServer) ValidatorAccount(ctx context.Context, req *QueryValidatorAccountRequest) (*QueryValidatorAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidatorAccount not implemented") } - -func (m *QueryBaseFeeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") } - -func (m *QueryBaseFeeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedQueryServer) Storage(ctx context.Context, req *QueryStorageRequest) (*QueryStorageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Storage not implemented") } - -func (m *QueryBaseFeeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryCodeRequest) (*QueryCodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Code not implemented") +} +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) EthCall(ctx context.Context, req *EthCallRequest) (*MsgEthereumTxResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EthCall not implemented") +} +func (*UnimplementedQueryServer) EstimateGas(ctx context.Context, req *EthCallRequest) (*EstimateGasResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EstimateGas not implemented") +} +func (*UnimplementedQueryServer) TraceTx(ctx context.Context, req *QueryTraceTxRequest) (*QueryTraceTxResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TraceTx not implemented") +} +func (*UnimplementedQueryServer) TraceBlock(ctx context.Context, req *QueryTraceBlockRequest) (*QueryTraceBlockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TraceBlock not implemented") +} +func (*UnimplementedQueryServer) TraceCall(ctx context.Context, req *QueryTraceCallRequest) (*QueryTraceCallResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TraceCall not implemented") +} +func (*UnimplementedQueryServer) BaseFee(ctx context.Context, req *QueryBaseFeeRequest) (*QueryBaseFeeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BaseFee not implemented") +} +func (*UnimplementedQueryServer) QueryGetHashStateDB(ctx context.Context, req *GetHashRequest) (*GetHashResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryGetHashStateDB not implemented") +} +func (*UnimplementedQueryServer) PostAddBalanceStateDB(ctx context.Context, req *AddBalanceRequest) (*AddBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PostAddBalanceStateDB not implemented") +} +func (*UnimplementedQueryServer) PostSubBalanceStateDB(ctx context.Context, req *SubBalanceRequest) (*SubBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PostSubBalanceStateDB not implemented") +} +func (*UnimplementedQueryServer) QueryGetBalanceStateDB(ctx context.Context, req *GetBalanceRequest) (*GetBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryGetBalanceStateDB not implemented") +} +func (*UnimplementedQueryServer) QueryGetAccountStateDB(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryGetAccountStateDB not implemented") +} +func (*UnimplementedQueryServer) QueryGetStateStateDB(ctx context.Context, req *GetStateRequest) (*GetStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryGetStateStateDB not implemented") +} +func (*UnimplementedQueryServer) QueryGetCodeStateDB(ctx context.Context, req *GetCodeRequest) (*GetCodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryGetCodeStateDB not implemented") +} +func (*UnimplementedQueryServer) PostSetAccountStateDB(ctx context.Context, req *SetAccountRequest) (*SetAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PostSetAccountStateDB not implemented") +} +func (*UnimplementedQueryServer) PostSetStateStateDB(ctx context.Context, req *SetStateRequest) (*SetStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PostSetStateStateDB not implemented") +} +func (*UnimplementedQueryServer) PostSetCodeStateDB(ctx context.Context, req *SetCodeRequest) (*SetCodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PostSetCodeStateDB not implemented") +} +func (*UnimplementedQueryServer) PostDeleteAccountStateDB(ctx context.Context, req *DeleteAccountRequest) (*DeleteAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PostDeleteAccountStateDB not implemented") } -func (m *QueryBaseFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BaseFee != nil { - { - size := m.BaseFee.Size() - i -= size - if _, err := m.BaseFee.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func _Query_Account_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAccountRequest) + if err := dec(in); err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryAccountRequest) Size() (n int) { - if m == nil { - return 0 + if interceptor == nil { + return srv.(QueryServer).Account(ctx, in) } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/Account", } - return n + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Account(ctx, req.(*QueryAccountRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryAccountResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_CosmosAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCosmosAccountRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Balance) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).CosmosAccount(ctx, in) } - l = len(m.CodeHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/CosmosAccount", } - if m.Nonce != 0 { - n += 1 + sovQuery(uint64(m.Nonce)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CosmosAccount(ctx, req.(*QueryCosmosAccountRequest)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *QueryCosmosAccountRequest) Size() (n int) { - if m == nil { - return 0 +func _Query_ValidatorAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryValidatorAccountRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).ValidatorAccount(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/ValidatorAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ValidatorAccount(ctx, req.(*QueryValidatorAccountRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryCosmosAccountResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBalanceRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.CosmosAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).Balance(ctx, in) } - if m.Sequence != 0 { - n += 1 + sovQuery(uint64(m.Sequence)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/Balance", } - if m.AccountNumber != 0 { - n += 1 + sovQuery(uint64(m.AccountNumber)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *QueryValidatorAccountRequest) Size() (n int) { - if m == nil { - return 0 +func _Query_Storage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStorageRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.ConsAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).Storage(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/Storage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Storage(ctx, req.(*QueryStorageRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryValidatorAccountResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_Code_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCodeRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.AccountAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).Code(ctx, in) } - if m.Sequence != 0 { - n += 1 + sovQuery(uint64(m.Sequence)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/Code", } - if m.AccountNumber != 0 { - n += 1 + sovQuery(uint64(m.AccountNumber)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Code(ctx, req.(*QueryCodeRequest)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *QueryBalanceRequest) Size() (n int) { - if m == nil { - return 0 +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) } - return n -} - -func (m *QueryBalanceResponse) Size() (n int) { - if m == nil { - return 0 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/Params", } - var l int - _ = l - l = len(m.Balance) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *QueryStorageRequest) Size() (n int) { - if m == nil { - return 0 +func _Query_EthCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EthCallRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).EthCall(ctx, in) } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/EthCall", } - return n + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EthCall(ctx, req.(*EthCallRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryStorageResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_EstimateGas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EthCallRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Value) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).EstimateGas(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/EstimateGas", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EstimateGas(ctx, req.(*EthCallRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryCodeRequest) Size() (n int) { - if m == nil { - return 0 +func _Query_TraceTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTraceTxRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).TraceTx(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/TraceTx", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TraceTx(ctx, req.(*QueryTraceTxRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryCodeResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_TraceBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTraceBlockRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Code) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).TraceBlock(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/TraceBlock", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TraceBlock(ctx, req.(*QueryTraceBlockRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryTxLogsRequest) Size() (n int) { - if m == nil { - return 0 +func _Query_TraceCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTraceCallRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Hash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).TraceCall(ctx, in) } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/TraceCall", } - return n + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TraceCall(ctx, req.(*QueryTraceCallRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryTxLogsResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_BaseFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBaseFeeRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - if len(m.Logs) > 0 { - for _, e := range m.Logs { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } + if interceptor == nil { + return srv.(QueryServer).BaseFee(ctx, in) } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/BaseFee", } - return n -} - -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BaseFee(ctx, req.(*QueryBaseFeeRequest)) } - var l int - _ = l - return n + return interceptor(ctx, in, info, handler) } -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_QueryGetHashStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetHashRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *EthCallRequest) Size() (n int) { - if m == nil { - return 0 + if interceptor == nil { + return srv.(QueryServer).QueryGetHashStateDB(ctx, in) } - var l int - _ = l - l = len(m.Args) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/QueryGetHashStateDB", } - if m.GasCap != 0 { - n += 1 + sovQuery(uint64(m.GasCap)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryGetHashStateDB(ctx, req.(*GetHashRequest)) } - l = len(m.ProposerAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + return interceptor(ctx, in, info, handler) +} + +func _Query_PostAddBalanceStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddBalanceRequest) + if err := dec(in); err != nil { + return nil, err } - if m.ChainId != 0 { - n += 1 + sovQuery(uint64(m.ChainId)) + if interceptor == nil { + return srv.(QueryServer).PostAddBalanceStateDB(ctx, in) } - l = len(m.Overrides) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/PostAddBalanceStateDB", } - return n + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PostAddBalanceStateDB(ctx, req.(*AddBalanceRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *EstimateGasResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_PostSubBalanceStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SubBalanceRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - if m.Gas != 0 { - n += 1 + sovQuery(uint64(m.Gas)) + if interceptor == nil { + return srv.(QueryServer).PostSubBalanceStateDB(ctx, in) } - l = len(m.Ret) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/PostSubBalanceStateDB", } - l = len(m.VmError) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PostSubBalanceStateDB(ctx, req.(*SubBalanceRequest)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *QueryTraceTxRequest) Size() (n int) { - if m == nil { - return 0 +func _Query_QueryGetBalanceStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBalanceRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - if m.Msg != nil { - l = m.Msg.Size() - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).QueryGetBalanceStateDB(ctx, in) } - if m.TraceConfig != nil { - l = m.TraceConfig.Size() - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/QueryGetBalanceStateDB", } - if len(m.Predecessors) > 0 { - for _, e := range m.Predecessors { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryGetBalanceStateDB(ctx, req.(*GetBalanceRequest)) } - if m.BlockNumber != 0 { - n += 1 + sovQuery(uint64(m.BlockNumber)) + return interceptor(ctx, in, info, handler) +} + +func _Query_QueryGetAccountStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAccountRequest) + if err := dec(in); err != nil { + return nil, err } - l = len(m.BlockHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).QueryGetAccountStateDB(ctx, in) } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime) - n += 1 + l + sovQuery(uint64(l)) - l = len(m.ProposerAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/QueryGetAccountStateDB", } - if m.ChainId != 0 { - n += 1 + sovQuery(uint64(m.ChainId)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryGetAccountStateDB(ctx, req.(*GetAccountRequest)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *QueryTraceTxResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_QueryGetStateStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStateRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Data) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).QueryGetStateStateDB(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/QueryGetStateStateDB", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryGetStateStateDB(ctx, req.(*GetStateRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryTraceCallRequest) Size() (n int) { - if m == nil { - return 0 +func _Query_QueryGetCodeStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCodeRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Args) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).QueryGetCodeStateDB(ctx, in) } - if m.GasCap != 0 { - n += 1 + sovQuery(uint64(m.GasCap)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/QueryGetCodeStateDB", } - l = len(m.ProposerAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryGetCodeStateDB(ctx, req.(*GetCodeRequest)) } - if m.TraceConfig != nil { - l = m.TraceConfig.Size() - n += 1 + l + sovQuery(uint64(l)) + return interceptor(ctx, in, info, handler) +} + +func _Query_PostSetAccountStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetAccountRequest) + if err := dec(in); err != nil { + return nil, err } - if m.BlockNumber != 0 { - n += 1 + sovQuery(uint64(m.BlockNumber)) + if interceptor == nil { + return srv.(QueryServer).PostSetAccountStateDB(ctx, in) } - l = len(m.BlockHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/PostSetAccountStateDB", } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime) - n += 1 + l + sovQuery(uint64(l)) - if m.ChainId != 0 { - n += 1 + sovQuery(uint64(m.ChainId)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PostSetAccountStateDB(ctx, req.(*SetAccountRequest)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *QueryTraceCallResponse) Size() (n int) { - if m == nil { - return 0 +func _Query_PostSetStateStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetStateRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Data) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).PostSetStateStateDB(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/PostSetStateStateDB", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PostSetStateStateDB(ctx, req.(*SetStateRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryTraceBlockRequest) Size() (n int) { - if m == nil { - return 0 +func _Query_PostSetCodeStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetCodeRequest) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - if len(m.Txs) > 0 { - for _, e := range m.Txs { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } + if interceptor == nil { + return srv.(QueryServer).PostSetCodeStateDB(ctx, in) } - if m.TraceConfig != nil { - l = m.TraceConfig.Size() - n += 1 + l + sovQuery(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/PostSetCodeStateDB", } - if m.BlockNumber != 0 { - n += 1 + sovQuery(uint64(m.BlockNumber)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PostSetCodeStateDB(ctx, req.(*SetCodeRequest)) } - l = len(m.BlockHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + return interceptor(ctx, in, info, handler) +} + +func _Query_PostDeleteAccountStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteAccountRequest) + if err := dec(in); err != nil { + return nil, err } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime) - n += 1 + l + sovQuery(uint64(l)) - l = len(m.ProposerAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if interceptor == nil { + return srv.(QueryServer).PostDeleteAccountStateDB(ctx, in) } - if m.ChainId != 0 { - n += 1 + sovQuery(uint64(m.ChainId)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/PostDeleteAccountStateDB", } - return n + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PostDeleteAccountStateDB(ctx, req.(*DeleteAccountRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryTraceBlockResponse) Size() (n int) { - if m == nil { - return 0 +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "ethermint.evm.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Account", + Handler: _Query_Account_Handler, + }, + { + MethodName: "CosmosAccount", + Handler: _Query_CosmosAccount_Handler, + }, + { + MethodName: "ValidatorAccount", + Handler: _Query_ValidatorAccount_Handler, + }, + { + MethodName: "Balance", + Handler: _Query_Balance_Handler, + }, + { + MethodName: "Storage", + Handler: _Query_Storage_Handler, + }, + { + MethodName: "Code", + Handler: _Query_Code_Handler, + }, + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "EthCall", + Handler: _Query_EthCall_Handler, + }, + { + MethodName: "EstimateGas", + Handler: _Query_EstimateGas_Handler, + }, + { + MethodName: "TraceTx", + Handler: _Query_TraceTx_Handler, + }, + { + MethodName: "TraceBlock", + Handler: _Query_TraceBlock_Handler, + }, + { + MethodName: "TraceCall", + Handler: _Query_TraceCall_Handler, + }, + { + MethodName: "BaseFee", + Handler: _Query_BaseFee_Handler, + }, + { + MethodName: "QueryGetHashStateDB", + Handler: _Query_QueryGetHashStateDB_Handler, + }, + { + MethodName: "PostAddBalanceStateDB", + Handler: _Query_PostAddBalanceStateDB_Handler, + }, + { + MethodName: "PostSubBalanceStateDB", + Handler: _Query_PostSubBalanceStateDB_Handler, + }, + { + MethodName: "QueryGetBalanceStateDB", + Handler: _Query_QueryGetBalanceStateDB_Handler, + }, + { + MethodName: "QueryGetAccountStateDB", + Handler: _Query_QueryGetAccountStateDB_Handler, + }, + { + MethodName: "QueryGetStateStateDB", + Handler: _Query_QueryGetStateStateDB_Handler, + }, + { + MethodName: "QueryGetCodeStateDB", + Handler: _Query_QueryGetCodeStateDB_Handler, + }, + { + MethodName: "PostSetAccountStateDB", + Handler: _Query_PostSetAccountStateDB_Handler, + }, + { + MethodName: "PostSetStateStateDB", + Handler: _Query_PostSetStateStateDB_Handler, + }, + { + MethodName: "PostSetCodeStateDB", + Handler: _Query_PostSetCodeStateDB_Handler, + }, + { + MethodName: "PostDeleteAccountStateDB", + Handler: _Query_PostDeleteAccountStateDB_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ethermint/evm/v1/query.proto", +} + +func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Data) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *QueryBaseFeeRequest) Size() (n int) { - if m == nil { - return 0 +func (m *QueryAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Nonce != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x18 + } + if len(m.CodeHash) > 0 { + i -= len(m.CodeHash) + copy(dAtA[i:], m.CodeHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash))) + i-- + dAtA[i] = 0x12 + } + if len(m.Balance) > 0 { + i -= len(m.Balance) + copy(dAtA[i:], m.Balance) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Balance))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryCosmosAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *QueryCosmosAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCosmosAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *QueryBaseFeeResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryCosmosAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *QueryCosmosAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCosmosAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.BaseFee != nil { - l = m.BaseFee.Size() - n += 1 + l + sovQuery(uint64(l)) + if m.AccountNumber != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AccountNumber)) + i-- + dAtA[i] = 0x18 } - return n + if m.Sequence != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x10 + } + if len(m.CosmosAddress) > 0 { + i -= len(m.CosmosAddress) + copy(dAtA[i:], m.CosmosAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CosmosAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 +func (m *QueryValidatorAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + +func (m *QueryValidatorAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + +func (m *QueryValidatorAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ConsAddress) > 0 { + i -= len(m.ConsAddress) + copy(dAtA[i:], m.ConsAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ConsAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryValidatorAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryValidatorAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryValidatorAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AccountNumber != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AccountNumber)) + i-- + dAtA[i] = 0x18 + } + if m.Sequence != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x10 + } + if len(m.AccountAddress) > 0 { + i -= len(m.AccountAddress) + copy(dAtA[i:], m.AccountAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AccountAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Balance) > 0 { + i -= len(m.Balance) + copy(dAtA[i:], m.Balance) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Balance))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryStorageRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryStorageRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryStorageResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryStorageResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryCodeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCodeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryCodeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCodeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTxLogsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTxLogsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTxLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTxLogsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTxLogsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTxLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Logs) > 0 { + for iNdEx := len(m.Logs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Logs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *EthCallRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EthCallRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EthCallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Overrides) > 0 { + i -= len(m.Overrides) + copy(dAtA[i:], m.Overrides) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Overrides))) + i-- + dAtA[i] = 0x2a + } + if m.ChainId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x20 + } + if len(m.ProposerAddress) > 0 { + i -= len(m.ProposerAddress) + copy(dAtA[i:], m.ProposerAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ProposerAddress))) + i-- + dAtA[i] = 0x1a + } + if m.GasCap != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.GasCap)) + i-- + dAtA[i] = 0x10 + } + if len(m.Args) > 0 { + i -= len(m.Args) + copy(dAtA[i:], m.Args) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Args))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EstimateGasResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EstimateGasResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EstimateGasResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.VmError) > 0 { + i -= len(m.VmError) + copy(dAtA[i:], m.VmError) + i = encodeVarintQuery(dAtA, i, uint64(len(m.VmError))) + i-- + dAtA[i] = 0x1a + } + if len(m.Ret) > 0 { + i -= len(m.Ret) + copy(dAtA[i:], m.Ret) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Ret))) + i-- + dAtA[i] = 0x12 + } + if m.Gas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryTraceTxRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTraceTxRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTraceTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ChainId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x48 + } + if len(m.ProposerAddress) > 0 { + i -= len(m.ProposerAddress) + copy(dAtA[i:], m.ProposerAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ProposerAddress))) + i-- + dAtA[i] = 0x42 + } + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.BlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime):]) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintQuery(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0x3a + if len(m.BlockHash) > 0 { + i -= len(m.BlockHash) + copy(dAtA[i:], m.BlockHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) + i-- + dAtA[i] = 0x32 + } + if m.BlockNumber != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) + i-- + dAtA[i] = 0x28 + } + if len(m.Predecessors) > 0 { + for iNdEx := len(m.Predecessors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Predecessors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.TraceConfig != nil { + { + size, err := m.TraceConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Msg != nil { + { + size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTraceTxResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTraceTxResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTraceTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTraceCallRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTraceCallRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTraceCallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ChainId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x40 + } + n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.BlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime):]) + if err7 != nil { + return 0, err7 + } + i -= n7 + i = encodeVarintQuery(dAtA, i, uint64(n7)) + i-- + dAtA[i] = 0x3a + if len(m.BlockHash) > 0 { + i -= len(m.BlockHash) + copy(dAtA[i:], m.BlockHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) + i-- + dAtA[i] = 0x32 + } + if m.BlockNumber != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) + i-- + dAtA[i] = 0x28 + } + if m.TraceConfig != nil { + { + size, err := m.TraceConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.ProposerAddress) > 0 { + i -= len(m.ProposerAddress) + copy(dAtA[i:], m.ProposerAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ProposerAddress))) + i-- + dAtA[i] = 0x1a + } + if m.GasCap != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.GasCap)) + i-- + dAtA[i] = 0x10 + } + if len(m.Args) > 0 { + i -= len(m.Args) + copy(dAtA[i:], m.Args) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Args))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTraceCallResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTraceCallResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTraceCallResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTraceBlockRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTraceBlockRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTraceBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ChainId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x48 + } + if len(m.ProposerAddress) > 0 { + i -= len(m.ProposerAddress) + copy(dAtA[i:], m.ProposerAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ProposerAddress))) + i-- + dAtA[i] = 0x42 + } + n9, err9 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.BlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime):]) + if err9 != nil { + return 0, err9 + } + i -= n9 + i = encodeVarintQuery(dAtA, i, uint64(n9)) + i-- + dAtA[i] = 0x3a + if len(m.BlockHash) > 0 { + i -= len(m.BlockHash) + copy(dAtA[i:], m.BlockHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) + i-- + dAtA[i] = 0x32 + } + if m.BlockNumber != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) + i-- + dAtA[i] = 0x28 + } + if m.TraceConfig != nil { + { + size, err := m.TraceConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Txs) > 0 { + for iNdEx := len(m.Txs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Txs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryTraceBlockResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTraceBlockResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTraceBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryBaseFeeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryBaseFeeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBaseFeeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryBaseFeeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryBaseFeeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBaseFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BaseFee != nil { + { + size := m.BaseFee.Size() + i -= size + if _, err := m.BaseFee.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetHashRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetHashRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetHashResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetHashResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AddBalanceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AddBalanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *SubBalanceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SubBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SubBalanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SubBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *GetBalanceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetBalanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Balance.Size() + i -= size + if _, err := m.Balance.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GetAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Account) > 0 { + i -= len(m.Account) + copy(dAtA[i:], m.Account) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetStateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetStateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + } + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetStateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetStateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetCodeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetCodeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CodeHash) > 0 { + i -= len(m.CodeHash) + copy(dAtA[i:], m.CodeHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetCodeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetCodeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SetAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Account) > 0 { + i -= len(m.Account) + copy(dAtA[i:], m.Account) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) + i-- + dAtA[i] = 0x12 + } + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SetAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *SetStateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetStateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + } + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SetStateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetStateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *SetCodeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetCodeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0x12 + } + if len(m.CodeHash) > 0 { + i -= len(m.CodeHash) + copy(dAtA[i:], m.CodeHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SetCodeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetCodeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *DeleteAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DeleteAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Balance) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.CodeHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Nonce != 0 { + n += 1 + sovQuery(uint64(m.Nonce)) + } + return n +} + +func (m *QueryCosmosAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryCosmosAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CosmosAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Sequence != 0 { + n += 1 + sovQuery(uint64(m.Sequence)) + } + if m.AccountNumber != 0 { + n += 1 + sovQuery(uint64(m.AccountNumber)) + } + return n +} + +func (m *QueryValidatorAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ConsAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryValidatorAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AccountAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Sequence != 0 { + n += 1 + sovQuery(uint64(m.Sequence)) + } + if m.AccountNumber != 0 { + n += 1 + sovQuery(uint64(m.AccountNumber)) + } + return n +} + +func (m *QueryBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Balance) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryStorageRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryStorageResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryCodeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryCodeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTxLogsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTxLogsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Logs) > 0 { + for _, e := range m.Logs { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *EthCallRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Args) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.GasCap != 0 { + n += 1 + sovQuery(uint64(m.GasCap)) + } + l = len(m.ProposerAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.ChainId != 0 { + n += 1 + sovQuery(uint64(m.ChainId)) + } + l = len(m.Overrides) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *EstimateGasResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Gas != 0 { + n += 1 + sovQuery(uint64(m.Gas)) + } + l = len(m.Ret) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.VmError) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTraceTxRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Msg != nil { + l = m.Msg.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.TraceConfig != nil { + l = m.TraceConfig.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.Predecessors) > 0 { + for _, e := range m.Predecessors { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.BlockNumber != 0 { + n += 1 + sovQuery(uint64(m.BlockNumber)) + } + l = len(m.BlockHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime) + n += 1 + l + sovQuery(uint64(l)) + l = len(m.ProposerAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.ChainId != 0 { + n += 1 + sovQuery(uint64(m.ChainId)) + } + return n +} + +func (m *QueryTraceTxResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Data) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTraceCallRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Args) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.GasCap != 0 { + n += 1 + sovQuery(uint64(m.GasCap)) + } + l = len(m.ProposerAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TraceConfig != nil { + l = m.TraceConfig.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.BlockNumber != 0 { + n += 1 + sovQuery(uint64(m.BlockNumber)) + } + l = len(m.BlockHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime) + n += 1 + l + sovQuery(uint64(l)) + if m.ChainId != 0 { + n += 1 + sovQuery(uint64(m.ChainId)) + } + return n +} + +func (m *QueryTraceCallResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Data) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTraceBlockRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Txs) > 0 { + for _, e := range m.Txs { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.TraceConfig != nil { + l = m.TraceConfig.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.BlockNumber != 0 { + n += 1 + sovQuery(uint64(m.BlockNumber)) + } + l = len(m.BlockHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.BlockTime) + n += 1 + l + sovQuery(uint64(l)) + l = len(m.ProposerAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.ChainId != 0 { + n += 1 + sovQuery(uint64(m.ChainId)) + } + return n +} + +func (m *QueryTraceBlockResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Data) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryBaseFeeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryBaseFeeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BaseFee != nil { + l = m.BaseFee.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetHashRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovQuery(uint64(m.Height)) + } + return n +} + +func (m *GetHashResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *AddBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *AddBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *SubBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *SubBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GetBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Balance.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *GetAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Account) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetStateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetStateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetCodeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CodeHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetCodeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *SetAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Account) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *SetAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *SetStateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *SetStateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *SetCodeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CodeHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Code) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *SetCodeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *DeleteAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *DeleteAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAccountRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAccountResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CodeHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCosmosAccountRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryCosmosAccountRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCosmosAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCosmosAccountResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryCosmosAccountResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCosmosAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosmosAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CosmosAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountNumber", wireType) + } + m.AccountNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AccountNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryValidatorAccountRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryValidatorAccountRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryValidatorAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConsAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryValidatorAccountResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryValidatorAccountResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryValidatorAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AccountAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountNumber", wireType) + } + m.AccountNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AccountNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryStorageRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryStorageRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryStorageRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryStorageResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryStorageResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryStorageResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryCodeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCodeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryCodeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) + if m.Code == nil { + m.Code = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTxLogsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTxLogsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTxLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTxLogsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTxLogsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTxLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Logs = append(m.Logs, &Log{}) + if err := m.Logs[len(m.Logs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EthCallRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EthCallRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EthCallRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args[:0], dAtA[iNdEx:postIndex]...) + if m.Args == nil { + m.Args = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GasCap", wireType) + } + m.GasCap = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GasCap |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) + if m.ProposerAddress == nil { + m.ProposerAddress = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Overrides", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Overrides = append(m.Overrides[:0], dAtA[iNdEx:postIndex]...) + if m.Overrides == nil { + m.Overrides = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EstimateGasResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EstimateGasResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EstimateGasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) + } + m.Gas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) + if m.Ret == nil { + m.Ret = []byte{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAccountRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VmError", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3717,7 +7918,7 @@ func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + m.VmError = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3740,7 +7941,7 @@ func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTraceTxRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3763,17 +7964,17 @@ func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAccountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTraceTxRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTraceTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3783,29 +7984,33 @@ func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Balance = string(dAtA[iNdEx:postIndex]) + if m.Msg == nil { + m.Msg = &MsgEthereumTx{} + } + if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TraceConfig", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3815,29 +8020,33 @@ func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.CodeHash = string(dAtA[iNdEx:postIndex]) + if m.TraceConfig == nil { + m.TraceConfig = &TraceConfig{} + } + if err := m.TraceConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Predecessors", wireType) } - m.Nonce = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3847,64 +8056,48 @@ func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Nonce |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthQuery } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCosmosAccountRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + m.Predecessors = append(m.Predecessors, &MsgEthereumTx{}) + if err := m.Predecessors[len(m.Predecessors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - if iNdEx >= l { - return io.ErrUnexpectedEOF + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.BlockNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockNumber |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryCosmosAccountRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCosmosAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3932,63 +8125,13 @@ func (m *QueryCosmosAccountRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + m.BlockHash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCosmosAccountResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryCosmosAccountResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCosmosAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CosmosAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlockTime", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3998,29 +8141,30 @@ func (m *QueryCosmosAccountResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.CosmosAddress = string(dAtA[iNdEx:postIndex]) + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.BlockTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) } - m.Sequence = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4030,16 +8174,31 @@ func (m *QueryCosmosAccountResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Sequence |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) + if m.ProposerAddress == nil { + m.ProposerAddress = []byte{} + } + iNdEx = postIndex + case 9: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountNumber", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) } - m.AccountNumber = 0 + m.ChainId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4049,7 +8208,7 @@ func (m *QueryCosmosAccountResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AccountNumber |= uint64(b&0x7F) << shift + m.ChainId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4075,7 +8234,7 @@ func (m *QueryCosmosAccountResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryValidatorAccountRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTraceTxResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4098,17 +8257,17 @@ func (m *QueryValidatorAccountRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryValidatorAccountRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTraceTxResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryValidatorAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTraceTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConsAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4118,23 +8277,25 @@ func (m *QueryValidatorAccountRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.ConsAddress = string(dAtA[iNdEx:postIndex]) + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -4157,7 +8318,7 @@ func (m *QueryValidatorAccountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryValidatorAccountResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTraceCallRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4180,17 +8341,17 @@ func (m *QueryValidatorAccountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryValidatorAccountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTraceCallRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryValidatorAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTraceCallRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4200,29 +8361,31 @@ func (m *QueryValidatorAccountResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.AccountAddress = string(dAtA[iNdEx:postIndex]) + m.Args = append(m.Args[:0], dAtA[iNdEx:postIndex]...) + if m.Args == nil { + m.Args = []byte{} + } iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GasCap", wireType) } - m.Sequence = 0 + m.GasCap = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4232,16 +8395,16 @@ func (m *QueryValidatorAccountResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Sequence |= uint64(b&0x7F) << shift + m.GasCap |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountNumber", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) } - m.AccountNumber = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4251,66 +8414,31 @@ func (m *QueryValidatorAccountResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AccountNumber |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) + if m.ProposerAddress == nil { + m.ProposerAddress = []byte{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryBalanceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TraceConfig", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4320,79 +8448,33 @@ func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.TraceConfig == nil { + m.TraceConfig = &TraceConfig{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.TraceConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryBalanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) } - var stringLen uint64 + m.BlockNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4402,77 +8484,14 @@ func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.BlockNumber |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Balance = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryStorageRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryStorageRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStorageRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4500,13 +8519,13 @@ func (m *QueryStorageRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + m.BlockHash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlockTime", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4516,24 +8535,44 @@ func (m *QueryStorageRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = string(dAtA[iNdEx:postIndex]) + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.BlockTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4555,7 +8594,7 @@ func (m *QueryStorageRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryStorageResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTraceCallResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4578,17 +8617,17 @@ func (m *QueryStorageResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStorageResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTraceCallResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStorageResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTraceCallResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4598,23 +8637,25 @@ func (m *QueryStorageResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Value = string(dAtA[iNdEx:postIndex]) + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -4637,7 +8678,7 @@ func (m *QueryStorageResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTraceBlockRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4660,17 +8701,17 @@ func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryCodeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTraceBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTraceBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4680,79 +8721,31 @@ func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { + m.Txs = append(m.Txs, &MsgEthereumTx{}) + if err := m.Txs[len(m.Txs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCodeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryCodeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TraceConfig", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4762,81 +8755,84 @@ func (m *QueryCodeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) - if m.Code == nil { - m.Code = []byte{} + if m.TraceConfig == nil { + m.TraceConfig = &TraceConfig{} } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { + if err := m.TraceConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + m.BlockNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockNumber |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryTxLogsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryTxLogsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTxLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlockTime", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4846,29 +8842,30 @@ func (m *QueryTxLogsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Hash = string(dAtA[iNdEx:postIndex]) + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.BlockTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4878,28 +8875,45 @@ func (m *QueryTxLogsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) + if m.ProposerAddress == nil { + m.ProposerAddress = []byte{} } iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4921,7 +8935,7 @@ func (m *QueryTxLogsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTxLogsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTraceBlockResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4944,51 +8958,17 @@ func (m *QueryTxLogsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTxLogsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTraceBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTxLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTraceBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Logs = append(m.Logs, &Log{}) - if err := m.Logs[len(m.Logs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4998,26 +8978,24 @@ func (m *QueryTxLogsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} } iNdEx = postIndex default: @@ -5041,7 +9019,7 @@ func (m *QueryTxLogsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryBaseFeeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5064,10 +9042,10 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryBaseFeeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryBaseFeeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5091,7 +9069,7 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryBaseFeeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5114,17 +9092,17 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryBaseFeeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryBaseFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5134,22 +9112,25 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + var v cosmossdk_io_math.Int + m.BaseFee = &v + if err := m.BaseFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5174,7 +9155,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *EthCallRequest) Unmarshal(dAtA []byte) error { +func (m *GetHashRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5197,70 +9178,17 @@ func (m *EthCallRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EthCallRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetHashRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EthCallRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetHashRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args[:0], dAtA[iNdEx:postIndex]...) - if m.Args == nil { - m.Args = []byte{} - } - iNdEx = postIndex - case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasCap", wireType) - } - m.GasCap = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GasCap |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) } - var byteLen int + m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5270,50 +9198,66 @@ func (m *EthCallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.Height |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) - if m.ProposerAddress == nil { - m.ProposerAddress = []byte{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetHashResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.ChainId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ChainId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 5: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetHashResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetHashResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Overrides", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5323,25 +9267,23 @@ func (m *EthCallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Overrides = append(m.Overrides[:0], dAtA[iNdEx:postIndex]...) - if m.Overrides == nil { - m.Overrides = []byte{} - } + m.Hash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5364,7 +9306,7 @@ func (m *EthCallRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *EstimateGasResponse) Unmarshal(dAtA []byte) error { +func (m *AddBalanceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5387,36 +9329,17 @@ func (m *EstimateGasResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EstimateGasResponse: wiretype end group for non-group") + return fmt.Errorf("proto: AddBalanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EstimateGasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AddBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) - } - m.Gas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Gas |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5426,31 +9349,29 @@ func (m *EstimateGasResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) - if m.Ret == nil { - m.Ret = []byte{} - } + m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VmError", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5460,23 +9381,25 @@ func (m *EstimateGasResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.VmError = string(dAtA[iNdEx:postIndex]) + m.Amount = append(m.Amount, types1.Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -5499,7 +9422,7 @@ func (m *EstimateGasResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTraceTxRequest) Unmarshal(dAtA []byte) error { +func (m *AddBalanceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5522,17 +9445,67 @@ func (m *QueryTraceTxRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTraceTxRequest: wiretype end group for non-group") + return fmt.Errorf("proto: AddBalanceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTraceTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AddBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SubBalanceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SubBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5542,31 +9515,27 @@ func (m *QueryTraceTxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Msg == nil { - m.Msg = &MsgEthereumTx{} - } - if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TraceConfig", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5593,69 +9562,114 @@ func (m *QueryTraceTxRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TraceConfig == nil { - m.TraceConfig = &TraceConfig{} - } - if err := m.TraceConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Amount = append(m.Amount, types1.Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Predecessors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SubBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Predecessors = append(m.Predecessors, &MsgEthereumTx{}) - if err := m.Predecessors[len(m.Predecessors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SubBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery } - m.BlockNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BlockNumber |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetBalanceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - case 6: + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5683,13 +9697,13 @@ func (m *QueryTraceTxRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BlockHash = string(dAtA[iNdEx:postIndex]) + m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 7: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5699,30 +9713,79 @@ func (m *QueryTraceTxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.BlockTime, dAtA[iNdEx:postIndex]); err != nil { + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 8: + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5732,45 +9795,26 @@ func (m *QueryTraceTxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) - if m.ProposerAddress == nil { - m.ProposerAddress = []byte{} + if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - m.ChainId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ChainId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5792,7 +9836,7 @@ func (m *QueryTraceTxRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTraceTxResponse) Unmarshal(dAtA []byte) error { +func (m *GetAccountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5815,17 +9859,17 @@ func (m *QueryTraceTxResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTraceTxResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetAccountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTraceTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5835,25 +9879,23 @@ func (m *QueryTraceTxResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } + m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5876,7 +9918,7 @@ func (m *QueryTraceTxResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTraceCallRequest) Unmarshal(dAtA []byte) error { +func (m *GetAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5899,15 +9941,15 @@ func (m *QueryTraceCallRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTraceCallRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetAccountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTraceCallRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -5934,105 +9976,66 @@ func (m *QueryTraceCallRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Args = append(m.Args[:0], dAtA[iNdEx:postIndex]...) - if m.Args == nil { - m.Args = []byte{} + m.Account = append(m.Account[:0], dAtA[iNdEx:postIndex]...) + if m.Account == nil { + m.Account = []byte{} } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasCap", wireType) - } - m.GasCap = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GasCap |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) - if m.ProposerAddress == nil { - m.ProposerAddress = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TraceConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.TraceConfig == nil { - m.TraceConfig = &TraceConfig{} - } - if err := m.TraceConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetStateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } - m.BlockNumber = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6042,14 +10045,27 @@ func (m *QueryTraceCallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BlockNumber |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 6: + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6077,13 +10093,63 @@ func (m *QueryTraceCallRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BlockHash = string(dAtA[iNdEx:postIndex]) + m.Key = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 7: + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStateResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetStateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6093,30 +10159,79 @@ func (m *QueryTraceCallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.BlockTime, dAtA[iNdEx:postIndex]); err != nil { + m.Hash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery } - m.ChainId = 0 + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetCodeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCodeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6126,11 +10241,24 @@ func (m *QueryTraceCallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChainId |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CodeHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6152,7 +10280,7 @@ func (m *QueryTraceCallRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTraceCallResponse) Unmarshal(dAtA []byte) error { +func (m *GetCodeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6175,15 +10303,15 @@ func (m *QueryTraceCallResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTraceCallResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetCodeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTraceCallResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6210,9 +10338,9 @@ func (m *QueryTraceCallResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} + m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) + if m.Code == nil { + m.Code = []byte{} } iNdEx = postIndex default: @@ -6236,7 +10364,7 @@ func (m *QueryTraceCallResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTraceBlockRequest) Unmarshal(dAtA []byte) error { +func (m *SetAccountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6259,17 +10387,17 @@ func (m *QueryTraceBlockRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTraceBlockRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetAccountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTraceBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6279,31 +10407,29 @@ func (m *QueryTraceBlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Txs = append(m.Txs, &MsgEthereumTx{}) - if err := m.Txs[len(m.Txs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TraceConfig", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6313,50 +10439,129 @@ func (m *QueryTraceBlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Account = append(m.Account[:0], dAtA[iNdEx:postIndex]...) + if m.Account == nil { + m.Account = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetAccountResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetAccountResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.TraceConfig == nil { - m.TraceConfig = &TraceConfig{} - } - if err := m.TraceConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetStateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.BlockNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BlockNumber |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 6: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetStateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6384,13 +10589,13 @@ func (m *QueryTraceBlockRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BlockHash = string(dAtA[iNdEx:postIndex]) + m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 7: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6400,28 +10605,27 @@ func (m *QueryTraceBlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.BlockTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Key = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6448,30 +10652,61 @@ func (m *QueryTraceBlockRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) - if m.ProposerAddress == nil { - m.ProposerAddress = []byte{} + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} } iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - m.ChainId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ChainId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetStateResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetStateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6493,7 +10728,7 @@ func (m *QueryTraceBlockRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTraceBlockResponse) Unmarshal(dAtA []byte) error { +func (m *SetCodeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6516,15 +10751,15 @@ func (m *QueryTraceBlockResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTraceBlockResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SetCodeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTraceBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetCodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6551,9 +10786,43 @@ func (m *QueryTraceBlockResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} + m.CodeHash = append(m.CodeHash[:0], dAtA[iNdEx:postIndex]...) + if m.CodeHash == nil { + m.CodeHash = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) + if m.Code == nil { + m.Code = []byte{} } iNdEx = postIndex default: @@ -6577,7 +10846,7 @@ func (m *QueryTraceBlockResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryBaseFeeRequest) Unmarshal(dAtA []byte) error { +func (m *SetCodeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6600,10 +10869,10 @@ func (m *QueryBaseFeeRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryBaseFeeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetCodeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBaseFeeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetCodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -6627,7 +10896,7 @@ func (m *QueryBaseFeeRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryBaseFeeResponse) Unmarshal(dAtA []byte) error { +func (m *DeleteAccountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6650,15 +10919,15 @@ func (m *QueryBaseFeeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryBaseFeeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteAccountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBaseFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6686,12 +10955,58 @@ func (m *QueryBaseFeeResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v cosmossdk_io_math.Int - m.BaseFee = &v - if err := m.BaseFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Addr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteAccountResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteAccountResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/evm/types/query.pb.gw.go b/x/evm/types/query.pb.gw.go index c52b6b2cc6..e91e2f5d81 100644 --- a/x/evm/types/query.pb.gw.go +++ b/x/evm/types/query.pb.gw.go @@ -595,13 +595,662 @@ func local_request_Query_BaseFee_0(ctx context.Context, marshaler runtime.Marsha } +var ( + filter_Query_QueryGetHashStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryGetHashStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetHashRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetHashStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryGetHashStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryGetHashStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetHashRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetHashStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryGetHashStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_PostAddBalanceStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_PostAddBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddBalanceRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostAddBalanceStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.PostAddBalanceStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PostAddBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddBalanceRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostAddBalanceStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.PostAddBalanceStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_PostSubBalanceStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_PostSubBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SubBalanceRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSubBalanceStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.PostSubBalanceStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PostSubBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SubBalanceRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSubBalanceStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.PostSubBalanceStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_QueryGetBalanceStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryGetBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetBalanceRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetBalanceStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryGetBalanceStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryGetBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetBalanceRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetBalanceStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryGetBalanceStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_QueryGetAccountStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryGetAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetAccountRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetAccountStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryGetAccountStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryGetAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetAccountRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetAccountStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryGetAccountStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_QueryGetStateStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryGetStateStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetStateRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetStateStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryGetStateStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryGetStateStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetStateRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetStateStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryGetStateStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_QueryGetCodeStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryGetCodeStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetCodeRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetCodeStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryGetCodeStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryGetCodeStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetCodeRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetCodeStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryGetCodeStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_PostSetAccountStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_PostSetAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SetAccountRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetAccountStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.PostSetAccountStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PostSetAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SetAccountRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetAccountStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.PostSetAccountStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_PostSetStateStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_PostSetStateStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SetStateRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetStateStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.PostSetStateStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PostSetStateStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SetStateRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetStateStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.PostSetStateStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_PostSetCodeStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_PostSetCodeStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SetCodeRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetCodeStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.PostSetCodeStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PostSetCodeStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SetCodeRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetCodeStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.PostSetCodeStateDB(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_PostDeleteAccountStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_PostDeleteAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteAccountRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostDeleteAccountStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.PostDeleteAccountStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PostDeleteAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteAccountRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostDeleteAccountStateDB_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.PostDeleteAccountStateDB(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - mux.Handle("GET", pattern_Query_Account_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Account_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Account_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Account_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CosmosAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_CosmosAccount_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CosmosAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ValidatorAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_ValidatorAccount_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ValidatorAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Balance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Balance_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Storage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Storage_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Storage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Code_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Code_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Code_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_EthCall_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_EthCall_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EthCall_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_EstimateGas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_EstimateGas_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EstimateGas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TraceTx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_TraceTx_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TraceTx_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TraceBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_TraceBlock_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TraceBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TraceCall_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -612,7 +1261,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Account_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_TraceCall_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -620,11 +1269,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Account_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_TraceCall_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_CosmosAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_BaseFee_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -635,7 +1284,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_CosmosAccount_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_BaseFee_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -643,11 +1292,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_CosmosAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_BaseFee_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_ValidatorAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryGetHashStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -658,7 +1307,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_ValidatorAccount_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryGetHashStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -666,11 +1315,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_ValidatorAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryGetHashStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_Balance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Query_PostAddBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -681,7 +1330,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Balance_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PostAddBalanceStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -689,11 +1338,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PostAddBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_Storage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Query_PostSubBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -704,7 +1353,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Storage_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PostSubBalanceStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -712,11 +1361,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Storage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PostSubBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_Code_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryGetBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -727,7 +1376,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Code_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryGetBalanceStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -735,11 +1384,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Code_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryGetBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryGetAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -750,7 +1399,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryGetAccountStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -758,11 +1407,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryGetAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_EthCall_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryGetStateStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -773,7 +1422,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_EthCall_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryGetStateStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -781,11 +1430,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_EthCall_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryGetStateStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_EstimateGas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryGetCodeStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -796,7 +1445,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_EstimateGas_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryGetCodeStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -804,11 +1453,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_EstimateGas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryGetCodeStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_TraceTx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Query_PostSetAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -819,7 +1468,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_TraceTx_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PostSetAccountStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -827,11 +1476,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_TraceTx_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PostSetAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_TraceBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Query_PostSetStateStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -842,7 +1491,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_TraceBlock_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PostSetStateStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -850,11 +1499,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_TraceBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PostSetStateStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_TraceCall_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Query_PostSetCodeStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -865,7 +1514,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_TraceCall_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PostSetCodeStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -873,11 +1522,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_TraceCall_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PostSetCodeStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_BaseFee_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Query_PostDeleteAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -888,7 +1537,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_BaseFee_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PostDeleteAccountStateDB_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -896,7 +1545,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_BaseFee_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PostDeleteAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1201,6 +1850,226 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_QueryGetHashStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_QueryGetHashStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_QueryGetHashStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Query_PostAddBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PostAddBalanceStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PostAddBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Query_PostSubBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PostSubBalanceStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PostSubBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_QueryGetBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_QueryGetBalanceStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_QueryGetBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_QueryGetAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_QueryGetAccountStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_QueryGetAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_QueryGetStateStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_QueryGetStateStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_QueryGetStateStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_QueryGetCodeStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_QueryGetCodeStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_QueryGetCodeStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Query_PostSetAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PostSetAccountStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PostSetAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Query_PostSetStateStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PostSetStateStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PostSetStateStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Query_PostSetCodeStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PostSetCodeStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PostSetCodeStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Query_PostDeleteAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PostDeleteAccountStateDB_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PostDeleteAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1230,6 +2099,28 @@ var ( pattern_Query_TraceCall_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "trace_call"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_BaseFee_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "base_fee"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QueryGetHashStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_hash"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PostAddBalanceStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "add_balance"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PostSubBalanceStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "sub_balance"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QueryGetBalanceStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_balance"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QueryGetAccountStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_account"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QueryGetStateStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_state"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QueryGetCodeStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_code"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PostSetAccountStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "set_account"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PostSetStateStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "set_state"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PostSetCodeStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "set_code"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PostDeleteAccountStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "delete_account"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1258,4 +2149,26 @@ var ( forward_Query_TraceCall_0 = runtime.ForwardResponseMessage forward_Query_BaseFee_0 = runtime.ForwardResponseMessage + + forward_Query_QueryGetHashStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_PostAddBalanceStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_PostSubBalanceStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_QueryGetBalanceStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_QueryGetAccountStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_QueryGetStateStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_QueryGetCodeStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_PostSetAccountStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_PostSetStateStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_PostSetCodeStateDB_0 = runtime.ForwardResponseMessage + + forward_Query_PostDeleteAccountStateDB_0 = runtime.ForwardResponseMessage ) From 89e1302bccfe4cf1feb037de4638944fb293910c Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Sun, 14 Apr 2024 13:38:31 +0000 Subject: [PATCH 16/46] chore: remove running rpc server in state transition --- x/evm/keeper/rpc_server.go | 172 ------------------------------- x/evm/keeper/state_transition.go | 38 +------ 2 files changed, 1 insertion(+), 209 deletions(-) delete mode 100644 x/evm/keeper/rpc_server.go diff --git a/x/evm/keeper/rpc_server.go b/x/evm/keeper/rpc_server.go deleted file mode 100644 index 6aff116e38..0000000000 --- a/x/evm/keeper/rpc_server.go +++ /dev/null @@ -1,172 +0,0 @@ -package keeper - -import ( - "math/big" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core" - "github.com/evmos/ethermint/x/evm/statedb" -) - -// EthmRpcServer is a RPC server wrapper around the keeper. It is updated on -// each new sdk.Message with the latest context and Ethereum core.Message. -type EthmRpcServer struct { - ctx sdk.Context - msg core.Message - evmCfg *EVMConfig - k *Keeper -} - -func (s *EthmRpcServer) GetHash(height *uint64, hash *common.Hash) error { - *hash = s.k.GetHashFn(s.ctx)(*height) - return nil -} - -func (s *EthmRpcServer) AddBalance(args *AddBalanceArgs, reply *AddBalanceReply) error { - return s.k.AddBalance(s.ctx, args.Addr, args.Amount) -} - -func (s *EthmRpcServer) SubBalance(args *SubBalanceArgs, reply *SubBalanceReply) error { - return s.k.SubBalance(s.ctx, args.Addr, args.Amount) -} - -func (s *EthmRpcServer) GetBalance(args *GetBalanceArgs, reply *GetBalanceReply) error { - reply.Balance = s.k.GetBalance(s.ctx, args.Addr, args.Denom) - return nil -} - -func (s *EthmRpcServer) GetAccount(args *GetAccountArgs, reply *GetAccountReply) error { - reply.Account = s.k.GetAccount(s.ctx, args.Addr) - return nil -} - -func (s *EthmRpcServer) GetState(args *GetStateArgs, reply *GetStateReply) error { - reply.Hash = s.k.GetState(s.ctx, args.Addr, args.Key) - return nil -} - -func (s *EthmRpcServer) GetCode(args *GetCodeArgs, reply *GetCodeReply) error { - reply.Code = s.k.GetCode(s.ctx, args.CodeHash) - return nil -} - -func (s *EthmRpcServer) SetAccount(args *SetAccountArgs, reply *SetAccountReply) error { - return s.k.SetAccount(s.ctx, args.Addr, args.Account) -} - -func (s *EthmRpcServer) SetState(args *SetStateArgs, reply *SetStateReply) error { - s.k.SetState(s.ctx, args.Addr, args.Key, args.Value) - return nil -} - -func (s *EthmRpcServer) SetCode(args *SetCodeArgs, reply *SetCodeReply) error { - s.k.SetCode(s.ctx, args.CodeHash, args.Code) - return nil -} - -func (s *EthmRpcServer) DeleteAccount(args *DeleteAccountArgs, reply *DeleteAccountReply) error { - return s.k.DeleteAccount(s.ctx, args.Addr) -} - -// AddBalanceArgs is the argument struct for the statedb.Keeper#AddBalance method. -type AddBalanceArgs struct { - Addr sdk.AccAddress - Amount sdk.Coins -} - -// AddBalanceReply is the reply struct for the statedb.Keeper#AddBalance method. -type AddBalanceReply struct { -} - -// SubBalanceArgs is the argument struct for the statedb.Keeper#SubBalance method. -type SubBalanceArgs struct { - Addr sdk.AccAddress - Amount sdk.Coins -} - -// SubBalanceReply is the reply struct for the statedb.Keeper#SubBalance method. -type SubBalanceReply struct { -} - -// GetBalanceArgs is the argument struct for the statedb.Keeper#GetBalance method. -type GetBalanceArgs struct { - Addr sdk.AccAddress - Denom string -} - -// GetBalanceReply is the reply struct for the statedb.Keeper#GetBalance method. -type GetBalanceReply struct { - Balance *big.Int -} - -// GetAccountArgs is the argument struct for the statedb.Keeper#GetAccount method. -type GetAccountArgs struct { - Addr common.Address -} - -// GetAccountReply is the reply struct for the statedb.Keeper#GetAccount method. -type GetAccountReply struct { - Account *statedb.Account -} - -// GetStateArgs is the argument struct for the statedb.Keeper#GetState method. -type GetStateArgs struct { - Addr common.Address - Key common.Hash -} - -// GetStateReply is the reply struct for the statedb.Keeper#GetState method. -type GetStateReply struct { - Hash common.Hash -} - -// GetCodeArgs is the argument struct for the statedb.Keeper#GetCode method. -type GetCodeArgs struct { - CodeHash common.Hash -} - -// GetCodeReply is the reply struct for the statedb.Keeper#GetCode method. -type GetCodeReply struct { - Code []byte -} - -// SetAccountArgs is the argument struct for the statedb.Keeper#SetAccount method. -type SetAccountArgs struct { - Addr common.Address - Account statedb.Account -} - -// SetAccountReply is the reply struct for the statedb.Keeper#SetAccount method. -type SetAccountReply struct { -} - -// SetStateArgs is the argument struct for the statedb.Keeper#SetState method. -type SetStateArgs struct { - Addr common.Address - Key common.Hash - Value []byte -} - -// SetStateReply is the reply struct for the statedb.Keeper#SetState method. -type SetStateReply struct { -} - -// SetCodeArgs is the argument struct for the statedb.Keeper#SetCode method. -type SetCodeArgs struct { - CodeHash []byte - Code []byte -} - -// SetCodeReply is the reply struct for the statedb.Keeper#SetCode method. -type SetCodeReply struct { -} - -// DeleteAccountArgs is the argument struct for the statedb.Keeper#DeleteAccount method. -type DeleteAccountArgs struct { - Addr common.Address -} - -// DeleteAccountReply is the reply struct for the statedb.Keeper#DeleteAccount method. -type DeleteAccountReply struct { -} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index a2acdccc75..f21cfba639 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -19,9 +19,6 @@ import ( "encoding/json" "fmt" "math/big" - "net" - "net/http" - "net/rpc" cmttypes "github.com/cometbft/cometbft/types" @@ -537,13 +534,7 @@ func (k *Keeper) ApplyMessageWithConfig( // - sends a "PrepareTx" request to the SGX enclave with the relevant tx and // block info func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRPCClient *sgxRPCClient) error { - // Step 1. Create an RPC server to receive requests from the SGX enclave. - err := k.runRPCServer(ctx, msg, cfg) - if err != nil { - return err - } - - // Step 2. Send a "PrepareTx" request to the SGX enclave. + // Step 1. Send a "PrepareTx" request to the SGX enclave. ChainConfigJson, err := json.Marshal(cfg.ChainConfig) if err != nil { return err @@ -566,30 +557,3 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf return sgxRPCClient.PrepareTx(args, &PrepareTxReply{}) } - -func (k *Keeper) runRPCServer(ctx sdk.Context, msg core.Message, cfg *EVMConfig) error { - defer func() { - if r := recover(); r != nil { - ctx.Logger().Debug("recovered from panic", "error", r) - } - }() - - // TODO Think about whether the RPC server should be persistent or ephemeral - // - If it's persistent, we need to handle the lifecycle of the RPC server - // - If it's ephemeral, we need to create a new RPC server for each message - // The current implementation is ephemeral. - srv := &EthmRpcServer{k: k, ctx: ctx, msg: msg, evmCfg: cfg} - rpc.Register(srv) - rpc.HandleHTTP() - - // TODO handle port customization - l, err := net.Listen("tcp", ":9093") - if err != nil { - // TODO handle error - panic(err) - } - // TODO Handle shutdown - go http.Serve(l, nil) - - return nil -} From aee4a113b97be86f132484a846e373740f732ad1 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Mon, 15 Apr 2024 10:12:34 +0000 Subject: [PATCH 17/46] chore: add response for debugging in set account gRPC --- proto/ethermint/evm/v1/query.proto | 2 + x/evm/keeper/grpc_query.go | 2 +- x/evm/migrations/v4/types/params_v4.pb.go | 7 +- x/evm/types/query.pb.go | 351 ++++++++++++++-------- 4 files changed, 226 insertions(+), 136 deletions(-) diff --git a/proto/ethermint/evm/v1/query.proto b/proto/ethermint/evm/v1/query.proto index 83ee63c272..bbfde02d7f 100644 --- a/proto/ethermint/evm/v1/query.proto +++ b/proto/ethermint/evm/v1/query.proto @@ -466,6 +466,8 @@ message SetAccountRequest { } message SetAccountResponse { + uint64 Nonce = 1; + bytes CodeHash = 2; } message SetStateRequest { diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index b96c44d1bd..dc55d70426 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -874,7 +874,7 @@ func (k Keeper) PostSetAccountStateDB(c context.Context, req *types.SetAccountRe return nil, status.Error(codes.InvalidArgument, err.Error()) } - return &types.SetAccountResponse{}, nil + return &types.SetAccountResponse{Nonce: account.Nonce, CodeHash: account.CodeHash}, nil } // PostSetStateStateDB sets state in statedb for sgx diff --git a/x/evm/migrations/v4/types/params_v4.pb.go b/x/evm/migrations/v4/types/params_v4.pb.go index 3b7e32580b..e1be6d84f6 100644 --- a/x/evm/migrations/v4/types/params_v4.pb.go +++ b/x/evm/migrations/v4/types/params_v4.pb.go @@ -10,7 +10,6 @@ import ( io "io" math "math" math_bits "math/bits" - v0types "github.com/evmos/ethermint/x/evm/migrations/v0/types" ) // Reference imports to suppress errors if they are not otherwise used. @@ -36,7 +35,7 @@ type V4Params struct { // extra_eips defines the additional EIPs for the vm.Config ExtraEIPs ExtraEIPs `protobuf:"bytes,4,opt,name=extra_eips,json=extraEips,proto3" json:"extra_eips"` // chain_config defines the EVM chain configuration parameters - ChainConfig v0types.V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` + ChainConfig V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` // allow_unprotected_txs defines if replay-protected (i.e non EIP155 // signed) transactions can be executed on the state machine. AllowUnprotectedTxs bool `protobuf:"varint,6,opt,name=allow_unprotected_txs,json=allowUnprotectedTxs,proto3" json:"allow_unprotected_txs,omitempty"` @@ -103,11 +102,11 @@ func (m *V4Params) GetExtraEIPs() ExtraEIPs { return ExtraEIPs{} } -func (m *V4Params) GetChainConfig() v0types.V0ChainConfig { +func (m *V4Params) GetChainConfig() V0ChainConfig { if m != nil { return m.ChainConfig } - return v0types.V0ChainConfig{} + return V0ChainConfig{} } func (m *V4Params) GetAllowUnprotectedTxs() bool { diff --git a/x/evm/types/query.pb.go b/x/evm/types/query.pb.go index 2111afa5d1..ae47621449 100644 --- a/x/evm/types/query.pb.go +++ b/x/evm/types/query.pb.go @@ -2165,6 +2165,8 @@ func (m *SetAccountRequest) GetAccount() []byte { } type SetAccountResponse struct { + Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"` + CodeHash []byte `protobuf:"bytes,2,opt,name=CodeHash,proto3" json:"CodeHash,omitempty"` } func (m *SetAccountResponse) Reset() { *m = SetAccountResponse{} } @@ -2200,6 +2202,20 @@ func (m *SetAccountResponse) XXX_DiscardUnknown() { var xxx_messageInfo_SetAccountResponse proto.InternalMessageInfo +func (m *SetAccountResponse) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *SetAccountResponse) GetCodeHash() []byte { + if m != nil { + return m.CodeHash + } + return nil +} + type SetStateRequest struct { // Addr common.Address Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` @@ -2524,139 +2540,140 @@ func init() { func init() { proto.RegisterFile("ethermint/evm/v1/query.proto", fileDescriptor_e15a877459347994) } var fileDescriptor_e15a877459347994 = []byte{ - // 2099 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x5f, 0x6f, 0x1b, 0xc7, - 0x11, 0xd7, 0x89, 0x94, 0x48, 0x8d, 0x64, 0x5b, 0x5e, 0x4b, 0x31, 0x75, 0xd6, 0x3f, 0xaf, 0xfe, - 0xda, 0x96, 0x8f, 0x95, 0x1a, 0xc4, 0x68, 0x80, 0xa2, 0x91, 0x14, 0xc7, 0x4d, 0x63, 0x17, 0x2e, - 0x29, 0xf4, 0xa1, 0x40, 0xc1, 0x2e, 0x79, 0xeb, 0x23, 0x21, 0x92, 0xc7, 0xdc, 0x2e, 0x59, 0x3a, + // 2120 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0x5f, 0x6f, 0x1b, 0xc7, + 0x11, 0xd7, 0x89, 0x94, 0x48, 0x8d, 0x64, 0x5b, 0x5a, 0x4b, 0x31, 0x75, 0xd6, 0x3f, 0xaf, 0xfe, + 0xda, 0x96, 0x8f, 0x95, 0x1a, 0xc4, 0x68, 0x80, 0xa2, 0x91, 0x18, 0xdb, 0x4d, 0x63, 0x07, 0x2e, + 0x29, 0xf4, 0xa1, 0x40, 0xc1, 0x1e, 0x79, 0xeb, 0x23, 0x21, 0x92, 0xcb, 0xdc, 0x2e, 0x59, 0x3a, 0x89, 0x03, 0x34, 0x68, 0xd3, 0xa4, 0x01, 0x8a, 0x00, 0x45, 0x5f, 0x8b, 0x7c, 0x83, 0x7e, 0x8d, 0x3c, 0x06, 0x68, 0x0b, 0x14, 0x7d, 0x70, 0x03, 0xbb, 0x0f, 0xfd, 0x0c, 0x7d, 0x2a, 0x76, 0x6f, - 0x97, 0x77, 0xc7, 0x3b, 0x1e, 0xe9, 0x20, 0x01, 0x02, 0xe4, 0xe9, 0x6e, 0x77, 0x67, 0x67, 0x7e, - 0x3b, 0x33, 0x3b, 0x7f, 0x16, 0x56, 0x29, 0xaf, 0x53, 0xaf, 0xd5, 0x68, 0xf3, 0x22, 0xed, 0xb5, - 0x8a, 0xbd, 0xc3, 0xe2, 0xdb, 0x5d, 0xea, 0x3d, 0xb6, 0x3a, 0x9e, 0xcb, 0x5d, 0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 0x89, 0x5f, 0xc3, 0xac, 0xdf, 0xdf, 0xa2, 0xed, 0x11, 0x9c, 0x23, 0x6d, 0xb4, 0xb9, 0x33, 0x86, - 0x4a, 0x21, 0xd8, 0x94, 0x08, 0x4c, 0x54, 0x28, 0x8e, 0x78, 0xbb, 0x44, 0x7d, 0xc8, 0xa9, 0xfe, - 0x19, 0x6d, 0xc6, 0x79, 0x46, 0x5b, 0x6b, 0x73, 0x6f, 0x5c, 0x41, 0xa9, 0xe5, 0x62, 0x29, 0x77, - 0x15, 0x99, 0x71, 0xb9, 0x94, 0xd7, 0x2b, 0x35, 0x21, 0xee, 0x7d, 0x98, 0x0f, 0xb5, 0xb8, 0x13, - 0x48, 0x4f, 0x38, 0x73, 0x42, 0x8f, 0x8c, 0x77, 0xa5, 0xec, 0x4d, 0xb4, 0x9e, 0x20, 0x5b, 0x91, - 0x57, 0x44, 0xe7, 0xfc, 0x1e, 0xe4, 0x54, 0x93, 0x34, 0xd2, 0xf7, 0xa2, 0x6d, 0xf2, 0x48, 0xdf, - 0x1b, 0xea, 0xb5, 0xd2, 0x4e, 0xef, 0x57, 0xda, 0xbc, 0x8f, 0x3e, 0x32, 0x00, 0x82, 0x72, 0x11, - 0xed, 0xa7, 0xb1, 0x0e, 0x57, 0xf8, 0xe6, 0x8d, 0x09, 0x28, 0x15, 0x8e, 0x1d, 0x89, 0x63, 0x03, - 0xad, 0x8d, 0xc2, 0x21, 0x6b, 0x67, 0xf4, 0x5b, 0x03, 0xe6, 0x06, 0x8d, 0x07, 0xda, 0x4b, 0xe3, - 0x1f, 0x36, 0xc7, 0xfe, 0x78, 0x42, 0x85, 0x63, 0x5b, 0xe2, 0x58, 0x47, 0xab, 0xa3, 0x70, 0x48, - 0x7f, 0x78, 0x4f, 0x04, 0x25, 0x59, 0xbb, 0xa6, 0x04, 0xa5, 0x70, 0xc1, 0x9c, 0x12, 0x94, 0x22, - 0x05, 0x74, 0x9a, 0x3d, 0x74, 0x61, 0x8d, 0xde, 0x57, 0x35, 0xb9, 0xaa, 0x84, 0x65, 0xc2, 0x7e, - 0xfd, 0x24, 0xc9, 0x2b, 0xa3, 0x55, 0xb5, 0x79, 0x3d, 0x85, 0x62, 0xbc, 0x7c, 0x87, 0x72, 0x99, - 0xf4, 0xd1, 0xc7, 0x06, 0x2c, 0x3f, 0x74, 0x19, 0x0f, 0x0a, 0x60, 0x0d, 0x21, 0x21, 0xd4, 0xc4, - 0xea, 0x70, 0x73, 0x3b, 0x9d, 0x28, 0xea, 0x10, 0x38, 0xc1, 0x21, 0x88, 0x6d, 0x57, 0xf4, 0x13, - 0xbf, 0xc6, 0x12, 0x14, 0xc5, 0x29, 0x58, 0x62, 0xb5, 0x79, 0x12, 0x96, 0x84, 0xf2, 0x3a, 0x05, - 0x0b, 0xeb, 0x56, 0x07, 0x58, 0xfe, 0x60, 0xa8, 0x5e, 0x37, 0x28, 0xa6, 0x53, 0xc0, 0xc4, 0x0a, - 0xf6, 0x24, 0x30, 0xf1, 0xb2, 0x3c, 0xed, 0xa6, 0x08, 0x0b, 0x25, 0x81, 0x51, 0x09, 0x39, 0x1d, - 0xcc, 0x50, 0x96, 0xdf, 0x4e, 0x27, 0x9a, 0x0c, 0x8c, 0x4a, 0xea, 0xe8, 0x03, 0x43, 0xf5, 0x8b, - 0xba, 0x0a, 0xd7, 0x50, 0x92, 0x3d, 0x32, 0x5c, 0xd1, 0x9a, 0x38, 0x8d, 0x44, 0xc1, 0xd8, 0x92, - 0x30, 0xd6, 0xd0, 0xb5, 0x64, 0x18, 0x4c, 0x10, 0x87, 0xaf, 0x8d, 0x48, 0x7d, 0xe9, 0xd7, 0x26, - 0x9c, 0x40, 0xaf, 0xa7, 0x50, 0x4c, 0x76, 0x6d, 0x44, 0x0a, 0x0d, 0x5c, 0x75, 0x12, 0x83, 0x94, - 0x27, 0x31, 0x48, 0x79, 0xa4, 0x41, 0x12, 0x5d, 0x35, 0x64, 0x90, 0xdf, 0x18, 0x70, 0x45, 0x61, - 0x19, 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0x08, 0x4a, 0xc1, 0x12, + 0x3b, 0x21, 0x28, 0x85, 0x4a, 0xee, 0x24, 0x7b, 0xe8, 0x52, 0x1c, 0x7d, 0xa8, 0xaa, 0x78, 0x55, + 0x3b, 0xcb, 0x84, 0xfd, 0xe6, 0x69, 0x9c, 0x57, 0x86, 0xeb, 0x70, 0xf3, 0x5a, 0x02, 0xc5, 0x78, + 0xf9, 0x2e, 0xe1, 0x32, 0xe9, 0xa3, 0x4f, 0x0d, 0x58, 0x79, 0x48, 0x19, 0x1f, 0x94, 0xcc, 0x1a, + 0x42, 0x4c, 0xa8, 0x89, 0x54, 0xee, 0xe6, 0x4e, 0x32, 0x51, 0xd8, 0x21, 0x70, 0x8c, 0x43, 0xd8, + 0x8e, 0x53, 0xd6, 0x7f, 0x0a, 0x68, 0x2c, 0x83, 0x32, 0x3a, 0x01, 0x4b, 0xa4, 0x9a, 0x8f, 0xc3, + 0x12, 0x53, 0x90, 0x27, 0x60, 0x61, 0x9d, 0x4a, 0x1f, 0xcb, 0xef, 0x0d, 0xd5, 0x1d, 0x0f, 0xca, + 0xef, 0x04, 0x30, 0x91, 0x12, 0x3f, 0x0e, 0x4c, 0xb4, 0x90, 0x4f, 0xba, 0x29, 0xc2, 0x42, 0x71, + 0x60, 0x54, 0x42, 0x4e, 0x06, 0x33, 0x94, 0xe5, 0x77, 0x92, 0x89, 0x26, 0x03, 0xa3, 0x92, 0x3a, + 0xfa, 0xc8, 0x50, 0x1d, 0xa6, 0xae, 0xdb, 0x35, 0x94, 0x78, 0x8f, 0x0c, 0x56, 0xb4, 0x26, 0x4e, + 0x22, 0x51, 0x30, 0xb6, 0x25, 0x8c, 0x75, 0x74, 0x35, 0x1e, 0x06, 0x13, 0xc4, 0xc1, 0x6b, 0x23, + 0x52, 0x5f, 0xf2, 0xb5, 0x09, 0x26, 0xd0, 0x6b, 0x09, 0x14, 0x93, 0x5d, 0x1b, 0x91, 0x42, 0x07, + 0xae, 0x3a, 0x89, 0x41, 0x4a, 0x93, 0x18, 0xa4, 0x34, 0xd2, 0x20, 0xb1, 0xae, 0x1a, 0x30, 0xc8, + 0xaf, 0x0d, 0xb8, 0xac, 0xb0, 0x8c, 0xb3, 0x47, 0x69, 0xbc, 0x3d, 0x4a, 0x23, 0xec, 0x81, 0xaf, + 0xc6, 0xa3, 0xf0, 0xed, 0xf1, 0x04, 0x90, 0x82, 0x30, 0xc6, 0x1c, 0xa5, 0xb1, 0xe6, 0x28, 0xc5, + 0x9b, 0x03, 0x9b, 0xf1, 0xf2, 0xa5, 0x39, 0xfe, 0x64, 0x40, 0x4e, 0xc8, 0x0f, 0x35, 0x17, 0x1a, + 0x45, 0x4c, 0xb8, 0x8e, 0x6b, 0x58, 0xe2, 0xaa, 0x8c, 0xd8, 0x66, 0x05, 0x1f, 0x48, 0x44, 0x18, + 0x6f, 0x45, 0x11, 0x39, 0x72, 0x83, 0x36, 0xcd, 0xe9, 0x1b, 0x5f, 0x3e, 0xdb, 0x30, 0xbe, 0x7a, + 0xb6, 0x61, 0x7c, 0xfd, 0x6c, 0xc3, 0xf8, 0xfc, 0xf9, 0xc6, 0xd4, 0x57, 0xcf, 0x37, 0xa6, 0xfe, + 0xf1, 0x7c, 0x63, 0xea, 0xe7, 0x7b, 0x81, 0x87, 0x24, 0xd2, 0x6d, 0x52, 0x16, 0xe0, 0xd5, 0x93, + 0xdc, 0xe4, 0x63, 0x52, 0x65, 0x56, 0xbe, 0x5b, 0x7d, 0xff, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x1e, 0x07, 0xf1, 0x4b, 0xea, 0x1e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -5152,6 +5169,18 @@ func (m *SetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.CodeHash) > 0 { + i -= len(m.CodeHash) + copy(dAtA[i:], m.CodeHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash))) + i-- + dAtA[i] = 0x12 + } + if m.Nonce != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -6013,6 +6042,13 @@ func (m *SetAccountResponse) Size() (n int) { } var l int _ = l + if m.Nonce != 0 { + n += 1 + sovQuery(uint64(m.Nonce)) + } + l = len(m.CodeHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -10509,6 +10545,59 @@ func (m *SetAccountResponse) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: SetAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CodeHash = append(m.CodeHash[:0], dAtA[iNdEx:postIndex]...) + if m.CodeHash == nil { + m.CodeHash = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) From f50fd2d3c6984b8ba0582614184a1cb5e9b728f4 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Mon, 15 Apr 2024 10:26:02 +0000 Subject: [PATCH 18/46] chore: specify v0 type for v4 migration param --- x/evm/migrations/v4/types/params_v4.pb.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/x/evm/migrations/v4/types/params_v4.pb.go b/x/evm/migrations/v4/types/params_v4.pb.go index e1be6d84f6..3b7e32580b 100644 --- a/x/evm/migrations/v4/types/params_v4.pb.go +++ b/x/evm/migrations/v4/types/params_v4.pb.go @@ -10,6 +10,7 @@ import ( io "io" math "math" math_bits "math/bits" + v0types "github.com/evmos/ethermint/x/evm/migrations/v0/types" ) // Reference imports to suppress errors if they are not otherwise used. @@ -35,7 +36,7 @@ type V4Params struct { // extra_eips defines the additional EIPs for the vm.Config ExtraEIPs ExtraEIPs `protobuf:"bytes,4,opt,name=extra_eips,json=extraEips,proto3" json:"extra_eips"` // chain_config defines the EVM chain configuration parameters - ChainConfig V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` + ChainConfig v0types.V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` // allow_unprotected_txs defines if replay-protected (i.e non EIP155 // signed) transactions can be executed on the state machine. AllowUnprotectedTxs bool `protobuf:"varint,6,opt,name=allow_unprotected_txs,json=allowUnprotectedTxs,proto3" json:"allow_unprotected_txs,omitempty"` @@ -102,11 +103,11 @@ func (m *V4Params) GetExtraEIPs() ExtraEIPs { return ExtraEIPs{} } -func (m *V4Params) GetChainConfig() V0ChainConfig { +func (m *V4Params) GetChainConfig() v0types.V0ChainConfig { if m != nil { return m.ChainConfig } - return V0ChainConfig{} + return v0types.V0ChainConfig{} } func (m *V4Params) GetAllowUnprotectedTxs() bool { From bcb6e94eba20bba78f257559c06178da1354444a Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Mon, 15 Apr 2024 14:36:55 +0000 Subject: [PATCH 19/46] chore: use correct ctx for gRPC call --- x/evm/keeper/grpc_query.go | 47 +++++++++++++++++--------------- x/evm/keeper/keeper.go | 3 ++ x/evm/keeper/state_transition.go | 3 ++ 3 files changed, 31 insertions(+), 22 deletions(-) diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index dc55d70426..e1ddafecf5 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -761,8 +761,8 @@ func getChainID(ctx sdk.Context, chainID int64) (*big.Int, error) { // ------------------------------ // QueryGetHashStateDB queries hash in statedb for sgx -func (k Keeper) QueryGetHashStateDB(c context.Context, req *types.GetHashRequest) (*types.GetHashResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) QueryGetHashStateDB(_ context.Context, req *types.GetHashRequest) (*types.GetHashResponse, error) { + ctx := k.preparedCtx hash := k.GetHashFn(ctx)(req.Height) res := &types.GetHashResponse{ @@ -773,8 +773,8 @@ func (k Keeper) QueryGetHashStateDB(c context.Context, req *types.GetHashRequest } // PostAddBalanceStateDB add balance in statedb for sgx -func (k Keeper) PostAddBalanceStateDB(c context.Context, req *types.AddBalanceRequest) (*types.AddBalanceResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) PostAddBalanceStateDB(_ context.Context, req *types.AddBalanceRequest) (*types.AddBalanceResponse, error) { + ctx := k.preparedCtx addr, err := sdk.AccAddressFromBech32(req.Addr) if err != nil { return nil, err @@ -789,8 +789,8 @@ func (k Keeper) PostAddBalanceStateDB(c context.Context, req *types.AddBalanceRe } // PostSubBalanceStateDB sub balance in statedb for sgx -func (k Keeper) PostSubBalanceStateDB(c context.Context, req *types.SubBalanceRequest) (*types.SubBalanceResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) PostSubBalanceStateDB(_ context.Context, req *types.SubBalanceRequest) (*types.SubBalanceResponse, error) { + ctx := k.preparedCtx addr, err := sdk.AccAddressFromBech32(req.Addr) if err != nil { return nil, err @@ -805,8 +805,8 @@ func (k Keeper) PostSubBalanceStateDB(c context.Context, req *types.SubBalanceRe } // QueryGetBalanceStateDB queries balance in statedb for sgx -func (k Keeper) QueryGetBalanceStateDB(c context.Context, req *types.GetBalanceRequest) (*types.GetBalanceResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) QueryGetBalanceStateDB(_ context.Context, req *types.GetBalanceRequest) (*types.GetBalanceResponse, error) { + ctx := k.preparedCtx addr, err := sdk.AccAddressFromBech32(req.Addr) if err != nil { return nil, err @@ -820,10 +820,13 @@ func (k Keeper) QueryGetBalanceStateDB(c context.Context, req *types.GetBalanceR } // QueryGetAccountStateDB queries account in statedb for sgx -func (k Keeper) QueryGetAccountStateDB(c context.Context, req *types.GetAccountRequest) (*types.GetAccountResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) QueryGetAccountStateDB(_ context.Context, req *types.GetAccountRequest) (*types.GetAccountResponse, error) { + ctx := k.preparedCtx addr := common.HexToAddress(req.Addr) account := k.GetAccount(ctx, addr) + if account == nil { + return nil, errors.New("account doesn't exist") + } res, err := json.Marshal(account) if err != nil { @@ -836,8 +839,8 @@ func (k Keeper) QueryGetAccountStateDB(c context.Context, req *types.GetAccountR } // QueryGetStateStateDB queries state in statedb for sgx -func (k Keeper) QueryGetStateStateDB(c context.Context, req *types.GetStateRequest) (*types.GetStateResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) QueryGetStateStateDB(_ context.Context, req *types.GetStateRequest) (*types.GetStateResponse, error) { + ctx := k.preparedCtx addr := common.HexToAddress(req.Addr) key := common.HexToHash(req.Key) @@ -848,8 +851,8 @@ func (k Keeper) QueryGetStateStateDB(c context.Context, req *types.GetStateReque } // QueryGetCodeStateDB queries code in statedb for sgx -func (k Keeper) QueryGetCodeStateDB(c context.Context, req *types.GetCodeRequest) (*types.GetCodeResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) QueryGetCodeStateDB(_ context.Context, req *types.GetCodeRequest) (*types.GetCodeResponse, error) { + ctx := k.preparedCtx codeHash := common.HexToHash(req.CodeHash) code := k.GetCode(ctx, codeHash) @@ -859,8 +862,8 @@ func (k Keeper) QueryGetCodeStateDB(c context.Context, req *types.GetCodeRequest } // PostSetAccountStateDB sets account in statedb for sgx -func (k Keeper) PostSetAccountStateDB(c context.Context, req *types.SetAccountRequest) (*types.SetAccountResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) PostSetAccountStateDB(_ context.Context, req *types.SetAccountRequest) (*types.SetAccountResponse, error) { + ctx := k.preparedCtx addr := common.HexToAddress(req.Addr) var account statedb.Account @@ -878,8 +881,8 @@ func (k Keeper) PostSetAccountStateDB(c context.Context, req *types.SetAccountRe } // PostSetStateStateDB sets state in statedb for sgx -func (k Keeper) PostSetStateStateDB(c context.Context, req *types.SetStateRequest) (*types.SetStateResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) PostSetStateStateDB(_ context.Context, req *types.SetStateRequest) (*types.SetStateResponse, error) { + ctx := k.preparedCtx addr := common.HexToAddress(req.Addr) key := common.HexToHash(req.Key) @@ -888,16 +891,16 @@ func (k Keeper) PostSetStateStateDB(c context.Context, req *types.SetStateReques } // PostSetCodeStateDB sets code in statedb for sgx -func (k Keeper) PostSetCodeStateDB(c context.Context, req *types.SetCodeRequest) (*types.SetCodeResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) PostSetCodeStateDB(_ context.Context, req *types.SetCodeRequest) (*types.SetCodeResponse, error) { + ctx := k.preparedCtx k.SetCode(ctx, req.CodeHash, req.Code) return &types.SetCodeResponse{}, nil } // PostDeleteAccountStateDB delete account in statedb for sgx -func (k Keeper) PostDeleteAccountStateDB(c context.Context, req *types.DeleteAccountRequest) (*types.DeleteAccountResponse, error) { - ctx := sdk.UnwrapSDKContext(c) +func (k Keeper) PostDeleteAccountStateDB(_ context.Context, req *types.DeleteAccountRequest) (*types.DeleteAccountResponse, error) { + ctx := k.preparedCtx addr := common.HexToAddress(req.Addr) k.DeleteAccount(ctx, addr) diff --git a/x/evm/keeper/keeper.go b/x/evm/keeper/keeper.go index 299f8de643..968e69e967 100644 --- a/x/evm/keeper/keeper.go +++ b/x/evm/keeper/keeper.go @@ -78,6 +78,9 @@ type Keeper struct { // a set of store keys that should cover all the precompile use cases, // or ideally just pass the application's all stores. keys map[string]storetypes.StoreKey + + // ctx stored at the time of prepare SGX call + preparedCtx sdk.Context } // NewKeeper generates new evm module keeper diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index f21cfba639..3d618dcba7 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -555,5 +555,8 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf }, } + // Snapshot the ctx + k.preparedCtx = ctx + return sgxRPCClient.PrepareTx(args, &PrepareTxReply{}) } From 0e1fab297b9b5f2f08f25e0f897bbc46c82e8eba Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Mon, 15 Apr 2024 14:55:09 +0000 Subject: [PATCH 20/46] chore: use json marshall for cfg.overrides --- x/evm/keeper/config.go | 40 -------------------------------- x/evm/keeper/rpc_client.go | 2 +- x/evm/keeper/state_transition.go | 11 ++++++++- 3 files changed, 11 insertions(+), 42 deletions(-) diff --git a/x/evm/keeper/config.go b/x/evm/keeper/config.go index d11ebca417..928c742f4a 100644 --- a/x/evm/keeper/config.go +++ b/x/evm/keeper/config.go @@ -16,10 +16,6 @@ package keeper import ( - "bytes" - "encoding/base64" - "encoding/gob" - "fmt" "math/big" errorsmod "cosmossdk.io/errors" @@ -116,39 +112,3 @@ func (k Keeper) VMConfig(ctx sdk.Context, _ core.Message, cfg *EVMConfig) vm.Con ExtraEips: cfg.Params.EIPs(), } } - -// go binary encoder -func ToGOB64(m *rpctypes.StateOverride) string { - if m == nil { - return "" - } - - b := bytes.Buffer{} - e := gob.NewEncoder(&b) - err := e.Encode(m) - if err != nil { - fmt.Println(`failed gob Encode`, err) - } - return base64.StdEncoding.EncodeToString(b.Bytes()) -} - -// go binary decoder -func FromGOB64(str string) *rpctypes.StateOverride { - if str == "" { - return nil - } - - m := rpctypes.StateOverride{} - by, err := base64.StdEncoding.DecodeString(str) - if err != nil { - fmt.Println(`failed base64 Decode`, err) - } - b := bytes.Buffer{} - b.Write(by) - d := gob.NewDecoder(&b) - err = d.Decode(&m) - if err != nil { - fmt.Println(`failed gob Decode`, err) - } - return &m -} diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go index af604eddf9..efa990601a 100644 --- a/x/evm/keeper/rpc_client.go +++ b/x/evm/keeper/rpc_client.go @@ -108,7 +108,7 @@ type PrepareTxEVMConfig struct { EvmDenom string ExtraEips []int // *rpctypes.StateOverride : original type - Overrides string + Overrides []byte } // PrepareTxArgs is the argument struct for the SgxRpcServer.PrepareTx RPC method. diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 3d618dcba7..ac46621cca 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -539,6 +539,15 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf if err != nil { return err } + + var overrides []byte + if cfg.Overrides != nil { + overrides, err = json.Marshal(cfg.Overrides) + if err != nil { + return err + } + } + ctx.HeaderHash() args := PrepareTxArgs{ Header: ctx.BlockHeader(), @@ -551,7 +560,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf DebugTrace: cfg.DebugTrace, NoBaseFee: cfg.FeeMarketParams.NoBaseFee, EvmDenom: cfg.Params.EvmDenom, - Overrides: ToGOB64(cfg.Overrides), + Overrides: overrides, }, } From d0e33d77ae0790ba02ef9245f3282f6877ddc5ec Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Tue, 16 Apr 2024 15:25:37 +0000 Subject: [PATCH 21/46] chore: use handler to keep independent ctx --- proto/ethermint/evm/v1/query.proto | 52 +- x/evm/keeper/grpc_query.go | 87 +++- x/evm/keeper/keeper.go | 7 +- x/evm/keeper/rpc_client.go | 49 +- x/evm/keeper/state_transition.go | 63 ++- x/evm/types/query.pb.go | 747 ++++++++++++++++++++++------- 6 files changed, 740 insertions(+), 265 deletions(-) diff --git a/proto/ethermint/evm/v1/query.proto b/proto/ethermint/evm/v1/query.proto index bbfde02d7f..28b39a1f2b 100644 --- a/proto/ethermint/evm/v1/query.proto +++ b/proto/ethermint/evm/v1/query.proto @@ -385,7 +385,8 @@ message QueryBaseFeeResponse { } message GetHashRequest { - uint64 height = 1; + uint64 handler_id = 1; + uint64 height = 2; } message GetHashResponse { @@ -394,30 +395,33 @@ message GetHashResponse { } message AddBalanceRequest { + uint64 handler_id = 1; // Addr sdk.AccAddress - string addr = 1; + string addr = 2; // Amount sdk.Coins - repeated cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false] ; + repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false] ; } message AddBalanceResponse { } message SubBalanceRequest { + uint64 handler_id = 1; // Addr sdk.AccAddress - string addr = 1; + string addr = 2; // Amount sdk.Coins - repeated cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false] ; + repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false] ; } message SubBalanceResponse { } message GetBalanceRequest { + uint64 handler_id = 1; // Addr sdk.AccAddress - string addr = 1; + string addr = 2; // Denom string - string denom = 2; + string denom = 3; } message GetBalanceResponse { @@ -426,8 +430,9 @@ message GetBalanceResponse { } message GetAccountRequest { + uint64 handler_id = 1; // Addr common.Address - string addr = 1; + string addr = 2; } message GetAccountResponse { @@ -437,10 +442,12 @@ message GetAccountResponse { } message GetStateRequest { + uint64 handler_id = 1; + // Addr common.Address - string addr = 1; + string addr = 2; // Key common.Hash - string key = 2; + string key = 3; } message GetStateResponse { @@ -449,8 +456,10 @@ message GetStateResponse { } message GetCodeRequest { + uint64 handler_id = 1; + // CodeHash common.Hash - string code_hash = 1; + string code_hash = 2; } message GetCodeResponse { @@ -459,10 +468,12 @@ message GetCodeResponse { } message SetAccountRequest { + uint64 handler_id = 1; + // Addr common.Address - string addr = 1; + string addr = 2; // Account statedb.Account - bytes account = 2; + bytes account = 3; } message SetAccountResponse { @@ -471,30 +482,33 @@ message SetAccountResponse { } message SetStateRequest { + uint64 handler_id = 1; // Addr common.Address - string addr = 1; + string addr = 2; // Key common.Hash - string key = 2; + string key = 3; // Value []byte - bytes value = 3; + bytes value = 4; } message SetStateResponse { } message SetCodeRequest { + uint64 handler_id = 1; // CodeHash []byte - bytes code_hash = 1; + bytes code_hash = 2; // Code []byte - bytes code = 2; + bytes code = 3; } message SetCodeResponse { } message DeleteAccountRequest { + uint64 handler_id = 1; // Addr common.Address - string addr = 1; + string addr = 2; } message DeleteAccountResponse { diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index e1ddafecf5..0351993f81 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -762,8 +762,12 @@ func getChainID(ctx sdk.Context, chainID int64) (*big.Int, error) { // QueryGetHashStateDB queries hash in statedb for sgx func (k Keeper) QueryGetHashStateDB(_ context.Context, req *types.GetHashRequest) (*types.GetHashResponse, error) { - ctx := k.preparedCtx - hash := k.GetHashFn(ctx)(req.Height) + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + + hash := k.GetHashFn(*ctx)(req.Height) res := &types.GetHashResponse{ Hash: hash.Hex(), @@ -774,13 +778,17 @@ func (k Keeper) QueryGetHashStateDB(_ context.Context, req *types.GetHashRequest // PostAddBalanceStateDB add balance in statedb for sgx func (k Keeper) PostAddBalanceStateDB(_ context.Context, req *types.AddBalanceRequest) (*types.AddBalanceResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + addr, err := sdk.AccAddressFromBech32(req.Addr) if err != nil { return nil, err } - err = k.AddBalance(ctx, addr, req.Amount) + err = k.AddBalance(*ctx, addr, req.Amount) if err != nil { return nil, err } @@ -790,13 +798,17 @@ func (k Keeper) PostAddBalanceStateDB(_ context.Context, req *types.AddBalanceRe // PostSubBalanceStateDB sub balance in statedb for sgx func (k Keeper) PostSubBalanceStateDB(_ context.Context, req *types.SubBalanceRequest) (*types.SubBalanceResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + addr, err := sdk.AccAddressFromBech32(req.Addr) if err != nil { return nil, err } - err = k.SubBalance(ctx, addr, req.Amount) + err = k.SubBalance(*ctx, addr, req.Amount) if err != nil { return nil, err } @@ -806,13 +818,17 @@ func (k Keeper) PostSubBalanceStateDB(_ context.Context, req *types.SubBalanceRe // QueryGetBalanceStateDB queries balance in statedb for sgx func (k Keeper) QueryGetBalanceStateDB(_ context.Context, req *types.GetBalanceRequest) (*types.GetBalanceResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + addr, err := sdk.AccAddressFromBech32(req.Addr) if err != nil { return nil, err } - balance := k.GetBalance(ctx, addr, req.Denom) + balance := k.GetBalance(*ctx, addr, req.Denom) return &types.GetBalanceResponse{ Balance: sdkmath.NewIntFromBigInt(balance), @@ -821,9 +837,13 @@ func (k Keeper) QueryGetBalanceStateDB(_ context.Context, req *types.GetBalanceR // QueryGetAccountStateDB queries account in statedb for sgx func (k Keeper) QueryGetAccountStateDB(_ context.Context, req *types.GetAccountRequest) (*types.GetAccountResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + addr := common.HexToAddress(req.Addr) - account := k.GetAccount(ctx, addr) + account := k.GetAccount(*ctx, addr) if account == nil { return nil, errors.New("account doesn't exist") } @@ -840,11 +860,15 @@ func (k Keeper) QueryGetAccountStateDB(_ context.Context, req *types.GetAccountR // QueryGetStateStateDB queries state in statedb for sgx func (k Keeper) QueryGetStateStateDB(_ context.Context, req *types.GetStateRequest) (*types.GetStateResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + addr := common.HexToAddress(req.Addr) key := common.HexToHash(req.Key) - hash := k.GetState(ctx, addr, key) + hash := k.GetState(*ctx, addr, key) return &types.GetStateResponse{ Hash: hash.Hex(), }, nil @@ -852,10 +876,14 @@ func (k Keeper) QueryGetStateStateDB(_ context.Context, req *types.GetStateReque // QueryGetCodeStateDB queries code in statedb for sgx func (k Keeper) QueryGetCodeStateDB(_ context.Context, req *types.GetCodeRequest) (*types.GetCodeResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + codeHash := common.HexToHash(req.CodeHash) - code := k.GetCode(ctx, codeHash) + code := k.GetCode(*ctx, codeHash) return &types.GetCodeResponse{ Code: code, }, nil @@ -863,7 +891,11 @@ func (k Keeper) QueryGetCodeStateDB(_ context.Context, req *types.GetCodeRequest // PostSetAccountStateDB sets account in statedb for sgx func (k Keeper) PostSetAccountStateDB(_ context.Context, req *types.SetAccountRequest) (*types.SetAccountResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + addr := common.HexToAddress(req.Addr) var account statedb.Account @@ -872,7 +904,7 @@ func (k Keeper) PostSetAccountStateDB(_ context.Context, req *types.SetAccountRe return nil, status.Error(codes.InvalidArgument, err.Error()) } - err = k.SetAccount(ctx, addr, account) + err = k.SetAccount(*ctx, addr, account) if err != nil { return nil, status.Error(codes.InvalidArgument, err.Error()) } @@ -882,27 +914,38 @@ func (k Keeper) PostSetAccountStateDB(_ context.Context, req *types.SetAccountRe // PostSetStateStateDB sets state in statedb for sgx func (k Keeper) PostSetStateStateDB(_ context.Context, req *types.SetStateRequest) (*types.SetStateResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + addr := common.HexToAddress(req.Addr) key := common.HexToHash(req.Key) - k.SetState(ctx, addr, key, req.Value) + k.SetState(*ctx, addr, key, req.Value) return &types.SetStateResponse{}, nil } // PostSetCodeStateDB sets code in statedb for sgx func (k Keeper) PostSetCodeStateDB(_ context.Context, req *types.SetCodeRequest) (*types.SetCodeResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } - k.SetCode(ctx, req.CodeHash, req.Code) + k.SetCode(*ctx, req.CodeHash, req.Code) return &types.SetCodeResponse{}, nil } // PostDeleteAccountStateDB delete account in statedb for sgx func (k Keeper) PostDeleteAccountStateDB(_ context.Context, req *types.DeleteAccountRequest) (*types.DeleteAccountResponse, error) { - ctx := k.preparedCtx + ctx := k.preparedCtxs[req.HandlerId] + if ctx == nil { + return nil, errors.New("context invalid") + } + addr := common.HexToAddress(req.Addr) - k.DeleteAccount(ctx, addr) + k.DeleteAccount(*ctx, addr) return &types.DeleteAccountResponse{}, nil } diff --git a/x/evm/keeper/keeper.go b/x/evm/keeper/keeper.go index 968e69e967..2519081d7f 100644 --- a/x/evm/keeper/keeper.go +++ b/x/evm/keeper/keeper.go @@ -80,7 +80,10 @@ type Keeper struct { keys map[string]storetypes.StoreKey // ctx stored at the time of prepare SGX call - preparedCtx sdk.Context + preparedCtxs map[uint64]*sdk.Context + + // ctx + handlerId uint64 } // NewKeeper generates new evm module keeper @@ -121,6 +124,8 @@ func NewKeeper( tracer: tracer, customContractFns: customContractFns, keys: keys, + preparedCtxs: make(map[uint64]*sdk.Context), + handlerId: 0, } } diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go index efa990601a..890a62f148 100644 --- a/x/evm/keeper/rpc_client.go +++ b/x/evm/keeper/rpc_client.go @@ -113,6 +113,9 @@ type PrepareTxEVMConfig struct { // PrepareTxArgs is the argument struct for the SgxRpcServer.PrepareTx RPC method. type PrepareTxArgs struct { + // Handler Id + HandlerId uint64 + TxHash []byte // Header is the Tendermint header of the block in which the transaction // will be executed. @@ -129,11 +132,12 @@ type PrepareTxReply struct { // CallArgs is the argument struct for the SgxRpcServer.Call RPC method. type CallArgs struct { - Caller vm.AccountRef - Addr common.Address - Input []byte - Gas uint64 - Value *big.Int + HandlerId uint64 + Caller vm.AccountRef + Addr common.Address + Input []byte + Gas uint64 + Value *big.Int } // CallReply is the reply struct for the SgxRpcServer.Call RPC method. @@ -144,10 +148,11 @@ type CallReply struct { // CreateArgs is the argument struct for the SgxRpcServer.Create RPC method. type CreateArgs struct { - Caller vm.AccountRef - Code []byte - Gas uint64 - Value *big.Int + HandlerId uint64 + Caller vm.AccountRef + Code []byte + Gas uint64 + Value *big.Int } // CreateReply is the reply struct for the SgxRpcServer.Create RPC method. @@ -159,7 +164,8 @@ type CreateReply struct { // CommitArgs is the argument struct for the SgxRpcServer.Commit RPC method. type CommitArgs struct { - Commit bool + HandlerId uint64 + Commit bool } // CommitReply is the reply struct for the SgxRpcServer.Commit RPC method. @@ -168,8 +174,9 @@ type CommitReply struct { // CommitArgs is the argument struct for the SgxRpcServer.StateDBSubBalance RPC method. type StateDBSubBalanceArgs struct { - Caller vm.AccountRef - Msg core.Message + HandlerId uint64 + Caller vm.AccountRef + Msg core.Message } // CommitReply is the reply struct for the SgxRpcServer.StateDBSubBalance RPC method. @@ -178,8 +185,9 @@ type StateDBSubBalanceReply struct { // CommitArgs is the argument struct for the SgxRpcServer.StateDSetNonce RPC method. type StateDBSetNonceArgs struct { - Caller vm.AccountRef - Nonce uint64 + HandlerId uint64 + Caller vm.AccountRef + Nonce uint64 } // CommitReply is the reply struct for the SgxRpcServer.StateDSetNonce RPC method. @@ -188,6 +196,7 @@ type StateDBSetNonceReply struct { // StateDBAddBalanceArgs is the argument struct for the SgxRpcServer.StateDBAddBalance RPC method. type StateDBAddBalanceArgs struct { + HandlerId uint64 Caller vm.AccountRef Msg core.Message LeftoverGas uint64 @@ -198,8 +207,9 @@ type StateDBAddBalanceReply struct { } type StateDBPrepareArgs struct { - Msg core.Message - Rules params.Rules + HandlerId uint64 + Msg core.Message + Rules params.Rules } type StateDBPrepareReply struct { @@ -207,8 +217,9 @@ type StateDBPrepareReply struct { // StateDBIncreaseNonceArgs is the argument struct for the SgxRpcServer.StateDBIncreaseNonce RPC method. type StateDBIncreaseNonceArgs struct { - Caller vm.AccountRef - Msg core.Message + HandlerId uint64 + Caller vm.AccountRef + Msg core.Message } // StateDBIncreaseNonceReply is the reply struct for the SgxRpcServer.StateDBIncreaseNonce RPC method. @@ -216,6 +227,7 @@ type StateDBIncreaseNonceReply struct { } type StateDBGetRefundArgs struct { + HandlerId uint64 } type StateDBGetRefundReply struct { @@ -223,6 +235,7 @@ type StateDBGetRefundReply struct { } type StateDBGetLogsArgs struct { + HandlerId uint64 } type StateDBGetLogsReply struct { diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index ac46621cca..fa60ce0385 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -319,8 +319,9 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.SubBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit))) var reply StateDBSubBalanceReply err := sgxRPCClient.StateDBSubBalance(StateDBSubBalanceArgs{ - Caller: sender, - Msg: msg, + HandlerId: k.handlerId, + Caller: sender, + Msg: msg, }, &reply) if err != nil { return nil, err @@ -330,8 +331,9 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.SetNonce(sender.Address(), stateDB.GetNonce(sender.Address())+1) var replyNonce StateDBIncreaseNonceReply err = sgxRPCClient.StateDBIncreaseNonce(StateDBIncreaseNonceArgs{ - Caller: sender, - Msg: msg, + HandlerId: k.handlerId, + Caller: sender, + Msg: msg, }, &replyNonce) if err != nil { return nil, err @@ -344,6 +346,7 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.AddBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas))) var reply StateDBAddBalanceReply err := sgxRPCClient.StateDBAddBalance(StateDBAddBalanceArgs{ + HandlerId: k.handlerId, Caller: sender, Msg: msg, LeftoverGas: leftoverGas, @@ -388,8 +391,9 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) var replyPrepare StateDBPrepareReply err = sgxRPCClient.StateDBPrepare(StateDBPrepareArgs{ - Msg: msg, - Rules: rules, + HandlerId: k.handlerId, + Msg: msg, + Rules: rules, }, &replyPrepare) if err != nil { return nil, err @@ -404,8 +408,9 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.SetNonce(sender.Address(), msg.Nonce) var replyNonce StateDBSetNonceReply err := sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ - Caller: sender, - Nonce: msg.Nonce, + HandlerId: k.handlerId, + Caller: sender, + Nonce: msg.Nonce, }, &replyNonce) if err != nil { return nil, err @@ -415,10 +420,11 @@ func (k *Keeper) ApplyMessageWithConfig( // ret, _, leftoverGas, vmErr = evm.Create(sender, msg.Data, leftoverGas, msg.Value) var reply CreateReply vmErr = sgxRPCClient.Create(CreateArgs{ - Caller: sender, - Code: msg.Data, - Gas: leftoverGas, - Value: msg.Value, + HandlerId: k.handlerId, + Caller: sender, + Code: msg.Data, + Gas: leftoverGas, + Value: msg.Value, }, &reply) ret = reply.Ret leftoverGas = reply.LeftOverGas @@ -426,19 +432,21 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce+1) sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ - Caller: sender, - Nonce: msg.Nonce + 1, + HandlerId: k.handlerId, + Caller: sender, + Nonce: msg.Nonce + 1, }, &replyNonce) } else { // Ethermint original code: // ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) var reply CallReply vmErr = sgxRPCClient.Call(CallArgs{ - Caller: sender, - Addr: *msg.To, - Input: msg.Data, - Gas: leftoverGas, - Value: msg.Value, + HandlerId: k.handlerId, + Caller: sender, + Addr: *msg.To, + Input: msg.Data, + Gas: leftoverGas, + Value: msg.Value, }, &reply) ret = reply.Ret leftoverGas = reply.LeftOverGas @@ -462,7 +470,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // leftoverGas += GasToRefund(stateDB.GetRefund(), temporaryGasUsed, refundQuotient) var replyRefund StateDBGetRefundReply - err = sgxRPCClient.StateDBGetRefund(StateDBGetRefundArgs{}, &replyRefund) + err = sgxRPCClient.StateDBGetRefund(StateDBGetRefundArgs{HandlerId: k.handlerId}, &replyRefund) if err != nil { return nil, err } @@ -484,7 +492,8 @@ func (k *Keeper) ApplyMessageWithConfig( // } var reply CommitReply err := sgxRPCClient.Commit(CommitArgs{ - Commit: true, + HandlerId: k.handlerId, + Commit: true, }, &reply) if err != nil { return nil, errorsmod.Wrap(err, "failed to commit sgx stateDB") @@ -513,7 +522,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // Logs: types.NewLogsFromEth(stateDB.Logs()), var replyLog StateDBGetLogsReply - err = sgxRPCClient.StateDBGetLogs(StateDBGetLogsArgs{}, &replyLog) + err = sgxRPCClient.StateDBGetLogs(StateDBGetLogsArgs{HandlerId: k.handlerId}, &replyLog) if err != nil { return nil, err } @@ -548,10 +557,14 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf } } + // Increase handler id + k.handlerId++ + ctx.HeaderHash() args := PrepareTxArgs{ - Header: ctx.BlockHeader(), - Msg: msg, + HandlerId: k.handlerId, + Header: ctx.BlockHeader(), + Msg: msg, EvmConfig: PrepareTxEVMConfig{ ChainConfigJson: ChainConfigJson, CoinBase: cfg.CoinBase, @@ -565,7 +578,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf } // Snapshot the ctx - k.preparedCtx = ctx + k.preparedCtxs[k.handlerId] = &ctx return sgxRPCClient.PrepareTx(args, &PrepareTxReply{}) } diff --git a/x/evm/types/query.pb.go b/x/evm/types/query.pb.go index ae47621449..425d133e9d 100644 --- a/x/evm/types/query.pb.go +++ b/x/evm/types/query.pb.go @@ -1470,7 +1470,8 @@ func (m *QueryBaseFeeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryBaseFeeResponse proto.InternalMessageInfo type GetHashRequest struct { - Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *GetHashRequest) Reset() { *m = GetHashRequest{} } @@ -1506,6 +1507,13 @@ func (m *GetHashRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GetHashRequest proto.InternalMessageInfo +func (m *GetHashRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *GetHashRequest) GetHeight() uint64 { if m != nil { return m.Height @@ -1559,10 +1567,11 @@ func (m *GetHashResponse) GetHash() string { } type AddBalanceRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Addr sdk.AccAddress - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // Amount sdk.Coins - Amount []types1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount"` + Amount []types1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` } func (m *AddBalanceRequest) Reset() { *m = AddBalanceRequest{} } @@ -1598,6 +1607,13 @@ func (m *AddBalanceRequest) XXX_DiscardUnknown() { var xxx_messageInfo_AddBalanceRequest proto.InternalMessageInfo +func (m *AddBalanceRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *AddBalanceRequest) GetAddr() string { if m != nil { return m.Addr @@ -1649,10 +1665,11 @@ func (m *AddBalanceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AddBalanceResponse proto.InternalMessageInfo type SubBalanceRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Addr sdk.AccAddress - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // Amount sdk.Coins - Amount []types1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount"` + Amount []types1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` } func (m *SubBalanceRequest) Reset() { *m = SubBalanceRequest{} } @@ -1688,6 +1705,13 @@ func (m *SubBalanceRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SubBalanceRequest proto.InternalMessageInfo +func (m *SubBalanceRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *SubBalanceRequest) GetAddr() string { if m != nil { return m.Addr @@ -1739,10 +1763,11 @@ func (m *SubBalanceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_SubBalanceResponse proto.InternalMessageInfo type GetBalanceRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Addr sdk.AccAddress - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // Denom string - Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` } func (m *GetBalanceRequest) Reset() { *m = GetBalanceRequest{} } @@ -1778,6 +1803,13 @@ func (m *GetBalanceRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GetBalanceRequest proto.InternalMessageInfo +func (m *GetBalanceRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *GetBalanceRequest) GetAddr() string { if m != nil { return m.Addr @@ -1793,7 +1825,7 @@ func (m *GetBalanceRequest) GetDenom() string { } type GetBalanceResponse struct { - // Balance *big.Int + // Balance *big.Int Balance cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=balance,proto3,customtype=cosmossdk.io/math.Int" json:"balance"` } @@ -1831,8 +1863,9 @@ func (m *GetBalanceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetBalanceResponse proto.InternalMessageInfo type GetAccountRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Addr common.Address - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` } func (m *GetAccountRequest) Reset() { *m = GetAccountRequest{} } @@ -1868,6 +1901,13 @@ func (m *GetAccountRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GetAccountRequest proto.InternalMessageInfo +func (m *GetAccountRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *GetAccountRequest) GetAddr() string { if m != nil { return m.Addr @@ -1922,10 +1962,11 @@ func (m *GetAccountResponse) GetAccount() []byte { } type GetStateRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Addr common.Address - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // Key common.Hash - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` } func (m *GetStateRequest) Reset() { *m = GetStateRequest{} } @@ -1961,6 +2002,13 @@ func (m *GetStateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GetStateRequest proto.InternalMessageInfo +func (m *GetStateRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *GetStateRequest) GetAddr() string { if m != nil { return m.Addr @@ -2021,8 +2069,9 @@ func (m *GetStateResponse) GetHash() string { } type GetCodeRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // CodeHash common.Hash - CodeHash string `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` + CodeHash string `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` } func (m *GetCodeRequest) Reset() { *m = GetCodeRequest{} } @@ -2058,6 +2107,13 @@ func (m *GetCodeRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GetCodeRequest proto.InternalMessageInfo +func (m *GetCodeRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *GetCodeRequest) GetCodeHash() string { if m != nil { return m.CodeHash @@ -2111,10 +2167,11 @@ func (m *GetCodeResponse) GetCode() []byte { } type SetAccountRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Addr common.Address - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // Account statedb.Account - Account []byte `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` + Account []byte `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` } func (m *SetAccountRequest) Reset() { *m = SetAccountRequest{} } @@ -2150,6 +2207,13 @@ func (m *SetAccountRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SetAccountRequest proto.InternalMessageInfo +func (m *SetAccountRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *SetAccountRequest) GetAddr() string { if m != nil { return m.Addr @@ -2217,12 +2281,13 @@ func (m *SetAccountResponse) GetCodeHash() []byte { } type SetStateRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Addr common.Address - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // Key common.Hash - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // Value []byte - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` } func (m *SetStateRequest) Reset() { *m = SetStateRequest{} } @@ -2258,6 +2323,13 @@ func (m *SetStateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SetStateRequest proto.InternalMessageInfo +func (m *SetStateRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *SetStateRequest) GetAddr() string { if m != nil { return m.Addr @@ -2316,10 +2388,11 @@ func (m *SetStateResponse) XXX_DiscardUnknown() { var xxx_messageInfo_SetStateResponse proto.InternalMessageInfo type SetCodeRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // CodeHash []byte - CodeHash []byte `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` + CodeHash []byte `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` // Code []byte - Code []byte `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` + Code []byte `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` } func (m *SetCodeRequest) Reset() { *m = SetCodeRequest{} } @@ -2355,6 +2428,13 @@ func (m *SetCodeRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SetCodeRequest proto.InternalMessageInfo +func (m *SetCodeRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *SetCodeRequest) GetCodeHash() []byte { if m != nil { return m.CodeHash @@ -2406,8 +2486,9 @@ func (m *SetCodeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_SetCodeResponse proto.InternalMessageInfo type DeleteAccountRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Addr common.Address - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` } func (m *DeleteAccountRequest) Reset() { *m = DeleteAccountRequest{} } @@ -2443,6 +2524,13 @@ func (m *DeleteAccountRequest) XXX_DiscardUnknown() { var xxx_messageInfo_DeleteAccountRequest proto.InternalMessageInfo +func (m *DeleteAccountRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + func (m *DeleteAccountRequest) GetAddr() string { if m != nil { return m.Addr @@ -2540,140 +2628,142 @@ func init() { func init() { proto.RegisterFile("ethermint/evm/v1/query.proto", fileDescriptor_e15a877459347994) } var fileDescriptor_e15a877459347994 = []byte{ - // 2120 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0x5f, 0x6f, 0x1b, 0xc7, - 0x11, 0xd7, 0x89, 0x94, 0x48, 0x8d, 0x64, 0x5b, 0x5a, 0x4b, 0x31, 0x75, 0xd6, 0x3f, 0xaf, 0xfe, - 0xda, 0x96, 0x8f, 0x95, 0x1a, 0xc4, 0x68, 0x80, 0xa2, 0x91, 0x18, 0xdb, 0x4d, 0x63, 0x07, 0x2e, - 0x29, 0xf4, 0xa1, 0x40, 0xc1, 0x1e, 0x79, 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x30, 0xbe, 0x7a, - 0xb6, 0x61, 0x7c, 0xfd, 0x6c, 0xc3, 0xf8, 0xfc, 0xf9, 0xc6, 0xd4, 0x57, 0xcf, 0x37, 0xa6, 0xfe, - 0xf1, 0x7c, 0x63, 0xea, 0xe7, 0x7b, 0x81, 0x87, 0x24, 0xd2, 0x6d, 0x52, 0x16, 0xe0, 0xd5, 0x93, - 0xdc, 0xe4, 0x63, 0x52, 0x65, 0x56, 0xbe, 0x5b, 0x7d, 0xff, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x1e, 0x07, 0xf1, 0x4b, 0xea, 0x1e, 0x00, 0x00, + // 2152 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0xdd, 0x6e, 0x1b, 0xc7, + 0xf5, 0xd7, 0x9a, 0x94, 0x48, 0x1d, 0xc9, 0xb6, 0x34, 0x96, 0x62, 0x6a, 0xad, 0x2f, 0x8f, 0x3e, + 0x6d, 0x2b, 0xcb, 0xbf, 0xf4, 0x0f, 0x12, 0x34, 0x37, 0x8d, 0xa5, 0xd8, 0xaa, 0x1b, 0x3b, 0x70, + 0x49, 0x21, 0x17, 0x45, 0x0b, 0x66, 0xc8, 0x1d, 0x2f, 0x09, 0x91, 0x5c, 0x66, 0x67, 0xc8, 0xd2, + 0x49, 0x9c, 0xa2, 0x41, 0x9b, 0x26, 0x0d, 0x50, 0x04, 0x28, 0x7a, 0x5b, 0xe4, 0x0d, 0xfa, 0x1a, + 0xb9, 0x0c, 0xd0, 0x16, 0x28, 0x7a, 0xe1, 0x06, 0x76, 0x2f, 0xfa, 0x0c, 0xbd, 0x2a, 0x66, 0x76, + 0x86, 0xbb, 0xcb, 0x5d, 0x2e, 0xe5, 0xda, 0x41, 0x03, 0xf4, 0x8a, 0x3b, 0x33, 0x67, 0xce, 0xf9, + 0xcd, 0x9c, 0xaf, 0x39, 0x87, 0xb0, 0x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aa, 0x1d, 0x4e, 0x2f, 0x7b, 0x12, 0xd6, 0x36, 0xda, 0x8c, 0xc3, 0x52, + 0x41, 0x9d, 0x85, 0xae, 0xee, 0x73, 0x03, 0x72, 0xaa, 0x79, 0x32, 0x12, 0x48, 0xb4, 0x53, 0x33, + 0x12, 0xc8, 0x50, 0x0f, 0x06, 0xef, 0x4b, 0x20, 0x37, 0xd0, 0xb5, 0x38, 0x10, 0xe6, 0x93, 0x06, + 0x38, 0x8a, 0x1f, 0x9c, 0xd2, 0x87, 0x8f, 0xd0, 0xfb, 0x90, 0x15, 0xfe, 0x86, 0xf0, 0x48, 0x93, + 0x19, 0xb8, 0xbb, 0xb9, 0x91, 0x4a, 0xa3, 0x30, 0x5c, 0x93, 0x18, 0x36, 0xd0, 0xd5, 0x24, 0x6b, + 0xb2, 0x23, 0x37, 0xf1, 0x33, 0x98, 0xf2, 0xdb, 0x0c, 0x68, 0x73, 0x04, 0xe7, 0x48, 0x37, 0xc3, + 0xdc, 0x1a, 0x43, 0xa5, 0x10, 0xac, 0x4b, 0x04, 0x26, 0x2a, 0x14, 0x47, 0xb4, 0x90, 0x51, 0x1f, + 0x72, 0xaa, 0x8d, 0x81, 0xd6, 0xe3, 0x3c, 0xa3, 0x1d, 0x0e, 0x73, 0x67, 0xdc, 0xbb, 0x5e, 0xcb, + 0xc5, 0x52, 0xee, 0x32, 0x32, 0xe3, 0x72, 0x29, 0xaf, 0x57, 0x6a, 0x42, 0xdc, 0x47, 0x30, 0x13, + 0xea, 0x34, 0x9c, 0x41, 0x7a, 0xc2, 0x99, 0x13, 0x5a, 0x15, 0x78, 0x5b, 0xca, 0x5e, 0x47, 0xab, + 0x09, 0xb2, 0x15, 0x79, 0xc5, 0x21, 0x0c, 0x7d, 0x08, 0x39, 0x55, 0xab, 0x8e, 0xb4, 0xbd, 0x68, + 0xb7, 0x62, 0xa4, 0xed, 0x0d, 0x95, 0xbc, 0x69, 0xa7, 0xf7, 0x0b, 0x1e, 0xde, 0x47, 0x9f, 0x1a, + 0x00, 0xc1, 0xab, 0x1d, 0xed, 0xa6, 0xb1, 0x0e, 0x17, 0x5a, 0xe6, 0xb5, 0x33, 0x50, 0x2a, 0x1c, + 0x5b, 0x12, 0xc7, 0x1a, 0x5a, 0x19, 0x85, 0x43, 0x96, 0x30, 0xe8, 0x97, 0x06, 0x4c, 0x0f, 0xea, + 0x3f, 0xb4, 0x93, 0xc6, 0x3f, 0xac, 0x8e, 0xdd, 0xf1, 0x84, 0x0a, 0xc7, 0xa6, 0xc4, 0xb1, 0x8a, + 0x96, 0x47, 0xe1, 0x90, 0xf6, 0xf0, 0xa1, 0x08, 0x4a, 0xb2, 0x84, 0x48, 0x09, 0x4a, 0xe1, 0xba, + 0x25, 0x25, 0x28, 0x45, 0xea, 0x98, 0x34, 0x7d, 0xe8, 0xfa, 0x06, 0x7d, 0xa4, 0x4a, 0x23, 0x55, + 0x71, 0xc8, 0x74, 0xff, 0xe6, 0x61, 0x92, 0x55, 0x46, 0x8b, 0x1b, 0xf3, 0x6a, 0x0a, 0xc5, 0x78, + 0xf9, 0x0e, 0xe5, 0xf2, 0x4d, 0x80, 0x3e, 0x33, 0x60, 0xf1, 0xbe, 0xcb, 0x78, 0x50, 0x49, 0x68, + 0x08, 0x09, 0xa1, 0x26, 0x56, 0xef, 0x98, 0x9b, 0xe9, 0x44, 0x51, 0x83, 0xc0, 0x09, 0x06, 0x41, + 0x6c, 0xbb, 0xa2, 0xff, 0x69, 0xd1, 0x58, 0x82, 0xf2, 0x21, 0x05, 0x4b, 0xac, 0xc8, 0x49, 0xc2, + 0x92, 0x50, 0x88, 0xa4, 0x60, 0x61, 0xdd, 0xea, 0x00, 0xcb, 0x6f, 0x0c, 0xd5, 0x72, 0x08, 0xea, + 0x8a, 0x14, 0x30, 0xb1, 0xd2, 0x26, 0x09, 0x4c, 0xbc, 0x42, 0x49, 0xf3, 0x14, 0xa1, 0xa1, 0x24, + 0x30, 0x2a, 0x21, 0xa7, 0x83, 0x19,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xb9, 0x2c, 0xc4, 0xab, 0x2f, + 0xb9, 0xc9, 0x0e, 0x5d, 0x75, 0x4a, 0x36, 0x03, 0xff, 0xff, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xcd, 0xe1, 0xa6, 0x8e, 0x3f, 0x20, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -4686,6 +4776,11 @@ func (m *GetHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.Height != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.Height)) i-- + dAtA[i] = 0x10 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil @@ -4752,7 +4847,7 @@ func (m *AddBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } } if len(m.Addr) > 0 { @@ -4760,7 +4855,12 @@ func (m *AddBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Addr) i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -4819,7 +4919,7 @@ func (m *SubBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } } if len(m.Addr) > 0 { @@ -4827,7 +4927,12 @@ func (m *SubBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Addr) i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -4880,14 +4985,19 @@ func (m *GetBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Denom) i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } if len(m.Addr) > 0 { i -= len(m.Addr) copy(dAtA[i:], m.Addr) i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -4950,7 +5060,12 @@ func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Addr) i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -5010,14 +5125,19 @@ func (m *GetStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Key) i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } if len(m.Addr) > 0 { i -= len(m.Addr) copy(dAtA[i:], m.Addr) i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -5077,7 +5197,12 @@ func (m *GetCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.CodeHash) i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -5137,14 +5262,19 @@ func (m *SetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Account) i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } if len(m.Addr) > 0 { i -= len(m.Addr) copy(dAtA[i:], m.Addr) i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -5209,21 +5339,26 @@ func (m *SetStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Value) i = encodeVarintQuery(dAtA, i, uint64(len(m.Value))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } if len(m.Key) > 0 { i -= len(m.Key) copy(dAtA[i:], m.Key) i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } if len(m.Addr) > 0 { i -= len(m.Addr) copy(dAtA[i:], m.Addr) i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -5276,14 +5411,19 @@ func (m *SetCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Code) i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } if len(m.CodeHash) > 0 { i -= len(m.CodeHash) copy(dAtA[i:], m.CodeHash) i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -5336,7 +5476,12 @@ func (m *DeleteAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Addr) i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -5834,6 +5979,9 @@ func (m *GetHashRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } if m.Height != 0 { n += 1 + sovQuery(uint64(m.Height)) } @@ -5859,6 +6007,9 @@ func (m *AddBalanceRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.Addr) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -5887,6 +6038,9 @@ func (m *SubBalanceRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.Addr) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -5915,6 +6069,9 @@ func (m *GetBalanceRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.Addr) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -5943,6 +6100,9 @@ func (m *GetAccountRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.Addr) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -5969,6 +6129,9 @@ func (m *GetStateRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.Addr) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -5999,6 +6162,9 @@ func (m *GetCodeRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.CodeHash) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -6025,6 +6191,9 @@ func (m *SetAccountRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.Addr) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -6058,6 +6227,9 @@ func (m *SetStateRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.Addr) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -6088,6 +6260,9 @@ func (m *SetCodeRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.CodeHash) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -6114,6 +6289,9 @@ func (m *DeleteAccountRequest) Size() (n int) { } var l int _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } l = len(m.Addr) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -9221,6 +9399,25 @@ func (m *GetHashRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) } @@ -9372,6 +9569,25 @@ func (m *AddBalanceRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } @@ -9403,7 +9619,7 @@ func (m *AddBalanceRequest) Unmarshal(dAtA []byte) error { } m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } @@ -9538,6 +9754,25 @@ func (m *SubBalanceRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } @@ -9569,7 +9804,7 @@ func (m *SubBalanceRequest) Unmarshal(dAtA []byte) error { } m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } @@ -9704,6 +9939,25 @@ func (m *GetBalanceRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } @@ -9735,7 +9989,7 @@ func (m *GetBalanceRequest) Unmarshal(dAtA []byte) error { } m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } @@ -9902,6 +10156,25 @@ func (m *GetAccountRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } @@ -10068,6 +10341,25 @@ func (m *GetStateRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } @@ -10099,7 +10391,7 @@ func (m *GetStateRequest) Unmarshal(dAtA []byte) error { } m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } @@ -10264,6 +10556,25 @@ func (m *GetCodeRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) } @@ -10430,6 +10741,25 @@ func (m *SetAccountRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } @@ -10461,7 +10791,7 @@ func (m *SetAccountRequest) Unmarshal(dAtA []byte) error { } m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) } @@ -10649,6 +10979,25 @@ func (m *SetStateRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } @@ -10680,7 +11029,7 @@ func (m *SetStateRequest) Unmarshal(dAtA []byte) error { } m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } @@ -10712,7 +11061,7 @@ func (m *SetStateRequest) Unmarshal(dAtA []byte) error { } m.Key = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } @@ -10847,6 +11196,25 @@ func (m *SetCodeRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) } @@ -10880,7 +11248,7 @@ func (m *SetCodeRequest) Unmarshal(dAtA []byte) error { m.CodeHash = []byte{} } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) } @@ -11015,6 +11383,25 @@ func (m *DeleteAccountRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } From 377145278d3357dff43da0f1a37ee9332efbdde6 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Tue, 16 Apr 2024 15:42:21 +0000 Subject: [PATCH 22/46] chore: manage handler id in sgx part --- x/evm/keeper/keeper.go | 4 --- x/evm/keeper/rpc_client.go | 5 ++-- x/evm/keeper/state_transition.go | 50 +++++++++++++++++--------------- 3 files changed, 29 insertions(+), 30 deletions(-) diff --git a/x/evm/keeper/keeper.go b/x/evm/keeper/keeper.go index 2519081d7f..b2233be1c2 100644 --- a/x/evm/keeper/keeper.go +++ b/x/evm/keeper/keeper.go @@ -81,9 +81,6 @@ type Keeper struct { // ctx stored at the time of prepare SGX call preparedCtxs map[uint64]*sdk.Context - - // ctx - handlerId uint64 } // NewKeeper generates new evm module keeper @@ -125,7 +122,6 @@ func NewKeeper( customContractFns: customContractFns, keys: keys, preparedCtxs: make(map[uint64]*sdk.Context), - handlerId: 0, } } diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go index 890a62f148..865ef3090e 100644 --- a/x/evm/keeper/rpc_client.go +++ b/x/evm/keeper/rpc_client.go @@ -113,9 +113,6 @@ type PrepareTxEVMConfig struct { // PrepareTxArgs is the argument struct for the SgxRpcServer.PrepareTx RPC method. type PrepareTxArgs struct { - // Handler Id - HandlerId uint64 - TxHash []byte // Header is the Tendermint header of the block in which the transaction // will be executed. @@ -128,6 +125,8 @@ type PrepareTxArgs struct { // PrepareTxArgs is the reply struct for the SgxRpcServer.PrepareTx RPC method. type PrepareTxReply struct { + // Handler Id + HandlerId uint64 } // CallArgs is the argument struct for the SgxRpcServer.Call RPC method. diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index fa60ce0385..4093c0b9aa 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -302,7 +302,7 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, errorsmod.Wrap(err, "failed to create new SGX rpc client") } - err = k.prepareTxForSgx(ctx, msg, cfg, sgxRPCClient) + err, handlerId := k.prepareTxForSgx(ctx, msg, cfg, sgxRPCClient) if err != nil { return nil, errorsmod.Wrap(err, "failed to create new RPC server") } @@ -319,7 +319,7 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.SubBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit))) var reply StateDBSubBalanceReply err := sgxRPCClient.StateDBSubBalance(StateDBSubBalanceArgs{ - HandlerId: k.handlerId, + HandlerId: handlerId, Caller: sender, Msg: msg, }, &reply) @@ -331,7 +331,7 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.SetNonce(sender.Address(), stateDB.GetNonce(sender.Address())+1) var replyNonce StateDBIncreaseNonceReply err = sgxRPCClient.StateDBIncreaseNonce(StateDBIncreaseNonceArgs{ - HandlerId: k.handlerId, + HandlerId: handlerId, Caller: sender, Msg: msg, }, &replyNonce) @@ -346,7 +346,7 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.AddBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas))) var reply StateDBAddBalanceReply err := sgxRPCClient.StateDBAddBalance(StateDBAddBalanceArgs{ - HandlerId: k.handlerId, + HandlerId: handlerId, Caller: sender, Msg: msg, LeftoverGas: leftoverGas, @@ -391,7 +391,7 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) var replyPrepare StateDBPrepareReply err = sgxRPCClient.StateDBPrepare(StateDBPrepareArgs{ - HandlerId: k.handlerId, + HandlerId: handlerId, Msg: msg, Rules: rules, }, &replyPrepare) @@ -408,7 +408,7 @@ func (k *Keeper) ApplyMessageWithConfig( // stateDB.SetNonce(sender.Address(), msg.Nonce) var replyNonce StateDBSetNonceReply err := sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ - HandlerId: k.handlerId, + HandlerId: handlerId, Caller: sender, Nonce: msg.Nonce, }, &replyNonce) @@ -420,7 +420,7 @@ func (k *Keeper) ApplyMessageWithConfig( // ret, _, leftoverGas, vmErr = evm.Create(sender, msg.Data, leftoverGas, msg.Value) var reply CreateReply vmErr = sgxRPCClient.Create(CreateArgs{ - HandlerId: k.handlerId, + HandlerId: handlerId, Caller: sender, Code: msg.Data, Gas: leftoverGas, @@ -432,7 +432,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce+1) sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ - HandlerId: k.handlerId, + HandlerId: handlerId, Caller: sender, Nonce: msg.Nonce + 1, }, &replyNonce) @@ -441,7 +441,7 @@ func (k *Keeper) ApplyMessageWithConfig( // ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) var reply CallReply vmErr = sgxRPCClient.Call(CallArgs{ - HandlerId: k.handlerId, + HandlerId: handlerId, Caller: sender, Addr: *msg.To, Input: msg.Data, @@ -470,7 +470,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // leftoverGas += GasToRefund(stateDB.GetRefund(), temporaryGasUsed, refundQuotient) var replyRefund StateDBGetRefundReply - err = sgxRPCClient.StateDBGetRefund(StateDBGetRefundArgs{HandlerId: k.handlerId}, &replyRefund) + err = sgxRPCClient.StateDBGetRefund(StateDBGetRefundArgs{HandlerId: handlerId}, &replyRefund) if err != nil { return nil, err } @@ -492,7 +492,7 @@ func (k *Keeper) ApplyMessageWithConfig( // } var reply CommitReply err := sgxRPCClient.Commit(CommitArgs{ - HandlerId: k.handlerId, + HandlerId: handlerId, Commit: true, }, &reply) if err != nil { @@ -522,7 +522,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // Logs: types.NewLogsFromEth(stateDB.Logs()), var replyLog StateDBGetLogsReply - err = sgxRPCClient.StateDBGetLogs(StateDBGetLogsArgs{HandlerId: k.handlerId}, &replyLog) + err = sgxRPCClient.StateDBGetLogs(StateDBGetLogsArgs{HandlerId: handlerId}, &replyLog) if err != nil { return nil, err } @@ -542,29 +542,25 @@ func (k *Keeper) ApplyMessageWithConfig( // SGX // - sends a "PrepareTx" request to the SGX enclave with the relevant tx and // block info -func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRPCClient *sgxRPCClient) error { +func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRPCClient *sgxRPCClient) (error, uint64) { // Step 1. Send a "PrepareTx" request to the SGX enclave. ChainConfigJson, err := json.Marshal(cfg.ChainConfig) if err != nil { - return err + return err, 0 } var overrides []byte if cfg.Overrides != nil { overrides, err = json.Marshal(cfg.Overrides) if err != nil { - return err + return err, 0 } } - // Increase handler id - k.handlerId++ - ctx.HeaderHash() args := PrepareTxArgs{ - HandlerId: k.handlerId, - Header: ctx.BlockHeader(), - Msg: msg, + Header: ctx.BlockHeader(), + Msg: msg, EvmConfig: PrepareTxEVMConfig{ ChainConfigJson: ChainConfigJson, CoinBase: cfg.CoinBase, @@ -577,8 +573,16 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf }, } + reply := &PrepareTxReply{} + err = sgxRPCClient.PrepareTx(args, reply) + if err != nil { + return err, 0 + } + + // Store handler id + handlerId := reply.HandlerId // Snapshot the ctx - k.preparedCtxs[k.handlerId] = &ctx + k.preparedCtxs[handlerId] = &ctx - return sgxRPCClient.PrepareTx(args, &PrepareTxReply{}) + return err, handlerId } From 444ce4ba76003d089f8fae21703decf3deacb6d9 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Wed, 17 Apr 2024 18:26:17 +0000 Subject: [PATCH 23/46] chore: panic if either party is nil --- x/evm/keeper/grpc_query.go | 48 ++++++++--------- x/evm/keeper/keeper.go | 8 +-- x/evm/keeper/rpc_client.go | 3 +- x/evm/keeper/state_transition.go | 88 +++++++++++++++++++++++++++++--- x/evm/types/errors.go | 2 + 5 files changed, 113 insertions(+), 36 deletions(-) diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index 0351993f81..0d8dba90d4 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -394,7 +394,7 @@ func (k Keeper) EstimateGas(c context.Context, req *types.EthCallRequest) (*type VmError: result.VmError, }, nil } - return nil, errors.New(result.VmError) + panic(result.VmError) } // Otherwise, the specified gas cap is too low return nil, fmt.Errorf("gas required exceeds allowance (%d)", gasCap) @@ -762,9 +762,9 @@ func getChainID(ctx sdk.Context, chainID int64) (*big.Int, error) { // QueryGetHashStateDB queries hash in statedb for sgx func (k Keeper) QueryGetHashStateDB(_ context.Context, req *types.GetHashRequest) (*types.GetHashResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } hash := k.GetHashFn(*ctx)(req.Height) @@ -778,9 +778,9 @@ func (k Keeper) QueryGetHashStateDB(_ context.Context, req *types.GetHashRequest // PostAddBalanceStateDB add balance in statedb for sgx func (k Keeper) PostAddBalanceStateDB(_ context.Context, req *types.AddBalanceRequest) (*types.AddBalanceResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } addr, err := sdk.AccAddressFromBech32(req.Addr) @@ -798,9 +798,9 @@ func (k Keeper) PostAddBalanceStateDB(_ context.Context, req *types.AddBalanceRe // PostSubBalanceStateDB sub balance in statedb for sgx func (k Keeper) PostSubBalanceStateDB(_ context.Context, req *types.SubBalanceRequest) (*types.SubBalanceResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } addr, err := sdk.AccAddressFromBech32(req.Addr) @@ -818,9 +818,9 @@ func (k Keeper) PostSubBalanceStateDB(_ context.Context, req *types.SubBalanceRe // QueryGetBalanceStateDB queries balance in statedb for sgx func (k Keeper) QueryGetBalanceStateDB(_ context.Context, req *types.GetBalanceRequest) (*types.GetBalanceResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } addr, err := sdk.AccAddressFromBech32(req.Addr) @@ -837,15 +837,15 @@ func (k Keeper) QueryGetBalanceStateDB(_ context.Context, req *types.GetBalanceR // QueryGetAccountStateDB queries account in statedb for sgx func (k Keeper) QueryGetAccountStateDB(_ context.Context, req *types.GetAccountRequest) (*types.GetAccountResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } addr := common.HexToAddress(req.Addr) account := k.GetAccount(*ctx, addr) if account == nil { - return nil, errors.New("account doesn't exist") + panic("account doesn't exist") } res, err := json.Marshal(account) @@ -860,9 +860,9 @@ func (k Keeper) QueryGetAccountStateDB(_ context.Context, req *types.GetAccountR // QueryGetStateStateDB queries state in statedb for sgx func (k Keeper) QueryGetStateStateDB(_ context.Context, req *types.GetStateRequest) (*types.GetStateResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } addr := common.HexToAddress(req.Addr) @@ -876,9 +876,9 @@ func (k Keeper) QueryGetStateStateDB(_ context.Context, req *types.GetStateReque // QueryGetCodeStateDB queries code in statedb for sgx func (k Keeper) QueryGetCodeStateDB(_ context.Context, req *types.GetCodeRequest) (*types.GetCodeResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } codeHash := common.HexToHash(req.CodeHash) @@ -891,9 +891,9 @@ func (k Keeper) QueryGetCodeStateDB(_ context.Context, req *types.GetCodeRequest // PostSetAccountStateDB sets account in statedb for sgx func (k Keeper) PostSetAccountStateDB(_ context.Context, req *types.SetAccountRequest) (*types.SetAccountResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } addr := common.HexToAddress(req.Addr) @@ -914,9 +914,9 @@ func (k Keeper) PostSetAccountStateDB(_ context.Context, req *types.SetAccountRe // PostSetStateStateDB sets state in statedb for sgx func (k Keeper) PostSetStateStateDB(_ context.Context, req *types.SetStateRequest) (*types.SetStateResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } addr := common.HexToAddress(req.Addr) @@ -928,9 +928,9 @@ func (k Keeper) PostSetStateStateDB(_ context.Context, req *types.SetStateReques // PostSetCodeStateDB sets code in statedb for sgx func (k Keeper) PostSetCodeStateDB(_ context.Context, req *types.SetCodeRequest) (*types.SetCodeResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } k.SetCode(*ctx, req.CodeHash, req.Code) @@ -939,9 +939,9 @@ func (k Keeper) PostSetCodeStateDB(_ context.Context, req *types.SetCodeRequest) // PostDeleteAccountStateDB delete account in statedb for sgx func (k Keeper) PostDeleteAccountStateDB(_ context.Context, req *types.DeleteAccountRequest) (*types.DeleteAccountResponse, error) { - ctx := k.preparedCtxs[req.HandlerId] + ctx := k.sdkCtxs[req.HandlerId] if ctx == nil { - return nil, errors.New("context invalid") + panic("context invalid") } addr := common.HexToAddress(req.Addr) diff --git a/x/evm/keeper/keeper.go b/x/evm/keeper/keeper.go index b2233be1c2..bee901ac64 100644 --- a/x/evm/keeper/keeper.go +++ b/x/evm/keeper/keeper.go @@ -79,8 +79,10 @@ type Keeper struct { // or ideally just pass the application's all stores. keys map[string]storetypes.StoreKey - // ctx stored at the time of prepare SGX call - preparedCtxs map[uint64]*sdk.Context + // sdkCtxs maps a unique handler ID to a sdk.Context. It is used to track + // requests coming from the SGX binary, and handle them using the + // correct sdk.Context. + sdkCtxs map[uint64]*sdk.Context } // NewKeeper generates new evm module keeper @@ -121,7 +123,7 @@ func NewKeeper( tracer: tracer, customContractFns: customContractFns, keys: keys, - preparedCtxs: make(map[uint64]*sdk.Context), + sdkCtxs: make(map[uint64]*sdk.Context), } } diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go index 865ef3090e..9e3a6c9fa5 100644 --- a/x/evm/keeper/rpc_client.go +++ b/x/evm/keeper/rpc_client.go @@ -25,7 +25,8 @@ func newSgxRPCClient(logger log.Logger) (*sgxRPCClient, error) { // TODO Make ports configurable cl, err := rpc.DialHTTP("tcp", "localhost"+":9092") if err != nil { - return nil, err + // panic cosmos app here + panic("sgx rpc server is down") } return &sgxRPCClient{ diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 4093c0b9aa..9aa49ba6ab 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -19,6 +19,7 @@ import ( "encoding/json" "fmt" "math/big" + "strings" cmttypes "github.com/cometbft/cometbft/types" @@ -302,7 +303,7 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, errorsmod.Wrap(err, "failed to create new SGX rpc client") } - err, handlerId := k.prepareTxForSgx(ctx, msg, cfg, sgxRPCClient) + handlerId, err := k.prepareTxForSgx(ctx, msg, cfg, sgxRPCClient) if err != nil { return nil, errorsmod.Wrap(err, "failed to create new RPC server") } @@ -324,6 +325,10 @@ func (k *Keeper) ApplyMessageWithConfig( Msg: msg, }, &reply) if err != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(err) { + panic("sgx rpc server is down") + } return nil, err } @@ -336,6 +341,10 @@ func (k *Keeper) ApplyMessageWithConfig( Msg: msg, }, &replyNonce) if err != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(err) { + panic("sgx rpc server is down") + } return nil, err } } @@ -352,6 +361,11 @@ func (k *Keeper) ApplyMessageWithConfig( LeftoverGas: leftoverGas, }, &reply) if err != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(err) { + panic("sgx rpc server is down") + } + k.Logger(ctx).Error("failed to add balance to sgx stateDB", "error", err) } } @@ -396,6 +410,11 @@ func (k *Keeper) ApplyMessageWithConfig( Rules: rules, }, &replyPrepare) if err != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(err) { + panic("sgx rpc server is down") + } + return nil, err } @@ -413,6 +432,11 @@ func (k *Keeper) ApplyMessageWithConfig( Nonce: msg.Nonce, }, &replyNonce) if err != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(err) { + panic("sgx rpc server is down") + } + return nil, err } @@ -428,14 +452,30 @@ func (k *Keeper) ApplyMessageWithConfig( }, &reply) ret = reply.Ret leftoverGas = reply.LeftOverGas + if vmErr != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(vmErr) { + panic("sgx rpc server is down") + } + + return nil, vmErr + } // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce+1) - sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ + vmErr = sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ HandlerId: handlerId, Caller: sender, Nonce: msg.Nonce + 1, }, &replyNonce) + if vmErr != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(vmErr) { + panic("sgx rpc server is down") + } + + return nil, vmErr + } } else { // Ethermint original code: // ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) @@ -450,6 +490,15 @@ func (k *Keeper) ApplyMessageWithConfig( }, &reply) ret = reply.Ret leftoverGas = reply.LeftOverGas + + if vmErr != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(vmErr) { + panic("sgx rpc server is down") + } + + return nil, vmErr + } } refundQuotient := params.RefundQuotient @@ -472,6 +521,11 @@ func (k *Keeper) ApplyMessageWithConfig( var replyRefund StateDBGetRefundReply err = sgxRPCClient.StateDBGetRefund(StateDBGetRefundArgs{HandlerId: handlerId}, &replyRefund) if err != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(err) { + panic("sgx rpc server is down") + } + return nil, err } @@ -496,6 +550,10 @@ func (k *Keeper) ApplyMessageWithConfig( Commit: true, }, &reply) if err != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(err) { + panic("sgx rpc server is down") + } return nil, errorsmod.Wrap(err, "failed to commit sgx stateDB") } } @@ -524,6 +582,10 @@ func (k *Keeper) ApplyMessageWithConfig( var replyLog StateDBGetLogsReply err = sgxRPCClient.StateDBGetLogs(StateDBGetLogsArgs{HandlerId: handlerId}, &replyLog) if err != nil { + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(err) { + panic("sgx rpc server is down") + } return nil, err } @@ -542,18 +604,18 @@ func (k *Keeper) ApplyMessageWithConfig( // SGX // - sends a "PrepareTx" request to the SGX enclave with the relevant tx and // block info -func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRPCClient *sgxRPCClient) (error, uint64) { +func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRPCClient *sgxRPCClient) (uint64, error) { // Step 1. Send a "PrepareTx" request to the SGX enclave. ChainConfigJson, err := json.Marshal(cfg.ChainConfig) if err != nil { - return err, 0 + return 0, err } var overrides []byte if cfg.Overrides != nil { overrides, err = json.Marshal(cfg.Overrides) if err != nil { - return err, 0 + return 0, err } } @@ -576,13 +638,23 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf reply := &PrepareTxReply{} err = sgxRPCClient.PrepareTx(args, reply) if err != nil { - return err, 0 + // panic cosmos if sgx isn't available. + if k.IsSgxDownError(err) { + panic("sgx rpc server is down") + } + + return 0, err } // Store handler id handlerId := reply.HandlerId // Snapshot the ctx - k.preparedCtxs[handlerId] = &ctx + k.sdkCtxs[handlerId] = &ctx + + return handlerId, err +} - return err, handlerId +// IsSgxDownError checks if the error is related with RPC server down +func (k *Keeper) IsSgxDownError(err error) bool { + return strings.Contains(err.Error(), types.ErrRPCConnectionDown.Error()) } diff --git a/x/evm/types/errors.go b/x/evm/types/errors.go index 87179c50f6..a93ebb19b0 100644 --- a/x/evm/types/errors.go +++ b/x/evm/types/errors.go @@ -116,6 +116,8 @@ var ( // ErrInvalidGasLimit returns an error if gas limit value is invalid ErrInvalidGasLimit = errorsmod.Register(ModuleName, codeErrInvalidGasLimit, "invalid gas limit") + + ErrRPCConnectionDown = errors.New("connection refused") ) // NewExecErrorWithReason unpacks the revert return bytes and returns a wrapped error From 2ec0bcee4a144e2c44856b8cb2c767b99f3b084c Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Mon, 22 Apr 2024 07:48:25 +0000 Subject: [PATCH 24/46] chore: implement gRPC client for sgx --- go.mod | 8 +- go.sum | 8 +- x/evm/keeper/grpc_client.go | 336 +++++++++++++++++++++++++++++++ x/evm/keeper/state_transition.go | 93 ++------- 4 files changed, 366 insertions(+), 79 deletions(-) create mode 100644 x/evm/keeper/grpc_client.go diff --git a/go.mod b/go.mod index 1807fdcf96..85d7ddc718 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/evmos/ethermint -go 1.21 +go 1.21.3 toolchain go1.21.5 @@ -17,6 +17,7 @@ require ( cosmossdk.io/x/feegrant v0.1.0 cosmossdk.io/x/tx v0.13.1 cosmossdk.io/x/upgrade v0.1.1 + github.com/Inco-fhevm/inco-monorepo/sgx v0.0.0-00010101000000-000000000000 github.com/btcsuite/btcd v0.23.4 github.com/btcsuite/btcd/btcutil v1.1.3 github.com/cometbft/cometbft v0.38.6 @@ -80,7 +81,7 @@ require ( github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect - github.com/bits-and-blooms/bitset v1.8.0 // indirect + github.com/bits-and-blooms/bitset v1.10.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect github.com/cenkalti/backoff/v4 v4.2.1 // indirect @@ -129,7 +130,7 @@ require ( github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.1 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-ole/go-ole v1.2.6 // indirect + github.com/go-ole/go-ole v1.3.0 // indirect github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect github.com/go-stack/stack v1.8.1 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect @@ -251,6 +252,7 @@ require ( replace ( // use cosmos keyring github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 + github.com/Inco-fhevm/inco-monorepo/sgx => ../inco-monorepo/sgx // todo: remove this when go ethereum release new version github.com/cockroachdb/pebble v1.1.0 => github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 // Fix upstream GHSA-h395-qcrw-5vmq vulnerability. diff --git a/go.sum b/go.sum index 63dbadf281..1179f7dcde 100644 --- a/go.sum +++ b/go.sum @@ -279,8 +279,8 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= -github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/bits-and-blooms/bitset v1.10.0 h1:ePXTeiPEazB5+opbv5fr8umg2R/1NlzgDsyepwsSr88= +github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M= github.com/btcsuite/btcd v0.23.0/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= @@ -545,8 +545,8 @@ github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ4 github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= -github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= +github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= +github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= diff --git a/x/evm/keeper/grpc_client.go b/x/evm/keeper/grpc_client.go new file mode 100644 index 0000000000..a79a1491c4 --- /dev/null +++ b/x/evm/keeper/grpc_client.go @@ -0,0 +1,336 @@ +package keeper + +import ( + "context" + "encoding/json" + "math/big" + "net" + + "cosmossdk.io/log" + sgxtypes "github.com/Inco-fhevm/inco-monorepo/sgx/evm/types" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core" + "github.com/ethereum/go-ethereum/core/vm" + "github.com/ethereum/go-ethereum/params" + evmtypes "github.com/evmos/ethermint/x/evm/types" + "github.com/pkg/errors" + "google.golang.org/grpc" +) + +type sgxGrpcClient struct { + logger log.Logger + querier sgxtypes.QueryServiceClient +} + +func newSgxGrpcClient(logger log.Logger) (*sgxGrpcClient, error) { + // Create a new InterfaceRegistry + interfaceRegistry := codectypes.NewInterfaceRegistry() + evmtypes.RegisterInterfaces(interfaceRegistry) + + // Set the node + rpcConn, err := grpc.Dial("localhost:9090", + grpc.WithInsecure(), + grpc.WithContextDialer(func(ctx context.Context, url string) (net.Conn, error) { + return net.Dial("tcp", url) + }), + ) + if err != nil { + return nil, errors.Wrap(err, "failed to connect to sgx gRPC") + } + querier := sgxtypes.NewQueryServiceClient(rpcConn) + + return &sgxGrpcClient{querier: querier, logger: logger}, nil +} + +// GetParams is here to satisfy the interface, but should never be called by +// the SGX binary to the Cosmos node. +func (c sgxGrpcClient) GetParams(sdk.Context) evmtypes.Params { + panic("dead code") +} + +func (c *sgxGrpcClient) PrepareTx(args PrepareTxArgs) (*sgxtypes.PrepareTxResponse, error) { + ctx := context.Background() + headerBytes, err := json.Marshal(args.Header) + if err != nil { + return nil, err + } + + msgBytes, err := json.Marshal(args.Msg) + if err != nil { + return nil, err + } + + evmConfigBytes, err := json.Marshal(args.EvmConfig) + if err != nil { + return nil, err + } + + req := &sgxtypes.PrepareTxRequest{ + TxHash: args.TxHash, + // Header is the Tendermint header of the block in which the transaction + // will be executed. + Header: headerBytes, + // Msg is the EVM transaction message to run on the EVM. + Msg: msgBytes, + // EvmConfig is the EVM configuration to set. + EvmConfig: evmConfigBytes, + } + + resp, err := c.querier.PrepareTx(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to prepare tx") + } + + c.logger.Info("Called gRPC PrepareTx") + + return resp, nil +} + +func (c *sgxGrpcClient) Call(handlerId uint64, caller vm.AccountRef, addr common.Address, input []byte, gas uint64, value *big.Int) (*sgxtypes.CallResponse, error) { + ctx := context.Background() + callerBytes, err := json.Marshal(caller) + if err != nil { + return nil, err + } + + valueBytes := value.Bytes() + if err != nil { + return nil, err + } + + addrHex := addr.Hex() + req := &sgxtypes.CallRequest{ + HandlerId: handlerId, + Caller: callerBytes, + Addr: addrHex, + Input: input, + Gas: gas, + Value: valueBytes, + } + + resp, err := c.querier.Call(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to call") + } + + c.logger.Info("Called gRPC Call") + + return resp, nil +} + +func (c *sgxGrpcClient) Create(handlerId uint64, caller vm.AccountRef, code []byte, gas uint64, value *big.Int) (*sgxtypes.CreateResponse, error) { + ctx := context.Background() + callerBytes, err := json.Marshal(caller) + if err != nil { + return nil, err + } + + valueBytes := value.Bytes() + if err != nil { + return nil, err + } + + req := &sgxtypes.CreateRequest{ + HandlerId: handlerId, + Caller: callerBytes, + Code: code, + Gas: gas, + Value: valueBytes, + } + + resp, err := c.querier.Create(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to create") + } + + c.logger.Info("Called gRPC Create") + + return resp, nil +} + +func (c *sgxGrpcClient) Commit(handlerId uint64, commit bool) (*sgxtypes.CommitResponse, error) { + ctx := context.Background() + req := &sgxtypes.CommitRequest{ + HandlerId: handlerId, + Commit: commit, + } + + resp, err := c.querier.Commit(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to commit") + } + + c.logger.Info("Called gRPC Commit") + + return resp, nil +} + +func (c *sgxGrpcClient) StateDBAddBalance(handlerId uint64, sender vm.AccountRef, msg core.Message, leftOverGas uint64) (*sgxtypes.StateDBAddBalanceResponse, error) { + ctx := context.Background() + senderBytes, err := json.Marshal(sender) + if err != nil { + return nil, err + } + + msgBytes, err := json.Marshal(msg) + if err != nil { + return nil, err + } + + req := &sgxtypes.StateDBAddBalanceRequest{ + HandlerId: handlerId, + Caller: senderBytes, + Msg: msgBytes, + LeftOverGas: leftOverGas, + } + + resp, err := c.querier.StateDBAddBalance(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to add balance") + } + + c.logger.Info("Called gRPC AddBalance") + + return resp, nil +} + +func (c *sgxGrpcClient) StateDBSubBalance(handlerId uint64, sender vm.AccountRef, msg core.Message) (*sgxtypes.StateDBSubBalanceResponse, error) { + ctx := context.Background() + senderBytes, err := json.Marshal(sender) + if err != nil { + return nil, err + } + + msgBytes, err := json.Marshal(msg) + if err != nil { + return nil, err + } + + req := &sgxtypes.StateDBSubBalanceRequest{ + HandlerId: handlerId, + Caller: senderBytes, + Msg: msgBytes, + } + + resp, err := c.querier.StateDBSubBalance(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to sub balance") + } + + c.logger.Info("Called gRPC SubBalance") + + return resp, nil +} + +func (c *sgxGrpcClient) StateDBSetNonce(handlerId uint64, caller vm.AccountRef, nonce uint64) (*sgxtypes.StateDBSetNonceResponse, error) { + ctx := context.Background() + callerBytes, err := json.Marshal(caller) + if err != nil { + return nil, err + } + + req := &sgxtypes.StateDBSetNonceRequest{ + HandlerId: handlerId, + Caller: callerBytes, + Nonce: nonce, + } + + resp, err := c.querier.StateDBSetNonce(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to set nonce") + } + + c.logger.Info("Called gRPC Set Nonce") + + return resp, nil +} + +func (c *sgxGrpcClient) StateDBIncreaseNonce(handlerId uint64, sender vm.AccountRef, msg core.Message) (*sgxtypes.StateDBIncreaseNonceResponse, error) { + ctx := context.Background() + senderBytes, err := json.Marshal(sender) + if err != nil { + return nil, err + } + + msgBytes, err := json.Marshal(msg) + if err != nil { + return nil, err + } + + req := &sgxtypes.StateDBIncreaseNonceRequest{ + HandlerId: handlerId, + Caller: senderBytes, + Msg: msgBytes, + } + + resp, err := c.querier.StateDBIncreaseNonce(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to increase nonce") + } + + c.logger.Info("Called gRPC Increase Nonce") + + return resp, nil +} + +func (c *sgxGrpcClient) StateDBPrepare(handlerId uint64, msg core.Message, rules params.Rules) (*sgxtypes.StateDBPrepareResponse, error) { + ctx := context.Background() + msgBytes, err := json.Marshal(msg) + if err != nil { + return nil, err + } + + rulesBytes, err := json.Marshal(rules) + if err != nil { + return nil, err + } + + req := &sgxtypes.StateDBPrepareRequest{ + HandlerId: handlerId, + Msg: msgBytes, + Rules: rulesBytes, + } + + resp, err := c.querier.StateDBPrepare(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to StateDb prepare") + } + + c.logger.Info("Called gRPC StateDb Prepare") + + return resp, nil +} + +func (c *sgxGrpcClient) StateDBGetRefund(handlerId uint64) (*sgxtypes.StateDBGetRefundResponse, error) { + ctx := context.Background() + req := &sgxtypes.StateDBGetRefundRequest{ + HandlerId: handlerId, + } + + resp, err := c.querier.StateDBGetRefund(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to StateDb Get refund") + } + + c.logger.Info("Called gRPC StateDb Get refund") + + return resp, nil +} + +func (c *sgxGrpcClient) StateDBGetLogs(handlerId uint64) (*sgxtypes.StateDBGetLogsResponse, error) { + ctx := context.Background() + req := &sgxtypes.StateDBGetLogsRequest{ + HandlerId: handlerId, + } + + resp, err := c.querier.StateDBGetLogs(ctx, req) + if err != nil { + return nil, errors.Wrap(err, "failed to StateDb get logs") + } + + c.logger.Info("Called gRPC StateDb get logs") + + return resp, nil +} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 9aa49ba6ab..3dc76ace17 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -298,12 +298,12 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, errorsmod.Wrap(types.ErrCallDisabled, "failed to call contract") } - sgxRPCClient, err := newSgxRPCClient(k.Logger(ctx)) + sgxGrpcClient, err := newSgxGrpcClient(k.Logger(ctx)) if err != nil { return nil, errorsmod.Wrap(err, "failed to create new SGX rpc client") } - handlerId, err := k.prepareTxForSgx(ctx, msg, cfg, sgxRPCClient) + handlerId, err := k.prepareTxForSgx(ctx, msg, cfg, sgxGrpcClient) if err != nil { return nil, errorsmod.Wrap(err, "failed to create new RPC server") } @@ -318,12 +318,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SubBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit))) - var reply StateDBSubBalanceReply - err := sgxRPCClient.StateDBSubBalance(StateDBSubBalanceArgs{ - HandlerId: handlerId, - Caller: sender, - Msg: msg, - }, &reply) + _, err := sgxGrpcClient.StateDBSubBalance(handlerId, sender, msg) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -334,12 +329,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), stateDB.GetNonce(sender.Address())+1) - var replyNonce StateDBIncreaseNonceReply - err = sgxRPCClient.StateDBIncreaseNonce(StateDBIncreaseNonceArgs{ - HandlerId: handlerId, - Caller: sender, - Msg: msg, - }, &replyNonce) + _, err = sgxGrpcClient.StateDBIncreaseNonce(handlerId, sender, msg) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -353,13 +343,7 @@ func (k *Keeper) ApplyMessageWithConfig( if cfg.DebugTrace { // Ethermint original code: // stateDB.AddBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas))) - var reply StateDBAddBalanceReply - err := sgxRPCClient.StateDBAddBalance(StateDBAddBalanceArgs{ - HandlerId: handlerId, - Caller: sender, - Msg: msg, - LeftoverGas: leftoverGas, - }, &reply) + _, err := sgxGrpcClient.StateDBAddBalance(handlerId, sender, msg, leftoverGas) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -403,12 +387,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) - var replyPrepare StateDBPrepareReply - err = sgxRPCClient.StateDBPrepare(StateDBPrepareArgs{ - HandlerId: handlerId, - Msg: msg, - Rules: rules, - }, &replyPrepare) + _, err = sgxGrpcClient.StateDBPrepare(handlerId, msg, rules) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -425,12 +404,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce) - var replyNonce StateDBSetNonceReply - err := sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ - HandlerId: handlerId, - Caller: sender, - Nonce: msg.Nonce, - }, &replyNonce) + _, err := sgxGrpcClient.StateDBSetNonce(handlerId, sender, msg.Nonce) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -442,16 +416,9 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // ret, _, leftoverGas, vmErr = evm.Create(sender, msg.Data, leftoverGas, msg.Value) - var reply CreateReply - vmErr = sgxRPCClient.Create(CreateArgs{ - HandlerId: handlerId, - Caller: sender, - Code: msg.Data, - Gas: leftoverGas, - Value: msg.Value, - }, &reply) - ret = reply.Ret - leftoverGas = reply.LeftOverGas + resp, vmErr := sgxGrpcClient.Create(handlerId, sender, msg.Data, leftoverGas, msg.Value) + ret = resp.Ret + leftoverGas = resp.LeftOverGas if vmErr != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(vmErr) { @@ -463,11 +430,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce+1) - vmErr = sgxRPCClient.StateDBSetNonce(StateDBSetNonceArgs{ - HandlerId: handlerId, - Caller: sender, - Nonce: msg.Nonce + 1, - }, &replyNonce) + _, vmErr = sgxGrpcClient.StateDBSetNonce(handlerId, sender, msg.Nonce+1) if vmErr != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(vmErr) { @@ -479,17 +442,9 @@ func (k *Keeper) ApplyMessageWithConfig( } else { // Ethermint original code: // ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) - var reply CallReply - vmErr = sgxRPCClient.Call(CallArgs{ - HandlerId: handlerId, - Caller: sender, - Addr: *msg.To, - Input: msg.Data, - Gas: leftoverGas, - Value: msg.Value, - }, &reply) - ret = reply.Ret - leftoverGas = reply.LeftOverGas + resp, vmErr := sgxGrpcClient.Call(handlerId, sender, *msg.To, msg.Data, leftoverGas, msg.Value) + ret = resp.Ret + leftoverGas = resp.LeftOverGas if vmErr != nil { // panic cosmos if sgx isn't available. @@ -518,8 +473,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // leftoverGas += GasToRefund(stateDB.GetRefund(), temporaryGasUsed, refundQuotient) - var replyRefund StateDBGetRefundReply - err = sgxRPCClient.StateDBGetRefund(StateDBGetRefundArgs{HandlerId: handlerId}, &replyRefund) + resp, err := sgxGrpcClient.StateDBGetRefund(handlerId) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -529,7 +483,7 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, err } - refund := replyRefund.Refund + refund := resp.Refund leftoverGas += GasToRefund(refund, temporaryGasUsed, refundQuotient) // EVM execution error needs to be available for the JSON-RPC client @@ -544,11 +498,7 @@ func (k *Keeper) ApplyMessageWithConfig( // if err := stateDB.Commit(); err != nil { // return nil, errorsmod.Wrap(err, "failed to commit stateDB") // } - var reply CommitReply - err := sgxRPCClient.Commit(CommitArgs{ - HandlerId: handlerId, - Commit: true, - }, &reply) + _, err := sgxGrpcClient.Commit(handlerId, true) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -580,7 +530,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // Logs: types.NewLogsFromEth(stateDB.Logs()), var replyLog StateDBGetLogsReply - err = sgxRPCClient.StateDBGetLogs(StateDBGetLogsArgs{HandlerId: handlerId}, &replyLog) + _, err = sgxGrpcClient.StateDBGetLogs(handlerId) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -604,7 +554,7 @@ func (k *Keeper) ApplyMessageWithConfig( // SGX // - sends a "PrepareTx" request to the SGX enclave with the relevant tx and // block info -func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxRPCClient *sgxRPCClient) (uint64, error) { +func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxGrpcClient *sgxGrpcClient) (uint64, error) { // Step 1. Send a "PrepareTx" request to the SGX enclave. ChainConfigJson, err := json.Marshal(cfg.ChainConfig) if err != nil { @@ -635,8 +585,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf }, } - reply := &PrepareTxReply{} - err = sgxRPCClient.PrepareTx(args, reply) + resp, err := sgxGrpcClient.PrepareTx(args) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -647,7 +596,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf } // Store handler id - handlerId := reply.HandlerId + handlerId := resp.HandlerId // Snapshot the ctx k.sdkCtxs[handlerId] = &ctx From bd5f9eabc3e7357ea4e1de87c29d5c0585909bc1 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Mon, 22 Apr 2024 09:23:40 +0000 Subject: [PATCH 25/46] chore: change sgx client port --- x/evm/keeper/grpc_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/evm/keeper/grpc_client.go b/x/evm/keeper/grpc_client.go index a79a1491c4..1e7c20d42d 100644 --- a/x/evm/keeper/grpc_client.go +++ b/x/evm/keeper/grpc_client.go @@ -30,7 +30,7 @@ func newSgxGrpcClient(logger log.Logger) (*sgxGrpcClient, error) { evmtypes.RegisterInterfaces(interfaceRegistry) // Set the node - rpcConn, err := grpc.Dial("localhost:9090", + rpcConn, err := grpc.Dial("localhost:9092", grpc.WithInsecure(), grpc.WithContextDialer(func(ctx context.Context, url string) (net.Conn, error) { return net.Dial("tcp", url) From b9ec41e78714daa36765bf78dc21cf7c96b708f2 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Mon, 22 Apr 2024 17:21:32 +0000 Subject: [PATCH 26/46] chore: define sgx proto --- go.mod | 2 - proto/ethermint/sgx/v1/query.proto | 180 + scripts/local_faucet.sh | 54 + scripts/run_local_node.sh | 154 + x/evm/keeper/grpc_client.go | 10 +- x/sgx/types/query.pb.go | 5231 ++++++++++++++++++++++++++++ 6 files changed, 5620 insertions(+), 11 deletions(-) create mode 100644 proto/ethermint/sgx/v1/query.proto create mode 100755 scripts/local_faucet.sh create mode 100755 scripts/run_local_node.sh create mode 100644 x/sgx/types/query.pb.go diff --git a/go.mod b/go.mod index 85d7ddc718..f4d8a209a2 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,6 @@ require ( cosmossdk.io/x/feegrant v0.1.0 cosmossdk.io/x/tx v0.13.1 cosmossdk.io/x/upgrade v0.1.1 - github.com/Inco-fhevm/inco-monorepo/sgx v0.0.0-00010101000000-000000000000 github.com/btcsuite/btcd v0.23.4 github.com/btcsuite/btcd/btcutil v1.1.3 github.com/cometbft/cometbft v0.38.6 @@ -252,7 +251,6 @@ require ( replace ( // use cosmos keyring github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 - github.com/Inco-fhevm/inco-monorepo/sgx => ../inco-monorepo/sgx // todo: remove this when go ethereum release new version github.com/cockroachdb/pebble v1.1.0 => github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 // Fix upstream GHSA-h395-qcrw-5vmq vulnerability. diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto new file mode 100644 index 0000000000..85228efb24 --- /dev/null +++ b/proto/ethermint/sgx/v1/query.proto @@ -0,0 +1,180 @@ +syntax = "proto3"; +package ethermint.sgx.v1; + +option go_package = "github.com/evmos/ethermint/x/sgx/types"; + +// QueryService defines the gRPC querier service. +service QueryService { + // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { + rpc PrepareTx(PrepareTxRequest) returns (PrepareTxResponse) { + } + + // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { + rpc Create(CreateRequest) returns (CreateResponse) { + } + + // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { + rpc Call(CallRequest) returns (CallResponse) { + } + + // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { + rpc Commit(CommitRequest) returns (CommitResponse) { + } + + // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { + rpc StateDBAddBalance(StateDBAddBalanceRequest) returns (StateDBAddBalanceResponse) { + } + + // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { + rpc StateDBSubBalance(StateDBSubBalanceRequest) returns (StateDBSubBalanceResponse) { + } + + // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { + rpc StateDBSetNonce(StateDBSetNonceRequest) returns (StateDBSetNonceResponse) { + } + + // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { + rpc StateDBIncreaseNonce(StateDBIncreaseNonceRequest) returns (StateDBIncreaseNonceResponse) { + } + + // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { + rpc StateDBPrepare(StateDBPrepareRequest) returns (StateDBPrepareResponse) { + } + + // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { + rpc StateDBGetRefund(StateDBGetRefundRequest) returns (StateDBGetRefundResponse) { + } + + // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { + rpc StateDBGetLogs(StateDBGetLogsRequest) returns (StateDBGetLogsResponse) { + } +} + +message PrepareTxRequest { + bytes tx_hash = 1; + // Header is the Tendermint header of the block in which the transaction + // will be executed. + bytes header = 2; // Header cmtproto.Header + // Msg is the EVM transaction message to run on the EVM. + bytes msg = 3; // Msg core.Message + // EvmConfig is the EVM configuration to set. + bytes evm_config = 4; // EvmConfig PrepareTxEVMConfig +} + +message PrepareTxResponse { + uint64 handler_id = 1; +} + +message CreateRequest { + uint64 handler_id = 1; + // Original data type: vm.AccountRef + bytes caller = 2; + bytes code = 3; + uint64 gas = 4; + // Original data type: *big.Int + bytes value = 5; +} + +message CreateResponse { + bytes ret = 1; + // Original data type: common.Address + string contract_addr = 2; + uint64 left_over_gas = 3; +} + +message CallRequest { + uint64 handler_id = 1; + // Original data type: vm.AccountRef + bytes caller = 2; + // Original data type: common.Address + string addr = 3; + // Original data type: []byte + bytes input = 4; + uint64 gas = 5; + // Original data type: *big.Int + bytes value = 6; +} + +message CallResponse { + bytes ret = 1; + uint64 left_over_gas = 2; +} + +message CommitRequest { + uint64 handler_id = 1; + bool commit = 2; +} + +message CommitResponse { +} + +message StateDBAddBalanceRequest { + uint64 handler_id = 1; + // Original data type: vm.AccountRef + bytes caller = 2; + // Original data type: core.Message + bytes msg = 3; + uint64 left_over_gas = 4; +} + +message StateDBAddBalanceResponse { +} + +message StateDBSubBalanceRequest { + uint64 handler_id = 1; + // Original data type: vm.AccountRef + bytes caller = 2; + // Original data type: core.Message + bytes msg = 3; +} + +message StateDBSubBalanceResponse { +} + +message StateDBSetNonceRequest { + uint64 handler_id = 1; + // Original data type: vm.AccountRef + bytes caller = 2; + uint64 nonce = 3; +} + +message StateDBSetNonceResponse { +} + +message StateDBIncreaseNonceRequest { + uint64 handler_id = 1; + // Original data type: vm.AccountRef + bytes caller = 2; + // Original data type: core.Message + bytes msg = 3; +} + +message StateDBIncreaseNonceResponse { +} + +message StateDBPrepareRequest { + uint64 handler_id = 1; + // Original data type: core.Message + bytes msg = 2; + // Original data type: params.Rules + bytes rules = 3; +} + +message StateDBPrepareResponse { +} + +message StateDBGetRefundRequest { + uint64 handler_id = 1; +} + +message StateDBGetRefundResponse { + uint64 refund = 1; +} + +message StateDBGetLogsRequest { + uint64 handler_id = 1; +} + +message StateDBGetLogsResponse { + bytes logs = 1; // []*ethtypes.Log +} diff --git a/scripts/local_faucet.sh b/scripts/local_faucet.sh new file mode 100755 index 0000000000..5a99f44a4d --- /dev/null +++ b/scripts/local_faucet.sh @@ -0,0 +1,54 @@ +#!/bin/bash +# Run this script to quickly install, setup, and run the current version of the network without docker. +# +# Examples: +# CHAIN_ID="local-1" HOME_DIR="~/.inco" BLOCK_TIME="1000ms" CLEAN=true sh scripts/test_node.sh +# CHAIN_ID="local-2" HOME_DIR="~/.inco" CLEAN=true RPC=36657 REST=2317 PROFF=6061 P2P=36656 GRPC=8090 GRPC_WEB=8091 ROSETTA=8081 BLOCK_TIME="500ms" sh scripts/test_node.sh + +set -e + +export KEY="user1" +export KEY2="user2" + +export CHAIN_ID=${CHAIN_ID:-"ethermint_9000-1"} +export MONIKER="localvalidator" +export KEYALGO="secp256k1" +export KEYRING=${KEYRING:-"test"} +export HOME_DIR=$(eval echo "${HOME_DIR:-"~/.ethermintd"}") +export BINARY=${BINARY:-"./build/ethermintd"} +export DENOM=${DENOM:-ainco} + +# if which binary does not exist, exit +if [ -z `which $BINARY` ]; then + echo "Ensure $BINARY is installed and in your PATH" + exit 1 +fi + +alias BINARY="$BINARY --home=$HOME_DIR" + +command -v $BINARY > /dev/null 2>&1 || { echo >&2 "$BINARY command not found. Ensure this is setup / properly installed in your GOPATH (make install)."; exit 1; } + +set_config() { + $BINARY config set client chain-id $CHAIN_ID + $BINARY config set client keyring-backend $KEYRING +} +set_config + +# Get first argument, which is the destination address +RECIPIENT=$1 +if [ -z "$RECIPIENT" ]; then + echo "Please provide a recipient address" + echo "./local_faucet.sh " + exit 1 +fi +RECIPIENT=$(echo $RECIPIENT | sed 's/^0x//') +AMOUNT="1000000000000000000$DENOM" # 10**18, so 1INCO + +# Get bech32 addr from Ethereum address +# The `$BINARY debug addr` outputs 4 lines, the 3rd one is: +# Bech32 Acc: inco1n7g8ek2znyua9dqua554pjvkh8vysxejlsfmcp +# We extract the inco1... part +BECH32_ADDR=$($BINARY debug addr $RECIPIENT | sed -n '3 p' | sed 's/Bech32 Acc: //') +echo "Sending $AMOUNT to $BECH32_ADDR" + +$BINARY tx bank send $KEY $BECH32_ADDR $AMOUNT --gas-prices 1000000000$DENOM --yes \ No newline at end of file diff --git a/scripts/run_local_node.sh b/scripts/run_local_node.sh new file mode 100755 index 0000000000..c27d5eaa3c --- /dev/null +++ b/scripts/run_local_node.sh @@ -0,0 +1,154 @@ +#!/bin/bash +# Run this script to quickly install, setup, and run the current version of the network without docker. +# +# Examples: +# CHAIN_ID="local-1" HOME_DIR="~/.inco" BLOCK_TIME="1000ms" CLEAN=true sh scripts/run_local_node.sh +# CHAIN_ID="local-2" HOME_DIR="~/.inco" CLEAN=true RPC=36657 REST=2317 PROFF=6061 P2P=36656 GRPC=8090 GRPC_WEB=8091 ROSETTA=8081 BLOCK_TIME="500ms" sh scripts/test_node.sh + +set -e + +export KEY="user1" +export KEY2="user2" + +export CHAIN_ID=${CHAIN_ID:-"ethermint_9000-1"} +export MONIKER="localvalidator" +export KEYALGO="secp256k1" +export KEYRING=${KEYRING:-"test"} +export HOME_DIR=$(eval echo "${HOME_DIR:-"~/.ethermintd"}") +export BINARY=${BINARY:-"./build/ethermintd"} +export DENOM=${DENOM:-ainco} + +export CLEAN=${CLEAN:-"true"} +export RPC=${RPC:-"26657"} +export REST=${REST:-"1317"} +export PROFF=${PROFF:-"6060"} +export P2P=${P2P:-"26656"} +export GRPC=${GRPC:-"9090"} +export GRPC_WEB=${GRPC_WEB:-"9091"} +export ROSETTA=${ROSETTA:-"8080"} +export BLOCK_TIME=${BLOCK_TIME:-"5s"} + +# if which binary does not exist, exit +if [ -z `which $BINARY` ]; then + echo "Ensure $BINARY is installed and in your PATH" + exit 1 +fi + +alias BINARY="$BINARY --home=$HOME_DIR" + +command -v $BINARY > /dev/null 2>&1 || { echo >&2 "$BINARY command not found. Ensure this is setup / properly installed in your GOPATH (make install)."; exit 1; } +command -v jq > /dev/null 2>&1 || { echo >&2 "jq not installed. More info: https://stedolan.github.io/jq/download/"; exit 1; } + +set_config() { + $BINARY config set client chain-id $CHAIN_ID + $BINARY config set client keyring-backend $KEYRING +} +set_config + + +from_scratch () { + # remove existing daemon files. + if [ ${#HOME_DIR} -le 2 ]; then + echo "HOME_DIR must be more than 2 characters long" + return + fi + rm -rf $HOME_DIR && echo "Removed $HOME_DIR" + + # reset values if not set already after whipe + set_config + + add_key() { + key=$1 + mnemonic=$2 + echo $mnemonic | $BINARY keys add $key --keyring-backend $KEYRING --algo $KEYALGO --recover + } + + # inco1efd63aw40lxf3n4mhf7dzhjkr453axurqtwaal + add_key $KEY "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry" + # inco1hj5fveer5cjtn4wd6wstzugjfdxzl0xpulae5k + add_key $KEY2 "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise" + + # chain initial setup + $BINARY init $MONIKER --chain-id $CHAIN_ID --default-denom $DENOM + + update_test_genesis () { + cat $HOME_DIR/config/genesis.json | jq "$1" > $HOME_DIR/config/tmp_genesis.json && mv $HOME_DIR/config/tmp_genesis.json $HOME_DIR/config/genesis.json + } + + # === CORE MODULES === + + # Block + update_test_genesis '.consensus["params"]["block"]["max_gas"]="100000000"' + + # Gov + update_test_genesis `printf '.app_state["gov"]["params"]["min_deposit"]=[{"denom":"%s","amount":"1000000"}]' $DENOM` + update_test_genesis '.app_state["gov"]["params"]["voting_period"]="30s"' + update_test_genesis '.app_state["gov"]["params"]["expedited_voting_period"]="15s"' + + # staking + update_test_genesis `printf '.app_state["staking"]["params"]["bond_denom"]="%s"' $DENOM` + update_test_genesis '.app_state["staking"]["params"]["min_commission_rate"]="0.050000000000000000"' + + # mint + update_test_genesis `printf '.app_state["mint"]["params"]["mint_denom"]="%s"' $DENOM` + + # crisis + update_test_genesis `printf '.app_state["crisis"]["constant_fee"]={"denom":"%s","amount":"1000"}' $DENOM` + + # ethermint + update_test_genesis `printf '.app_state["evm"]["params"]["evm_denom"]="%s"' $DENOM` + + # === CUSTOM MODULES === + + # Allocate genesis accounts: 10**27ainco, so 1B INCO + $BINARY add-genesis-account $KEY 1000000000000000000000000000$DENOM,900test --keyring-backend $KEYRING + $BINARY add-genesis-account $KEY2 1000000000000000000000000000$DENOM,800test --keyring-backend $KEYRING + + # Sign genesis transaction + $BINARY gentx $KEY 1000000$DENOM --keyring-backend $KEYRING --chain-id $CHAIN_ID + + $BINARY collect-gentxs + + $BINARY validate-genesis + err=$? + if [ $err -ne 0 ]; then + echo "Failed to validate genesis" + return + fi +} + +# check if CLEAN is not set to false +if [ "$CLEAN" != "false" ]; then + echo "Starting from a clean state" + from_scratch +fi + +echo "Starting node..." + +# Small note: "sed -i.bak" is basically sed which works on both OSX and linux +# https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux + +# Opens the RPC endpoint to outside connections +sed -i.bak 's/laddr = "tcp:\/\/127.0.0.1:26657"/c\laddr = "tcp:\/\/0.0.0.0:'$RPC'"/g' $HOME_DIR/config/config.toml +sed -i.bak 's/cors_allowed_origins = \[\]/cors_allowed_origins = \["\*"\]/g' $HOME_DIR/config/config.toml + +# REST endpoint +sed -i.bak 's/address = "tcp:\/\/localhost:1317"/address = "tcp:\/\/0.0.0.0:'$REST'"/g' $HOME_DIR/config/app.toml +sed -i.bak 's/enable = false/enable = true/g' $HOME_DIR/config/app.toml + +# peer exchange +sed -i.bak 's/pprof_laddr = "localhost:6060"/pprof_laddr = "localhost:'$PROFF_LADDER'"/g' $HOME_DIR/config/config.toml +sed -i.bak 's/laddr = "tcp:\/\/0.0.0.0:26656"/laddr = "tcp:\/\/0.0.0.0:'$P2P'"/g' $HOME_DIR/config/config.toml + +# GRPC +sed -i.bak 's/address = "localhost:9090"/address = "0.0.0.0:'$GRPC'"/g' $HOME_DIR/config/app.toml +sed -i.bak 's/address = "localhost:9091"/address = "0.0.0.0:'$GRPC_WEB'"/g' $HOME_DIR/config/app.toml + +# Rosetta Api +sed -i.bak 's/address = ":8080"/address = "0.0.0.0:'$ROSETTA'"/g' $HOME_DIR/config/app.toml + +# Faster blocks +sed -i.bak 's/timeout_commit = "5s"/timeout_commit = "'$BLOCK_TIME'"/g' $HOME_DIR/config/config.toml + +# Start the node with 0 gas fees +$BINARY start --pruning=nothing --minimum-gas-prices=0$DENOM --rpc.laddr="tcp://0.0.0.0:$RPC" --json-rpc.address="0.0.0.0:8545" --json-rpc.ws-address="0.0.0.0:8546" \ No newline at end of file diff --git a/x/evm/keeper/grpc_client.go b/x/evm/keeper/grpc_client.go index 1e7c20d42d..ee180ed25e 100644 --- a/x/evm/keeper/grpc_client.go +++ b/x/evm/keeper/grpc_client.go @@ -7,7 +7,6 @@ import ( "net" "cosmossdk.io/log" - sgxtypes "github.com/Inco-fhevm/inco-monorepo/sgx/evm/types" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" @@ -15,6 +14,7 @@ import ( "github.com/ethereum/go-ethereum/core/vm" "github.com/ethereum/go-ethereum/params" evmtypes "github.com/evmos/ethermint/x/evm/types" + sgxtypes "github.com/evmos/ethermint/x/sgx/types" "github.com/pkg/errors" "google.golang.org/grpc" ) @@ -96,10 +96,6 @@ func (c *sgxGrpcClient) Call(handlerId uint64, caller vm.AccountRef, addr common } valueBytes := value.Bytes() - if err != nil { - return nil, err - } - addrHex := addr.Hex() req := &sgxtypes.CallRequest{ HandlerId: handlerId, @@ -128,10 +124,6 @@ func (c *sgxGrpcClient) Create(handlerId uint64, caller vm.AccountRef, code []by } valueBytes := value.Bytes() - if err != nil { - return nil, err - } - req := &sgxtypes.CreateRequest{ HandlerId: handlerId, Caller: callerBytes, diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go new file mode 100644 index 0000000000..6a44a017c6 --- /dev/null +++ b/x/sgx/types/query.pb.go @@ -0,0 +1,5231 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ethermint/sgx/v1/query.proto + +package types + +import ( + context "context" + fmt "fmt" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type PrepareTxRequest struct { + TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + // Header is the Tendermint header of the block in which the transaction + // will be executed. + Header []byte `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` + // Msg is the EVM transaction message to run on the EVM. + Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + // EvmConfig is the EVM configuration to set. + EvmConfig []byte `protobuf:"bytes,4,opt,name=evm_config,json=evmConfig,proto3" json:"evm_config,omitempty"` +} + +func (m *PrepareTxRequest) Reset() { *m = PrepareTxRequest{} } +func (m *PrepareTxRequest) String() string { return proto.CompactTextString(m) } +func (*PrepareTxRequest) ProtoMessage() {} +func (*PrepareTxRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{0} +} +func (m *PrepareTxRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareTxRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PrepareTxRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareTxRequest.Merge(m, src) +} +func (m *PrepareTxRequest) XXX_Size() int { + return m.Size() +} +func (m *PrepareTxRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareTxRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PrepareTxRequest proto.InternalMessageInfo + +func (m *PrepareTxRequest) GetTxHash() []byte { + if m != nil { + return m.TxHash + } + return nil +} + +func (m *PrepareTxRequest) GetHeader() []byte { + if m != nil { + return m.Header + } + return nil +} + +func (m *PrepareTxRequest) GetMsg() []byte { + if m != nil { + return m.Msg + } + return nil +} + +func (m *PrepareTxRequest) GetEvmConfig() []byte { + if m != nil { + return m.EvmConfig + } + return nil +} + +type PrepareTxResponse struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` +} + +func (m *PrepareTxResponse) Reset() { *m = PrepareTxResponse{} } +func (m *PrepareTxResponse) String() string { return proto.CompactTextString(m) } +func (*PrepareTxResponse) ProtoMessage() {} +func (*PrepareTxResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{1} +} +func (m *PrepareTxResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareTxResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PrepareTxResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareTxResponse.Merge(m, src) +} +func (m *PrepareTxResponse) XXX_Size() int { + return m.Size() +} +func (m *PrepareTxResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareTxResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PrepareTxResponse proto.InternalMessageInfo + +func (m *PrepareTxResponse) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +type CreateRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + // Original data type: vm.AccountRef + Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` + Code []byte `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` + Gas uint64 `protobuf:"varint,4,opt,name=gas,proto3" json:"gas,omitempty"` + // Original data type: *big.Int + Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *CreateRequest) Reset() { *m = CreateRequest{} } +func (m *CreateRequest) String() string { return proto.CompactTextString(m) } +func (*CreateRequest) ProtoMessage() {} +func (*CreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{2} +} +func (m *CreateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateRequest.Merge(m, src) +} +func (m *CreateRequest) XXX_Size() int { + return m.Size() +} +func (m *CreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateRequest proto.InternalMessageInfo + +func (m *CreateRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +func (m *CreateRequest) GetCaller() []byte { + if m != nil { + return m.Caller + } + return nil +} + +func (m *CreateRequest) GetCode() []byte { + if m != nil { + return m.Code + } + return nil +} + +func (m *CreateRequest) GetGas() uint64 { + if m != nil { + return m.Gas + } + return 0 +} + +func (m *CreateRequest) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +type CreateResponse struct { + Ret []byte `protobuf:"bytes,1,opt,name=ret,proto3" json:"ret,omitempty"` + // Original data type: common.Address + ContractAddr string `protobuf:"bytes,2,opt,name=contract_addr,json=contractAddr,proto3" json:"contract_addr,omitempty"` + LeftOverGas uint64 `protobuf:"varint,3,opt,name=left_over_gas,json=leftOverGas,proto3" json:"left_over_gas,omitempty"` +} + +func (m *CreateResponse) Reset() { *m = CreateResponse{} } +func (m *CreateResponse) String() string { return proto.CompactTextString(m) } +func (*CreateResponse) ProtoMessage() {} +func (*CreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{3} +} +func (m *CreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateResponse.Merge(m, src) +} +func (m *CreateResponse) XXX_Size() int { + return m.Size() +} +func (m *CreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateResponse proto.InternalMessageInfo + +func (m *CreateResponse) GetRet() []byte { + if m != nil { + return m.Ret + } + return nil +} + +func (m *CreateResponse) GetContractAddr() string { + if m != nil { + return m.ContractAddr + } + return "" +} + +func (m *CreateResponse) GetLeftOverGas() uint64 { + if m != nil { + return m.LeftOverGas + } + return 0 +} + +type CallRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + // Original data type: vm.AccountRef + Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` + // Original data type: common.Address + Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` + // Original data type: []byte + Input []byte `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + Gas uint64 `protobuf:"varint,5,opt,name=gas,proto3" json:"gas,omitempty"` + // Original data type: *big.Int + Value []byte `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *CallRequest) Reset() { *m = CallRequest{} } +func (m *CallRequest) String() string { return proto.CompactTextString(m) } +func (*CallRequest) ProtoMessage() {} +func (*CallRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{4} +} +func (m *CallRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CallRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CallRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CallRequest.Merge(m, src) +} +func (m *CallRequest) XXX_Size() int { + return m.Size() +} +func (m *CallRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CallRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CallRequest proto.InternalMessageInfo + +func (m *CallRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +func (m *CallRequest) GetCaller() []byte { + if m != nil { + return m.Caller + } + return nil +} + +func (m *CallRequest) GetAddr() string { + if m != nil { + return m.Addr + } + return "" +} + +func (m *CallRequest) GetInput() []byte { + if m != nil { + return m.Input + } + return nil +} + +func (m *CallRequest) GetGas() uint64 { + if m != nil { + return m.Gas + } + return 0 +} + +func (m *CallRequest) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +type CallResponse struct { + Ret []byte `protobuf:"bytes,1,opt,name=ret,proto3" json:"ret,omitempty"` + LeftOverGas uint64 `protobuf:"varint,2,opt,name=left_over_gas,json=leftOverGas,proto3" json:"left_over_gas,omitempty"` +} + +func (m *CallResponse) Reset() { *m = CallResponse{} } +func (m *CallResponse) String() string { return proto.CompactTextString(m) } +func (*CallResponse) ProtoMessage() {} +func (*CallResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{5} +} +func (m *CallResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CallResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CallResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CallResponse.Merge(m, src) +} +func (m *CallResponse) XXX_Size() int { + return m.Size() +} +func (m *CallResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CallResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CallResponse proto.InternalMessageInfo + +func (m *CallResponse) GetRet() []byte { + if m != nil { + return m.Ret + } + return nil +} + +func (m *CallResponse) GetLeftOverGas() uint64 { + if m != nil { + return m.LeftOverGas + } + return 0 +} + +type CommitRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + Commit bool `protobuf:"varint,2,opt,name=commit,proto3" json:"commit,omitempty"` +} + +func (m *CommitRequest) Reset() { *m = CommitRequest{} } +func (m *CommitRequest) String() string { return proto.CompactTextString(m) } +func (*CommitRequest) ProtoMessage() {} +func (*CommitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{6} +} +func (m *CommitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommitRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CommitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitRequest.Merge(m, src) +} +func (m *CommitRequest) XXX_Size() int { + return m.Size() +} +func (m *CommitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CommitRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CommitRequest proto.InternalMessageInfo + +func (m *CommitRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +func (m *CommitRequest) GetCommit() bool { + if m != nil { + return m.Commit + } + return false +} + +type CommitResponse struct { +} + +func (m *CommitResponse) Reset() { *m = CommitResponse{} } +func (m *CommitResponse) String() string { return proto.CompactTextString(m) } +func (*CommitResponse) ProtoMessage() {} +func (*CommitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{7} +} +func (m *CommitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommitResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CommitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitResponse.Merge(m, src) +} +func (m *CommitResponse) XXX_Size() int { + return m.Size() +} +func (m *CommitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CommitResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CommitResponse proto.InternalMessageInfo + +type StateDBAddBalanceRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + // Original data type: vm.AccountRef + Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` + // Original data type: core.Message + Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + LeftOverGas uint64 `protobuf:"varint,4,opt,name=left_over_gas,json=leftOverGas,proto3" json:"left_over_gas,omitempty"` +} + +func (m *StateDBAddBalanceRequest) Reset() { *m = StateDBAddBalanceRequest{} } +func (m *StateDBAddBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*StateDBAddBalanceRequest) ProtoMessage() {} +func (*StateDBAddBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{8} +} +func (m *StateDBAddBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBAddBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBAddBalanceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBAddBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBAddBalanceRequest.Merge(m, src) +} +func (m *StateDBAddBalanceRequest) XXX_Size() int { + return m.Size() +} +func (m *StateDBAddBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBAddBalanceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBAddBalanceRequest proto.InternalMessageInfo + +func (m *StateDBAddBalanceRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +func (m *StateDBAddBalanceRequest) GetCaller() []byte { + if m != nil { + return m.Caller + } + return nil +} + +func (m *StateDBAddBalanceRequest) GetMsg() []byte { + if m != nil { + return m.Msg + } + return nil +} + +func (m *StateDBAddBalanceRequest) GetLeftOverGas() uint64 { + if m != nil { + return m.LeftOverGas + } + return 0 +} + +type StateDBAddBalanceResponse struct { +} + +func (m *StateDBAddBalanceResponse) Reset() { *m = StateDBAddBalanceResponse{} } +func (m *StateDBAddBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*StateDBAddBalanceResponse) ProtoMessage() {} +func (*StateDBAddBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{9} +} +func (m *StateDBAddBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBAddBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBAddBalanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBAddBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBAddBalanceResponse.Merge(m, src) +} +func (m *StateDBAddBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *StateDBAddBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBAddBalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBAddBalanceResponse proto.InternalMessageInfo + +type StateDBSubBalanceRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + // Original data type: vm.AccountRef + Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` + // Original data type: core.Message + Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` +} + +func (m *StateDBSubBalanceRequest) Reset() { *m = StateDBSubBalanceRequest{} } +func (m *StateDBSubBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*StateDBSubBalanceRequest) ProtoMessage() {} +func (*StateDBSubBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{10} +} +func (m *StateDBSubBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBSubBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBSubBalanceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBSubBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBSubBalanceRequest.Merge(m, src) +} +func (m *StateDBSubBalanceRequest) XXX_Size() int { + return m.Size() +} +func (m *StateDBSubBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBSubBalanceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBSubBalanceRequest proto.InternalMessageInfo + +func (m *StateDBSubBalanceRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +func (m *StateDBSubBalanceRequest) GetCaller() []byte { + if m != nil { + return m.Caller + } + return nil +} + +func (m *StateDBSubBalanceRequest) GetMsg() []byte { + if m != nil { + return m.Msg + } + return nil +} + +type StateDBSubBalanceResponse struct { +} + +func (m *StateDBSubBalanceResponse) Reset() { *m = StateDBSubBalanceResponse{} } +func (m *StateDBSubBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*StateDBSubBalanceResponse) ProtoMessage() {} +func (*StateDBSubBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{11} +} +func (m *StateDBSubBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBSubBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBSubBalanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBSubBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBSubBalanceResponse.Merge(m, src) +} +func (m *StateDBSubBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *StateDBSubBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBSubBalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBSubBalanceResponse proto.InternalMessageInfo + +type StateDBSetNonceRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + // Original data type: vm.AccountRef + Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` + Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (m *StateDBSetNonceRequest) Reset() { *m = StateDBSetNonceRequest{} } +func (m *StateDBSetNonceRequest) String() string { return proto.CompactTextString(m) } +func (*StateDBSetNonceRequest) ProtoMessage() {} +func (*StateDBSetNonceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{12} +} +func (m *StateDBSetNonceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBSetNonceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBSetNonceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBSetNonceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBSetNonceRequest.Merge(m, src) +} +func (m *StateDBSetNonceRequest) XXX_Size() int { + return m.Size() +} +func (m *StateDBSetNonceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBSetNonceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBSetNonceRequest proto.InternalMessageInfo + +func (m *StateDBSetNonceRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +func (m *StateDBSetNonceRequest) GetCaller() []byte { + if m != nil { + return m.Caller + } + return nil +} + +func (m *StateDBSetNonceRequest) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +type StateDBSetNonceResponse struct { +} + +func (m *StateDBSetNonceResponse) Reset() { *m = StateDBSetNonceResponse{} } +func (m *StateDBSetNonceResponse) String() string { return proto.CompactTextString(m) } +func (*StateDBSetNonceResponse) ProtoMessage() {} +func (*StateDBSetNonceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{13} +} +func (m *StateDBSetNonceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBSetNonceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBSetNonceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBSetNonceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBSetNonceResponse.Merge(m, src) +} +func (m *StateDBSetNonceResponse) XXX_Size() int { + return m.Size() +} +func (m *StateDBSetNonceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBSetNonceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBSetNonceResponse proto.InternalMessageInfo + +type StateDBIncreaseNonceRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + // Original data type: vm.AccountRef + Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` + // Original data type: core.Message + Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` +} + +func (m *StateDBIncreaseNonceRequest) Reset() { *m = StateDBIncreaseNonceRequest{} } +func (m *StateDBIncreaseNonceRequest) String() string { return proto.CompactTextString(m) } +func (*StateDBIncreaseNonceRequest) ProtoMessage() {} +func (*StateDBIncreaseNonceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{14} +} +func (m *StateDBIncreaseNonceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBIncreaseNonceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBIncreaseNonceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBIncreaseNonceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBIncreaseNonceRequest.Merge(m, src) +} +func (m *StateDBIncreaseNonceRequest) XXX_Size() int { + return m.Size() +} +func (m *StateDBIncreaseNonceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBIncreaseNonceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBIncreaseNonceRequest proto.InternalMessageInfo + +func (m *StateDBIncreaseNonceRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +func (m *StateDBIncreaseNonceRequest) GetCaller() []byte { + if m != nil { + return m.Caller + } + return nil +} + +func (m *StateDBIncreaseNonceRequest) GetMsg() []byte { + if m != nil { + return m.Msg + } + return nil +} + +type StateDBIncreaseNonceResponse struct { +} + +func (m *StateDBIncreaseNonceResponse) Reset() { *m = StateDBIncreaseNonceResponse{} } +func (m *StateDBIncreaseNonceResponse) String() string { return proto.CompactTextString(m) } +func (*StateDBIncreaseNonceResponse) ProtoMessage() {} +func (*StateDBIncreaseNonceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{15} +} +func (m *StateDBIncreaseNonceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBIncreaseNonceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBIncreaseNonceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBIncreaseNonceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBIncreaseNonceResponse.Merge(m, src) +} +func (m *StateDBIncreaseNonceResponse) XXX_Size() int { + return m.Size() +} +func (m *StateDBIncreaseNonceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBIncreaseNonceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBIncreaseNonceResponse proto.InternalMessageInfo + +type StateDBPrepareRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + // Original data type: core.Message + Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + // Original data type: params.Rules + Rules []byte `protobuf:"bytes,3,opt,name=rules,proto3" json:"rules,omitempty"` +} + +func (m *StateDBPrepareRequest) Reset() { *m = StateDBPrepareRequest{} } +func (m *StateDBPrepareRequest) String() string { return proto.CompactTextString(m) } +func (*StateDBPrepareRequest) ProtoMessage() {} +func (*StateDBPrepareRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{16} +} +func (m *StateDBPrepareRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBPrepareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBPrepareRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBPrepareRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBPrepareRequest.Merge(m, src) +} +func (m *StateDBPrepareRequest) XXX_Size() int { + return m.Size() +} +func (m *StateDBPrepareRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBPrepareRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBPrepareRequest proto.InternalMessageInfo + +func (m *StateDBPrepareRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +func (m *StateDBPrepareRequest) GetMsg() []byte { + if m != nil { + return m.Msg + } + return nil +} + +func (m *StateDBPrepareRequest) GetRules() []byte { + if m != nil { + return m.Rules + } + return nil +} + +type StateDBPrepareResponse struct { +} + +func (m *StateDBPrepareResponse) Reset() { *m = StateDBPrepareResponse{} } +func (m *StateDBPrepareResponse) String() string { return proto.CompactTextString(m) } +func (*StateDBPrepareResponse) ProtoMessage() {} +func (*StateDBPrepareResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{17} +} +func (m *StateDBPrepareResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBPrepareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBPrepareResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBPrepareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBPrepareResponse.Merge(m, src) +} +func (m *StateDBPrepareResponse) XXX_Size() int { + return m.Size() +} +func (m *StateDBPrepareResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBPrepareResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBPrepareResponse proto.InternalMessageInfo + +type StateDBGetRefundRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` +} + +func (m *StateDBGetRefundRequest) Reset() { *m = StateDBGetRefundRequest{} } +func (m *StateDBGetRefundRequest) String() string { return proto.CompactTextString(m) } +func (*StateDBGetRefundRequest) ProtoMessage() {} +func (*StateDBGetRefundRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{18} +} +func (m *StateDBGetRefundRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBGetRefundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBGetRefundRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBGetRefundRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBGetRefundRequest.Merge(m, src) +} +func (m *StateDBGetRefundRequest) XXX_Size() int { + return m.Size() +} +func (m *StateDBGetRefundRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBGetRefundRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBGetRefundRequest proto.InternalMessageInfo + +func (m *StateDBGetRefundRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +type StateDBGetRefundResponse struct { + Refund uint64 `protobuf:"varint,1,opt,name=refund,proto3" json:"refund,omitempty"` +} + +func (m *StateDBGetRefundResponse) Reset() { *m = StateDBGetRefundResponse{} } +func (m *StateDBGetRefundResponse) String() string { return proto.CompactTextString(m) } +func (*StateDBGetRefundResponse) ProtoMessage() {} +func (*StateDBGetRefundResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{19} +} +func (m *StateDBGetRefundResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBGetRefundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBGetRefundResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBGetRefundResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBGetRefundResponse.Merge(m, src) +} +func (m *StateDBGetRefundResponse) XXX_Size() int { + return m.Size() +} +func (m *StateDBGetRefundResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBGetRefundResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBGetRefundResponse proto.InternalMessageInfo + +func (m *StateDBGetRefundResponse) GetRefund() uint64 { + if m != nil { + return m.Refund + } + return 0 +} + +type StateDBGetLogsRequest struct { + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` +} + +func (m *StateDBGetLogsRequest) Reset() { *m = StateDBGetLogsRequest{} } +func (m *StateDBGetLogsRequest) String() string { return proto.CompactTextString(m) } +func (*StateDBGetLogsRequest) ProtoMessage() {} +func (*StateDBGetLogsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{20} +} +func (m *StateDBGetLogsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBGetLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBGetLogsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBGetLogsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBGetLogsRequest.Merge(m, src) +} +func (m *StateDBGetLogsRequest) XXX_Size() int { + return m.Size() +} +func (m *StateDBGetLogsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBGetLogsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBGetLogsRequest proto.InternalMessageInfo + +func (m *StateDBGetLogsRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +type StateDBGetLogsResponse struct { + Logs []byte `protobuf:"bytes,1,opt,name=logs,proto3" json:"logs,omitempty"` +} + +func (m *StateDBGetLogsResponse) Reset() { *m = StateDBGetLogsResponse{} } +func (m *StateDBGetLogsResponse) String() string { return proto.CompactTextString(m) } +func (*StateDBGetLogsResponse) ProtoMessage() {} +func (*StateDBGetLogsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{21} +} +func (m *StateDBGetLogsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateDBGetLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateDBGetLogsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StateDBGetLogsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateDBGetLogsResponse.Merge(m, src) +} +func (m *StateDBGetLogsResponse) XXX_Size() int { + return m.Size() +} +func (m *StateDBGetLogsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StateDBGetLogsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StateDBGetLogsResponse proto.InternalMessageInfo + +func (m *StateDBGetLogsResponse) GetLogs() []byte { + if m != nil { + return m.Logs + } + return nil +} + +func init() { + proto.RegisterType((*PrepareTxRequest)(nil), "ethermint.sgx.v1.PrepareTxRequest") + proto.RegisterType((*PrepareTxResponse)(nil), "ethermint.sgx.v1.PrepareTxResponse") + proto.RegisterType((*CreateRequest)(nil), "ethermint.sgx.v1.CreateRequest") + proto.RegisterType((*CreateResponse)(nil), "ethermint.sgx.v1.CreateResponse") + proto.RegisterType((*CallRequest)(nil), "ethermint.sgx.v1.CallRequest") + proto.RegisterType((*CallResponse)(nil), "ethermint.sgx.v1.CallResponse") + proto.RegisterType((*CommitRequest)(nil), "ethermint.sgx.v1.CommitRequest") + proto.RegisterType((*CommitResponse)(nil), "ethermint.sgx.v1.CommitResponse") + proto.RegisterType((*StateDBAddBalanceRequest)(nil), "ethermint.sgx.v1.StateDBAddBalanceRequest") + proto.RegisterType((*StateDBAddBalanceResponse)(nil), "ethermint.sgx.v1.StateDBAddBalanceResponse") + proto.RegisterType((*StateDBSubBalanceRequest)(nil), "ethermint.sgx.v1.StateDBSubBalanceRequest") + proto.RegisterType((*StateDBSubBalanceResponse)(nil), "ethermint.sgx.v1.StateDBSubBalanceResponse") + proto.RegisterType((*StateDBSetNonceRequest)(nil), "ethermint.sgx.v1.StateDBSetNonceRequest") + proto.RegisterType((*StateDBSetNonceResponse)(nil), "ethermint.sgx.v1.StateDBSetNonceResponse") + proto.RegisterType((*StateDBIncreaseNonceRequest)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceRequest") + proto.RegisterType((*StateDBIncreaseNonceResponse)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceResponse") + proto.RegisterType((*StateDBPrepareRequest)(nil), "ethermint.sgx.v1.StateDBPrepareRequest") + proto.RegisterType((*StateDBPrepareResponse)(nil), "ethermint.sgx.v1.StateDBPrepareResponse") + proto.RegisterType((*StateDBGetRefundRequest)(nil), "ethermint.sgx.v1.StateDBGetRefundRequest") + proto.RegisterType((*StateDBGetRefundResponse)(nil), "ethermint.sgx.v1.StateDBGetRefundResponse") + proto.RegisterType((*StateDBGetLogsRequest)(nil), "ethermint.sgx.v1.StateDBGetLogsRequest") + proto.RegisterType((*StateDBGetLogsResponse)(nil), "ethermint.sgx.v1.StateDBGetLogsResponse") +} + +func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } + +var fileDescriptor_1d9fb6e76534f03e = []byte{ + // 844 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcb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0x6b, 0xe8, 0x6c, 0x6b, 0x02, 0x29, 0x5f, 0xd0, + 0xb6, 0xe2, 0xe8, 0xcf, 0xf6, 0x49, 0x2d, 0x98, 0x49, 0x89, 0xc2, 0x8e, 0x99, 0x36, 0xe5, 0x66, + 0xc7, 0x4c, 0x5b, 0xfa, 0x62, 0x56, 0x4e, 0x3f, 0xfd, 0xfd, 0xda, 0xd0, 0xae, 0xae, 0x0d, 0xed, + 0xaf, 0x6b, 0x43, 0xfb, 0xf5, 0xc6, 0xa8, 0x5c, 0xdd, 0x18, 0x95, 0x3f, 0x6f, 0x8c, 0xca, 0x0f, + 0xef, 0x38, 0x33, 0xe1, 0x46, 0xe7, 0x7d, 0x2b, 0xf4, 0x07, 0x18, 0xfb, 0x21, 0x1f, 0xac, 0x3e, + 0x7f, 0x17, 0xf2, 0x03, 0x58, 0x5c, 0xce, 0x91, 0x9f, 0x37, 0xe4, 0xe7, 0xef, 0x47, 0x7f, 0x07, + 0x00, 0x00, 0xff, 0xff, 0xaa, 0x0e, 0x62, 0xd9, 0x1e, 0x0b, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryServiceClient is the client API for QueryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryServiceClient interface { + // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { + PrepareTx(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) + // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { + Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { + Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) + // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { + Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) + // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { + StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) + // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { + StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) + // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { + StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) + // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { + StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) + // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { + StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) + // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { + StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) + // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { + StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) +} + +type queryServiceClient struct { + cc grpc1.ClientConn +} + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +func (c *queryServiceClient) PrepareTx(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) { + out := new(PrepareTxResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/PrepareTx", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { + out := new(CreateResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) { + out := new(CallResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Call", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) { + out := new(CommitResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Commit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) { + out := new(StateDBAddBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBAddBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) { + out := new(StateDBSubBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSubBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) { + out := new(StateDBSetNonceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSetNonce", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) { + out := new(StateDBIncreaseNonceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) { + out := new(StateDBPrepareResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBPrepare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) { + out := new(StateDBGetRefundResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetRefund", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) { + out := new(StateDBGetLogsResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetLogs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { + PrepareTx(context.Context, *PrepareTxRequest) (*PrepareTxResponse, error) + // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { + Create(context.Context, *CreateRequest) (*CreateResponse, error) + // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { + Call(context.Context, *CallRequest) (*CallResponse, error) + // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { + Commit(context.Context, *CommitRequest) (*CommitResponse, error) + // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { + StateDBAddBalance(context.Context, *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) + // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { + StateDBSubBalance(context.Context, *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) + // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { + StateDBSetNonce(context.Context, *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) + // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { + StateDBIncreaseNonce(context.Context, *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) + // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { + StateDBPrepare(context.Context, *StateDBPrepareRequest) (*StateDBPrepareResponse, error) + // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { + StateDBGetRefund(context.Context, *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) + // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { + StateDBGetLogs(context.Context, *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) +} + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { +} + +func (*UnimplementedQueryServiceServer) PrepareTx(ctx context.Context, req *PrepareTxRequest) (*PrepareTxResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PrepareTx not implemented") +} +func (*UnimplementedQueryServiceServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedQueryServiceServer) Call(ctx context.Context, req *CallRequest) (*CallResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Call not implemented") +} +func (*UnimplementedQueryServiceServer) Commit(ctx context.Context, req *CommitRequest) (*CommitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBAddBalance(ctx context.Context, req *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBAddBalance not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBSubBalance(ctx context.Context, req *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSubBalance not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBSetNonce(ctx context.Context, req *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSetNonce not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBIncreaseNonce(ctx context.Context, req *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBIncreaseNonce not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBPrepare(ctx context.Context, req *StateDBPrepareRequest) (*StateDBPrepareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBPrepare not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBGetRefund(ctx context.Context, req *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetRefund not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBGetLogs(ctx context.Context, req *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetLogs not implemented") +} + +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) +} + +func _QueryService_PrepareTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PrepareTxRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).PrepareTx(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/PrepareTx", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).PrepareTx(ctx, req.(*PrepareTxRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Create(ctx, req.(*CreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CallRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).Call(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/Call", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Call(ctx, req.(*CallRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).Commit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/Commit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Commit(ctx, req.(*CommitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_StateDBAddBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBAddBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBAddBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBAddBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBAddBalance(ctx, req.(*StateDBAddBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_StateDBSubBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBSubBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBSubBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSubBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBSubBalance(ctx, req.(*StateDBSubBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_StateDBSetNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBSetNonceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBSetNonce(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSetNonce", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBSetNonce(ctx, req.(*StateDBSetNonceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_StateDBIncreaseNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBIncreaseNonceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, req.(*StateDBIncreaseNonceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_StateDBPrepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBPrepareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBPrepare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBPrepare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBPrepare(ctx, req.(*StateDBPrepareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_StateDBGetRefund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBGetRefundRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBGetRefund(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetRefund", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBGetRefund(ctx, req.(*StateDBGetRefundRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_StateDBGetLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBGetLogsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBGetLogs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetLogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBGetLogs(ctx, req.(*StateDBGetLogsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "ethermint.sgx.v1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PrepareTx", + Handler: _QueryService_PrepareTx_Handler, + }, + { + MethodName: "Create", + Handler: _QueryService_Create_Handler, + }, + { + MethodName: "Call", + Handler: _QueryService_Call_Handler, + }, + { + MethodName: "Commit", + Handler: _QueryService_Commit_Handler, + }, + { + MethodName: "StateDBAddBalance", + Handler: _QueryService_StateDBAddBalance_Handler, + }, + { + MethodName: "StateDBSubBalance", + Handler: _QueryService_StateDBSubBalance_Handler, + }, + { + MethodName: "StateDBSetNonce", + Handler: _QueryService_StateDBSetNonce_Handler, + }, + { + MethodName: "StateDBIncreaseNonce", + Handler: _QueryService_StateDBIncreaseNonce_Handler, + }, + { + MethodName: "StateDBPrepare", + Handler: _QueryService_StateDBPrepare_Handler, + }, + { + MethodName: "StateDBGetRefund", + Handler: _QueryService_StateDBGetRefund_Handler, + }, + { + MethodName: "StateDBGetLogs", + Handler: _QueryService_StateDBGetLogs_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ethermint/sgx/v1/query.proto", +} + +func (m *PrepareTxRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PrepareTxRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EvmConfig) > 0 { + i -= len(m.EvmConfig) + copy(dAtA[i:], m.EvmConfig) + i = encodeVarintQuery(dAtA, i, uint64(len(m.EvmConfig))) + i-- + dAtA[i] = 0x22 + } + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a + } + if len(m.Header) > 0 { + i -= len(m.Header) + copy(dAtA[i:], m.Header) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Header))) + i-- + dAtA[i] = 0x12 + } + if len(m.TxHash) > 0 { + i -= len(m.TxHash) + copy(dAtA[i:], m.TxHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PrepareTxResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PrepareTxResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CreateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x2a + } + if m.Gas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) + i-- + dAtA[i] = 0x20 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0x1a + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CreateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LeftOverGas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) + i-- + dAtA[i] = 0x18 + } + if len(m.ContractAddr) > 0 { + i -= len(m.ContractAddr) + copy(dAtA[i:], m.ContractAddr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractAddr))) + i-- + dAtA[i] = 0x12 + } + if len(m.Ret) > 0 { + i -= len(m.Ret) + copy(dAtA[i:], m.Ret) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Ret))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CallRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CallRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x32 + } + if m.Gas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) + i-- + dAtA[i] = 0x28 + } + if len(m.Input) > 0 { + i -= len(m.Input) + copy(dAtA[i:], m.Input) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Input))) + i-- + dAtA[i] = 0x22 + } + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0x1a + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CallResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CallResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CallResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LeftOverGas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) + i-- + dAtA[i] = 0x10 + } + if len(m.Ret) > 0 { + i -= len(m.Ret) + copy(dAtA[i:], m.Ret) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Ret))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CommitRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommitRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Commit { + i-- + if m.Commit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CommitResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommitResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *StateDBAddBalanceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBAddBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBAddBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LeftOverGas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) + i-- + dAtA[i] = 0x20 + } + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBAddBalanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBAddBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBAddBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *StateDBSubBalanceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBSubBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBSubBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBSubBalanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBSubBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBSubBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *StateDBSetNonceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBSetNonceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBSetNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Nonce != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x18 + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBSetNonceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBSetNonceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBSetNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *StateDBIncreaseNonceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBIncreaseNonceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBIncreaseNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBIncreaseNonceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBIncreaseNonceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBIncreaseNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *StateDBPrepareRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBPrepareRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBPrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Rules) > 0 { + i -= len(m.Rules) + copy(dAtA[i:], m.Rules) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Rules))) + i-- + dAtA[i] = 0x1a + } + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBPrepareResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBPrepareResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBPrepareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *StateDBGetRefundRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBGetRefundRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBGetRefundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBGetRefundResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBGetRefundResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBGetRefundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Refund != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Refund)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBGetLogsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBGetLogsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBGetLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBGetLogsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBGetLogsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBGetLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Logs) > 0 { + i -= len(m.Logs) + copy(dAtA[i:], m.Logs) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Logs))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *PrepareTxRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TxHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Header) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Msg) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.EvmConfig) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *PrepareTxResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + return n +} + +func (m *CreateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Code) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Gas != 0 { + n += 1 + sovQuery(uint64(m.Gas)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *CreateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ret) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ContractAddr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.LeftOverGas != 0 { + n += 1 + sovQuery(uint64(m.LeftOverGas)) + } + return n +} + +func (m *CallRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Input) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Gas != 0 { + n += 1 + sovQuery(uint64(m.Gas)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *CallResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ret) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.LeftOverGas != 0 { + n += 1 + sovQuery(uint64(m.LeftOverGas)) + } + return n +} + +func (m *CommitRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + if m.Commit { + n += 2 + } + return n +} + +func (m *CommitResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBAddBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Msg) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.LeftOverGas != 0 { + n += 1 + sovQuery(uint64(m.LeftOverGas)) + } + return n +} + +func (m *StateDBAddBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBSubBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Msg) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *StateDBSubBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBSetNonceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Nonce != 0 { + n += 1 + sovQuery(uint64(m.Nonce)) + } + return n +} + +func (m *StateDBSetNonceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBIncreaseNonceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Msg) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *StateDBIncreaseNonceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBPrepareRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Msg) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Rules) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *StateDBPrepareResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBGetRefundRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + return n +} + +func (m *StateDBGetRefundResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Refund != 0 { + n += 1 + sovQuery(uint64(m.Refund)) + } + return n +} + +func (m *StateDBGetLogsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + return n +} + +func (m *StateDBGetLogsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Logs) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PrepareTxRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PrepareTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) + if m.TxHash == nil { + m.TxHash = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Header = append(m.Header[:0], dAtA[iNdEx:postIndex]...) + if m.Header == nil { + m.Header = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) + if m.Msg == nil { + m.Msg = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvmConfig", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EvmConfig = append(m.EvmConfig[:0], dAtA[iNdEx:postIndex]...) + if m.EvmConfig == nil { + m.EvmConfig = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PrepareTxResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PrepareTxResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PrepareTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) + if m.Code == nil { + m.Code = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) + } + m.Gas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) + if m.Ret == nil { + m.Ret = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) + } + m.LeftOverGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LeftOverGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CallRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CallRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CallRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Input = append(m.Input[:0], dAtA[iNdEx:postIndex]...) + if m.Input == nil { + m.Input = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) + } + m.Gas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CallResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CallResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CallResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) + if m.Ret == nil { + m.Ret = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) + } + m.LeftOverGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LeftOverGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommitRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommitRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommitRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Commit = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommitResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommitResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBAddBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBAddBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) + if m.Msg == nil { + m.Msg = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) + } + m.LeftOverGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LeftOverGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBAddBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBAddBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBAddBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBSubBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBSubBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) + if m.Msg == nil { + m.Msg = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBSubBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBSubBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBSubBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBSetNonceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBSetNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBSetNonceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBSetNonceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBSetNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBIncreaseNonceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBIncreaseNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) + if m.Msg == nil { + m.Msg = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBIncreaseNonceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBIncreaseNonceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBIncreaseNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBPrepareRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBPrepareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) + if m.Msg == nil { + m.Msg = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rules = append(m.Rules[:0], dAtA[iNdEx:postIndex]...) + if m.Rules == nil { + m.Rules = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBPrepareResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBPrepareResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBPrepareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBGetRefundRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBGetRefundRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBGetRefundRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBGetRefundResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBGetRefundResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBGetRefundResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Refund", wireType) + } + m.Refund = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Refund |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBGetLogsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBGetLogsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBGetLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBGetLogsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBGetLogsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBGetLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Logs = append(m.Logs[:0], dAtA[iNdEx:postIndex]...) + if m.Logs == nil { + m.Logs = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) From fb6cac9ca97b0d8e0bd63db0ff90b3fbcfdf990f Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:55:22 +0200 Subject: [PATCH 27/46] Clean up some proto files --- proto/buf.yaml | 3 +- proto/ethermint/sgx/v1/query.proto | 93 +- x/evm/keeper/grpc_client.go | 328 ----- x/evm/keeper/state_transition.go | 46 +- x/sgx/types/query.pb.go | 1810 +++++++++++++++++++++------- 5 files changed, 1510 insertions(+), 770 deletions(-) delete mode 100644 x/evm/keeper/grpc_client.go diff --git a/proto/buf.yaml b/proto/buf.yaml index fed6998177..a1740699e3 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,6 +1,7 @@ version: v1 name: buf.build/evmos/ethermint deps: + - buf.build/tendermint/tendermint:33ed361a90514289beabf3189e1d7665 # Same version as cosmos-sdk https://github.com/cosmos/cosmos-sdk/blob/7ea0d40ef242f7a1ec4d7b81d8a3278dda43e14f/proto/buf.yaml#L5 - buf.build/cosmos/cosmos-sdk - buf.build/cosmos/cosmos-proto - buf.build/cosmos/gogo-proto @@ -22,4 +23,4 @@ lint: - COMMENT_MESSAGE breaking: use: - - FILE \ No newline at end of file + - FILE diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index 85228efb24..3fa005f549 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -1,6 +1,9 @@ syntax = "proto3"; + package ethermint.sgx.v1; +import "tendermint/types/types.proto"; + option go_package = "github.com/evmos/ethermint/x/sgx/types"; // QueryService defines the gRPC querier service. @@ -54,7 +57,7 @@ message PrepareTxRequest { bytes tx_hash = 1; // Header is the Tendermint header of the block in which the transaction // will be executed. - bytes header = 2; // Header cmtproto.Header + .tendermint.types.Header header = 2; // Header cmtproto.Header // Msg is the EVM transaction message to run on the EVM. bytes msg = 3; // Msg core.Message // EvmConfig is the EVM configuration to set. @@ -62,37 +65,41 @@ message PrepareTxRequest { } message PrepareTxResponse { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; } message CreateRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; - // Original data type: vm.AccountRef + // caller is the account that creates the contract. + // Original data type: common.Address bytes caller = 2; bytes code = 3; uint64 gas = 4; - // Original data type: *big.Int - bytes value = 5; + // value is the amount of wei to send with the contract creation. + uint64 value = 5; } message CreateResponse { bytes ret = 1; // Original data type: common.Address - string contract_addr = 2; + bytes contract_addr = 2; uint64 left_over_gas = 3; } message CallRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; // Original data type: vm.AccountRef bytes caller = 2; // Original data type: common.Address - string addr = 3; + bytes addr = 3; // Original data type: []byte bytes input = 4; uint64 gas = 5; // Original data type: *big.Int - bytes value = 6; + uint64 value = 6; } message CallResponse { @@ -101,37 +108,39 @@ message CallResponse { } message CommitRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; - bool commit = 2; } message CommitResponse { } message StateDBAddBalanceRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; - // Original data type: vm.AccountRef + // caller is the account to add balance too. bytes caller = 2; - // Original data type: core.Message - bytes msg = 3; - uint64 left_over_gas = 4; + // amount is the amount to add. + uint64 amount = 3; } message StateDBAddBalanceResponse { } message StateDBSubBalanceRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; - // Original data type: vm.AccountRef + // caller is the account to substract balance from. bytes caller = 2; - // Original data type: core.Message - bytes msg = 3; + // amount is the amount to substract. + uint64 amount = 3; } message StateDBSubBalanceResponse { } message StateDBSetNonceRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; // Original data type: vm.AccountRef bytes caller = 2; @@ -142,28 +151,69 @@ message StateDBSetNonceResponse { } message StateDBIncreaseNonceRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; // Original data type: vm.AccountRef bytes caller = 2; - // Original data type: core.Message - bytes msg = 3; } message StateDBIncreaseNonceResponse { } +// Rules wraps ChainConfig and is merely syntactic sugar or can be used for functions +// that do not have or require information about the block. +// +// It is taken from geth: +// https://github.com/ethereum/go-ethereum/blob/v1.13.5/params/config.go#L848 +message Rules { + uint64 chain_id = 1; + + bool is_homestead_is_eip150 = 2; + bool is_eip155 = 3; + bool is_eip158 = 4; + bool is_byzantium = 5; + bool is_constantinople = 6; + bool is_petersburg = 7; + bool is_istanbul = 8; + bool is_berlin = 9; + bool is_london = 10; + bool is_merge = 11; + bool is_shanghai = 12; + bool is_cancun = 13; + bool is_prague = 14; + bool is_verkle = 15; +} + +// AccessTuple is the element type of an access list. +// +// It is taken from geth: +// https://github.com/ethereum/go-ethereum/blob/v1.13.5/core/types/tx_access_list.go#L33 +message AccessTuple { + // Original data type: common.Address + bytes address = 1; + // Original data type: []common.Hash + repeated bytes storage_keys = 2; + +} + message StateDBPrepareRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; - // Original data type: core.Message - bytes msg = 2; - // Original data type: params.Rules - bytes rules = 3; + // Original data type: common.Address + bytes sender = 2; + // Original data type: common.Address + bytes coinbase = 3; + // Original data type: common.Address + bytes dest = 4; + Rules rules = 5; + repeated AccessTuple access_list = 6; } message StateDBPrepareResponse { } message StateDBGetRefundRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; } @@ -172,6 +222,7 @@ message StateDBGetRefundResponse { } message StateDBGetLogsRequest { + // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; } diff --git a/x/evm/keeper/grpc_client.go b/x/evm/keeper/grpc_client.go deleted file mode 100644 index ee180ed25e..0000000000 --- a/x/evm/keeper/grpc_client.go +++ /dev/null @@ -1,328 +0,0 @@ -package keeper - -import ( - "context" - "encoding/json" - "math/big" - "net" - - "cosmossdk.io/log" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/params" - evmtypes "github.com/evmos/ethermint/x/evm/types" - sgxtypes "github.com/evmos/ethermint/x/sgx/types" - "github.com/pkg/errors" - "google.golang.org/grpc" -) - -type sgxGrpcClient struct { - logger log.Logger - querier sgxtypes.QueryServiceClient -} - -func newSgxGrpcClient(logger log.Logger) (*sgxGrpcClient, error) { - // Create a new InterfaceRegistry - interfaceRegistry := codectypes.NewInterfaceRegistry() - evmtypes.RegisterInterfaces(interfaceRegistry) - - // Set the node - rpcConn, err := grpc.Dial("localhost:9092", - grpc.WithInsecure(), - grpc.WithContextDialer(func(ctx context.Context, url string) (net.Conn, error) { - return net.Dial("tcp", url) - }), - ) - if err != nil { - return nil, errors.Wrap(err, "failed to connect to sgx gRPC") - } - querier := sgxtypes.NewQueryServiceClient(rpcConn) - - return &sgxGrpcClient{querier: querier, logger: logger}, nil -} - -// GetParams is here to satisfy the interface, but should never be called by -// the SGX binary to the Cosmos node. -func (c sgxGrpcClient) GetParams(sdk.Context) evmtypes.Params { - panic("dead code") -} - -func (c *sgxGrpcClient) PrepareTx(args PrepareTxArgs) (*sgxtypes.PrepareTxResponse, error) { - ctx := context.Background() - headerBytes, err := json.Marshal(args.Header) - if err != nil { - return nil, err - } - - msgBytes, err := json.Marshal(args.Msg) - if err != nil { - return nil, err - } - - evmConfigBytes, err := json.Marshal(args.EvmConfig) - if err != nil { - return nil, err - } - - req := &sgxtypes.PrepareTxRequest{ - TxHash: args.TxHash, - // Header is the Tendermint header of the block in which the transaction - // will be executed. - Header: headerBytes, - // Msg is the EVM transaction message to run on the EVM. - Msg: msgBytes, - // EvmConfig is the EVM configuration to set. - EvmConfig: evmConfigBytes, - } - - resp, err := c.querier.PrepareTx(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to prepare tx") - } - - c.logger.Info("Called gRPC PrepareTx") - - return resp, nil -} - -func (c *sgxGrpcClient) Call(handlerId uint64, caller vm.AccountRef, addr common.Address, input []byte, gas uint64, value *big.Int) (*sgxtypes.CallResponse, error) { - ctx := context.Background() - callerBytes, err := json.Marshal(caller) - if err != nil { - return nil, err - } - - valueBytes := value.Bytes() - addrHex := addr.Hex() - req := &sgxtypes.CallRequest{ - HandlerId: handlerId, - Caller: callerBytes, - Addr: addrHex, - Input: input, - Gas: gas, - Value: valueBytes, - } - - resp, err := c.querier.Call(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to call") - } - - c.logger.Info("Called gRPC Call") - - return resp, nil -} - -func (c *sgxGrpcClient) Create(handlerId uint64, caller vm.AccountRef, code []byte, gas uint64, value *big.Int) (*sgxtypes.CreateResponse, error) { - ctx := context.Background() - callerBytes, err := json.Marshal(caller) - if err != nil { - return nil, err - } - - valueBytes := value.Bytes() - req := &sgxtypes.CreateRequest{ - HandlerId: handlerId, - Caller: callerBytes, - Code: code, - Gas: gas, - Value: valueBytes, - } - - resp, err := c.querier.Create(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to create") - } - - c.logger.Info("Called gRPC Create") - - return resp, nil -} - -func (c *sgxGrpcClient) Commit(handlerId uint64, commit bool) (*sgxtypes.CommitResponse, error) { - ctx := context.Background() - req := &sgxtypes.CommitRequest{ - HandlerId: handlerId, - Commit: commit, - } - - resp, err := c.querier.Commit(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to commit") - } - - c.logger.Info("Called gRPC Commit") - - return resp, nil -} - -func (c *sgxGrpcClient) StateDBAddBalance(handlerId uint64, sender vm.AccountRef, msg core.Message, leftOverGas uint64) (*sgxtypes.StateDBAddBalanceResponse, error) { - ctx := context.Background() - senderBytes, err := json.Marshal(sender) - if err != nil { - return nil, err - } - - msgBytes, err := json.Marshal(msg) - if err != nil { - return nil, err - } - - req := &sgxtypes.StateDBAddBalanceRequest{ - HandlerId: handlerId, - Caller: senderBytes, - Msg: msgBytes, - LeftOverGas: leftOverGas, - } - - resp, err := c.querier.StateDBAddBalance(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to add balance") - } - - c.logger.Info("Called gRPC AddBalance") - - return resp, nil -} - -func (c *sgxGrpcClient) StateDBSubBalance(handlerId uint64, sender vm.AccountRef, msg core.Message) (*sgxtypes.StateDBSubBalanceResponse, error) { - ctx := context.Background() - senderBytes, err := json.Marshal(sender) - if err != nil { - return nil, err - } - - msgBytes, err := json.Marshal(msg) - if err != nil { - return nil, err - } - - req := &sgxtypes.StateDBSubBalanceRequest{ - HandlerId: handlerId, - Caller: senderBytes, - Msg: msgBytes, - } - - resp, err := c.querier.StateDBSubBalance(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to sub balance") - } - - c.logger.Info("Called gRPC SubBalance") - - return resp, nil -} - -func (c *sgxGrpcClient) StateDBSetNonce(handlerId uint64, caller vm.AccountRef, nonce uint64) (*sgxtypes.StateDBSetNonceResponse, error) { - ctx := context.Background() - callerBytes, err := json.Marshal(caller) - if err != nil { - return nil, err - } - - req := &sgxtypes.StateDBSetNonceRequest{ - HandlerId: handlerId, - Caller: callerBytes, - Nonce: nonce, - } - - resp, err := c.querier.StateDBSetNonce(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to set nonce") - } - - c.logger.Info("Called gRPC Set Nonce") - - return resp, nil -} - -func (c *sgxGrpcClient) StateDBIncreaseNonce(handlerId uint64, sender vm.AccountRef, msg core.Message) (*sgxtypes.StateDBIncreaseNonceResponse, error) { - ctx := context.Background() - senderBytes, err := json.Marshal(sender) - if err != nil { - return nil, err - } - - msgBytes, err := json.Marshal(msg) - if err != nil { - return nil, err - } - - req := &sgxtypes.StateDBIncreaseNonceRequest{ - HandlerId: handlerId, - Caller: senderBytes, - Msg: msgBytes, - } - - resp, err := c.querier.StateDBIncreaseNonce(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to increase nonce") - } - - c.logger.Info("Called gRPC Increase Nonce") - - return resp, nil -} - -func (c *sgxGrpcClient) StateDBPrepare(handlerId uint64, msg core.Message, rules params.Rules) (*sgxtypes.StateDBPrepareResponse, error) { - ctx := context.Background() - msgBytes, err := json.Marshal(msg) - if err != nil { - return nil, err - } - - rulesBytes, err := json.Marshal(rules) - if err != nil { - return nil, err - } - - req := &sgxtypes.StateDBPrepareRequest{ - HandlerId: handlerId, - Msg: msgBytes, - Rules: rulesBytes, - } - - resp, err := c.querier.StateDBPrepare(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to StateDb prepare") - } - - c.logger.Info("Called gRPC StateDb Prepare") - - return resp, nil -} - -func (c *sgxGrpcClient) StateDBGetRefund(handlerId uint64) (*sgxtypes.StateDBGetRefundResponse, error) { - ctx := context.Background() - req := &sgxtypes.StateDBGetRefundRequest{ - HandlerId: handlerId, - } - - resp, err := c.querier.StateDBGetRefund(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to StateDb Get refund") - } - - c.logger.Info("Called gRPC StateDb Get refund") - - return resp, nil -} - -func (c *sgxGrpcClient) StateDBGetLogs(handlerId uint64) (*sgxtypes.StateDBGetLogsResponse, error) { - ctx := context.Background() - req := &sgxtypes.StateDBGetLogsRequest{ - HandlerId: handlerId, - } - - resp, err := c.querier.StateDBGetLogs(ctx, req) - if err != nil { - return nil, errors.Wrap(err, "failed to StateDb get logs") - } - - c.logger.Info("Called gRPC StateDb get logs") - - return resp, nil -} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 3dc76ace17..3a80157ca8 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -16,12 +16,15 @@ package keeper import ( + "context" "encoding/json" "fmt" "math/big" + "net" "strings" cmttypes "github.com/cometbft/cometbft/types" + "google.golang.org/grpc" errorsmod "cosmossdk.io/errors" sdkmath "cosmossdk.io/math" @@ -35,6 +38,8 @@ import ( "github.com/ethereum/go-ethereum/core/vm" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/params" + + sgxtypes "github.com/evmos/ethermint/x/sgx/types" ) // GetHashFn implements vm.GetHashFunc for Ethermint. It handles 3 cases: @@ -298,10 +303,14 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, errorsmod.Wrap(types.ErrCallDisabled, "failed to call contract") } - sgxGrpcClient, err := newSgxGrpcClient(k.Logger(ctx)) - if err != nil { - return nil, errorsmod.Wrap(err, "failed to create new SGX rpc client") - } + rpcConn, err := grpc.Dial("localhost:9092", + grpc.WithInsecure(), + grpc.WithContextDialer(func(ctx context.Context, url string) (net.Conn, error) { + return net.Dial("tcp", url) + }), + ) + + sgxGrpcClient := sgxtypes.NewQueryServiceClient(rpcConn) handlerId, err := k.prepareTxForSgx(ctx, msg, cfg, sgxGrpcClient) if err != nil { @@ -318,7 +327,11 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SubBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit))) - _, err := sgxGrpcClient.StateDBSubBalance(handlerId, sender, msg) + _, err := sgxGrpcClient.StateDBSubBalance(ctx, &sgxtypes.StateDBSubBalanceRequest{ + HandlerId: handlerId, + Caller: sender.Address().Bytes(), + Amount: new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit)).Uint64(), + }) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -329,7 +342,10 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), stateDB.GetNonce(sender.Address())+1) - _, err = sgxGrpcClient.StateDBIncreaseNonce(handlerId, sender, msg) + _, err = sgxGrpcClient.StateDBIncreaseNonce(ctx, &sgxtypes.StateDBIncreaseNonceRequest{ + HandlerId: handlerId, + Caller: sender.Address().Bytes(), + }) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -343,7 +359,11 @@ func (k *Keeper) ApplyMessageWithConfig( if cfg.DebugTrace { // Ethermint original code: // stateDB.AddBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas))) - _, err := sgxGrpcClient.StateDBAddBalance(handlerId, sender, msg, leftoverGas) + _, err := sgxGrpcClient.StateDBAddBalance(ctx, &sgxtypes.StateDBAddBalanceRequest{ + HandlerId: handlerId, + Caller: sender.Address().Bytes(), + Amount: new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas)).Uint64(), + }) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -387,7 +407,15 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) - _, err = sgxGrpcClient.StateDBPrepare(handlerId, msg, rules) + _, err = sgxGrpcClient.StateDBPrepare(ctx, &sgxtypes.StateDBPrepareRequest{ + HandlerId: handlerId, + Sender: msg.From.Bytes(), + Coinbase: cfg.CoinBase.Bytes(), + Dest: msg.To.Bytes(), + Rules: &sgxtypes.Rules{ + // TODO Add rules + }, + }) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -554,7 +582,7 @@ func (k *Keeper) ApplyMessageWithConfig( // SGX // - sends a "PrepareTx" request to the SGX enclave with the relevant tx and // block info -func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxGrpcClient *sgxGrpcClient) (uint64, error) { +func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxGrpcClient sgxtypes.QueryServiceClient) (uint64, error) { // Step 1. Send a "PrepareTx" request to the SGX enclave. ChainConfigJson, err := json.Marshal(cfg.ChainConfig) if err != nil { diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index 6a44a017c6..6fbdb9e610 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -8,6 +8,7 @@ import ( fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" + types "github.com/tendermint/tendermint/proto/tendermint/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -31,7 +32,7 @@ type PrepareTxRequest struct { TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // Header is the Tendermint header of the block in which the transaction // will be executed. - Header []byte `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` + Header *types.Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` // Msg is the EVM transaction message to run on the EVM. Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // EvmConfig is the EVM configuration to set. @@ -78,7 +79,7 @@ func (m *PrepareTxRequest) GetTxHash() []byte { return nil } -func (m *PrepareTxRequest) GetHeader() []byte { +func (m *PrepareTxRequest) GetHeader() *types.Header { if m != nil { return m.Header } @@ -100,6 +101,7 @@ func (m *PrepareTxRequest) GetEvmConfig() []byte { } type PrepareTxResponse struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` } @@ -144,13 +146,15 @@ func (m *PrepareTxResponse) GetHandlerId() uint64 { } type CreateRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Original data type: vm.AccountRef + // caller is the account that creates the contract. + // Original data type: common.Address Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` Code []byte `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` Gas uint64 `protobuf:"varint,4,opt,name=gas,proto3" json:"gas,omitempty"` - // Original data type: *big.Int - Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` + // value is the amount of wei to send with the contract creation. + Value uint64 `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"` } func (m *CreateRequest) Reset() { *m = CreateRequest{} } @@ -214,17 +218,17 @@ func (m *CreateRequest) GetGas() uint64 { return 0 } -func (m *CreateRequest) GetValue() []byte { +func (m *CreateRequest) GetValue() uint64 { if m != nil { return m.Value } - return nil + return 0 } type CreateResponse struct { Ret []byte `protobuf:"bytes,1,opt,name=ret,proto3" json:"ret,omitempty"` // Original data type: common.Address - ContractAddr string `protobuf:"bytes,2,opt,name=contract_addr,json=contractAddr,proto3" json:"contract_addr,omitempty"` + ContractAddr []byte `protobuf:"bytes,2,opt,name=contract_addr,json=contractAddr,proto3" json:"contract_addr,omitempty"` LeftOverGas uint64 `protobuf:"varint,3,opt,name=left_over_gas,json=leftOverGas,proto3" json:"left_over_gas,omitempty"` } @@ -268,11 +272,11 @@ func (m *CreateResponse) GetRet() []byte { return nil } -func (m *CreateResponse) GetContractAddr() string { +func (m *CreateResponse) GetContractAddr() []byte { if m != nil { return m.ContractAddr } - return "" + return nil } func (m *CreateResponse) GetLeftOverGas() uint64 { @@ -283,16 +287,17 @@ func (m *CreateResponse) GetLeftOverGas() uint64 { } type CallRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Original data type: vm.AccountRef Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` // Original data type: common.Address - Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` + Addr []byte `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` // Original data type: []byte Input []byte `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` Gas uint64 `protobuf:"varint,5,opt,name=gas,proto3" json:"gas,omitempty"` // Original data type: *big.Int - Value []byte `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` + Value uint64 `protobuf:"varint,6,opt,name=value,proto3" json:"value,omitempty"` } func (m *CallRequest) Reset() { *m = CallRequest{} } @@ -342,11 +347,11 @@ func (m *CallRequest) GetCaller() []byte { return nil } -func (m *CallRequest) GetAddr() string { +func (m *CallRequest) GetAddr() []byte { if m != nil { return m.Addr } - return "" + return nil } func (m *CallRequest) GetInput() []byte { @@ -363,11 +368,11 @@ func (m *CallRequest) GetGas() uint64 { return 0 } -func (m *CallRequest) GetValue() []byte { +func (m *CallRequest) GetValue() uint64 { if m != nil { return m.Value } - return nil + return 0 } type CallResponse struct { @@ -423,8 +428,8 @@ func (m *CallResponse) GetLeftOverGas() uint64 { } type CommitRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - Commit bool `protobuf:"varint,2,opt,name=commit,proto3" json:"commit,omitempty"` } func (m *CommitRequest) Reset() { *m = CommitRequest{} } @@ -467,13 +472,6 @@ func (m *CommitRequest) GetHandlerId() uint64 { return 0 } -func (m *CommitRequest) GetCommit() bool { - if m != nil { - return m.Commit - } - return false -} - type CommitResponse struct { } @@ -511,12 +509,12 @@ func (m *CommitResponse) XXX_DiscardUnknown() { var xxx_messageInfo_CommitResponse proto.InternalMessageInfo type StateDBAddBalanceRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Original data type: vm.AccountRef + // caller is the account to add balance too. Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` - // Original data type: core.Message - Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` - LeftOverGas uint64 `protobuf:"varint,4,opt,name=left_over_gas,json=leftOverGas,proto3" json:"left_over_gas,omitempty"` + // amount is the amount to add. + Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` } func (m *StateDBAddBalanceRequest) Reset() { *m = StateDBAddBalanceRequest{} } @@ -566,16 +564,9 @@ func (m *StateDBAddBalanceRequest) GetCaller() []byte { return nil } -func (m *StateDBAddBalanceRequest) GetMsg() []byte { - if m != nil { - return m.Msg - } - return nil -} - -func (m *StateDBAddBalanceRequest) GetLeftOverGas() uint64 { +func (m *StateDBAddBalanceRequest) GetAmount() uint64 { if m != nil { - return m.LeftOverGas + return m.Amount } return 0 } @@ -617,11 +608,12 @@ func (m *StateDBAddBalanceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_StateDBAddBalanceResponse proto.InternalMessageInfo type StateDBSubBalanceRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Original data type: vm.AccountRef + // caller is the account to substract balance from. Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` - // Original data type: core.Message - Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + // amount is the amount to substract. + Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` } func (m *StateDBSubBalanceRequest) Reset() { *m = StateDBSubBalanceRequest{} } @@ -671,11 +663,11 @@ func (m *StateDBSubBalanceRequest) GetCaller() []byte { return nil } -func (m *StateDBSubBalanceRequest) GetMsg() []byte { +func (m *StateDBSubBalanceRequest) GetAmount() uint64 { if m != nil { - return m.Msg + return m.Amount } - return nil + return 0 } type StateDBSubBalanceResponse struct { @@ -715,6 +707,7 @@ func (m *StateDBSubBalanceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_StateDBSubBalanceResponse proto.InternalMessageInfo type StateDBSetNonceRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Original data type: vm.AccountRef Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` @@ -812,11 +805,10 @@ func (m *StateDBSetNonceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_StateDBSetNonceResponse proto.InternalMessageInfo type StateDBIncreaseNonceRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // Original data type: vm.AccountRef Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` - // Original data type: core.Message - Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` } func (m *StateDBIncreaseNonceRequest) Reset() { *m = StateDBIncreaseNonceRequest{} } @@ -866,13 +858,6 @@ func (m *StateDBIncreaseNonceRequest) GetCaller() []byte { return nil } -func (m *StateDBIncreaseNonceRequest) GetMsg() []byte { - if m != nil { - return m.Msg - } - return nil -} - type StateDBIncreaseNonceResponse struct { } @@ -909,19 +894,243 @@ func (m *StateDBIncreaseNonceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_StateDBIncreaseNonceResponse proto.InternalMessageInfo +// Rules wraps ChainConfig and is merely syntactic sugar or can be used for functions +// that do not have or require information about the block. +// +// It is taken from geth: +// https://github.com/ethereum/go-ethereum/blob/v1.13.5/params/config.go#L848 +type Rules struct { + ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + IsHomesteadIsEip150 bool `protobuf:"varint,2,opt,name=is_homestead_is_eip150,json=isHomesteadIsEip150,proto3" json:"is_homestead_is_eip150,omitempty"` + IsEip155 bool `protobuf:"varint,3,opt,name=is_eip155,json=isEip155,proto3" json:"is_eip155,omitempty"` + IsEip158 bool `protobuf:"varint,4,opt,name=is_eip158,json=isEip158,proto3" json:"is_eip158,omitempty"` + IsByzantium bool `protobuf:"varint,5,opt,name=is_byzantium,json=isByzantium,proto3" json:"is_byzantium,omitempty"` + IsConstantinople bool `protobuf:"varint,6,opt,name=is_constantinople,json=isConstantinople,proto3" json:"is_constantinople,omitempty"` + IsPetersburg bool `protobuf:"varint,7,opt,name=is_petersburg,json=isPetersburg,proto3" json:"is_petersburg,omitempty"` + IsIstanbul bool `protobuf:"varint,8,opt,name=is_istanbul,json=isIstanbul,proto3" json:"is_istanbul,omitempty"` + IsBerlin bool `protobuf:"varint,9,opt,name=is_berlin,json=isBerlin,proto3" json:"is_berlin,omitempty"` + IsLondon bool `protobuf:"varint,10,opt,name=is_london,json=isLondon,proto3" json:"is_london,omitempty"` + IsMerge bool `protobuf:"varint,11,opt,name=is_merge,json=isMerge,proto3" json:"is_merge,omitempty"` + IsShanghai bool `protobuf:"varint,12,opt,name=is_shanghai,json=isShanghai,proto3" json:"is_shanghai,omitempty"` + IsCancun bool `protobuf:"varint,13,opt,name=is_cancun,json=isCancun,proto3" json:"is_cancun,omitempty"` + IsPrague bool `protobuf:"varint,14,opt,name=is_prague,json=isPrague,proto3" json:"is_prague,omitempty"` + IsVerkle bool `protobuf:"varint,15,opt,name=is_verkle,json=isVerkle,proto3" json:"is_verkle,omitempty"` +} + +func (m *Rules) Reset() { *m = Rules{} } +func (m *Rules) String() string { return proto.CompactTextString(m) } +func (*Rules) ProtoMessage() {} +func (*Rules) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{16} +} +func (m *Rules) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rules.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rules) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rules.Merge(m, src) +} +func (m *Rules) XXX_Size() int { + return m.Size() +} +func (m *Rules) XXX_DiscardUnknown() { + xxx_messageInfo_Rules.DiscardUnknown(m) +} + +var xxx_messageInfo_Rules proto.InternalMessageInfo + +func (m *Rules) GetChainId() uint64 { + if m != nil { + return m.ChainId + } + return 0 +} + +func (m *Rules) GetIsHomesteadIsEip150() bool { + if m != nil { + return m.IsHomesteadIsEip150 + } + return false +} + +func (m *Rules) GetIsEip155() bool { + if m != nil { + return m.IsEip155 + } + return false +} + +func (m *Rules) GetIsEip158() bool { + if m != nil { + return m.IsEip158 + } + return false +} + +func (m *Rules) GetIsByzantium() bool { + if m != nil { + return m.IsByzantium + } + return false +} + +func (m *Rules) GetIsConstantinople() bool { + if m != nil { + return m.IsConstantinople + } + return false +} + +func (m *Rules) GetIsPetersburg() bool { + if m != nil { + return m.IsPetersburg + } + return false +} + +func (m *Rules) GetIsIstanbul() bool { + if m != nil { + return m.IsIstanbul + } + return false +} + +func (m *Rules) GetIsBerlin() bool { + if m != nil { + return m.IsBerlin + } + return false +} + +func (m *Rules) GetIsLondon() bool { + if m != nil { + return m.IsLondon + } + return false +} + +func (m *Rules) GetIsMerge() bool { + if m != nil { + return m.IsMerge + } + return false +} + +func (m *Rules) GetIsShanghai() bool { + if m != nil { + return m.IsShanghai + } + return false +} + +func (m *Rules) GetIsCancun() bool { + if m != nil { + return m.IsCancun + } + return false +} + +func (m *Rules) GetIsPrague() bool { + if m != nil { + return m.IsPrague + } + return false +} + +func (m *Rules) GetIsVerkle() bool { + if m != nil { + return m.IsVerkle + } + return false +} + +// AccessTuple is the element type of an access list. +// +// It is taken from geth: +// https://github.com/ethereum/go-ethereum/blob/v1.13.5/core/types/tx_access_list.go#L33 +type AccessTuple struct { + // Original data type: common.Address + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Original data type: []common.Hash + StorageKeys [][]byte `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys,proto3" json:"storage_keys,omitempty"` +} + +func (m *AccessTuple) Reset() { *m = AccessTuple{} } +func (m *AccessTuple) String() string { return proto.CompactTextString(m) } +func (*AccessTuple) ProtoMessage() {} +func (*AccessTuple) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{17} +} +func (m *AccessTuple) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AccessTuple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AccessTuple.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AccessTuple) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccessTuple.Merge(m, src) +} +func (m *AccessTuple) XXX_Size() int { + return m.Size() +} +func (m *AccessTuple) XXX_DiscardUnknown() { + xxx_messageInfo_AccessTuple.DiscardUnknown(m) +} + +var xxx_messageInfo_AccessTuple proto.InternalMessageInfo + +func (m *AccessTuple) GetAddress() []byte { + if m != nil { + return m.Address + } + return nil +} + +func (m *AccessTuple) GetStorageKeys() [][]byte { + if m != nil { + return m.StorageKeys + } + return nil +} + type StateDBPrepareRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Original data type: core.Message - Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - // Original data type: params.Rules - Rules []byte `protobuf:"bytes,3,opt,name=rules,proto3" json:"rules,omitempty"` + // Original data type: common.Address + Sender []byte `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` + // Original data type: common.Address + Coinbase []byte `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + // Original data type: common.Address + Dest []byte `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"` + Rules *Rules `protobuf:"bytes,5,opt,name=rules,proto3" json:"rules,omitempty"` + AccessList []*AccessTuple `protobuf:"bytes,6,rep,name=access_list,json=accessList,proto3" json:"access_list,omitempty"` } func (m *StateDBPrepareRequest) Reset() { *m = StateDBPrepareRequest{} } func (m *StateDBPrepareRequest) String() string { return proto.CompactTextString(m) } func (*StateDBPrepareRequest) ProtoMessage() {} func (*StateDBPrepareRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{16} + return fileDescriptor_1d9fb6e76534f03e, []int{18} } func (m *StateDBPrepareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -957,20 +1166,41 @@ func (m *StateDBPrepareRequest) GetHandlerId() uint64 { return 0 } -func (m *StateDBPrepareRequest) GetMsg() []byte { +func (m *StateDBPrepareRequest) GetSender() []byte { if m != nil { - return m.Msg + return m.Sender + } + return nil +} + +func (m *StateDBPrepareRequest) GetCoinbase() []byte { + if m != nil { + return m.Coinbase + } + return nil +} + +func (m *StateDBPrepareRequest) GetDest() []byte { + if m != nil { + return m.Dest } return nil } -func (m *StateDBPrepareRequest) GetRules() []byte { +func (m *StateDBPrepareRequest) GetRules() *Rules { if m != nil { return m.Rules } return nil } +func (m *StateDBPrepareRequest) GetAccessList() []*AccessTuple { + if m != nil { + return m.AccessList + } + return nil +} + type StateDBPrepareResponse struct { } @@ -978,7 +1208,7 @@ func (m *StateDBPrepareResponse) Reset() { *m = StateDBPrepareResponse{} func (m *StateDBPrepareResponse) String() string { return proto.CompactTextString(m) } func (*StateDBPrepareResponse) ProtoMessage() {} func (*StateDBPrepareResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{17} + return fileDescriptor_1d9fb6e76534f03e, []int{19} } func (m *StateDBPrepareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1008,6 +1238,7 @@ func (m *StateDBPrepareResponse) XXX_DiscardUnknown() { var xxx_messageInfo_StateDBPrepareResponse proto.InternalMessageInfo type StateDBGetRefundRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` } @@ -1015,7 +1246,7 @@ func (m *StateDBGetRefundRequest) Reset() { *m = StateDBGetRefundRequest func (m *StateDBGetRefundRequest) String() string { return proto.CompactTextString(m) } func (*StateDBGetRefundRequest) ProtoMessage() {} func (*StateDBGetRefundRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{18} + return fileDescriptor_1d9fb6e76534f03e, []int{20} } func (m *StateDBGetRefundRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1059,7 +1290,7 @@ func (m *StateDBGetRefundResponse) Reset() { *m = StateDBGetRefundRespon func (m *StateDBGetRefundResponse) String() string { return proto.CompactTextString(m) } func (*StateDBGetRefundResponse) ProtoMessage() {} func (*StateDBGetRefundResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{19} + return fileDescriptor_1d9fb6e76534f03e, []int{21} } func (m *StateDBGetRefundResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1096,6 +1327,7 @@ func (m *StateDBGetRefundResponse) GetRefund() uint64 { } type StateDBGetLogsRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` } @@ -1103,7 +1335,7 @@ func (m *StateDBGetLogsRequest) Reset() { *m = StateDBGetLogsRequest{} } func (m *StateDBGetLogsRequest) String() string { return proto.CompactTextString(m) } func (*StateDBGetLogsRequest) ProtoMessage() {} func (*StateDBGetLogsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{20} + return fileDescriptor_1d9fb6e76534f03e, []int{22} } func (m *StateDBGetLogsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1147,7 +1379,7 @@ func (m *StateDBGetLogsResponse) Reset() { *m = StateDBGetLogsResponse{} func (m *StateDBGetLogsResponse) String() string { return proto.CompactTextString(m) } func (*StateDBGetLogsResponse) ProtoMessage() {} func (*StateDBGetLogsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{21} + return fileDescriptor_1d9fb6e76534f03e, []int{23} } func (m *StateDBGetLogsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1200,6 +1432,8 @@ func init() { proto.RegisterType((*StateDBSetNonceResponse)(nil), "ethermint.sgx.v1.StateDBSetNonceResponse") proto.RegisterType((*StateDBIncreaseNonceRequest)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceRequest") proto.RegisterType((*StateDBIncreaseNonceResponse)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceResponse") + proto.RegisterType((*Rules)(nil), "ethermint.sgx.v1.Rules") + proto.RegisterType((*AccessTuple)(nil), "ethermint.sgx.v1.AccessTuple") proto.RegisterType((*StateDBPrepareRequest)(nil), "ethermint.sgx.v1.StateDBPrepareRequest") proto.RegisterType((*StateDBPrepareResponse)(nil), "ethermint.sgx.v1.StateDBPrepareResponse") proto.RegisterType((*StateDBGetRefundRequest)(nil), "ethermint.sgx.v1.StateDBGetRefundRequest") @@ -1211,60 +1445,84 @@ func init() { func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } var fileDescriptor_1d9fb6e76534f03e = []byte{ - // 844 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcb, 0x8f, 0xdb, 0x44, - 0x18, 0x8f, 0x37, 0x0f, 0x9a, 0xaf, 0xc9, 0x92, 0x8e, 0xc2, 0x36, 0x75, 0x5b, 0x53, 0xb9, 0x12, - 0x2c, 0x05, 0x12, 0x75, 0x91, 0x10, 0x47, 0xba, 0xa9, 0x08, 0x95, 0x78, 0x66, 0x11, 0x07, 0x0e, - 0x44, 0xb3, 0xf6, 0x17, 0x3b, 0xaa, 0x1f, 0xd9, 0x99, 0xb1, 0xc9, 0x5e, 0xb9, 0x70, 0xe5, 0xc4, - 0xdf, 0x84, 0xc4, 0x65, 0x8f, 0x1c, 0xd1, 0xee, 0x3f, 0x82, 0x3c, 0x9e, 0x38, 0x0f, 0xdb, 0x21, - 0x68, 0xe1, 0x36, 0xdf, 0xf3, 0xf7, 0xfb, 0xbe, 0x4c, 0x7e, 0x63, 0x78, 0x84, 0xc2, 0x45, 0xe6, - 0xcf, 0x02, 0x31, 0xe0, 0xce, 0x62, 0x10, 0x3f, 0x1f, 0x5c, 0x44, 0xc8, 0x2e, 0xfb, 0x73, 0x16, - 0x8a, 0x90, 0x74, 0xb2, 0x68, 0x9f, 0x3b, 0x8b, 0x7e, 0xfc, 0xdc, 0x14, 0xd0, 0xf9, 0x86, 0xe1, - 0x9c, 0x32, 0xfc, 0x6e, 0x31, 0xc6, 0x8b, 0x08, 0xb9, 0x20, 0xf7, 0xe1, 0x0d, 0xb1, 0x98, 0xb8, - 0x94, 0xbb, 0x3d, 0xed, 0x89, 0x76, 0xdc, 0x1a, 0x37, 0xc4, 0xe2, 0x73, 0xca, 0x5d, 0x72, 0x04, - 0x0d, 0x17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0x74, 0x8b, 0x74, 0x80, 0x7c, 0x58, 0xda, 0xa4, 0x48, - 0x97, 0xf4, 0xfe, 0xbe, 0xe9, 0x19, 0x30, 0xc2, 0xe1, 0xa6, 0x00, 0x90, 0x77, 0x4b, 0x7b, 0x6c, - 0x4a, 0x90, 0x7e, 0xfc, 0xcf, 0x89, 0x19, 0xcc, 0x6b, 0xe8, 0x6c, 0x6b, 0x02, 0x29, 0x5f, 0xd0, - 0xb6, 0xe2, 0xe8, 0xcf, 0xf6, 0x49, 0x2d, 0x98, 0x49, 0x89, 0xc2, 0x8e, 0x99, 0x36, 0xe5, 0x66, - 0xc7, 0x4c, 0x5b, 0xfa, 0x62, 0x56, 0x4e, 0x3f, 0xfd, 0xfd, 0xda, 0xd0, 0xae, 0xae, 0x0d, 0xed, - 0xaf, 0x6b, 0x43, 0xfb, 0xf5, 0xc6, 0xa8, 0x5c, 0xdd, 0x18, 0x95, 0x3f, 0x6f, 0x8c, 0xca, 0x0f, - 0xef, 0x38, 0x33, 0xe1, 0x46, 0xe7, 0x7d, 0x2b, 0xf4, 0x07, 0x18, 0xfb, 0x21, 0x1f, 0xac, 0x3e, - 0x7f, 0x17, 0xf2, 0x03, 0x58, 0x5c, 0xce, 0x91, 0x9f, 0x37, 0xe4, 0xe7, 0xef, 0x47, 0x7f, 0x07, - 0x00, 0x00, 0xff, 0xff, 0xaa, 0x0e, 0x62, 0xd9, 0x1e, 0x0b, 0x00, 0x00, + // 1224 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x6f, 0x13, 0xc7, + 0x17, 0xb7, 0x71, 0xe2, 0x38, 0xcf, 0x4e, 0x30, 0xf3, 0xe5, 0x1b, 0x16, 0x03, 0x26, 0x5d, 0xa4, + 0x36, 0x85, 0xe2, 0x40, 0x10, 0x15, 0xa7, 0xaa, 0x24, 0x54, 0x21, 0x2d, 0xb4, 0x74,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 0x6d, 0x28, 0x84, 0xe9, 0x44, 0x05, 0xa9, + 0xfe, 0x85, 0x90, 0x29, 0xa7, 0x01, 0xba, 0x47, 0x78, 0xa2, 0x9a, 0x51, 0x6d, 0xab, 0xe5, 0x34, + 0x0d, 0xef, 0x2b, 0x3c, 0x11, 0xf6, 0x9f, 0x55, 0xf8, 0xbf, 0xd9, 0x63, 0x66, 0x32, 0x2d, 0xbe, + 0x67, 0x85, 0x1e, 0x8f, 0xc5, 0x9e, 0xcd, 0x29, 0xd2, 0x81, 0x86, 0x97, 0xb2, 0xa4, 0x4f, 0x45, + 0x31, 0x69, 0x4a, 0x5a, 0x75, 0x64, 0x1f, 0x45, 0xd1, 0x7c, 0xf5, 0x9a, 0xdc, 0x85, 0x65, 0xae, + 0xb6, 0xb0, 0xde, 0x28, 0xcd, 0x9d, 0x2b, 0xbd, 0xb3, 0x33, 0xbe, 0xa7, 0x77, 0xb8, 0x93, 0x6b, + 0x91, 0xcf, 0xa0, 0x49, 0x75, 0xee, 0x6e, 0xc4, 0x84, 0xb4, 0xea, 0x9b, 0xb5, 0xad, 0xe6, 0xce, + 0x8d, 0x49, 0xa3, 0x91, 0x02, 0x39, 0x90, 0x5b, 0x3c, 0x63, 0x42, 0xda, 0x56, 0xd9, 0x2a, 0xca, + 0x74, 0xcd, 0x61, 0x7a, 0x54, 0x9e, 0xee, 0x7d, 0x94, 0x0e, 0xbe, 0xce, 0x12, 0x7f, 0xc1, 0x06, + 0xbd, 0x53, 0xb6, 0xc1, 0x11, 0x4b, 0x33, 0x22, 0x36, 0xa0, 0xce, 0x35, 0xc7, 0x98, 0x19, 0xca, + 0xfe, 0xb4, 0x2c, 0xfb, 0x3e, 0xca, 0x67, 0x69, 0x20, 0x16, 0x8c, 0xf5, 0x49, 0x89, 0xbf, 0xb4, + 0x33, 0x91, 0x08, 0x2c, 0x45, 0x69, 0x50, 0xec, 0x01, 0xbd, 0xde, 0xf9, 0xad, 0x01, 0xad, 0x6f, + 0xd5, 0x05, 0xea, 0x10, 0xf9, 0x90, 0x79, 0x48, 0x5e, 0xc1, 0x6a, 0x79, 0x01, 0x21, 0xf6, 0x64, + 0xd9, 0xce, 0xde, 0x96, 0x3a, 0xb7, 0xe6, 0xea, 0x98, 0xd2, 0x55, 0xc8, 0x73, 0xa8, 0xe7, 0xf7, + 0x03, 0x72, 0x73, 0xd2, 0x60, 0xec, 0xf6, 0xd2, 0xd9, 0x9c, 0xad, 0x50, 0xba, 0xdb, 0x87, 0x25, + 0x35, 0x68, 0xc9, 0x94, 0x1f, 0x3b, 0x72, 0x31, 0xe8, 0x74, 0x67, 0x89, 0xc7, 0x70, 0xe9, 0xd9, + 0x39, 0x15, 0xd7, 0xe8, 0x14, 0x9e, 0x8a, 0x6b, 0x7c, 0xec, 0x56, 0x48, 0x02, 0x97, 0x26, 0xa6, + 0x21, 0xb9, 0x3d, 0x69, 0x38, 0x6b, 0x3a, 0x77, 0xee, 0x2c, 0xa4, 0x3b, 0x25, 0xde, 0xe9, 0xd4, + 0x9b, 0x13, 0x6f, 0x62, 0x0a, 0xcf, 0x89, 0x37, 0x65, 0x8c, 0x56, 0x48, 0x08, 0x17, 0xcf, 0x4c, + 0x38, 0xb2, 0x35, 0xdb, 0xc3, 0xf8, 0xac, 0xed, 0x7c, 0xbc, 0x80, 0x66, 0x19, 0xe9, 0x7b, 0xb8, + 0x3c, 0x6d, 0xb4, 0x91, 0xbb, 0x33, 0x9d, 0x4c, 0x1b, 0xac, 0x9d, 0xde, 0xa2, 0xea, 0x65, 0x60, + 0x84, 0xf5, 0xf1, 0x06, 0x40, 0x3e, 0x9a, 0xe9, 0x63, 0xbc, 0x23, 0x76, 0xb6, 0xfe, 0x59, 0xb1, + 0x0c, 0x73, 0x04, 0xed, 0xb3, 0x3d, 0x81, 0xcc, 0x2e, 0xd0, 0xd9, 0x8e, 0xd3, 0xb9, 0xbd, 0x88, + 0xea, 0x94, 0x9c, 0x4c, 0x53, 0x98, 0x93, 0xd3, 0x78, 0xbb, 0x99, 0x93, 0xd3, 0x99, 0xfe, 0x62, + 0x57, 0x76, 0x3f, 0xff, 0xf5, 0x5d, 0xb7, 0xfa, 0xf6, 0x5d, 0xb7, 0xfa, 0xc7, 0xbb, 0x6e, 0xf5, + 0xe7, 0xf7, 0xdd, 0xca, 0xdb, 0xf7, 0xdd, 0xca, 0xef, 0xef, 0xbb, 0x95, 0xef, 0x3e, 0x0c, 0x98, + 0x0c, 0xb3, 0x7e, 0xcf, 0x4b, 0xe3, 0x6d, 0x1c, 0xc6, 0xa9, 0xd8, 0x3e, 0x7d, 0xc7, 0x1d, 0xeb, + 0x97, 0x9c, 0x7e, 0x3f, 0xf5, 0xeb, 0xfa, 0x5d, 0xf6, 0xe0, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xb8, 0x1b, 0x0d, 0xe6, 0xe7, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1763,10 +2021,15 @@ func (m *PrepareTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.Header) > 0 { - i -= len(m.Header) - copy(dAtA[i:], m.Header) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Header))) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x12 } @@ -1828,12 +2091,10 @@ func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Value))) + if m.Value != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Value)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x28 } if m.Gas != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) @@ -1924,12 +2185,10 @@ func (m *CallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Value))) + if m.Value != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Value)) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x30 } if m.Gas != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) @@ -2020,16 +2279,6 @@ func (m *CommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Commit { - i-- - if m.Commit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } if m.HandlerId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) i-- @@ -2081,17 +2330,10 @@ func (m *StateDBAddBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l - if m.LeftOverGas != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) - i-- - dAtA[i] = 0x20 - } - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + if m.Amount != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Amount)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } if len(m.Caller) > 0 { i -= len(m.Caller) @@ -2151,12 +2393,10 @@ func (m *StateDBSubBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + if m.Amount != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Amount)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } if len(m.Caller) > 0 { i -= len(m.Caller) @@ -2279,13 +2519,6 @@ func (m *StateDBIncreaseNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, er _ = i var l int _ = l - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) - i-- - dAtA[i] = 0x1a - } if len(m.Caller) > 0 { i -= len(m.Caller) copy(dAtA[i:], m.Caller) @@ -2324,7 +2557,7 @@ func (m *StateDBIncreaseNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *StateDBPrepareRequest) Marshal() (dAtA []byte, err error) { +func (m *Rules) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2334,38 +2567,278 @@ func (m *StateDBPrepareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StateDBPrepareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *Rules) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBPrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Rules) > 0 { - i -= len(m.Rules) - copy(dAtA[i:], m.Rules) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Rules))) + if m.IsVerkle { i-- - dAtA[i] = 0x1a - } - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + if m.IsVerkle { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x78 } - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + if m.IsPrague { i-- - dAtA[i] = 0x8 + if m.IsPrague { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x70 } - return len(dAtA) - i, nil -} - + if m.IsCancun { + i-- + if m.IsCancun { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x68 + } + if m.IsShanghai { + i-- + if m.IsShanghai { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if m.IsMerge { + i-- + if m.IsMerge { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.IsLondon { + i-- + if m.IsLondon { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if m.IsBerlin { + i-- + if m.IsBerlin { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.IsIstanbul { + i-- + if m.IsIstanbul { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.IsPetersburg { + i-- + if m.IsPetersburg { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.IsConstantinople { + i-- + if m.IsConstantinople { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.IsByzantium { + i-- + if m.IsByzantium { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.IsEip158 { + i-- + if m.IsEip158 { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.IsEip155 { + i-- + if m.IsEip155 { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.IsHomesteadIsEip150 { + i-- + if m.IsHomesteadIsEip150 { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.ChainId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *AccessTuple) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AccessTuple) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccessTuple) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.StorageKeys) > 0 { + for iNdEx := len(m.StorageKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.StorageKeys[iNdEx]) + copy(dAtA[i:], m.StorageKeys[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.StorageKeys[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StateDBPrepareRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBPrepareRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBPrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AccessList) > 0 { + for iNdEx := len(m.AccessList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AccessList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.Rules != nil { + { + size, err := m.Rules.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Dest) > 0 { + i -= len(m.Dest) + copy(dAtA[i:], m.Dest) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Dest))) + i-- + dAtA[i] = 0x22 + } + if len(m.Coinbase) > 0 { + i -= len(m.Coinbase) + copy(dAtA[i:], m.Coinbase) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Coinbase))) + i-- + dAtA[i] = 0x1a + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *StateDBPrepareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2524,8 +2997,8 @@ func (m *PrepareTxRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.Header) - if l > 0 { + if m.Header != nil { + l = m.Header.Size() n += 1 + l + sovQuery(uint64(l)) } l = len(m.Msg) @@ -2571,9 +3044,8 @@ func (m *CreateRequest) Size() (n int) { if m.Gas != 0 { n += 1 + sovQuery(uint64(m.Gas)) } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if m.Value != 0 { + n += 1 + sovQuery(uint64(m.Value)) } return n } @@ -2622,9 +3094,8 @@ func (m *CallRequest) Size() (n int) { if m.Gas != 0 { n += 1 + sovQuery(uint64(m.Gas)) } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if m.Value != 0 { + n += 1 + sovQuery(uint64(m.Value)) } return n } @@ -2654,9 +3125,6 @@ func (m *CommitRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - if m.Commit { - n += 2 - } return n } @@ -2682,12 +3150,8 @@ func (m *StateDBAddBalanceRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.Msg) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.LeftOverGas != 0 { - n += 1 + sovQuery(uint64(m.LeftOverGas)) + if m.Amount != 0 { + n += 1 + sovQuery(uint64(m.Amount)) } return n } @@ -2714,9 +3178,8 @@ func (m *StateDBSubBalanceRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.Msg) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if m.Amount != 0 { + n += 1 + sovQuery(uint64(m.Amount)) } return n } @@ -2771,10 +3234,6 @@ func (m *StateDBIncreaseNonceRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.Msg) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } return n } @@ -2787,6 +3246,79 @@ func (m *StateDBIncreaseNonceResponse) Size() (n int) { return n } +func (m *Rules) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ChainId != 0 { + n += 1 + sovQuery(uint64(m.ChainId)) + } + if m.IsHomesteadIsEip150 { + n += 2 + } + if m.IsEip155 { + n += 2 + } + if m.IsEip158 { + n += 2 + } + if m.IsByzantium { + n += 2 + } + if m.IsConstantinople { + n += 2 + } + if m.IsPetersburg { + n += 2 + } + if m.IsIstanbul { + n += 2 + } + if m.IsBerlin { + n += 2 + } + if m.IsLondon { + n += 2 + } + if m.IsMerge { + n += 2 + } + if m.IsShanghai { + n += 2 + } + if m.IsCancun { + n += 2 + } + if m.IsPrague { + n += 2 + } + if m.IsVerkle { + n += 2 + } + return n +} + +func (m *AccessTuple) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.StorageKeys) > 0 { + for _, b := range m.StorageKeys { + l = len(b) + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + func (m *StateDBPrepareRequest) Size() (n int) { if m == nil { return 0 @@ -2796,14 +3328,28 @@ func (m *StateDBPrepareRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - l = len(m.Msg) + l = len(m.Sender) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.Rules) + l = len(m.Coinbase) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + l = len(m.Dest) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Rules != nil { + l = m.Rules.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.AccessList) > 0 { + for _, e := range m.AccessList { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } return n } @@ -2938,7 +3484,7 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2948,24 +3494,26 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Header = append(m.Header[:0], dAtA[iNdEx:postIndex]...) if m.Header == nil { - m.Header = []byte{} + m.Header = &types.Header{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 3: @@ -3262,10 +3810,10 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } } case 5: - if wireType != 2 { + if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var byteLen int + m.Value = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3275,26 +3823,11 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.Value |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3383,7 +3916,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContractAddr", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3393,23 +3926,25 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractAddr = string(dAtA[iNdEx:postIndex]) + m.ContractAddr = append(m.ContractAddr[:0], dAtA[iNdEx:postIndex]...) + if m.ContractAddr == nil { + m.ContractAddr = []byte{} + } iNdEx = postIndex case 3: if wireType != 0 { @@ -3537,7 +4072,7 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3547,23 +4082,25 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(dAtA[iNdEx:postIndex]) + m.Addr = append(m.Addr[:0], dAtA[iNdEx:postIndex]...) + if m.Addr == nil { + m.Addr = []byte{} + } iNdEx = postIndex case 4: if wireType != 2 { @@ -3619,10 +4156,10 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } } case 6: - if wireType != 2 { + if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var byteLen int + m.Value = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3632,26 +4169,11 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.Value |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3824,26 +4346,6 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Commit = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3998,44 +4500,10 @@ func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) - if m.Msg == nil { - m.Msg = []byte{} - } - iNdEx = postIndex - case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - m.LeftOverGas = 0 + m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4045,7 +4513,7 @@ func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LeftOverGas |= uint64(b&0x7F) << shift + m.Amount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4204,10 +4672,10 @@ func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var byteLen int + m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4217,26 +4685,11 @@ func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.Amount |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) - if m.Msg == nil { - m.Msg = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4562,40 +5015,6 @@ func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { m.Caller = []byte{} } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) - if m.Msg == nil { - m.Msg = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4667,7 +5086,7 @@ func (m *StateDBIncreaseNonceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { +func (m *Rules) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4690,17 +5109,17 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBPrepareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Rules: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBPrepareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Rules: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) } - m.HandlerId = 0 + m.ChainId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4710,16 +5129,16 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift + m.ChainId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsHomesteadIsEip150", wireType) } - var byteLen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4729,31 +5148,57 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery + m.IsHomesteadIsEip150 = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEip155", wireType) } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return io.ErrUnexpectedEOF + m.IsEip155 = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEip158", wireType) } - m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) - if m.Msg == nil { - m.Msg = []byte{} + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + m.IsEip158 = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsByzantium", wireType) } - var byteLen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4763,24 +5208,567 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery + m.IsByzantium = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsConstantinople", wireType) } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return io.ErrUnexpectedEOF + m.IsConstantinople = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPetersburg", wireType) } - m.Rules = append(m.Rules[:0], dAtA[iNdEx:postIndex]...) - if m.Rules == nil { - m.Rules = []byte{} + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsPetersburg = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsIstanbul", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsIstanbul = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsBerlin", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsBerlin = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsLondon", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsLondon = bool(v != 0) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsMerge", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsMerge = bool(v != 0) + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsShanghai", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsShanghai = bool(v != 0) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsCancun", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsCancun = bool(v != 0) + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPrague", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsPrague = bool(v != 0) + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerkle", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerkle = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AccessTuple) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AccessTuple: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AccessTuple: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StorageKeys", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StorageKeys = append(m.StorageKeys, make([]byte, postIndex-iNdEx)) + copy(m.StorageKeys[len(m.StorageKeys)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBPrepareRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBPrepareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = append(m.Sender[:0], dAtA[iNdEx:postIndex]...) + if m.Sender == nil { + m.Sender = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coinbase", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coinbase = append(m.Coinbase[:0], dAtA[iNdEx:postIndex]...) + if m.Coinbase == nil { + m.Coinbase = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Dest = append(m.Dest[:0], dAtA[iNdEx:postIndex]...) + if m.Dest == nil { + m.Dest = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Rules == nil { + m.Rules = &Rules{} + } + if err := m.Rules.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AccessList = append(m.AccessList, &AccessTuple{}) + if err := m.AccessList[len(m.AccessList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: From 1de73d128b43f9cbed772316deef5633e38f0e73 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Tue, 23 Apr 2024 14:28:21 +0000 Subject: [PATCH 28/46] chore: fix compilation issue --- proto/ethermint/sgx/v1/query.proto | 2 +- x/evm/keeper/state_transition.go | 26 ++++++++++++++++++-------- x/sgx/types/query.pb.go | 2 +- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index 3fa005f549..195346a179 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -57,7 +57,7 @@ message PrepareTxRequest { bytes tx_hash = 1; // Header is the Tendermint header of the block in which the transaction // will be executed. - .tendermint.types.Header header = 2; // Header cmtproto.Header + tendermint.types.Header header = 2; // Header cmtproto.Header // Msg is the EVM transaction message to run on the EVM. bytes msg = 3; // Msg core.Message // EvmConfig is the EVM configuration to set. diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 3a80157ca8..5af2bf45f8 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -432,7 +432,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce) - _, err := sgxGrpcClient.StateDBSetNonce(handlerId, sender, msg.Nonce) + _, err := sgxGrpcClient.StateDBSetNonce(ctx, &sgxtypes.StateDBSetNonceRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Nonce: msg.Nonce}) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -444,7 +444,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // ret, _, leftoverGas, vmErr = evm.Create(sender, msg.Data, leftoverGas, msg.Value) - resp, vmErr := sgxGrpcClient.Create(handlerId, sender, msg.Data, leftoverGas, msg.Value) + resp, vmErr := sgxGrpcClient.Create(ctx, &sgxtypes.CreateRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Code: msg.Data, Gas: leftoverGas, Value: msg.Value.Uint64()}) ret = resp.Ret leftoverGas = resp.LeftOverGas if vmErr != nil { @@ -458,7 +458,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce+1) - _, vmErr = sgxGrpcClient.StateDBSetNonce(handlerId, sender, msg.Nonce+1) + _, vmErr = sgxGrpcClient.StateDBSetNonce(ctx, &sgxtypes.StateDBSetNonceRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Nonce: msg.Nonce + 1}) if vmErr != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(vmErr) { @@ -470,7 +470,7 @@ func (k *Keeper) ApplyMessageWithConfig( } else { // Ethermint original code: // ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) - resp, vmErr := sgxGrpcClient.Call(handlerId, sender, *msg.To, msg.Data, leftoverGas, msg.Value) + resp, vmErr := sgxGrpcClient.Call(ctx, &sgxtypes.CallRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Addr: msg.To.Bytes(), Input: msg.Data, Gas: leftoverGas, Value: msg.Value.Uint64()}) ret = resp.Ret leftoverGas = resp.LeftOverGas @@ -501,7 +501,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // leftoverGas += GasToRefund(stateDB.GetRefund(), temporaryGasUsed, refundQuotient) - resp, err := sgxGrpcClient.StateDBGetRefund(handlerId) + resp, err := sgxGrpcClient.StateDBGetRefund(ctx, &sgxtypes.StateDBGetRefundRequest{HandlerId: handlerId}) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -526,7 +526,7 @@ func (k *Keeper) ApplyMessageWithConfig( // if err := stateDB.Commit(); err != nil { // return nil, errorsmod.Wrap(err, "failed to commit stateDB") // } - _, err := sgxGrpcClient.Commit(handlerId, true) + _, err := sgxGrpcClient.Commit(ctx, &sgxtypes.CommitRequest{HandlerId: handlerId}) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -558,7 +558,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // Logs: types.NewLogsFromEth(stateDB.Logs()), var replyLog StateDBGetLogsReply - _, err = sgxGrpcClient.StateDBGetLogs(handlerId) + _, err = sgxGrpcClient.StateDBGetLogs(ctx, &sgxtypes.StateDBGetLogsRequest{HandlerId: handlerId}) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -613,7 +613,17 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf }, } - resp, err := sgxGrpcClient.PrepareTx(args) + msgBytes, err := json.Marshal(args.Msg) + if err != nil { + return 0, err + } + + evmConfigBytes, err := json.Marshal(args.EvmConfig) + if err != nil { + return 0, err + } + + resp, err := sgxGrpcClient.PrepareTx(ctx, &sgxtypes.PrepareTxRequest{TxHash: args.TxHash, Header: &args.Header, Msg: msgBytes, EvmConfig: evmConfigBytes}) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index 6fbdb9e610..1820da5df0 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -8,7 +8,7 @@ import ( fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - types "github.com/tendermint/tendermint/proto/tendermint/types" + types "github.com/cometbft/cometbft/proto/tendermint/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" From b7f7c6a0063682f6d66db75cff251b2b6be00f36 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Tue, 23 Apr 2024 16:05:41 +0000 Subject: [PATCH 29/46] chore: update set rules in db prepare --- proto/ethermint/sgx/v1/query.proto | 32 +-- x/evm/keeper/state_transition.go | 39 +++- x/sgx/types/query.pb.go | 313 ++++++++++++++++------------- 3 files changed, 229 insertions(+), 155 deletions(-) diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index 195346a179..9f7ad902fb 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -166,22 +166,22 @@ message StateDBIncreaseNonceResponse { // It is taken from geth: // https://github.com/ethereum/go-ethereum/blob/v1.13.5/params/config.go#L848 message Rules { - uint64 chain_id = 1; - - bool is_homestead_is_eip150 = 2; - bool is_eip155 = 3; - bool is_eip158 = 4; - bool is_byzantium = 5; - bool is_constantinople = 6; - bool is_petersburg = 7; - bool is_istanbul = 8; - bool is_berlin = 9; - bool is_london = 10; - bool is_merge = 11; - bool is_shanghai = 12; - bool is_cancun = 13; - bool is_prague = 14; - bool is_verkle = 15; + uint64 chain_id = 1; + bool is_homestead = 2; + bool is_e_i_p150 = 3; + bool is_e_i_p155 = 4; + bool is_e_i_p158 = 5; + bool is_byzantium = 6; + bool is_constantinople = 7; + bool is_petersburg = 8; + bool is_istanbul = 9; + bool is_berlin = 10; + bool is_london = 11; + bool is_merge = 12; + bool is_shanghai = 13; + bool is_cancun = 14; + bool is_prague = 15; + bool is_verkle = 16; } // AccessTuple is the element type of an access list. diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 5af2bf45f8..8696d8f006 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -407,15 +407,46 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) - _, err = sgxGrpcClient.StateDBPrepare(ctx, &sgxtypes.StateDBPrepareRequest{ + dbPrepareReq := &sgxtypes.StateDBPrepareRequest{ HandlerId: handlerId, Sender: msg.From.Bytes(), Coinbase: cfg.CoinBase.Bytes(), Dest: msg.To.Bytes(), - Rules: &sgxtypes.Rules{ - // TODO Add rules + Rules: &sgxtypes.Rules{ + ChainId: rules.ChainID.Uint64(), + IsHomestead: rules.IsHomestead, + IsEIP150: rules.IsEIP150, + IsEIP155: rules.IsEIP155, + IsEIP158: rules.IsEIP158, + IsByzantium: rules.IsByzantium, + IsConstantinople: rules.IsConstantinople, + IsPetersburg: rules.IsPetersburg, + IsIstanbul: rules.IsIstanbul, + IsBerlin: rules.IsBerlin, + IsLondon: rules.IsLondon, + IsMerge: rules.IsMerge, + IsShanghai: rules.IsMerge, + IsCancun: rules.IsCancun, + IsPrague: rules.IsPrague, + IsVerkle: rules.IsVerkle, }, - }) + } + + for _, accList := range msg.AccessList { + storageKeys := make([][]byte, 0) + if accList.StorageKeys != nil && len(accList.StorageKeys) > 0 { + for _, storageKey := range accList.StorageKeys { + storageKeys = append(storageKeys, storageKey.Bytes()) + } + } + + dbPrepareReq.AccessList = append(dbPrepareReq.AccessList, &sgxtypes.AccessTuple{ + Address: accList.Address[:], + StorageKeys: storageKeys, + }) + } + + _, err = sgxGrpcClient.StateDBPrepare(ctx, dbPrepareReq) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index 1820da5df0..f75432e482 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -900,21 +900,22 @@ var xxx_messageInfo_StateDBIncreaseNonceResponse proto.InternalMessageInfo // It is taken from geth: // https://github.com/ethereum/go-ethereum/blob/v1.13.5/params/config.go#L848 type Rules struct { - ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - IsHomesteadIsEip150 bool `protobuf:"varint,2,opt,name=is_homestead_is_eip150,json=isHomesteadIsEip150,proto3" json:"is_homestead_is_eip150,omitempty"` - IsEip155 bool `protobuf:"varint,3,opt,name=is_eip155,json=isEip155,proto3" json:"is_eip155,omitempty"` - IsEip158 bool `protobuf:"varint,4,opt,name=is_eip158,json=isEip158,proto3" json:"is_eip158,omitempty"` - IsByzantium bool `protobuf:"varint,5,opt,name=is_byzantium,json=isByzantium,proto3" json:"is_byzantium,omitempty"` - IsConstantinople bool `protobuf:"varint,6,opt,name=is_constantinople,json=isConstantinople,proto3" json:"is_constantinople,omitempty"` - IsPetersburg bool `protobuf:"varint,7,opt,name=is_petersburg,json=isPetersburg,proto3" json:"is_petersburg,omitempty"` - IsIstanbul bool `protobuf:"varint,8,opt,name=is_istanbul,json=isIstanbul,proto3" json:"is_istanbul,omitempty"` - IsBerlin bool `protobuf:"varint,9,opt,name=is_berlin,json=isBerlin,proto3" json:"is_berlin,omitempty"` - IsLondon bool `protobuf:"varint,10,opt,name=is_london,json=isLondon,proto3" json:"is_london,omitempty"` - IsMerge bool `protobuf:"varint,11,opt,name=is_merge,json=isMerge,proto3" json:"is_merge,omitempty"` - IsShanghai bool `protobuf:"varint,12,opt,name=is_shanghai,json=isShanghai,proto3" json:"is_shanghai,omitempty"` - IsCancun bool `protobuf:"varint,13,opt,name=is_cancun,json=isCancun,proto3" json:"is_cancun,omitempty"` - IsPrague bool `protobuf:"varint,14,opt,name=is_prague,json=isPrague,proto3" json:"is_prague,omitempty"` - IsVerkle bool `protobuf:"varint,15,opt,name=is_verkle,json=isVerkle,proto3" json:"is_verkle,omitempty"` + ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + IsHomestead bool `protobuf:"varint,2,opt,name=is_homestead,json=isHomestead,proto3" json:"is_homestead,omitempty"` + IsEIP150 bool `protobuf:"varint,3,opt,name=is_e_i_p150,json=isEIP150,proto3" json:"is_e_i_p150,omitempty"` + IsEIP155 bool `protobuf:"varint,4,opt,name=is_e_i_p155,json=isEIP155,proto3" json:"is_e_i_p155,omitempty"` + IsEIP158 bool `protobuf:"varint,5,opt,name=is_e_i_p158,json=isEIP158,proto3" json:"is_e_i_p158,omitempty"` + IsByzantium bool `protobuf:"varint,6,opt,name=is_byzantium,json=isByzantium,proto3" json:"is_byzantium,omitempty"` + IsConstantinople bool `protobuf:"varint,7,opt,name=is_constantinople,json=isConstantinople,proto3" json:"is_constantinople,omitempty"` + IsPetersburg bool `protobuf:"varint,8,opt,name=is_petersburg,json=isPetersburg,proto3" json:"is_petersburg,omitempty"` + IsIstanbul bool `protobuf:"varint,9,opt,name=is_istanbul,json=isIstanbul,proto3" json:"is_istanbul,omitempty"` + IsBerlin bool `protobuf:"varint,10,opt,name=is_berlin,json=isBerlin,proto3" json:"is_berlin,omitempty"` + IsLondon bool `protobuf:"varint,11,opt,name=is_london,json=isLondon,proto3" json:"is_london,omitempty"` + IsMerge bool `protobuf:"varint,12,opt,name=is_merge,json=isMerge,proto3" json:"is_merge,omitempty"` + IsShanghai bool `protobuf:"varint,13,opt,name=is_shanghai,json=isShanghai,proto3" json:"is_shanghai,omitempty"` + IsCancun bool `protobuf:"varint,14,opt,name=is_cancun,json=isCancun,proto3" json:"is_cancun,omitempty"` + IsPrague bool `protobuf:"varint,15,opt,name=is_prague,json=isPrague,proto3" json:"is_prague,omitempty"` + IsVerkle bool `protobuf:"varint,16,opt,name=is_verkle,json=isVerkle,proto3" json:"is_verkle,omitempty"` } func (m *Rules) Reset() { *m = Rules{} } @@ -957,23 +958,30 @@ func (m *Rules) GetChainId() uint64 { return 0 } -func (m *Rules) GetIsHomesteadIsEip150() bool { +func (m *Rules) GetIsHomestead() bool { if m != nil { - return m.IsHomesteadIsEip150 + return m.IsHomestead } return false } -func (m *Rules) GetIsEip155() bool { +func (m *Rules) GetIsEIP150() bool { if m != nil { - return m.IsEip155 + return m.IsEIP150 } return false } -func (m *Rules) GetIsEip158() bool { +func (m *Rules) GetIsEIP155() bool { if m != nil { - return m.IsEip158 + return m.IsEIP155 + } + return false +} + +func (m *Rules) GetIsEIP158() bool { + if m != nil { + return m.IsEIP158 } return false } @@ -1445,84 +1453,84 @@ func init() { func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } var fileDescriptor_1d9fb6e76534f03e = []byte{ - // 1224 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x6f, 0x13, 0xc7, - 0x17, 0xb7, 0x71, 0xe2, 0x38, 0xcf, 0x4e, 0x30, 0xf3, 0xe5, 0x1b, 0x16, 0x03, 0x26, 0x5d, 0xa4, - 0x36, 0x85, 0xe2, 0x40, 0x10, 0x15, 0xa7, 0xaa, 0x24, 0x54, 0x21, 0x2d, 0xb4, 0x74, 0x83, 0x38, - 0xf4, 0xb2, 0x1a, 0xef, 0x3e, 0x76, 0x47, 0xd9, 0x1f, 0x66, 0x66, 0xd6, 0x4d, 0x7a, 0xec, 0x1f, - 0x50, 0xf5, 0xd4, 0xbf, 0xa9, 0x52, 0x2f, 0x1c, 0x7b, 0xac, 0xe0, 0xdc, 0x5b, 0xff, 0x80, 0x6a, - 0x66, 0x67, 0x37, 0x76, 0xfc, 0xa3, 0x96, 0x52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62, 0x6f, 0x8c, 0xaf, 0xba, - 0x0a, 0x13, 0xee, 0x00, 0x25, 0x72, 0xd1, 0xcf, 0x78, 0x60, 0xad, 0x68, 0xc5, 0x16, 0x13, 0x2f, - 0x4a, 0x1e, 0xb9, 0x09, 0x4d, 0x26, 0x5c, 0xa6, 0xec, 0xfa, 0x59, 0x64, 0x35, 0xb4, 0x0a, 0x30, - 0x71, 0x60, 0x38, 0x06, 0x72, 0x1f, 0x79, 0xc4, 0x12, 0x6b, 0xb5, 0x80, 0xbc, 0xab, 0x69, 0x23, - 0x8c, 0xd2, 0xc4, 0x4f, 0x13, 0x0b, 0x0a, 0xe1, 0x33, 0x4d, 0xab, 0xca, 0x32, 0xe1, 0xc6, 0xc8, - 0x03, 0xb4, 0x9a, 0x5a, 0xb6, 0xc2, 0xc4, 0x73, 0x45, 0x9a, 0xa8, 0x22, 0xa4, 0x49, 0x10, 0x52, - 0x66, 0xb5, 0x8a, 0xa8, 0x87, 0x86, 0x63, 0x1c, 0x7b, 0x34, 0xf1, 0xb2, 0xc4, 0x5a, 0x2b, 0x1c, - 0xef, 0x69, 0xda, 0x08, 0x07, 0x9c, 0x06, 0x19, 0x5a, 0xeb, 0x85, 0xf0, 0x85, 0xa6, 0x8d, 0x70, - 0x88, 0xfc, 0x28, 0x42, 0xeb, 0x62, 0x21, 0x7c, 0xa5, 0x69, 0xfb, 0x4b, 0x68, 0x3e, 0xf6, 0x3c, - 0x14, 0xe2, 0x65, 0xa6, 0x2a, 0x64, 0xc1, 0x8a, 0xea, 0x6d, 0x28, 0x84, 0xe9, 0x44, 0x05, 0xa9, - 0xfe, 0x85, 0x90, 0x29, 0xa7, 0x01, 0xba, 0x47, 0x78, 0xa2, 0x9a, 0x51, 0x6d, 0xab, 0xe5, 0x34, - 0x0d, 0xef, 0x2b, 0x3c, 0x11, 0xf6, 0x9f, 0x55, 0xf8, 0xbf, 0xd9, 0x63, 0x66, 0x32, 0x2d, 0xbe, - 0x67, 0x85, 0x1e, 0x8f, 0xc5, 0x9e, 0xcd, 0x29, 0xd2, 0x81, 0x86, 0x97, 0xb2, 0xa4, 0x4f, 0x45, - 0x31, 0x69, 0x4a, 0x5a, 0x75, 0x64, 0x1f, 0x45, 0xd1, 0x7c, 0xf5, 0x9a, 0xdc, 0x85, 0x65, 0xae, - 0xb6, 0xb0, 0xde, 0x28, 0xcd, 0x9d, 0x2b, 0xbd, 0xb3, 0x33, 0xbe, 0xa7, 0x77, 0xb8, 0x93, 0x6b, - 0x91, 0xcf, 0xa0, 0x49, 0x75, 0xee, 0x6e, 0xc4, 0x84, 0xb4, 0xea, 0x9b, 0xb5, 0xad, 0xe6, 0xce, - 0x8d, 0x49, 0xa3, 0x91, 0x02, 0x39, 0x90, 0x5b, 0x3c, 0x63, 0x42, 0xda, 0x56, 0xd9, 0x2a, 0xca, - 0x74, 0xcd, 0x61, 0x7a, 0x54, 0x9e, 0xee, 0x7d, 0x94, 0x0e, 0xbe, 0xce, 0x12, 0x7f, 0xc1, 0x06, - 0xbd, 0x53, 0xb6, 0xc1, 0x11, 0x4b, 0x33, 0x22, 0x36, 0xa0, 0xce, 0x35, 0xc7, 0x98, 0x19, 0xca, - 0xfe, 0xb4, 0x2c, 0xfb, 0x3e, 0xca, 0x67, 0x69, 0x20, 0x16, 0x8c, 0xf5, 0x49, 0x89, 0xbf, 0xb4, - 0x33, 0x91, 0x08, 0x2c, 0x45, 0x69, 0x50, 0xec, 0x01, 0xbd, 0xde, 0xf9, 0xad, 0x01, 0xad, 0x6f, - 0xd5, 0x05, 0xea, 0x10, 0xf9, 0x90, 0x79, 0x48, 0x5e, 0xc1, 0x6a, 0x79, 0x01, 0x21, 0xf6, 0x64, - 0xd9, 0xce, 0xde, 0x96, 0x3a, 0xb7, 0xe6, 0xea, 0x98, 0xd2, 0x55, 0xc8, 0x73, 0xa8, 0xe7, 0xf7, - 0x03, 0x72, 0x73, 0xd2, 0x60, 0xec, 0xf6, 0xd2, 0xd9, 0x9c, 0xad, 0x50, 0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, 0xcf, 0x4b, 0xe3, 0x6d, 0x1c, 0xc6, 0xa9, 0xd8, 0x3e, 0x7d, 0xc7, 0x1d, 0xeb, - 0x97, 0x9c, 0x7e, 0x3f, 0xf5, 0xeb, 0xfa, 0x5d, 0xf6, 0xe0, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xb8, 0x1b, 0x0d, 0xe6, 0xe7, 0x0d, 0x00, 0x00, + // 1223 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0xb7, 0x1b, 0xc7, 0x71, 0x9e, 0x9d, 0xd4, 0x1d, 0xf5, 0x9b, 0x6e, 0xdd, 0xd6, 0xcd, 0x77, + 0x2b, 0x41, 0x68, 0xa9, 0xd3, 0x04, 0x05, 0xf5, 0x84, 0x68, 0x52, 0x94, 0x06, 0x5a, 0x08, 0x9b, + 0xaa, 0x07, 0x2e, 0xab, 0xf1, 0xee, 0xeb, 0xee, 0x28, 0xfb, 0xc3, 0x9d, 0x99, 0x35, 0x09, 0x47, + 0x24, 0xae, 0x88, 0x13, 0x7f, 0x13, 0x12, 0x97, 0x1e, 0x39, 0xa2, 0xf6, 0xcc, 0xff, 0x80, 0x66, + 0x76, 0x76, 0x63, 0xc7, 0x76, 0xb0, 0x14, 0xc4, 0xc5, 0x9a, 0xf7, 0xf3, 0xf3, 0x79, 0xcf, 0xb3, + 0xef, 0xed, 0xc2, 0x6d, 0x94, 0x21, 0xf2, 0x98, 0x25, 0x72, 0x53, 0x04, 0x27, 0x9b, 0xc3, 0xad, + 0xcd, 0x37, 0x19, 0xf2, 0xd3, 0xde, 0x80, 0xa7, 0x32, 0x25, 0xed, 0xd2, 0xda, 0x13, 0xc1, 0x49, + 0x6f, 0xb8, 0xd5, 0xb9, 0x2d, 0x31, 0xf1, 0x4d, 0x80, 0x3c, 0x1d, 0xa0, 0xc8,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, 0x3f, 0x4d, 0xac, 0x66, 0x61, 0x7c, 0xae, 0x65, 0xd5, 0x6a, 0x26, 0xdc, 0x18, 0x79, 0x80, + 0x56, 0x4b, 0xdb, 0x96, 0x98, 0x78, 0xa1, 0x44, 0x83, 0x2a, 0x42, 0x9a, 0x04, 0x21, 0x65, 0xd6, + 0x4a, 0x81, 0x7a, 0x64, 0x34, 0x26, 0xb1, 0x47, 0x13, 0x2f, 0x4b, 0xac, 0xd5, 0x22, 0xf1, 0x9e, + 0x96, 0x8d, 0x71, 0xc0, 0x69, 0x90, 0xa1, 0x75, 0xb5, 0x30, 0x1e, 0x6a, 0xd9, 0x18, 0x87, 0xc8, + 0x8f, 0x23, 0xb4, 0xda, 0x85, 0xf1, 0x95, 0x96, 0xed, 0x2f, 0xa1, 0xf9, 0xc4, 0xf3, 0x50, 0x88, + 0x97, 0x99, 0xea, 0x90, 0x05, 0x4b, 0x6a, 0xd8, 0xa1, 0x10, 0x66, 0x34, 0x15, 0xa2, 0xfa, 0x2f, + 0x84, 0x4c, 0x39, 0x0d, 0xd0, 0x3d, 0xc6, 0x53, 0x35, 0x9d, 0x16, 0x36, 0x5a, 0x4e, 0xd3, 0xe8, + 0xbe, 0xc2, 0x53, 0x61, 0xff, 0x55, 0x85, 0xff, 0x99, 0x4b, 0x67, 0x56, 0xd5, 0xfc, 0x97, 0x58, + 0xe8, 0x7d, 0x59, 0x5c, 0xe2, 0x5c, 0x22, 0x1d, 0x68, 0x78, 0x29, 0x4b, 0xfa, 0x54, 0x14, 0xab, + 0xa7, 0x94, 0xd5, 0x88, 0xf6, 0x51, 0x14, 0xd3, 0x58, 0x9f, 0xc9, 0x43, 0x58, 0xe4, 0xea, 0x4e, + 0xeb, 0x8b, 0xd4, 0xdc, 0xbe, 0xd1, 0x3b, 0xbf, 0xf4, 0x7b, 0xfa, 0xca, 0x3b, 0xb9, 0x17, 0xf9, + 0x0c, 0x9a, 0x54, 0xd7, 0xee, 0x46, 0x4c, 0x48, 0xab,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, 0x78, 0x67, 0x6b, 0xf0, + 0x02, 0xbc, 0x89, 0xb5, 0x7c, 0x01, 0xde, 0x94, 0xbd, 0x5a, 0x21, 0x21, 0x5c, 0x3d, 0xb7, 0xf2, + 0xc8, 0xc6, 0xec, 0x0c, 0xe3, 0xcb, 0xb7, 0xf3, 0xd1, 0x1c, 0x9e, 0x25, 0xd2, 0xf7, 0x70, 0x7d, + 0xda, 0xae, 0x23, 0x0f, 0x67, 0x26, 0x99, 0xb6, 0x69, 0x3b, 0xbd, 0x79, 0xdd, 0x4b, 0x60, 0x84, + 0xd5, 0xf1, 0x01, 0x40, 0x3e, 0x9c, 0x99, 0x63, 0x7c, 0x22, 0x76, 0x36, 0xfe, 0xd9, 0xb1, 0x84, + 0x39, 0x86, 0xf6, 0xf9, 0x99, 0x40, 0x66, 0x37, 0xe8, 0xfc, 0xc4, 0xe9, 0xdc, 0x9f, 0xc7, 0x75, + 0x4a, 0x4d, 0x66, 0x28, 0x5c, 0x50, 0xd3, 0xf8, 0xb8, 0xb9, 0xa0, 0xa6, 0x73, 0xf3, 0xc5, 0xae, + 0xec, 0x7e, 0xfe, 0xdb, 0xbb, 0x6e, 0xf5, 0xed, 0xbb, 0x6e, 0xf5, 0xcf, 0x77, 0xdd, 0xea, 0x2f, + 0xef, 0xbb, 0x95, 0xb7, 0xef, 0xbb, 0x95, 0x3f, 0xde, 0x77, 0x2b, 0xdf, 0x7d, 0x10, 0x30, 0x19, + 0x66, 0xfd, 0x9e, 0x97, 0xc6, 0x9b, 0x38, 0x8c, 0x53, 0xb1, 0x79, 0xf6, 0x61, 0x77, 0xa2, 0x3f, + 0xed, 0xf4, 0x07, 0x55, 0xbf, 0xae, 0x3f, 0xd4, 0x3e, 0xf9, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x5f, + 0xd4, 0x0c, 0x46, 0xf8, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2585,7 +2593,9 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x78 + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 } if m.IsPrague { i-- @@ -2595,7 +2605,7 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x70 + dAtA[i] = 0x78 } if m.IsCancun { i-- @@ -2605,7 +2615,7 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x68 + dAtA[i] = 0x70 } if m.IsShanghai { i-- @@ -2615,7 +2625,7 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x60 + dAtA[i] = 0x68 } if m.IsMerge { i-- @@ -2625,7 +2635,7 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x58 + dAtA[i] = 0x60 } if m.IsLondon { i-- @@ -2635,7 +2645,7 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x50 + dAtA[i] = 0x58 } if m.IsBerlin { i-- @@ -2645,7 +2655,7 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x48 + dAtA[i] = 0x50 } if m.IsIstanbul { i-- @@ -2655,7 +2665,7 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x40 + dAtA[i] = 0x48 } if m.IsPetersburg { i-- @@ -2665,7 +2675,7 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x38 + dAtA[i] = 0x40 } if m.IsConstantinople { i-- @@ -2675,7 +2685,7 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x30 + dAtA[i] = 0x38 } if m.IsByzantium { i-- @@ -2685,11 +2695,21 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- + dAtA[i] = 0x30 + } + if m.IsEIP158 { + i-- + if m.IsEIP158 { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- dAtA[i] = 0x28 } - if m.IsEip158 { + if m.IsEIP155 { i-- - if m.IsEip158 { + if m.IsEIP155 { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -2697,9 +2717,9 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x20 } - if m.IsEip155 { + if m.IsEIP150 { i-- - if m.IsEip155 { + if m.IsEIP150 { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -2707,9 +2727,9 @@ func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.IsHomesteadIsEip150 { + if m.IsHomestead { i-- - if m.IsHomesteadIsEip150 { + if m.IsHomestead { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -3255,13 +3275,16 @@ func (m *Rules) Size() (n int) { if m.ChainId != 0 { n += 1 + sovQuery(uint64(m.ChainId)) } - if m.IsHomesteadIsEip150 { + if m.IsHomestead { n += 2 } - if m.IsEip155 { + if m.IsEIP150 { n += 2 } - if m.IsEip158 { + if m.IsEIP155 { + n += 2 + } + if m.IsEIP158 { n += 2 } if m.IsByzantium { @@ -3295,7 +3318,7 @@ func (m *Rules) Size() (n int) { n += 2 } if m.IsVerkle { - n += 2 + n += 3 } return n } @@ -5136,7 +5159,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsHomesteadIsEip150", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsHomestead", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -5153,10 +5176,10 @@ func (m *Rules) Unmarshal(dAtA []byte) error { break } } - m.IsHomesteadIsEip150 = bool(v != 0) + m.IsHomestead = bool(v != 0) case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEip155", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsEIP150", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -5173,10 +5196,10 @@ func (m *Rules) Unmarshal(dAtA []byte) error { break } } - m.IsEip155 = bool(v != 0) + m.IsEIP150 = bool(v != 0) case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEip158", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsEIP155", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -5193,8 +5216,28 @@ func (m *Rules) Unmarshal(dAtA []byte) error { break } } - m.IsEip158 = bool(v != 0) + m.IsEIP155 = bool(v != 0) case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEIP158", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsEIP158 = bool(v != 0) + case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsByzantium", wireType) } @@ -5214,7 +5257,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsByzantium = bool(v != 0) - case 6: + case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsConstantinople", wireType) } @@ -5234,7 +5277,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsConstantinople = bool(v != 0) - case 7: + case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsPetersburg", wireType) } @@ -5254,7 +5297,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsPetersburg = bool(v != 0) - case 8: + case 9: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsIstanbul", wireType) } @@ -5274,7 +5317,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsIstanbul = bool(v != 0) - case 9: + case 10: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsBerlin", wireType) } @@ -5294,7 +5337,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsBerlin = bool(v != 0) - case 10: + case 11: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsLondon", wireType) } @@ -5314,7 +5357,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsLondon = bool(v != 0) - case 11: + case 12: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsMerge", wireType) } @@ -5334,7 +5377,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsMerge = bool(v != 0) - case 12: + case 13: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsShanghai", wireType) } @@ -5354,7 +5397,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsShanghai = bool(v != 0) - case 13: + case 14: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsCancun", wireType) } @@ -5374,7 +5417,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsCancun = bool(v != 0) - case 14: + case 15: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsPrague", wireType) } @@ -5394,7 +5437,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } } m.IsPrague = bool(v != 0) - case 15: + case 16: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsVerkle", wireType) } From 9e1c67f9f31d6f40abd4d4c8b5a3998d64fe0fb2 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Tue, 23 Apr 2024 16:13:25 +0000 Subject: [PATCH 30/46] chore: accelist init --- x/evm/keeper/state_transition.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 8696d8f006..cb5dc05c9c 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -430,6 +430,7 @@ func (k *Keeper) ApplyMessageWithConfig( IsPrague: rules.IsPrague, IsVerkle: rules.IsVerkle, }, + AccessList: make([]*sgxtypes.AccessTuple, 0), } for _, accList := range msg.AccessList { From 75a47dbc896f7f05dff8ea6d9d5ab8fc4fa63ed5 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Tue, 23 Apr 2024 16:14:01 +0000 Subject: [PATCH 31/46] chore: use bytes function for common address --- x/evm/keeper/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index cb5dc05c9c..d2fbe349f1 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -442,7 +442,7 @@ func (k *Keeper) ApplyMessageWithConfig( } dbPrepareReq.AccessList = append(dbPrepareReq.AccessList, &sgxtypes.AccessTuple{ - Address: accList.Address[:], + Address: accList.Address.Bytes(), StorageKeys: storageKeys, }) } From 820034fdc6ed867a8a5d1c45b17908237c625f6e Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Tue, 23 Apr 2024 16:37:39 +0000 Subject: [PATCH 32/46] chore: handle eth logs --- x/evm/keeper/state_transition.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index d2fbe349f1..92f82b8d40 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -589,8 +589,7 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // Logs: types.NewLogsFromEth(stateDB.Logs()), - var replyLog StateDBGetLogsReply - _, err = sgxGrpcClient.StateDBGetLogs(ctx, &sgxtypes.StateDBGetLogsRequest{HandlerId: handlerId}) + respLogs, err := sgxGrpcClient.StateDBGetLogs(ctx, &sgxtypes.StateDBGetLogsRequest{HandlerId: handlerId}) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -598,12 +597,16 @@ func (k *Keeper) ApplyMessageWithConfig( } return nil, err } - + var ethlogs []*ethtypes.Log + err = json.Unmarshal(respLogs.Logs, ðlogs) + if err != nil { + return nil, err + } return &types.MsgEthereumTxResponse{ GasUsed: gasUsed, VmError: vmError, Ret: ret, - Logs: types.NewLogsFromEth(replyLog.Logs), + Logs: types.NewLogsFromEth(ethlogs), Hash: cfg.TxConfig.TxHash.Hex(), BlockHash: ctx.HeaderHash(), }, nil From c22f10248bb9271b13aa905aa58efed916cb872f Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Tue, 23 Apr 2024 19:20:12 +0200 Subject: [PATCH 33/46] Fix vmErr --- x/evm/keeper/state_transition.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 92f82b8d40..41cc9135b7 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -309,6 +309,9 @@ func (k *Keeper) ApplyMessageWithConfig( return net.Dial("tcp", url) }), ) + if err != nil { + return nil, errorsmod.Wrap(err, "failed to connect to localhost:9092") + } sgxGrpcClient := sgxtypes.NewQueryServiceClient(rpcConn) @@ -484,8 +487,6 @@ func (k *Keeper) ApplyMessageWithConfig( if k.IsSgxDownError(vmErr) { panic("sgx rpc server is down") } - - return nil, vmErr } // Ethermint original code: @@ -496,8 +497,6 @@ func (k *Keeper) ApplyMessageWithConfig( if k.IsSgxDownError(vmErr) { panic("sgx rpc server is down") } - - return nil, vmErr } } else { // Ethermint original code: From 201e83b74a153eb1ac08777850dbd47841bcd715 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Wed, 24 Apr 2024 15:28:25 +0000 Subject: [PATCH 34/46] chore: remove json marshal --- proto/ethermint/sgx/v1/query.proto | 99 +- x/evm/keeper/state_transition.go | 129 +- x/sgx/types/query.pb.go | 7287 ++++++++++++++++++---------- 3 files changed, 4940 insertions(+), 2575 deletions(-) diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index 9f7ad902fb..7e4ee54b07 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package ethermint.sgx.v1; import "tendermint/types/types.proto"; +import "gogoproto/gogo.proto"; option go_package = "github.com/evmos/ethermint/x/sgx/types"; @@ -57,11 +58,11 @@ message PrepareTxRequest { bytes tx_hash = 1; // Header is the Tendermint header of the block in which the transaction // will be executed. - tendermint.types.Header header = 2; // Header cmtproto.Header + tendermint.types.Header header = 2[(gogoproto.nullable) = false]; // Header cmtproto.Header // Msg is the EVM transaction message to run on the EVM. - bytes msg = 3; // Msg core.Message + Message msg = 3[(gogoproto.nullable) = false]; // Msg core.Message // EvmConfig is the EVM configuration to set. - bytes evm_config = 4; // EvmConfig PrepareTxEVMConfig + PrepareTxEVMConfig evm_config = 4[(gogoproto.nullable) = false]; // EvmConfig PrepareTxEVMConfig } message PrepareTxResponse { @@ -227,5 +228,95 @@ message StateDBGetLogsRequest { } message StateDBGetLogsResponse { - bytes logs = 1; // []*ethtypes.Log + repeated EthLog log = 1; // []*ethtypes.Log } + +message Message { + // Original type: *common.Address + bytes to = 1; + // Original type: common.Address + bytes from = 2; + uint64 nonce = 3; + // *big.Int + uint64 value = 4; + uint64 gas_limit = 5; + // Original type: *big.Int + uint64 gas_price = 6; + // Original type: *big.Int + uint64 gas_fee_cap = 7; + // Original type: *big.Int + uint64 gas_tip_cap = 8; + bytes data = 9; + // Original types: AccessList + repeated AccessTuple access_list = 10 [(gogoproto.nullable) = false]; + // Original type: *big.Int + uint64 blob_gas_fee_cap = 11; + // Original type: []common.Hash + repeated bytes blob_hashes = 12; + // When SkipAccountChecks is true, the message nonce is not checked against the + // account nonce in state. It also disables checking that the sender is an EOA. + // This field will be set to true for operations like RPC eth_call. + bool skip_account_checks = 13; +} + +message PrepareTxEVMConfig { + // ChainConfig is the EVM chain configuration in JSON format. Since the + // underlying params.ChainConfig struct contains pointer fields, they are + // not serializable over RPC with gob. Instead, the JSON representation is + // used. + bytes chain_config_json = 1; + // Fields from EVMConfig + // Original type: common.Address + bytes coin_base = 2; + // Original type: *big.Int + uint64 base_fee = 3; + // Original type: statedb.TxConfig + TxConfig tx_config = 4[(gogoproto.nullable) = false]; + bool debug_trace = 5; + // Fields from EVMConfig.FeeMarketParams struct + bool no_base_fee = 6; + // Fields from EVMConfig.Params struct + string evm_denom = 7; + repeated int64 extra_eips = 8; + // *rpctypes.StateOverride : original type + bytes overrides = 9; +} + +// TxConfig encapulates the readonly information of current tx for `StateDB`. +message TxConfig { + // Original type: common.Hash + bytes block_hash = 1; // hash of current block + // Original type: common.Hash + bytes tx_hash = 2; // hash of current tx + uint64 tx_index = 3; // the index of current transaction + uint64 log_index = 4; // the index of next log within current block +} + +message EthLog { + // Consensus fields: + // address of the contract that generated the event + // Original type: common.Address + bytes address = 1; + // list of topics provided by the contract. + // Original type: []common.Hash + repeated bytes topics = 2; + // supplied by the contract, usually ABI-encoded + bytes data = 3; + // Derived fields. These fields are filled in by the node + // but not secured by consensus. + // block in which the transaction was included + uint64 block_number = 4; + // hash of the transaction + bytes tx_hash = 5; + // index of the transaction in the block + uint64 tx_index = 6; + // hash of the block in which the transaction was included + // Original type: common.Hash + bytes block_hash = 7; + // index of the log in the block + uint64 index = 8; + + // The Removed field is true if this log was reverted due to a chain reorganisation. + // You must pay attention to this field if you receive logs through a filter query. + bool removed = 9; +} \ No newline at end of file diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 41cc9135b7..eda16dae57 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -596,11 +596,42 @@ func (k *Keeper) ApplyMessageWithConfig( } return nil, err } - var ethlogs []*ethtypes.Log - err = json.Unmarshal(respLogs.Logs, ðlogs) - if err != nil { - return nil, err + + ethlogs := make([]*ethtypes.Log, 0) + for _, log := range respLogs.Log { + ethLog := ðtypes.Log{ + Address: common.BytesToAddress(log.Address), + // list of topics provided by the contract. + // supplied by the contract, usually ABI-encoded + Data: log.Data, + + // Derived fields. These fields are filled in by the node + // but not secured by consensus. + // block in which the transaction was included + BlockNumber: log.BlockNumber, + // hash of the transaction + TxHash: common.BytesToHash(log.TxHash), + // index of the transaction in the block + TxIndex: uint(log.TxIndex), + // hash of the block in which the transaction was included + BlockHash: common.BytesToHash(log.BlockHash), + // index of the log in the block + Index: uint(log.Index), + + // The Removed field is true if this log was reverted due to a chain reorganisation. + // You must pay attention to this field if you receive logs through a filter query. + Removed: log.Removed, + } + + topics := make([]common.Hash, 0) + for _, topic := range log.Topics { + topics = append(topics, common.BytesToHash(topic)) + } + + ethLog.Topics = topics + ethlogs = append(ethlogs, ethLog) } + return &types.MsgEthereumTxResponse{ GasUsed: gasUsed, VmError: vmError, @@ -632,32 +663,80 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf } ctx.HeaderHash() - args := PrepareTxArgs{ - Header: ctx.BlockHeader(), - Msg: msg, - EvmConfig: PrepareTxEVMConfig{ - ChainConfigJson: ChainConfigJson, - CoinBase: cfg.CoinBase, - BaseFee: cfg.BaseFee, - TxConfig: cfg.TxConfig, - DebugTrace: cfg.DebugTrace, - NoBaseFee: cfg.FeeMarketParams.NoBaseFee, - EvmDenom: cfg.Params.EvmDenom, - Overrides: overrides, - }, - } - msgBytes, err := json.Marshal(args.Msg) - if err != nil { - return 0, err + // Prepare EvmConfig + evmConfig := sgxtypes.PrepareTxEVMConfig{ + ChainConfigJson: ChainConfigJson, + CoinBase: cfg.CoinBase.Bytes(), + BaseFee: cfg.BaseFee.Uint64(), + DebugTrace: cfg.DebugTrace, + NoBaseFee: cfg.FeeMarketParams.NoBaseFee, + EvmDenom: cfg.Params.EvmDenom, + Overrides: overrides, + } + txConfig := sgxtypes.TxConfig{ + // Original type: common.Hash + BlockHash: cfg.TxConfig.BlockHash.Bytes(), + // Original type: common.Hash + TxHash: cfg.TxConfig.TxHash.Bytes(), + TxIndex: uint64(cfg.TxConfig.TxIndex), + LogIndex: uint64(cfg.TxConfig.LogIndex), + } + + evmConfig.TxConfig = txConfig + + // core.Message + sgxMsg := sgxtypes.Message{ + // Original type: *common.Address + To: msg.To.Bytes(), + // Original type: common.Address + From: msg.From.Bytes(), + Nonce: msg.Nonce, + // *big.Int + Value: msg.Value.Uint64(), + GasLimit: msg.GasLimit, + // Original type: *big.Int + GasPrice: msg.GasPrice.Uint64(), + // Original type: *big.Int + GasFeeCap: msg.GasFeeCap.Uint64(), + // Original type: *big.Int + GasTipCap: msg.GasTipCap.Uint64(), + Data: msg.Data, + // Original types: AccessList + // Original type: *big.Int + BlobGasFeeCap: msg.BlobGasFeeCap.Uint64(), + // Original type: []common.Hash + // When SkipAccountChecks is true, the message nonce is not checked against the + // account nonce in state. It also disables checking that the sender is an EOA. + // This field will be set to true for operations like RPC eth_call. + SkipAccountChecks: msg.SkipAccountChecks, + } + + // AccessList{} + accessList := make([]sgxtypes.AccessTuple, 0) + for _, accList := range msg.AccessList { + storageKeys := make([][]byte, 0) + if accList.StorageKeys != nil && len(accList.StorageKeys) > 0 { + for _, storageKey := range accList.StorageKeys { + storageKeys = append(storageKeys, storageKey.Bytes()) + } + } + + accessList = append(accessList, sgxtypes.AccessTuple{ + Address: accList.Address.Bytes(), + StorageKeys: storageKeys, + }) } - evmConfigBytes, err := json.Marshal(args.EvmConfig) - if err != nil { - return 0, err + blobHashes := make([][]byte, 0) + for _, hashes := range msg.BlobHashes { + blobHashes = append(blobHashes, hashes.Bytes()) } - resp, err := sgxGrpcClient.PrepareTx(ctx, &sgxtypes.PrepareTxRequest{TxHash: args.TxHash, Header: &args.Header, Msg: msgBytes, EvmConfig: evmConfigBytes}) + sgxMsg.AccessList = accessList + sgxMsg.BlobHashes = blobHashes + + resp, err := sgxGrpcClient.PrepareTx(ctx, &sgxtypes.PrepareTxRequest{TxHash: cfg.TxConfig.TxHash.Bytes(), Header: ctx.BlockHeader(), Msg: sgxMsg, EvmConfig: evmConfig}) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index f75432e482..f905ddf5b9 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -6,6 +6,7 @@ package types import ( context "context" fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" types "github.com/cometbft/cometbft/proto/tendermint/types" @@ -32,11 +33,11 @@ type PrepareTxRequest struct { TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // Header is the Tendermint header of the block in which the transaction // will be executed. - Header *types.Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` + Header types.Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header"` // Msg is the EVM transaction message to run on the EVM. - Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + Msg Message `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg"` // EvmConfig is the EVM configuration to set. - EvmConfig []byte `protobuf:"bytes,4,opt,name=evm_config,json=evmConfig,proto3" json:"evm_config,omitempty"` + EvmConfig PrepareTxEVMConfig `protobuf:"bytes,4,opt,name=evm_config,json=evmConfig,proto3" json:"evm_config"` } func (m *PrepareTxRequest) Reset() { *m = PrepareTxRequest{} } @@ -79,25 +80,25 @@ func (m *PrepareTxRequest) GetTxHash() []byte { return nil } -func (m *PrepareTxRequest) GetHeader() *types.Header { +func (m *PrepareTxRequest) GetHeader() types.Header { if m != nil { return m.Header } - return nil + return types.Header{} } -func (m *PrepareTxRequest) GetMsg() []byte { +func (m *PrepareTxRequest) GetMsg() Message { if m != nil { return m.Msg } - return nil + return Message{} } -func (m *PrepareTxRequest) GetEvmConfig() []byte { +func (m *PrepareTxRequest) GetEvmConfig() PrepareTxEVMConfig { if m != nil { return m.EvmConfig } - return nil + return PrepareTxEVMConfig{} } type PrepareTxResponse struct { @@ -1380,7 +1381,7 @@ func (m *StateDBGetLogsRequest) GetHandlerId() uint64 { } type StateDBGetLogsResponse struct { - Logs []byte `protobuf:"bytes,1,opt,name=logs,proto3" json:"logs,omitempty"` + Log []*EthLog `protobuf:"bytes,1,rep,name=log,proto3" json:"log,omitempty"` } func (m *StateDBGetLogsResponse) Reset() { *m = StateDBGetLogsResponse{} } @@ -1416,1098 +1417,1149 @@ func (m *StateDBGetLogsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_StateDBGetLogsResponse proto.InternalMessageInfo -func (m *StateDBGetLogsResponse) GetLogs() []byte { +func (m *StateDBGetLogsResponse) GetLog() []*EthLog { if m != nil { - return m.Logs + return m.Log } return nil } -func init() { - proto.RegisterType((*PrepareTxRequest)(nil), "ethermint.sgx.v1.PrepareTxRequest") - proto.RegisterType((*PrepareTxResponse)(nil), "ethermint.sgx.v1.PrepareTxResponse") - proto.RegisterType((*CreateRequest)(nil), "ethermint.sgx.v1.CreateRequest") - proto.RegisterType((*CreateResponse)(nil), "ethermint.sgx.v1.CreateResponse") - proto.RegisterType((*CallRequest)(nil), "ethermint.sgx.v1.CallRequest") - proto.RegisterType((*CallResponse)(nil), "ethermint.sgx.v1.CallResponse") - proto.RegisterType((*CommitRequest)(nil), "ethermint.sgx.v1.CommitRequest") - proto.RegisterType((*CommitResponse)(nil), "ethermint.sgx.v1.CommitResponse") - proto.RegisterType((*StateDBAddBalanceRequest)(nil), "ethermint.sgx.v1.StateDBAddBalanceRequest") - proto.RegisterType((*StateDBAddBalanceResponse)(nil), "ethermint.sgx.v1.StateDBAddBalanceResponse") - proto.RegisterType((*StateDBSubBalanceRequest)(nil), "ethermint.sgx.v1.StateDBSubBalanceRequest") - proto.RegisterType((*StateDBSubBalanceResponse)(nil), "ethermint.sgx.v1.StateDBSubBalanceResponse") - proto.RegisterType((*StateDBSetNonceRequest)(nil), "ethermint.sgx.v1.StateDBSetNonceRequest") - proto.RegisterType((*StateDBSetNonceResponse)(nil), "ethermint.sgx.v1.StateDBSetNonceResponse") - proto.RegisterType((*StateDBIncreaseNonceRequest)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceRequest") - proto.RegisterType((*StateDBIncreaseNonceResponse)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceResponse") - proto.RegisterType((*Rules)(nil), "ethermint.sgx.v1.Rules") - proto.RegisterType((*AccessTuple)(nil), "ethermint.sgx.v1.AccessTuple") - proto.RegisterType((*StateDBPrepareRequest)(nil), "ethermint.sgx.v1.StateDBPrepareRequest") - proto.RegisterType((*StateDBPrepareResponse)(nil), "ethermint.sgx.v1.StateDBPrepareResponse") - proto.RegisterType((*StateDBGetRefundRequest)(nil), "ethermint.sgx.v1.StateDBGetRefundRequest") - proto.RegisterType((*StateDBGetRefundResponse)(nil), "ethermint.sgx.v1.StateDBGetRefundResponse") - proto.RegisterType((*StateDBGetLogsRequest)(nil), "ethermint.sgx.v1.StateDBGetLogsRequest") - proto.RegisterType((*StateDBGetLogsResponse)(nil), "ethermint.sgx.v1.StateDBGetLogsResponse") +type Message struct { + // Original type: *common.Address + To []byte `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` + // Original type: common.Address + From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` + // *big.Int + Value uint64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` + GasLimit uint64 `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` + // Original type: *big.Int + GasPrice uint64 `protobuf:"varint,6,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` + // Original type: *big.Int + GasFeeCap uint64 `protobuf:"varint,7,opt,name=gas_fee_cap,json=gasFeeCap,proto3" json:"gas_fee_cap,omitempty"` + // Original type: *big.Int + GasTipCap uint64 `protobuf:"varint,8,opt,name=gas_tip_cap,json=gasTipCap,proto3" json:"gas_tip_cap,omitempty"` + Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` + // Original types: AccessList + AccessList []AccessTuple `protobuf:"bytes,10,rep,name=access_list,json=accessList,proto3" json:"access_list"` + // Original type: *big.Int + BlobGasFeeCap uint64 `protobuf:"varint,11,opt,name=blob_gas_fee_cap,json=blobGasFeeCap,proto3" json:"blob_gas_fee_cap,omitempty"` + // Original type: []common.Hash + BlobHashes [][]byte `protobuf:"bytes,12,rep,name=blob_hashes,json=blobHashes,proto3" json:"blob_hashes,omitempty"` + // When SkipAccountChecks is true, the message nonce is not checked against the + // account nonce in state. It also disables checking that the sender is an EOA. + // This field will be set to true for operations like RPC eth_call. + SkipAccountChecks bool `protobuf:"varint,13,opt,name=skip_account_checks,json=skipAccountChecks,proto3" json:"skip_account_checks,omitempty"` +} + +func (m *Message) Reset() { *m = Message{} } +func (m *Message) String() string { return proto.CompactTextString(m) } +func (*Message) ProtoMessage() {} +func (*Message) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{24} +} +func (m *Message) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Message.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Message) XXX_Merge(src proto.Message) { + xxx_messageInfo_Message.Merge(m, src) +} +func (m *Message) XXX_Size() int { + return m.Size() +} +func (m *Message) XXX_DiscardUnknown() { + xxx_messageInfo_Message.DiscardUnknown(m) } -func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } +var xxx_messageInfo_Message proto.InternalMessageInfo -var fileDescriptor_1d9fb6e76534f03e = []byte{ - // 1223 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xb7, 0x1b, 0xc7, 0x71, 0x9e, 0x9d, 0xd4, 0x1d, 0xf5, 0x9b, 0x6e, 0xdd, 0xd6, 0xcd, 0x77, - 0x2b, 0x41, 0x68, 0xa9, 0xd3, 0x04, 0x05, 0xf5, 0x84, 0x68, 0x52, 0x94, 0x06, 0x5a, 0x08, 0x9b, - 0xaa, 0x07, 0x2e, 0xab, 0xf1, 0xee, 0xeb, 0xee, 0x28, 0xfb, 0xc3, 0x9d, 0x99, 0x35, 0x09, 0x47, - 0x24, 0xae, 0x88, 0x13, 0x7f, 0x13, 0x12, 0x97, 0x1e, 0x39, 0xa2, 0xf6, 0xcc, 0xff, 0x80, 0x66, - 0x76, 0x76, 0x63, 0xc7, 0x76, 0xb0, 0x14, 0xc4, 0xc5, 0x9a, 0xf7, 0xf3, 0xf3, 0x79, 0xcf, 0xb3, - 0xef, 0xed, 0xc2, 0x6d, 0x94, 0x21, 0xf2, 0x98, 0x25, 0x72, 0x53, 0x04, 0x27, 0x9b, 0xc3, 0xad, - 0xcd, 0x37, 0x19, 0xf2, 0xd3, 0xde, 0x80, 0xa7, 0x32, 0x25, 0xed, 0xd2, 0xda, 0x13, 0xc1, 0x49, - 0x6f, 0xb8, 0xd5, 0xb9, 0x2d, 0x31, 0xf1, 0x4d, 0x80, 0x3c, 0x1d, 0xa0, 0xc8, 0x7f, 0x73, 0x7f, - 0xfb, 0xe7, 0x2a, 0xb4, 0x0f, 0x39, 0x0e, 0x28, 0xc7, 0x97, 0x27, 0x0e, 0xbe, 0xc9, 0x50, 0x48, - 0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2, - 0xc8, 0xc6, 0xec, 0x0c, 0xe3, 0xcb, 0xb7, 0xf3, 0xd1, 0x1c, 0x9e, 0x25, 0xd2, 0xf7, 0x70, 0x7d, - 0xda, 0xae, 0x23, 0x0f, 0x67, 0x26, 0x99, 0xb6, 0x69, 0x3b, 0xbd, 0x79, 0xdd, 0x4b, 0x60, 0x84, - 0xd5, 0xf1, 0x01, 0x40, 0x3e, 0x9c, 0x99, 0x63, 0x7c, 0x22, 0x76, 0x36, 0xfe, 0xd9, 0xb1, 0x84, - 0x39, 0x86, 0xf6, 0xf9, 0x99, 0x40, 0x66, 0x37, 0xe8, 0xfc, 0xc4, 0xe9, 0xdc, 0x9f, 0xc7, 0x75, - 0x4a, 0x4d, 0x66, 0x28, 0x5c, 0x50, 0xd3, 0xf8, 0xb8, 0xb9, 0xa0, 0xa6, 0x73, 0xf3, 0xc5, 0xae, - 0xec, 0x7e, 0xfe, 0xdb, 0xbb, 0x6e, 0xf5, 0xed, 0xbb, 0x6e, 0xf5, 0xcf, 0x77, 0xdd, 0xea, 0x2f, - 0xef, 0xbb, 0x95, 0xb7, 0xef, 0xbb, 0x95, 0x3f, 0xde, 0x77, 0x2b, 0xdf, 0x7d, 0x10, 0x30, 0x19, - 0x66, 0xfd, 0x9e, 0x97, 0xc6, 0x9b, 0x38, 0x8c, 0x53, 0xb1, 0x79, 0xf6, 0x61, 0x77, 0xa2, 0x3f, - 0xed, 0xf4, 0x07, 0x55, 0xbf, 0xae, 0x3f, 0xd4, 0x3e, 0xf9, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x5f, - 0xd4, 0x0c, 0x46, 0xf8, 0x0d, 0x00, 0x00, +func (m *Message) GetTo() []byte { + if m != nil { + return m.To + } + return nil } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +func (m *Message) GetFrom() []byte { + if m != nil { + return m.From + } + return nil +} -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { - PrepareTx(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) - // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { - Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) - // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { - Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) - // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { - Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) - // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { - StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) - // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { - StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) - // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { - StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) - // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { - StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) - // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { - StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) - // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { - StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) - // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { - StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) +func (m *Message) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 } -type queryServiceClient struct { - cc grpc1.ClientConn +func (m *Message) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 } -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} +func (m *Message) GetGasLimit() uint64 { + if m != nil { + return m.GasLimit + } + return 0 } -func (c *queryServiceClient) PrepareTx(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) { - out := new(PrepareTxResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/PrepareTx", in, out, opts...) - if err != nil { - return nil, err +func (m *Message) GetGasPrice() uint64 { + if m != nil { + return m.GasPrice } - return out, nil + return 0 } -func (c *queryServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { - out := new(CreateResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Create", in, out, opts...) - if err != nil { - return nil, err +func (m *Message) GetGasFeeCap() uint64 { + if m != nil { + return m.GasFeeCap } - return out, nil + return 0 } -func (c *queryServiceClient) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) { - out := new(CallResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Call", in, out, opts...) - if err != nil { - return nil, err +func (m *Message) GetGasTipCap() uint64 { + if m != nil { + return m.GasTipCap } - return out, nil + return 0 } -func (c *queryServiceClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) { - out := new(CommitResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Commit", in, out, opts...) - if err != nil { - return nil, err +func (m *Message) GetData() []byte { + if m != nil { + return m.Data } - return out, nil + return nil } -func (c *queryServiceClient) StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) { - out := new(StateDBAddBalanceResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBAddBalance", in, out, opts...) - if err != nil { - return nil, err +func (m *Message) GetAccessList() []AccessTuple { + if m != nil { + return m.AccessList } - return out, nil + return nil } -func (c *queryServiceClient) StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) { - out := new(StateDBSubBalanceResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSubBalance", in, out, opts...) - if err != nil { - return nil, err +func (m *Message) GetBlobGasFeeCap() uint64 { + if m != nil { + return m.BlobGasFeeCap } - return out, nil + return 0 } -func (c *queryServiceClient) StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) { - out := new(StateDBSetNonceResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSetNonce", in, out, opts...) - if err != nil { - return nil, err +func (m *Message) GetBlobHashes() [][]byte { + if m != nil { + return m.BlobHashes } - return out, nil + return nil } -func (c *queryServiceClient) StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) { - out := new(StateDBIncreaseNonceResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", in, out, opts...) - if err != nil { - return nil, err +func (m *Message) GetSkipAccountChecks() bool { + if m != nil { + return m.SkipAccountChecks } - return out, nil + return false } -func (c *queryServiceClient) StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) { - out := new(StateDBPrepareResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBPrepare", in, out, opts...) - if err != nil { - return nil, err +type PrepareTxEVMConfig struct { + // ChainConfig is the EVM chain configuration in JSON format. Since the + // underlying params.ChainConfig struct contains pointer fields, they are + // not serializable over RPC with gob. Instead, the JSON representation is + // used. + ChainConfigJson []byte `protobuf:"bytes,1,opt,name=chain_config_json,json=chainConfigJson,proto3" json:"chain_config_json,omitempty"` + // Fields from EVMConfig + // Original type: common.Address + CoinBase []byte `protobuf:"bytes,2,opt,name=coin_base,json=coinBase,proto3" json:"coin_base,omitempty"` + // Original type: *big.Int + BaseFee uint64 `protobuf:"varint,3,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` + // Original type: statedb.TxConfig + TxConfig TxConfig `protobuf:"bytes,4,opt,name=tx_config,json=txConfig,proto3" json:"tx_config"` + DebugTrace bool `protobuf:"varint,5,opt,name=debug_trace,json=debugTrace,proto3" json:"debug_trace,omitempty"` + // Fields from EVMConfig.FeeMarketParams struct + NoBaseFee bool `protobuf:"varint,6,opt,name=no_base_fee,json=noBaseFee,proto3" json:"no_base_fee,omitempty"` + // Fields from EVMConfig.Params struct + EvmDenom string `protobuf:"bytes,7,opt,name=evm_denom,json=evmDenom,proto3" json:"evm_denom,omitempty"` + ExtraEips []int64 `protobuf:"varint,8,rep,packed,name=extra_eips,json=extraEips,proto3" json:"extra_eips,omitempty"` + // *rpctypes.StateOverride : original type + Overrides []byte `protobuf:"bytes,9,opt,name=overrides,proto3" json:"overrides,omitempty"` +} + +func (m *PrepareTxEVMConfig) Reset() { *m = PrepareTxEVMConfig{} } +func (m *PrepareTxEVMConfig) String() string { return proto.CompactTextString(m) } +func (*PrepareTxEVMConfig) ProtoMessage() {} +func (*PrepareTxEVMConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{25} +} +func (m *PrepareTxEVMConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareTxEVMConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareTxEVMConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *PrepareTxEVMConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareTxEVMConfig.Merge(m, src) +} +func (m *PrepareTxEVMConfig) XXX_Size() int { + return m.Size() +} +func (m *PrepareTxEVMConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareTxEVMConfig.DiscardUnknown(m) } -func (c *queryServiceClient) StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) { - out := new(StateDBGetRefundResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetRefund", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_PrepareTxEVMConfig proto.InternalMessageInfo + +func (m *PrepareTxEVMConfig) GetChainConfigJson() []byte { + if m != nil { + return m.ChainConfigJson } - return out, nil + return nil } -func (c *queryServiceClient) StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) { - out := new(StateDBGetLogsResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetLogs", in, out, opts...) - if err != nil { - return nil, err +func (m *PrepareTxEVMConfig) GetCoinBase() []byte { + if m != nil { + return m.CoinBase } - return out, nil + return nil } -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { - PrepareTx(context.Context, *PrepareTxRequest) (*PrepareTxResponse, error) - // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { - Create(context.Context, *CreateRequest) (*CreateResponse, error) - // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { - Call(context.Context, *CallRequest) (*CallResponse, error) - // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { - Commit(context.Context, *CommitRequest) (*CommitResponse, error) - // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { - StateDBAddBalance(context.Context, *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) - // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { - StateDBSubBalance(context.Context, *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) - // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { - StateDBSetNonce(context.Context, *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) - // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { - StateDBIncreaseNonce(context.Context, *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) - // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { - StateDBPrepare(context.Context, *StateDBPrepareRequest) (*StateDBPrepareResponse, error) - // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { - StateDBGetRefund(context.Context, *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) - // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { - StateDBGetLogs(context.Context, *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) +func (m *PrepareTxEVMConfig) GetBaseFee() uint64 { + if m != nil { + return m.BaseFee + } + return 0 } -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { +func (m *PrepareTxEVMConfig) GetTxConfig() TxConfig { + if m != nil { + return m.TxConfig + } + return TxConfig{} } -func (*UnimplementedQueryServiceServer) PrepareTx(ctx context.Context, req *PrepareTxRequest) (*PrepareTxResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareTx not implemented") +func (m *PrepareTxEVMConfig) GetDebugTrace() bool { + if m != nil { + return m.DebugTrace + } + return false } -func (*UnimplementedQueryServiceServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") + +func (m *PrepareTxEVMConfig) GetNoBaseFee() bool { + if m != nil { + return m.NoBaseFee + } + return false } -func (*UnimplementedQueryServiceServer) Call(ctx context.Context, req *CallRequest) (*CallResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Call not implemented") + +func (m *PrepareTxEVMConfig) GetEvmDenom() string { + if m != nil { + return m.EvmDenom + } + return "" } -func (*UnimplementedQueryServiceServer) Commit(ctx context.Context, req *CommitRequest) (*CommitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") + +func (m *PrepareTxEVMConfig) GetExtraEips() []int64 { + if m != nil { + return m.ExtraEips + } + return nil } -func (*UnimplementedQueryServiceServer) StateDBAddBalance(ctx context.Context, req *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBAddBalance not implemented") + +func (m *PrepareTxEVMConfig) GetOverrides() []byte { + if m != nil { + return m.Overrides + } + return nil } -func (*UnimplementedQueryServiceServer) StateDBSubBalance(ctx context.Context, req *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBSubBalance not implemented") + +// TxConfig encapulates the readonly information of current tx for `StateDB`. +type TxConfig struct { + // Original type: common.Hash + BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` + // Original type: common.Hash + TxHash []byte `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + TxIndex uint64 `protobuf:"varint,3,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` + LogIndex uint64 `protobuf:"varint,4,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` } -func (*UnimplementedQueryServiceServer) StateDBSetNonce(ctx context.Context, req *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBSetNonce not implemented") + +func (m *TxConfig) Reset() { *m = TxConfig{} } +func (m *TxConfig) String() string { return proto.CompactTextString(m) } +func (*TxConfig) ProtoMessage() {} +func (*TxConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{26} } -func (*UnimplementedQueryServiceServer) StateDBIncreaseNonce(ctx context.Context, req *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBIncreaseNonce not implemented") +func (m *TxConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedQueryServiceServer) StateDBPrepare(ctx context.Context, req *StateDBPrepareRequest) (*StateDBPrepareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBPrepare not implemented") +func (m *TxConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -func (*UnimplementedQueryServiceServer) StateDBGetRefund(ctx context.Context, req *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBGetRefund not implemented") +func (m *TxConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxConfig.Merge(m, src) } -func (*UnimplementedQueryServiceServer) StateDBGetLogs(ctx context.Context, req *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBGetLogs not implemented") +func (m *TxConfig) XXX_Size() int { + return m.Size() } - -func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) +func (m *TxConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TxConfig.DiscardUnknown(m) } -func _QueryService_PrepareTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareTxRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).PrepareTx(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/PrepareTx", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).PrepareTx(ctx, req.(*PrepareTxRequest)) +var xxx_messageInfo_TxConfig proto.InternalMessageInfo + +func (m *TxConfig) GetBlockHash() []byte { + if m != nil { + return m.BlockHash } - return interceptor(ctx, in, info, handler) + return nil } -func _QueryService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).Create(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/Create", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).Create(ctx, req.(*CreateRequest)) +func (m *TxConfig) GetTxHash() []byte { + if m != nil { + return m.TxHash } - return interceptor(ctx, in, info, handler) + return nil } -func _QueryService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CallRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).Call(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/Call", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).Call(ctx, req.(*CallRequest)) +func (m *TxConfig) GetTxIndex() uint64 { + if m != nil { + return m.TxIndex } - return interceptor(ctx, in, info, handler) + return 0 } -func _QueryService_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).Commit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/Commit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).Commit(ctx, req.(*CommitRequest)) +func (m *TxConfig) GetLogIndex() uint64 { + if m != nil { + return m.LogIndex } - return interceptor(ctx, in, info, handler) + return 0 } -func _QueryService_StateDBAddBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBAddBalanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBAddBalance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBAddBalance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBAddBalance(ctx, req.(*StateDBAddBalanceRequest)) +type EthLog struct { + // Consensus fields: + // address of the contract that generated the event + // Original type: common.Address + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // list of topics provided by the contract. + // Original type: []common.Hash + Topics [][]byte `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"` + // supplied by the contract, usually ABI-encoded + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + // Derived fields. These fields are filled in by the node + // but not secured by consensus. + // block in which the transaction was included + BlockNumber uint64 `protobuf:"varint,4,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + // hash of the transaction + TxHash []byte `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + // index of the transaction in the block + TxIndex uint64 `protobuf:"varint,6,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` + // hash of the block in which the transaction was included + // Original type: common.Hash + BlockHash []byte `protobuf:"bytes,7,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` + // index of the log in the block + Index uint64 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"` + // The Removed field is true if this log was reverted due to a chain reorganisation. + // You must pay attention to this field if you receive logs through a filter query. + Removed bool `protobuf:"varint,9,opt,name=removed,proto3" json:"removed,omitempty"` +} + +func (m *EthLog) Reset() { *m = EthLog{} } +func (m *EthLog) String() string { return proto.CompactTextString(m) } +func (*EthLog) ProtoMessage() {} +func (*EthLog) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{27} +} +func (m *EthLog) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EthLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EthLog.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *EthLog) XXX_Merge(src proto.Message) { + xxx_messageInfo_EthLog.Merge(m, src) +} +func (m *EthLog) XXX_Size() int { + return m.Size() +} +func (m *EthLog) XXX_DiscardUnknown() { + xxx_messageInfo_EthLog.DiscardUnknown(m) } -func _QueryService_StateDBSubBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBSubBalanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBSubBalance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSubBalance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBSubBalance(ctx, req.(*StateDBSubBalanceRequest)) +var xxx_messageInfo_EthLog proto.InternalMessageInfo + +func (m *EthLog) GetAddress() []byte { + if m != nil { + return m.Address } - return interceptor(ctx, in, info, handler) + return nil } -func _QueryService_StateDBSetNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBSetNonceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBSetNonce(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSetNonce", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBSetNonce(ctx, req.(*StateDBSetNonceRequest)) +func (m *EthLog) GetTopics() [][]byte { + if m != nil { + return m.Topics } - return interceptor(ctx, in, info, handler) + return nil } -func _QueryService_StateDBIncreaseNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBIncreaseNonceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, req.(*StateDBIncreaseNonceRequest)) +func (m *EthLog) GetData() []byte { + if m != nil { + return m.Data } - return interceptor(ctx, in, info, handler) + return nil } -func _QueryService_StateDBPrepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBPrepareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBPrepare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBPrepare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBPrepare(ctx, req.(*StateDBPrepareRequest)) +func (m *EthLog) GetBlockNumber() uint64 { + if m != nil { + return m.BlockNumber } - return interceptor(ctx, in, info, handler) + return 0 } -func _QueryService_StateDBGetRefund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBGetRefundRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBGetRefund(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetRefund", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBGetRefund(ctx, req.(*StateDBGetRefundRequest)) +func (m *EthLog) GetTxHash() []byte { + if m != nil { + return m.TxHash } - return interceptor(ctx, in, info, handler) + return nil } -func _QueryService_StateDBGetLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBGetLogsRequest) - if err := dec(in); err != nil { - return nil, err +func (m *EthLog) GetTxIndex() uint64 { + if m != nil { + return m.TxIndex } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBGetLogs(ctx, in) + return 0 +} + +func (m *EthLog) GetBlockHash() []byte { + if m != nil { + return m.BlockHash } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetLogs", + return nil +} + +func (m *EthLog) GetIndex() uint64 { + if m != nil { + return m.Index } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBGetLogs(ctx, req.(*StateDBGetLogsRequest)) + return 0 +} + +func (m *EthLog) GetRemoved() bool { + if m != nil { + return m.Removed } - return interceptor(ctx, in, info, handler) + return false } -var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ethermint.sgx.v1.QueryService", - HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PrepareTx", - Handler: _QueryService_PrepareTx_Handler, - }, - { - MethodName: "Create", - Handler: _QueryService_Create_Handler, - }, - { - MethodName: "Call", - Handler: _QueryService_Call_Handler, - }, - { - MethodName: "Commit", - Handler: _QueryService_Commit_Handler, - }, - { - MethodName: "StateDBAddBalance", - Handler: _QueryService_StateDBAddBalance_Handler, - }, - { - MethodName: "StateDBSubBalance", - Handler: _QueryService_StateDBSubBalance_Handler, - }, - { - MethodName: "StateDBSetNonce", - Handler: _QueryService_StateDBSetNonce_Handler, - }, - { - MethodName: "StateDBIncreaseNonce", - Handler: _QueryService_StateDBIncreaseNonce_Handler, - }, - { - MethodName: "StateDBPrepare", - Handler: _QueryService_StateDBPrepare_Handler, - }, - { - MethodName: "StateDBGetRefund", - Handler: _QueryService_StateDBGetRefund_Handler, - }, - { - MethodName: "StateDBGetLogs", - Handler: _QueryService_StateDBGetLogs_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "ethermint/sgx/v1/query.proto", +func init() { + proto.RegisterType((*PrepareTxRequest)(nil), "ethermint.sgx.v1.PrepareTxRequest") + proto.RegisterType((*PrepareTxResponse)(nil), "ethermint.sgx.v1.PrepareTxResponse") + proto.RegisterType((*CreateRequest)(nil), "ethermint.sgx.v1.CreateRequest") + proto.RegisterType((*CreateResponse)(nil), "ethermint.sgx.v1.CreateResponse") + proto.RegisterType((*CallRequest)(nil), "ethermint.sgx.v1.CallRequest") + proto.RegisterType((*CallResponse)(nil), "ethermint.sgx.v1.CallResponse") + proto.RegisterType((*CommitRequest)(nil), "ethermint.sgx.v1.CommitRequest") + proto.RegisterType((*CommitResponse)(nil), "ethermint.sgx.v1.CommitResponse") + proto.RegisterType((*StateDBAddBalanceRequest)(nil), "ethermint.sgx.v1.StateDBAddBalanceRequest") + proto.RegisterType((*StateDBAddBalanceResponse)(nil), "ethermint.sgx.v1.StateDBAddBalanceResponse") + proto.RegisterType((*StateDBSubBalanceRequest)(nil), "ethermint.sgx.v1.StateDBSubBalanceRequest") + proto.RegisterType((*StateDBSubBalanceResponse)(nil), "ethermint.sgx.v1.StateDBSubBalanceResponse") + proto.RegisterType((*StateDBSetNonceRequest)(nil), "ethermint.sgx.v1.StateDBSetNonceRequest") + proto.RegisterType((*StateDBSetNonceResponse)(nil), "ethermint.sgx.v1.StateDBSetNonceResponse") + proto.RegisterType((*StateDBIncreaseNonceRequest)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceRequest") + proto.RegisterType((*StateDBIncreaseNonceResponse)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceResponse") + proto.RegisterType((*Rules)(nil), "ethermint.sgx.v1.Rules") + proto.RegisterType((*AccessTuple)(nil), "ethermint.sgx.v1.AccessTuple") + proto.RegisterType((*StateDBPrepareRequest)(nil), "ethermint.sgx.v1.StateDBPrepareRequest") + proto.RegisterType((*StateDBPrepareResponse)(nil), "ethermint.sgx.v1.StateDBPrepareResponse") + proto.RegisterType((*StateDBGetRefundRequest)(nil), "ethermint.sgx.v1.StateDBGetRefundRequest") + proto.RegisterType((*StateDBGetRefundResponse)(nil), "ethermint.sgx.v1.StateDBGetRefundResponse") + proto.RegisterType((*StateDBGetLogsRequest)(nil), "ethermint.sgx.v1.StateDBGetLogsRequest") + proto.RegisterType((*StateDBGetLogsResponse)(nil), "ethermint.sgx.v1.StateDBGetLogsResponse") + proto.RegisterType((*Message)(nil), "ethermint.sgx.v1.Message") + proto.RegisterType((*PrepareTxEVMConfig)(nil), "ethermint.sgx.v1.PrepareTxEVMConfig") + proto.RegisterType((*TxConfig)(nil), "ethermint.sgx.v1.TxConfig") + proto.RegisterType((*EthLog)(nil), "ethermint.sgx.v1.EthLog") } -func (m *PrepareTxRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } + +var fileDescriptor_1d9fb6e76534f03e = []byte{ + // 1747 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x18, 0x4d, 0x6f, 0xdb, 0xc8, + 0xd5, 0xb2, 0x64, 0x59, 0x7a, 0x92, 0x1d, 0x79, 0x9a, 0x3a, 0xb4, 0x92, 0x28, 0x5e, 0x6e, 0xd1, + 0x75, 0xb3, 0x58, 0x79, 0xed, 0x22, 0x8b, 0x5c, 0x5a, 0x34, 0xb6, 0xb3, 0x8e, 0xb7, 0xce, 0xd6, + 0x65, 0x8c, 0x1c, 0x7a, 0x21, 0x46, 0xe4, 0x33, 0x35, 0x35, 0xc9, 0xe1, 0x72, 0x46, 0xaa, 0xbc, + 0xc7, 0x02, 0xbd, 0xf7, 0xd4, 0xbf, 0xd0, 0xbf, 0xb2,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68, + 0x1f, 0x87, 0x11, 0x17, 0xfb, 0xe3, 0xff, 0xb2, 0x46, 0xfa, 0xdf, 0x2c, 0xfd, 0x6f, 0x51, 0xaf, + 0xaa, 0xff, 0x85, 0xfa, 0xe9, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x87, 0xa6, 0xd4, 0x58, 0xeb, + 0x12, 0x00, 0x00, } -func (m *PrepareTxRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryServiceClient is the client API for QueryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryServiceClient interface { + // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { + PrepareTx(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) + // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { + Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { + Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) + // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { + Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) + // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { + StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) + // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { + StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) + // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { + StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) + // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { + StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) + // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { + StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) + // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { + StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) + // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { + StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) } -func (m *PrepareTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EvmConfig) > 0 { - i -= len(m.EvmConfig) - copy(dAtA[i:], m.EvmConfig) - i = encodeVarintQuery(dAtA, i, uint64(len(m.EvmConfig))) - i-- - dAtA[i] = 0x22 - } - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) - i-- - dAtA[i] = 0x1a - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TxHash) > 0 { - i -= len(m.TxHash) - copy(dAtA[i:], m.TxHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type queryServiceClient struct { + cc grpc1.ClientConn } -func (m *PrepareTxResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +func (c *queryServiceClient) PrepareTx(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) { + out := new(PrepareTxResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/PrepareTx", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *PrepareTxResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { + out := new(CreateResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *PrepareTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) - i-- - dAtA[i] = 0x8 +func (c *queryServiceClient) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) { + out := new(CallResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Call", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *CreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryServiceClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) { + out := new(CommitResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Commit", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryServiceClient) StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) { + out := new(StateDBAddBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBAddBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Value != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Value)) - i-- - dAtA[i] = 0x28 - } - if m.Gas != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) - i-- - dAtA[i] = 0x20 - } - if len(m.Code) > 0 { - i -= len(m.Code) - copy(dAtA[i:], m.Code) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) - i-- - dAtA[i] = 0x1a - } - if len(m.Caller) > 0 { - i -= len(m.Caller) - copy(dAtA[i:], m.Caller) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) - i-- - dAtA[i] = 0x12 - } - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) - i-- - dAtA[i] = 0x8 +func (c *queryServiceClient) StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) { + out := new(StateDBSubBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSubBalance", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *CreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryServiceClient) StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) { + out := new(StateDBSetNonceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSetNonce", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LeftOverGas != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) - i-- - dAtA[i] = 0x18 - } - if len(m.ContractAddr) > 0 { - i -= len(m.ContractAddr) - copy(dAtA[i:], m.ContractAddr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractAddr))) - i-- - dAtA[i] = 0x12 - } - if len(m.Ret) > 0 { - i -= len(m.Ret) - copy(dAtA[i:], m.Ret) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Ret))) - i-- - dAtA[i] = 0xa +func (c *queryServiceClient) StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) { + out := new(StateDBIncreaseNonceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *CallRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryServiceClient) StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) { + out := new(StateDBPrepareResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBPrepare", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *CallRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return out, nil } -func (m *CallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Value != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Value)) - i-- - dAtA[i] = 0x30 - } - if m.Gas != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) - i-- - dAtA[i] = 0x28 - } - if len(m.Input) > 0 { - i -= len(m.Input) - copy(dAtA[i:], m.Input) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Input))) - i-- - dAtA[i] = 0x22 - } - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) - i-- - dAtA[i] = 0x1a - } - if len(m.Caller) > 0 { - i -= len(m.Caller) - copy(dAtA[i:], m.Caller) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) - i-- - dAtA[i] = 0x12 - } - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) - i-- - dAtA[i] = 0x8 +func (c *queryServiceClient) StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) { + out := new(StateDBGetRefundResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetRefund", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *CallResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryServiceClient) StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) { + out := new(StateDBGetLogsResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetLogs", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *CallResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { + PrepareTx(context.Context, *PrepareTxRequest) (*PrepareTxResponse, error) + // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { + Create(context.Context, *CreateRequest) (*CreateResponse, error) + // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { + Call(context.Context, *CallRequest) (*CallResponse, error) + // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { + Commit(context.Context, *CommitRequest) (*CommitResponse, error) + // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { + StateDBAddBalance(context.Context, *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) + // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { + StateDBSubBalance(context.Context, *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) + // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { + StateDBSetNonce(context.Context, *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) + // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { + StateDBIncreaseNonce(context.Context, *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) + // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { + StateDBPrepare(context.Context, *StateDBPrepareRequest) (*StateDBPrepareResponse, error) + // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { + StateDBGetRefund(context.Context, *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) + // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { + StateDBGetLogs(context.Context, *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) } -func (m *CallResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LeftOverGas != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) - i-- - dAtA[i] = 0x10 - } - if len(m.Ret) > 0 { - i -= len(m.Ret) - copy(dAtA[i:], m.Ret) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Ret))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { } -func (m *CommitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedQueryServiceServer) PrepareTx(ctx context.Context, req *PrepareTxRequest) (*PrepareTxResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PrepareTx not implemented") } - -func (m *CommitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedQueryServiceServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } - -func (m *CommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil +func (*UnimplementedQueryServiceServer) Call(ctx context.Context, req *CallRequest) (*CallResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Call not implemented") } - -func (m *CommitResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedQueryServiceServer) Commit(ctx context.Context, req *CommitRequest) (*CommitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") } - -func (m *CommitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedQueryServiceServer) StateDBAddBalance(ctx context.Context, req *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBAddBalance not implemented") } - -func (m *CommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (*UnimplementedQueryServiceServer) StateDBSubBalance(ctx context.Context, req *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSubBalance not implemented") } - -func (m *StateDBAddBalanceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedQueryServiceServer) StateDBSetNonce(ctx context.Context, req *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSetNonce not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBIncreaseNonce(ctx context.Context, req *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBIncreaseNonce not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBPrepare(ctx context.Context, req *StateDBPrepareRequest) (*StateDBPrepareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBPrepare not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBGetRefund(ctx context.Context, req *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetRefund not implemented") +} +func (*UnimplementedQueryServiceServer) StateDBGetLogs(ctx context.Context, req *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetLogs not implemented") } -func (m *StateDBAddBalanceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) } -func (m *StateDBAddBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Amount != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Amount)) - i-- - dAtA[i] = 0x18 +func _QueryService_PrepareTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PrepareTxRequest) + if err := dec(in); err != nil { + return nil, err } - if len(m.Caller) > 0 { - i -= len(m.Caller) - copy(dAtA[i:], m.Caller) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) - i-- - dAtA[i] = 0x12 + if interceptor == nil { + return srv.(QueryServiceServer).PrepareTx(ctx, in) } - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) - i-- - dAtA[i] = 0x8 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/PrepareTx", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).PrepareTx(ctx, req.(*PrepareTxRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBAddBalanceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _QueryService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *StateDBAddBalanceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StateDBAddBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil + if interceptor == nil { + return srv.(QueryServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Create(ctx, req.(*CreateRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSubBalanceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _QueryService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CallRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *StateDBSubBalanceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if interceptor == nil { + return srv.(QueryServiceServer).Call(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/Call", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Call(ctx, req.(*CallRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSubBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Amount != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Amount)) - i-- - dAtA[i] = 0x18 +func _QueryService_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitRequest) + if err := dec(in); err != nil { + return nil, err } - if len(m.Caller) > 0 { - i -= len(m.Caller) - copy(dAtA[i:], m.Caller) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) - i-- - dAtA[i] = 0x12 + if interceptor == nil { + return srv.(QueryServiceServer).Commit(ctx, in) } - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) - i-- - dAtA[i] = 0x8 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/Commit", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Commit(ctx, req.(*CommitRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSubBalanceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _QueryService_StateDBAddBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBAddBalanceRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(QueryServiceServer).StateDBAddBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBAddBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBAddBalance(ctx, req.(*StateDBAddBalanceRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSubBalanceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _QueryService_StateDBSubBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBSubBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBSubBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSubBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBSubBalance(ctx, req.(*StateDBSubBalanceRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSubBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func _QueryService_StateDBSetNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBSetNonceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBSetNonce(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSetNonce", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBSetNonce(ctx, req.(*StateDBSetNonceRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSetNonceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _QueryService_StateDBIncreaseNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBIncreaseNonceRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, req.(*StateDBIncreaseNonceRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSetNonceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _QueryService_StateDBPrepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBPrepareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).StateDBPrepare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBPrepare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBPrepare(ctx, req.(*StateDBPrepareRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSetNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Nonce != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) - i-- - dAtA[i] = 0x18 +func _QueryService_StateDBGetRefund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBGetRefundRequest) + if err := dec(in); err != nil { + return nil, err } - if len(m.Caller) > 0 { - i -= len(m.Caller) - copy(dAtA[i:], m.Caller) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) - i-- - dAtA[i] = 0x12 + if interceptor == nil { + return srv.(QueryServiceServer).StateDBGetRefund(ctx, in) } - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) - i-- - dAtA[i] = 0x8 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetRefund", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBGetRefund(ctx, req.(*StateDBGetRefundRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSetNonceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _QueryService_StateDBGetLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBGetLogsRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(QueryServiceServer).StateDBGetLogs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetLogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBGetLogs(ctx, req.(*StateDBGetLogsRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StateDBSetNonceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "ethermint.sgx.v1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PrepareTx", + Handler: _QueryService_PrepareTx_Handler, + }, + { + MethodName: "Create", + Handler: _QueryService_Create_Handler, + }, + { + MethodName: "Call", + Handler: _QueryService_Call_Handler, + }, + { + MethodName: "Commit", + Handler: _QueryService_Commit_Handler, + }, + { + MethodName: "StateDBAddBalance", + Handler: _QueryService_StateDBAddBalance_Handler, + }, + { + MethodName: "StateDBSubBalance", + Handler: _QueryService_StateDBSubBalance_Handler, + }, + { + MethodName: "StateDBSetNonce", + Handler: _QueryService_StateDBSetNonce_Handler, + }, + { + MethodName: "StateDBIncreaseNonce", + Handler: _QueryService_StateDBIncreaseNonce_Handler, + }, + { + MethodName: "StateDBPrepare", + Handler: _QueryService_StateDBPrepare_Handler, + }, + { + MethodName: "StateDBGetRefund", + Handler: _QueryService_StateDBGetRefund_Handler, + }, + { + MethodName: "StateDBGetLogs", + Handler: _QueryService_StateDBGetLogs_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ethermint/sgx/v1/query.proto", +} + +func (m *PrepareTxRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PrepareTxRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBSetNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PrepareTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + { + size, err := m.EvmConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.TxHash) > 0 { + i -= len(m.TxHash) + copy(dAtA[i:], m.TxHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *StateDBIncreaseNonceRequest) Marshal() (dAtA []byte, err error) { +func (m *PrepareTxResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2517,16 +2569,61 @@ func (m *StateDBIncreaseNonceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StateDBIncreaseNonceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *PrepareTxResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBIncreaseNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PrepareTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CreateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.Value != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x28 + } + if m.Gas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) + i-- + dAtA[i] = 0x20 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0x1a + } if len(m.Caller) > 0 { i -= len(m.Caller) copy(dAtA[i:], m.Caller) @@ -2542,7 +2639,7 @@ func (m *StateDBIncreaseNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *StateDBIncreaseNonceResponse) Marshal() (dAtA []byte, err error) { +func (m *CreateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2552,20 +2649,39 @@ func (m *StateDBIncreaseNonceResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StateDBIncreaseNonceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBIncreaseNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.LeftOverGas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) + i-- + dAtA[i] = 0x18 + } + if len(m.ContractAddr) > 0 { + i -= len(m.ContractAddr) + copy(dAtA[i:], m.ContractAddr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractAddr))) + i-- + dAtA[i] = 0x12 + } + if len(m.Ret) > 0 { + i -= len(m.Ret) + copy(dAtA[i:], m.Ret) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Ret))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Rules) Marshal() (dAtA []byte, err error) { +func (m *CallRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2575,177 +2691,56 @@ func (m *Rules) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rules) MarshalTo(dAtA []byte) (int, error) { +func (m *CallRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *CallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.IsVerkle { - i-- - if m.IsVerkle { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.IsPrague { - i-- - if m.IsPrague { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if m.Value != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Value)) i-- - dAtA[i] = 0x78 + dAtA[i] = 0x30 } - if m.IsCancun { - i-- - if m.IsCancun { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if m.Gas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) i-- - dAtA[i] = 0x70 + dAtA[i] = 0x28 } - if m.IsShanghai { - i-- - if m.IsShanghai { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if len(m.Input) > 0 { + i -= len(m.Input) + copy(dAtA[i:], m.Input) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Input))) i-- - dAtA[i] = 0x68 + dAtA[i] = 0x22 } - if m.IsMerge { - i-- - if m.IsMerge { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) i-- - dAtA[i] = 0x60 + dAtA[i] = 0x1a } - if m.IsLondon { - i-- - if m.IsLondon { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) i-- - dAtA[i] = 0x58 + dAtA[i] = 0x12 } - if m.IsBerlin { - i-- - if m.IsBerlin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) i-- - dAtA[i] = 0x50 - } - if m.IsIstanbul { - i-- - if m.IsIstanbul { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.IsPetersburg { - i-- - if m.IsPetersburg { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.IsConstantinople { - i-- - if m.IsConstantinople { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.IsByzantium { - i-- - if m.IsByzantium { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.IsEIP158 { - i-- - if m.IsEIP158 { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.IsEIP155 { - i-- - if m.IsEIP155 { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.IsEIP150 { - i-- - if m.IsEIP150 { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.IsHomestead { - i-- - if m.IsHomestead { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.ChainId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *AccessTuple) Marshal() (dAtA []byte, err error) { +func (m *CallResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2755,36 +2750,32 @@ func (m *AccessTuple) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AccessTuple) MarshalTo(dAtA []byte) (int, error) { +func (m *CallResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AccessTuple) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *CallResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.StorageKeys) > 0 { - for iNdEx := len(m.StorageKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.StorageKeys[iNdEx]) - copy(dAtA[i:], m.StorageKeys[iNdEx]) - i = encodeVarintQuery(dAtA, i, uint64(len(m.StorageKeys[iNdEx]))) - i-- - dAtA[i] = 0x12 - } + if m.LeftOverGas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) + i-- + dAtA[i] = 0x10 } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + if len(m.Ret) > 0 { + i -= len(m.Ret) + copy(dAtA[i:], m.Ret) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Ret))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *StateDBPrepareRequest) Marshal() (dAtA []byte, err error) { +func (m *CommitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2794,63 +2785,16 @@ func (m *StateDBPrepareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StateDBPrepareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *CommitRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBPrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *CommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.AccessList) > 0 { - for iNdEx := len(m.AccessList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AccessList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if m.Rules != nil { - { - size, err := m.Rules.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.Dest) > 0 { - i -= len(m.Dest) - copy(dAtA[i:], m.Dest) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Dest))) - i-- - dAtA[i] = 0x22 - } - if len(m.Coinbase) > 0 { - i -= len(m.Coinbase) - copy(dAtA[i:], m.Coinbase) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Coinbase))) - i-- - dAtA[i] = 0x1a - } - if len(m.Sender) > 0 { - i -= len(m.Sender) - copy(dAtA[i:], m.Sender) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Sender))) - i-- - dAtA[i] = 0x12 - } if m.HandlerId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) i-- @@ -2859,7 +2803,7 @@ func (m *StateDBPrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *StateDBPrepareResponse) Marshal() (dAtA []byte, err error) { +func (m *CommitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2869,12 +2813,12 @@ func (m *StateDBPrepareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StateDBPrepareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *CommitResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBPrepareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *CommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2882,7 +2826,7 @@ func (m *StateDBPrepareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *StateDBGetRefundRequest) Marshal() (dAtA []byte, err error) { +func (m *StateDBAddBalanceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2892,16 +2836,28 @@ func (m *StateDBGetRefundRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StateDBGetRefundRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StateDBAddBalanceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBGetRefundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StateDBAddBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.Amount != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x18 + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } if m.HandlerId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) i-- @@ -2910,7 +2866,7 @@ func (m *StateDBGetRefundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *StateDBGetRefundResponse) Marshal() (dAtA []byte, err error) { +func (m *StateDBAddBalanceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2920,25 +2876,20 @@ func (m *StateDBGetRefundResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StateDBGetRefundResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *StateDBAddBalanceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBGetRefundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StateDBAddBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Refund != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Refund)) - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } -func (m *StateDBGetLogsRequest) Marshal() (dAtA []byte, err error) { +func (m *StateDBSubBalanceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2948,16 +2899,28 @@ func (m *StateDBGetLogsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StateDBGetLogsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StateDBSubBalanceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBGetLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StateDBSubBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.Amount != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x18 + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } if m.HandlerId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) i-- @@ -2966,7 +2929,7 @@ func (m *StateDBGetLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *StateDBGetLogsResponse) Marshal() (dAtA []byte, err error) { +func (m *StateDBSubBalanceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2976,471 +2939,2701 @@ func (m *StateDBGetLogsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StateDBGetLogsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *StateDBSubBalanceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBGetLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StateDBSubBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Logs) > 0 { - i -= len(m.Logs) - copy(dAtA[i:], m.Logs) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Logs))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *StateDBSetNonceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *PrepareTxRequest) Size() (n int) { - if m == nil { - return 0 - } + +func (m *StateDBSetNonceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBSetNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.TxHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if m.Nonce != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x18 } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Msg) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 } - l = len(m.EvmConfig) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *PrepareTxResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) +func (m *StateDBSetNonceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *CreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) - } - l = len(m.Caller) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Code) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Gas != 0 { - n += 1 + sovQuery(uint64(m.Gas)) - } - if m.Value != 0 { - n += 1 + sovQuery(uint64(m.Value)) - } - return n +func (m *StateDBSetNonceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *StateDBSetNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Ret) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.ContractAddr) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.LeftOverGas != 0 { - n += 1 + sovQuery(uint64(m.LeftOverGas)) - } - return n + return len(dAtA) - i, nil } -func (m *CallRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) - } - l = len(m.Caller) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Addr) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Input) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Gas != 0 { - n += 1 + sovQuery(uint64(m.Gas)) - } - if m.Value != 0 { - n += 1 + sovQuery(uint64(m.Value)) +func (m *StateDBIncreaseNonceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *CallResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Ret) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.LeftOverGas != 0 { - n += 1 + sovQuery(uint64(m.LeftOverGas)) - } - return n +func (m *StateDBIncreaseNonceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CommitRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *StateDBIncreaseNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *CommitResponse) Size() (n int) { - if m == nil { - return 0 +func (m *StateDBIncreaseNonceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *StateDBAddBalanceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) - } - l = len(m.Caller) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Amount != 0 { - n += 1 + sovQuery(uint64(m.Amount)) - } - return n +func (m *StateDBIncreaseNonceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBAddBalanceResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *StateDBIncreaseNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + return len(dAtA) - i, nil } -func (m *StateDBSubBalanceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) - } - l = len(m.Caller) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Amount != 0 { - n += 1 + sovQuery(uint64(m.Amount)) +func (m *Rules) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *StateDBSubBalanceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +func (m *Rules) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StateDBSetNonceRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) - } - l = len(m.Caller) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Nonce != 0 { - n += 1 + sovQuery(uint64(m.Nonce)) + if m.IsVerkle { + i-- + if m.IsVerkle { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 } - return n -} - -func (m *StateDBSetNonceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *StateDBIncreaseNonceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) - } - l = len(m.Caller) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *StateDBIncreaseNonceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *Rules) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ChainId != 0 { - n += 1 + sovQuery(uint64(m.ChainId)) + if m.IsPrague { + i-- + if m.IsPrague { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x78 } - if m.IsHomestead { - n += 2 + if m.IsCancun { + i-- + if m.IsCancun { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x70 } - if m.IsEIP150 { - n += 2 + if m.IsShanghai { + i-- + if m.IsShanghai { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x68 } - if m.IsEIP155 { - n += 2 + if m.IsMerge { + i-- + if m.IsMerge { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 } - if m.IsEIP158 { - n += 2 + if m.IsLondon { + i-- + if m.IsLondon { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 } - if m.IsByzantium { - n += 2 + if m.IsBerlin { + i-- + if m.IsBerlin { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 } - if m.IsConstantinople { - n += 2 + if m.IsIstanbul { + i-- + if m.IsIstanbul { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 } if m.IsPetersburg { - n += 2 - } - if m.IsIstanbul { - n += 2 + i-- + if m.IsPetersburg { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 } - if m.IsBerlin { - n += 2 + if m.IsConstantinople { + i-- + if m.IsConstantinople { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 } - if m.IsLondon { - n += 2 + if m.IsByzantium { + i-- + if m.IsByzantium { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 } - if m.IsMerge { - n += 2 + if m.IsEIP158 { + i-- + if m.IsEIP158 { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 } - if m.IsShanghai { - n += 2 + if m.IsEIP155 { + i-- + if m.IsEIP155 { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 } - if m.IsCancun { - n += 2 + if m.IsEIP150 { + i-- + if m.IsEIP150 { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 } - if m.IsPrague { - n += 2 + if m.IsHomestead { + i-- + if m.IsHomestead { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 } - if m.IsVerkle { - n += 3 + if m.ChainId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *AccessTuple) Size() (n int) { - if m == nil { - return 0 +func (m *AccessTuple) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *AccessTuple) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccessTuple) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } if len(m.StorageKeys) > 0 { - for _, b := range m.StorageKeys { - l = len(b) - n += 1 + l + sovQuery(uint64(l)) + for iNdEx := len(m.StorageKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.StorageKeys[iNdEx]) + copy(dAtA[i:], m.StorageKeys[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.StorageKeys[iNdEx]))) + i-- + dAtA[i] = 0x12 } } - return n + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *StateDBPrepareRequest) Size() (n int) { - if m == nil { - return 0 +func (m *StateDBPrepareRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) + return dAtA[:n], nil +} + +func (m *StateDBPrepareRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBPrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AccessList) > 0 { + for iNdEx := len(m.AccessList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AccessList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } } - l = len(m.Sender) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if m.Rules != nil { + { + size, err := m.Rules.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - l = len(m.Coinbase) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Dest) > 0 { + i -= len(m.Dest) + copy(dAtA[i:], m.Dest) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Dest))) + i-- + dAtA[i] = 0x22 } - l = len(m.Dest) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Coinbase) > 0 { + i -= len(m.Coinbase) + copy(dAtA[i:], m.Coinbase) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Coinbase))) + i-- + dAtA[i] = 0x1a } - if m.Rules != nil { - l = m.Rules.Size() - n += 1 + l + sovQuery(uint64(l)) + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x12 } - if len(m.AccessList) > 0 { - for _, e := range m.AccessList { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *StateDBPrepareResponse) Size() (n int) { - if m == nil { - return 0 +func (m *StateDBPrepareResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *StateDBPrepareResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBPrepareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + return len(dAtA) - i, nil } -func (m *StateDBGetRefundRequest) Size() (n int) { - if m == nil { - return 0 +func (m *StateDBGetRefundRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *StateDBGetRefundRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBGetRefundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBGetRefundResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBGetRefundResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBGetRefundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Refund != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Refund)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBGetLogsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBGetLogsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBGetLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StateDBGetLogsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StateDBGetLogsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateDBGetLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Log) > 0 { + for iNdEx := len(m.Log) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Log[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Message) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Message) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SkipAccountChecks { + i-- + if m.SkipAccountChecks { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x68 + } + if len(m.BlobHashes) > 0 { + for iNdEx := len(m.BlobHashes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlobHashes[iNdEx]) + copy(dAtA[i:], m.BlobHashes[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlobHashes[iNdEx]))) + i-- + dAtA[i] = 0x62 + } + } + if m.BlobGasFeeCap != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlobGasFeeCap)) + i-- + dAtA[i] = 0x58 + } + if len(m.AccessList) > 0 { + for iNdEx := len(m.AccessList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AccessList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x4a + } + if m.GasTipCap != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.GasTipCap)) + i-- + dAtA[i] = 0x40 + } + if m.GasFeeCap != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.GasFeeCap)) + i-- + dAtA[i] = 0x38 + } + if m.GasPrice != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.GasPrice)) + i-- + dAtA[i] = 0x30 + } + if m.GasLimit != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.GasLimit)) + i-- + dAtA[i] = 0x28 + } + if m.Value != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x20 + } + if m.Nonce != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x18 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintQuery(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x12 + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintQuery(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PrepareTxEVMConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PrepareTxEVMConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareTxEVMConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Overrides) > 0 { + i -= len(m.Overrides) + copy(dAtA[i:], m.Overrides) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Overrides))) + i-- + dAtA[i] = 0x4a + } + if len(m.ExtraEips) > 0 { + dAtA6 := make([]byte, len(m.ExtraEips)*10) + var j5 int + for _, num1 := range m.ExtraEips { + num := uint64(num1) + for num >= 1<<7 { + dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j5++ + } + dAtA6[j5] = uint8(num) + j5++ + } + i -= j5 + copy(dAtA[i:], dAtA6[:j5]) + i = encodeVarintQuery(dAtA, i, uint64(j5)) + i-- + dAtA[i] = 0x42 + } + if len(m.EvmDenom) > 0 { + i -= len(m.EvmDenom) + copy(dAtA[i:], m.EvmDenom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.EvmDenom))) + i-- + dAtA[i] = 0x3a + } + if m.NoBaseFee { + i-- + if m.NoBaseFee { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.DebugTrace { + i-- + if m.DebugTrace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + { + size, err := m.TxConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if m.BaseFee != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BaseFee)) + i-- + dAtA[i] = 0x18 + } + if len(m.CoinBase) > 0 { + i -= len(m.CoinBase) + copy(dAtA[i:], m.CoinBase) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CoinBase))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChainConfigJson) > 0 { + i -= len(m.ChainConfigJson) + copy(dAtA[i:], m.ChainConfigJson) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainConfigJson))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TxConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TxConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LogIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LogIndex)) + i-- + dAtA[i] = 0x20 + } + if m.TxIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TxIndex)) + i-- + dAtA[i] = 0x18 + } + if len(m.TxHash) > 0 { + i -= len(m.TxHash) + copy(dAtA[i:], m.TxHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) + i-- + dAtA[i] = 0x12 + } + if len(m.BlockHash) > 0 { + i -= len(m.BlockHash) + copy(dAtA[i:], m.BlockHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EthLog) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EthLog) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EthLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Removed { + i-- + if m.Removed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.Index != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x40 + } + if len(m.BlockHash) > 0 { + i -= len(m.BlockHash) + copy(dAtA[i:], m.BlockHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) + i-- + dAtA[i] = 0x3a + } + if m.TxIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TxIndex)) + i-- + dAtA[i] = 0x30 + } + if len(m.TxHash) > 0 { + i -= len(m.TxHash) + copy(dAtA[i:], m.TxHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) + i-- + dAtA[i] = 0x2a + } + if m.BlockNumber != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) + i-- + dAtA[i] = 0x20 + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x1a + } + if len(m.Topics) > 0 { + for iNdEx := len(m.Topics) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Topics[iNdEx]) + copy(dAtA[i:], m.Topics[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Topics[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *PrepareTxRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TxHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = m.Header.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.Msg.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.EvmConfig.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *PrepareTxResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + return n +} + +func (m *CreateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Code) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Gas != 0 { + n += 1 + sovQuery(uint64(m.Gas)) + } + if m.Value != 0 { + n += 1 + sovQuery(uint64(m.Value)) + } + return n +} + +func (m *CreateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ret) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ContractAddr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.LeftOverGas != 0 { + n += 1 + sovQuery(uint64(m.LeftOverGas)) + } + return n +} + +func (m *CallRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Input) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Gas != 0 { + n += 1 + sovQuery(uint64(m.Gas)) + } + if m.Value != 0 { + n += 1 + sovQuery(uint64(m.Value)) + } + return n +} + +func (m *CallResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ret) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.LeftOverGas != 0 { + n += 1 + sovQuery(uint64(m.LeftOverGas)) + } + return n +} + +func (m *CommitRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + return n +} + +func (m *CommitResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBAddBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovQuery(uint64(m.Amount)) + } + return n +} + +func (m *StateDBAddBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBSubBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovQuery(uint64(m.Amount)) + } + return n +} + +func (m *StateDBSubBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBSetNonceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Nonce != 0 { + n += 1 + sovQuery(uint64(m.Nonce)) + } + return n +} + +func (m *StateDBSetNonceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBIncreaseNonceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Caller) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *StateDBIncreaseNonceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rules) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ChainId != 0 { + n += 1 + sovQuery(uint64(m.ChainId)) + } + if m.IsHomestead { + n += 2 + } + if m.IsEIP150 { + n += 2 + } + if m.IsEIP155 { + n += 2 + } + if m.IsEIP158 { + n += 2 + } + if m.IsByzantium { + n += 2 + } + if m.IsConstantinople { + n += 2 + } + if m.IsPetersburg { + n += 2 + } + if m.IsIstanbul { + n += 2 + } + if m.IsBerlin { + n += 2 + } + if m.IsLondon { + n += 2 + } + if m.IsMerge { + n += 2 + } + if m.IsShanghai { + n += 2 + } + if m.IsCancun { + n += 2 + } + if m.IsPrague { + n += 2 + } + if m.IsVerkle { + n += 3 + } + return n +} + +func (m *AccessTuple) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.StorageKeys) > 0 { + for _, b := range m.StorageKeys { + l = len(b) + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *StateDBPrepareRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Coinbase) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Dest) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Rules != nil { + l = m.Rules.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.AccessList) > 0 { + for _, e := range m.AccessList { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *StateDBPrepareResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StateDBGetRefundRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + return n +} + +func (m *StateDBGetRefundResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Refund != 0 { + n += 1 + sovQuery(uint64(m.Refund)) + } + return n +} + +func (m *StateDBGetLogsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + return n +} + +func (m *StateDBGetLogsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Log) > 0 { + for _, e := range m.Log { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *Message) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.To) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.From) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Nonce != 0 { + n += 1 + sovQuery(uint64(m.Nonce)) + } + if m.Value != 0 { + n += 1 + sovQuery(uint64(m.Value)) + } + if m.GasLimit != 0 { + n += 1 + sovQuery(uint64(m.GasLimit)) + } + if m.GasPrice != 0 { + n += 1 + sovQuery(uint64(m.GasPrice)) + } + if m.GasFeeCap != 0 { + n += 1 + sovQuery(uint64(m.GasFeeCap)) + } + if m.GasTipCap != 0 { + n += 1 + sovQuery(uint64(m.GasTipCap)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.AccessList) > 0 { + for _, e := range m.AccessList { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.BlobGasFeeCap != 0 { + n += 1 + sovQuery(uint64(m.BlobGasFeeCap)) + } + if len(m.BlobHashes) > 0 { + for _, b := range m.BlobHashes { + l = len(b) + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.SkipAccountChecks { + n += 2 + } + return n +} + +func (m *PrepareTxEVMConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainConfigJson) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.CoinBase) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.BaseFee != 0 { + n += 1 + sovQuery(uint64(m.BaseFee)) + } + l = m.TxConfig.Size() + n += 1 + l + sovQuery(uint64(l)) + if m.DebugTrace { + n += 2 + } + if m.NoBaseFee { + n += 2 + } + l = len(m.EvmDenom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.ExtraEips) > 0 { + l = 0 + for _, e := range m.ExtraEips { + l += sovQuery(uint64(e)) + } + n += 1 + sovQuery(uint64(l)) + l + } + l = len(m.Overrides) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *TxConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BlockHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TxHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TxIndex != 0 { + n += 1 + sovQuery(uint64(m.TxIndex)) + } + if m.LogIndex != 0 { + n += 1 + sovQuery(uint64(m.LogIndex)) + } + return n +} + +func (m *EthLog) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.Topics) > 0 { + for _, b := range m.Topics { + l = len(b) + n += 1 + l + sovQuery(uint64(l)) + } + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.BlockNumber != 0 { + n += 1 + sovQuery(uint64(m.BlockNumber)) + } + l = len(m.TxHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TxIndex != 0 { + n += 1 + sovQuery(uint64(m.TxIndex)) + } + l = len(m.BlockHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Index != 0 { + n += 1 + sovQuery(uint64(m.Index)) + } + if m.Removed { + n += 2 + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PrepareTxRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PrepareTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) + if m.TxHash == nil { + m.TxHash = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvmConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EvmConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PrepareTxResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PrepareTxResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PrepareTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) + if m.Code == nil { + m.Code = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) + } + m.Gas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) + if m.Ret == nil { + m.Ret = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractAddr", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractAddr = append(m.ContractAddr[:0], dAtA[iNdEx:postIndex]...) + if m.ContractAddr == nil { + m.ContractAddr = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) + } + m.LeftOverGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LeftOverGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CallRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CallRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CallRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addr = append(m.Addr[:0], dAtA[iNdEx:postIndex]...) + if m.Addr == nil { + m.Addr = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Input = append(m.Input[:0], dAtA[iNdEx:postIndex]...) + if m.Input == nil { + m.Input = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) + } + m.Gas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CallResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CallResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CallResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) + if m.Ret == nil { + m.Ret = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) + } + m.LeftOverGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LeftOverGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommitRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommitRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommitRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommitResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommitResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBAddBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBAddBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } - return n -} -func (m *StateDBGetRefundResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Refund != 0 { - n += 1 + sovQuery(uint64(m.Refund)) + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n + return nil } - -func (m *StateDBGetLogsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) +func (m *StateDBAddBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBAddBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBAddBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } - return n -} -func (m *StateDBGetLogsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Logs) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { +func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3463,15 +5656,34 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PrepareTxRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBSubBalanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PrepareTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBSubBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -3498,16 +5710,16 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) - if m.TxHash == nil { - m.TxHash = []byte{} + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} } iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var msglen int + m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3517,31 +5729,133 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Amount |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthQuery + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBSubBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &types.Header{} + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBSubBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBSubBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 3: + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBSetNonceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBSetNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -3568,16 +5882,16 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) - if m.Msg == nil { - m.Msg = []byte{} + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} } iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvmConfig", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) } - var byteLen int + m.Nonce = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3587,26 +5901,11 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.Nonce |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EvmConfig = append(m.EvmConfig[:0], dAtA[iNdEx:postIndex]...) - if m.EvmConfig == nil { - m.EvmConfig = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3628,7 +5927,7 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *PrepareTxResponse) Unmarshal(dAtA []byte) error { +func (m *StateDBSetNonceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3651,31 +5950,12 @@ func (m *PrepareTxResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PrepareTxResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBSetNonceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PrepareTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBSetNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) - } - m.HandlerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3697,7 +5977,7 @@ func (m *PrepareTxResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateRequest) Unmarshal(dAtA []byte) error { +func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3720,10 +6000,10 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBIncreaseNonceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBIncreaseNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3779,78 +6059,56 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { m.Caller = []byte{} } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) - if m.Code == nil { - m.Code = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) - } - m.Gas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Gas |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBIncreaseNonceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.Value = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Value |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBIncreaseNonceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBIncreaseNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3872,7 +6130,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateResponse) Unmarshal(dAtA []byte) error { +func (m *Rules) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3895,17 +6153,96 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Rules: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Rules: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsHomestead", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsHomestead = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEIP150", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsEIP150 = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEIP155", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsEIP155 = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEIP158", wireType) } - var byteLen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3915,31 +6252,17 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) - if m.Ret == nil { - m.Ret = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractAddr", wireType) + m.IsEIP158 = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsByzantium", wireType) } - var byteLen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3949,31 +6272,17 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractAddr = append(m.ContractAddr[:0], dAtA[iNdEx:postIndex]...) - if m.ContractAddr == nil { - m.ContractAddr = []byte{} - } - iNdEx = postIndex - case 3: + m.IsByzantium = bool(v != 0) + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsConstantinople", wireType) } - m.LeftOverGas = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3983,66 +6292,17 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LeftOverGas |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CallRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CallRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CallRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.IsConstantinople = bool(v != 0) + case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsPetersburg", wireType) } - m.HandlerId = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4052,16 +6312,17 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + m.IsPetersburg = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsIstanbul", wireType) } - var byteLen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4071,31 +6332,17 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + m.IsIstanbul = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsBerlin", wireType) } - var byteLen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4105,31 +6352,37 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF + m.IsBerlin = bool(v != 0) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsLondon", wireType) } - m.Addr = append(m.Addr[:0], dAtA[iNdEx:postIndex]...) - if m.Addr == nil { - m.Addr = []byte{} + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) + m.IsLondon = bool(v != 0) + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsMerge", wireType) } - var byteLen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4139,31 +6392,57 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery + m.IsMerge = bool(v != 0) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsShanghai", wireType) } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return io.ErrUnexpectedEOF + m.IsShanghai = bool(v != 0) + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsCancun", wireType) } - m.Input = append(m.Input[:0], dAtA[iNdEx:postIndex]...) - if m.Input == nil { - m.Input = []byte{} + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 5: + m.IsCancun = bool(v != 0) + case 15: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsPrague", wireType) } - m.Gas = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4173,16 +6452,17 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Gas |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 6: + m.IsPrague = bool(v != 0) + case 16: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsVerkle", wireType) } - m.Value = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4192,11 +6472,12 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Value |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } + m.IsVerkle = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4218,7 +6499,7 @@ func (m *CallRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CallResponse) Unmarshal(dAtA []byte) error { +func (m *AccessTuple) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4241,15 +6522,15 @@ func (m *CallResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CallResponse: wiretype end group for non-group") + return fmt.Errorf("proto: AccessTuple: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CallResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AccessTuple: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -4276,16 +6557,16 @@ func (m *CallResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) - if m.Ret == nil { - m.Ret = []byte{} + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StorageKeys", wireType) } - m.LeftOverGas = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4295,130 +6576,24 @@ func (m *CallResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LeftOverGas |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CommitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CommitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CommitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) - } - m.HandlerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + byteLen + if postIndex < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CommitResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CommitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + m.StorageKeys = append(m.StorageKeys, make([]byte, postIndex-iNdEx)) + copy(m.StorageKeys[len(m.StorageKeys)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4440,7 +6615,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { +func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4463,10 +6638,10 @@ func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBAddBalanceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBPrepareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBAddBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBPrepareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4490,7 +6665,7 @@ func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -4517,16 +6692,16 @@ func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} + m.Sender = append(m.Sender[:0], dAtA[iNdEx:postIndex]...) + if m.Sender == nil { + m.Sender = []byte{} } iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coinbase", wireType) } - m.Amount = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4536,116 +6711,31 @@ func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Amount |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBAddBalanceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBAddBalanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBAddBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + byteLen + if postIndex < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Coinbase = append(m.Coinbase[:0], dAtA[iNdEx:postIndex]...) + if m.Coinbase == nil { + m.Coinbase = []byte{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBSubBalanceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBSubBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType) } - m.HandlerId = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4655,16 +6745,31 @@ func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Dest = append(m.Dest[:0], dAtA[iNdEx:postIndex]...) + if m.Dest == nil { + m.Dest = []byte{} + } + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4674,31 +6779,33 @@ func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} + if m.Rules == nil { + m.Rules = &Rules{} + } + if err := m.Rules.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessList", wireType) } - m.Amount = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4708,11 +6815,26 @@ func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Amount |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AccessList = append(m.AccessList, &AccessTuple{}) + if err := m.AccessList[len(m.AccessList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4734,7 +6856,7 @@ func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBSubBalanceResponse) Unmarshal(dAtA []byte) error { +func (m *StateDBPrepareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4757,10 +6879,10 @@ func (m *StateDBSubBalanceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBSubBalanceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBPrepareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBSubBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBPrepareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4784,7 +6906,7 @@ func (m *StateDBSubBalanceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { +func (m *StateDBGetRefundRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4807,10 +6929,10 @@ func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBSetNonceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBGetRefundRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBSetNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBGetRefundRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4832,59 +6954,6 @@ func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { break } } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - m.Nonce = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Nonce |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4906,7 +6975,7 @@ func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBSetNonceResponse) Unmarshal(dAtA []byte) error { +func (m *StateDBGetRefundResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4929,12 +6998,31 @@ func (m *StateDBSetNonceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBSetNonceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBGetRefundResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBSetNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBGetRefundResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Refund", wireType) + } + m.Refund = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Refund |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4956,7 +7044,7 @@ func (m *StateDBSetNonceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { +func (m *StateDBGetLogsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4979,10 +7067,10 @@ func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBIncreaseNonceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBGetLogsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBIncreaseNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBGetLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5004,40 +7092,6 @@ func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { break } } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5059,7 +7113,7 @@ func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBIncreaseNonceResponse) Unmarshal(dAtA []byte) error { +func (m *StateDBGetLogsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5082,12 +7136,46 @@ func (m *StateDBIncreaseNonceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBIncreaseNonceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBGetLogsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBIncreaseNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBGetLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Log = append(m.Log, &EthLog{}) + if err := m.Log[len(m.Log)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5109,7 +7197,7 @@ func (m *StateDBIncreaseNonceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rules) Unmarshal(dAtA []byte) error { +func (m *Message) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5132,17 +7220,17 @@ func (m *Rules) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Rules: wiretype end group for non-group") + return fmt.Errorf("proto: Message: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Rules: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } - m.ChainId = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5152,16 +7240,31 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChainId |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = append(m.To[:0], dAtA[iNdEx:postIndex]...) + if m.To == nil { + m.To = []byte{} + } + iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsHomestead", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } - var v int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5171,17 +7274,31 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsHomestead = bool(v != 0) + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = append(m.From[:0], dAtA[iNdEx:postIndex]...) + if m.From == nil { + m.From = []byte{} + } + iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEIP150", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) } - var v int + m.Nonce = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5191,17 +7308,16 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.Nonce |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsEIP150 = bool(v != 0) case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEIP155", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var v int + m.Value = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5211,17 +7327,16 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.Value |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsEIP155 = bool(v != 0) case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEIP158", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType) } - var v int + m.GasLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5231,17 +7346,16 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.GasLimit |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsEIP158 = bool(v != 0) case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsByzantium", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GasPrice", wireType) } - var v int + m.GasPrice = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5251,17 +7365,16 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.GasPrice |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsByzantium = bool(v != 0) case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsConstantinople", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GasFeeCap", wireType) } - var v int + m.GasFeeCap = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5271,17 +7384,16 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.GasFeeCap |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsConstantinople = bool(v != 0) case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPetersburg", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GasTipCap", wireType) } - var v int + m.GasTipCap = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5291,37 +7403,16 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.GasTipCap |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsPetersburg = bool(v != 0) case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsIstanbul", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsIstanbul = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsBerlin", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - var v int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5331,57 +7422,31 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsBerlin = bool(v != 0) - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsLondon", wireType) + if byteLen < 0 { + return ErrInvalidLengthQuery } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery } - m.IsLondon = bool(v != 0) - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsMerge", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} } - m.IsMerge = bool(v != 0) - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsShanghai", wireType) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessList", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5391,57 +7456,31 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsShanghai = bool(v != 0) - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsCancun", wireType) + if msglen < 0 { + return ErrInvalidLengthQuery } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery } - m.IsCancun = bool(v != 0) - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPrague", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.AccessList = append(m.AccessList, AccessTuple{}) + if err := m.AccessList[len(m.AccessList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.IsPrague = bool(v != 0) - case 16: + iNdEx = postIndex + case 11: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsVerkle", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlobGasFeeCap", wireType) } - var v int + m.BlobGasFeeCap = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5451,65 +7490,14 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.BlobGasFeeCap |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsVerkle = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccessTuple) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccessTuple: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccessTuple: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 12: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlobHashes", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -5536,16 +7524,14 @@ func (m *AccessTuple) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) - if m.Address == nil { - m.Address = []byte{} - } + m.BlobHashes = append(m.BlobHashes, make([]byte, postIndex-iNdEx)) + copy(m.BlobHashes[len(m.BlobHashes)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageKeys", wireType) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipAccountChecks", wireType) } - var byteLen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5555,24 +7541,12 @@ func (m *AccessTuple) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StorageKeys = append(m.StorageKeys, make([]byte, postIndex-iNdEx)) - copy(m.StorageKeys[len(m.StorageKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex + m.SkipAccountChecks = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5594,7 +7568,7 @@ func (m *AccessTuple) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { +func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5617,17 +7591,17 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBPrepareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PrepareTxEVMConfig: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBPrepareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PrepareTxEVMConfig: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainConfigJson", wireType) } - m.HandlerId = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5637,14 +7611,29 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainConfigJson = append(m.ChainConfigJson[:0], dAtA[iNdEx:postIndex]...) + if m.ChainConfigJson == nil { + m.ChainConfigJson = []byte{} + } + iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CoinBase", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -5671,16 +7660,16 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Sender = append(m.Sender[:0], dAtA[iNdEx:postIndex]...) - if m.Sender == nil { - m.Sender = []byte{} + m.CoinBase = append(m.CoinBase[:0], dAtA[iNdEx:postIndex]...) + if m.CoinBase == nil { + m.CoinBase = []byte{} } iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coinbase", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) } - var byteLen int + m.BaseFee = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5690,31 +7679,16 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.BaseFee |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Coinbase = append(m.Coinbase[:0], dAtA[iNdEx:postIndex]...) - if m.Coinbase == nil { - m.Coinbase = []byte{} - } - iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TxConfig", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5724,31 +7698,70 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Dest = append(m.Dest[:0], dAtA[iNdEx:postIndex]...) - if m.Dest == nil { - m.Dest = []byte{} + if err := m.TxConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DebugTrace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DebugTrace = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoBaseFee", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoBaseFee = bool(v != 0) + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EvmDenom", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5758,33 +7771,105 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Rules == nil { - m.Rules = &Rules{} - } - if err := m.Rules.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.EvmDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: + case 8: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExtraEips = append(m.ExtraEips, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.ExtraEips) == 0 { + m.ExtraEips = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExtraEips = append(m.ExtraEips, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ExtraEips", wireType) + } + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessList", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Overrides", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5794,24 +7879,24 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.AccessList = append(m.AccessList, &AccessTuple{}) - if err := m.AccessList[len(m.AccessList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Overrides = append(m.Overrides[:0], dAtA[iNdEx:postIndex]...) + if m.Overrides == nil { + m.Overrides = []byte{} } iNdEx = postIndex default: @@ -5835,7 +7920,7 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBPrepareResponse) Unmarshal(dAtA []byte) error { +func (m *TxConfig) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5858,67 +7943,104 @@ func (m *StateDBPrepareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBPrepareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: TxConfig: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBPrepareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TxConfig: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBGetRefundRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) + if m.BlockHash == nil { + m.BlockHash = []byte{} } - if iNdEx >= l { + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) + if m.TxHash == nil { + m.TxHash = []byte{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBGetRefundRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBGetRefundRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) + } + m.TxIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TxIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LogIndex", wireType) } - m.HandlerId = 0 + m.LogIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5928,7 +8050,7 @@ func (m *StateDBGetRefundRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift + m.LogIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5954,7 +8076,7 @@ func (m *StateDBGetRefundRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBGetRefundResponse) Unmarshal(dAtA []byte) error { +func (m *EthLog) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5977,17 +8099,17 @@ func (m *StateDBGetRefundResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBGetRefundResponse: wiretype end group for non-group") + return fmt.Errorf("proto: EthLog: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBGetRefundResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EthLog: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Refund", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - m.Refund = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5997,66 +8119,97 @@ func (m *StateDBGetRefundResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Refund |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err + if byteLen < 0 { + return ErrInvalidLengthQuery } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + byteLen + if postIndex < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBGetLogsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} } - if iNdEx >= l { + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Topics = append(m.Topics, make([]byte, postIndex-iNdEx)) + copy(m.Topics[len(m.Topics)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBGetLogsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBGetLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) } - m.HandlerId = 0 + m.BlockNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6066,64 +8219,67 @@ func (m *StateDBGetLogsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift + m.BlockNumber |= uint64(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBGetLogsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) + if m.TxHash == nil { + m.TxHash = []byte{} } - if iNdEx >= l { - return io.ErrUnexpectedEOF + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.TxIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TxIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBGetLogsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBGetLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6150,11 +8306,50 @@ func (m *StateDBGetLogsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Logs = append(m.Logs[:0], dAtA[iNdEx:postIndex]...) - if m.Logs == nil { - m.Logs = []byte{} + m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) + if m.BlockHash == nil { + m.BlockHash = []byte{} } iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Removed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Removed = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) From 0a5a6774e218c0aee79b41d82fbb5ff4edcf4b43 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Wed, 24 Apr 2024 16:17:27 +0000 Subject: [PATCH 35/46] chore: work on overrides --- proto/ethermint/sgx/v1/query.proto | 91 +- x/evm/keeper/state_transition.go | 115 +- x/sgx/types/query.pb.go | 3066 +++++++++++++++++++++++----- 3 files changed, 2797 insertions(+), 475 deletions(-) diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index 7e4ee54b07..bcea8b91ce 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -264,7 +264,7 @@ message PrepareTxEVMConfig { // underlying params.ChainConfig struct contains pointer fields, they are // not serializable over RPC with gob. Instead, the JSON representation is // used. - bytes chain_config_json = 1; + ChainConfig chain_config_json = 1[(gogoproto.nullable) = false]; // Fields from EVMConfig // Original type: common.Address bytes coin_base = 2; @@ -282,6 +282,80 @@ message PrepareTxEVMConfig { bytes overrides = 9; } +message ChainConfig { + // *big.Int + uint64 chain_i_d = 1; // chainId identifies the current chain and is used for replay protection + // *big.Int + uint64 homestead_block = 2; // Homestead switch block (nil = no fork, 0 = already homestead) + + // *big.Int + uint64 d_a_o_fork_block = 3; // TheDAO hard-fork switch block (nil = no fork) + bool d_a_o_fork_support = 4; // Whether the nodes supports or opposes the DAO hard-fork + + // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) + // *big.Int + uint64 e_i_p_150_block = 5; // EIP150 HF block (nil = no fork) + // *big.Int + uint64 e_i_p155_block = 6; // EIP155 HF block + // *big.Int + uint64 e_i_p158_block = 7; // EIP158 HF block + + // *big.Int + uint64 byzantium_block = 8; // Byzantium switch block (nil = no fork, 0 = already on byzantium) + // *big.Int + uint64 constantinople_block = 9; // Constantinople switch block (nil = no fork, 0 = already activated) + // *big.Int + uint64 petersburg_block = 10; // Petersburg switch block (nil = same as Constantinople) + // *big.Int + uint64 istanbul_block = 11; // Istanbul switch block (nil = no fork, 0 = already on istanbul) + // *big.Int + uint64 muir_glacier_block = 12; // Eip-2384 (bomb delay) switch block (nil = no fork, 0 = already activated) + // *big.Int + uint64 berlin_block = 13; // Berlin switch block (nil = no fork, 0 = already on berlin) + // *big.Int + uint64 london_block = 14; // London switch block (nil = no fork, 0 = already on london) + // *big.Int + uint64 arrow_glacier_block = 15; // Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated) + // *big.Int + uint64 gray_glacier_block = 16; // Eip-5133 (bomb delay) switch block (nil = no fork, 0 = already activated) + // *big.Int + uint64 merge_netsplit_block = 17; // Virtual fork after The Merge to use as a network splitter + + // Fork scheduling was switched from blocks to timestamps here + + // *uint64 + uint64 shanghai_time = 18[(gogoproto.nullable) = true]; // Shanghai switch time (nil = no fork, 0 = already on shanghai) + // *uint64 + uint64 cancun_time = 19[(gogoproto.nullable) = true]; // Cancun switch time (nil = no fork, 0 = already on cancun) + // *uint64 + uint64 prague_time = 20[(gogoproto.nullable) = true]; // Prague switch time (nil = no fork, 0 = already on prague) + // *uint64 + uint64 verkle_time = 21[(gogoproto.nullable) = true]; // Verkle switch time (nil = no fork, 0 = already on verkle) + + // TerminalTotalDifficulty is the amount of total difficulty reached by + // the network that triggers the consensus upgrade. + // *big.Int + uint64 terminal_total_difficulty = 22; + + // TerminalTotalDifficultyPassed is a flag specifying that the network already + // passed the terminal total difficulty. Its purpose is to disable legacy sync + // even without having seen the TTD locally (safer long term). + bool terminal_total_difficulty_passed = 23; + + // Various consensus engines + EthashConfig ethash = 24; + CliqueConfig clique = 25; + bool is_dev_mode = 26; +} + +message EthashConfig {} + +// CliqueConfig is the consensus engine configs for proof-of-authority based sealing. +message CliqueConfig { + uint64 Period = 1; // Number of seconds between blocks to enforce + uint64 Epoch = 2; // Epoch length to reset votes and checkpoint +} + // TxConfig encapulates the readonly information of current tx for `StateDB`. message TxConfig { // Original type: common.Hash @@ -319,4 +393,17 @@ message EthLog { // The Removed field is true if this log was reverted due to a chain reorganisation. // You must pay attention to this field if you receive logs through a filter query. bool removed = 9; -} \ No newline at end of file +} + +message OverrideAccount { + // *hexutil.Uint64 + uint64 Nonce = 1; + // *hexutil.Bytes + bytes Code = 2; + // **hexutil.Big + repeated uint64 Balance = 3; + // *map[common.Hash]common.Hash + map state = 4; + // *map[common.Hash]common.Hash + map state_diff = 5; +} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index eda16dae57..c6ca2c930d 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -17,7 +17,6 @@ package keeper import ( "context" - "encoding/json" "fmt" "math/big" "net" @@ -642,6 +641,83 @@ func (k *Keeper) ApplyMessageWithConfig( }, nil } +func (k *Keeper) prepareSgxChainConfig(cfg *EVMConfig) sgxtypes.ChainConfig { + chainConfig := cfg.ChainConfig + sgxChainConfig := sgxtypes.ChainConfig{ + // *big.Int + ChainID: chainConfig.ChainID.Uint64(), + // *big.Int + HomesteadBlock: chainConfig.HomesteadBlock.Uint64(), + // *big.Int + DAOForkBlock: chainConfig.DAOForkBlock.Uint64(), + DAOForkSupport: chainConfig.DAOForkSupport, + // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) + // *big.Int + EIP_150Block: chainConfig.EIP150Block.Uint64(), + // *big.Int + EIP155Block: chainConfig.EIP155Block.Uint64(), + // *big.Int + EIP158Block: chainConfig.EIP158Block.Uint64(), + // *big.Int + ByzantiumBlock: chainConfig.ByzantiumBlock.Uint64(), + // *big.Int + ConstantinopleBlock: chainConfig.ConstantinopleBlock.Uint64(), + // *big.Int + PetersburgBlock: chainConfig.PetersburgBlock.Uint64(), + // *big.Int + IstanbulBlock: chainConfig.IstanbulBlock.Uint64(), + // *big.Int + MuirGlacierBlock: chainConfig.MuirGlacierBlock.Uint64(), + // *big.Int + BerlinBlock: chainConfig.BerlinBlock.Uint64(), + // *big.Int + LondonBlock: chainConfig.LondonBlock.Uint64(), + // *big.Int + ArrowGlacierBlock: chainConfig.ArrowGlacierBlock.Uint64(), + // *big.Int + GrayGlacierBlock: chainConfig.GrayGlacierBlock.Uint64(), + // *big.Int + MergeNetsplitBlock: chainConfig.MergeNetsplitBlock.Uint64(), + + // TerminalTotalDifficulty is the amount of total difficulty reached by + // the network that triggers the consensus upgrade. + // *big.Int + TerminalTotalDifficulty: chainConfig.TerminalTotalDifficulty.Uint64(), + // TerminalTotalDifficultyPassed is a flag specifying that the network already + // passed the terminal total difficulty. Its purpose is to disable legacy sync + // even without having seen the TTD locally (safer long term). + TerminalTotalDifficultyPassed: chainConfig.TerminalTotalDifficultyPassed, + // Various consensus engines + Ethash: &sgxtypes.EthashConfig{}, + IsDevMode: chainConfig.IsDevMode, + } + + if chainConfig.Clique != nil { + sgxChainConfig.Clique = &sgxtypes.CliqueConfig{ + Period: chainConfig.Clique.Period, + Epoch: chainConfig.Clique.Epoch, + } + } + + if chainConfig.ShanghaiTime != nil { + sgxChainConfig.ShanghaiTime = *chainConfig.ShanghaiTime + } + + if chainConfig.CancunTime != nil { + sgxChainConfig.CancunTime = *chainConfig.CancunTime + } + + if chainConfig.PragueTime != nil { + sgxChainConfig.PragueTime = *chainConfig.PragueTime + } + + if chainConfig.VerkleTime != nil { + sgxChainConfig.VerkleTime = *chainConfig.VerkleTime + } + + return sgxChainConfig +} + // prepareTxForSgx prepares the transaction for the SGX enclave. It: // - creates an RPC server around the keeper to receive requests sent by the // SGX @@ -649,16 +725,35 @@ func (k *Keeper) ApplyMessageWithConfig( // block info func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxGrpcClient sgxtypes.QueryServiceClient) (uint64, error) { // Step 1. Send a "PrepareTx" request to the SGX enclave. - ChainConfigJson, err := json.Marshal(cfg.ChainConfig) - if err != nil { - return 0, err - } + chainConfig := k.prepareSgxChainConfig(cfg) - var overrides []byte + overrides := make(map[string]sgxtypes.OverrideAccount, 0) if cfg.Overrides != nil { - overrides, err = json.Marshal(cfg.Overrides) - if err != nil { - return 0, err + for address, account := range *cfg.Overrides { + overrideAccount := sgxtypes.OverrideAccount{} + if account.Nonce != nil { + overrideAccount.Nonce = uint64(*account.Nonce) + } + + if account.Code != nil { + overrideAccount.Code = []byte(*account.Code) + } + + *account.Balance. + if account.Balance != nil { + overrideAccount.Balance = *big.Int(account.Balance) + } + // // *hexutil.Uint64 + // Nonce: uint64(*account.Nonce), + // // *hexutil.Bytes + // Code: acccount.Code, + // // **hexutil.Big + // Balance: account.Balance, + + // *map[common.Hash]common.Hash + // State map[string]string `protobuf:"bytes,4,rep,name=state,proto3" json:"state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // *map[common.Hash]common.Hash + // StateDiff map[string]string `protobuf:"bytes,5,rep,name=state_diff,json=stateDiff,proto3" json:"state_diff,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } } @@ -666,7 +761,7 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf // Prepare EvmConfig evmConfig := sgxtypes.PrepareTxEVMConfig{ - ChainConfigJson: ChainConfigJson, + ChainConfigJson: chainConfig, CoinBase: cfg.CoinBase.Bytes(), BaseFee: cfg.BaseFee.Uint64(), DebugTrace: cfg.DebugTrace, diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index f905ddf5b9..04e18f6573 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -1581,7 +1581,7 @@ type PrepareTxEVMConfig struct { // underlying params.ChainConfig struct contains pointer fields, they are // not serializable over RPC with gob. Instead, the JSON representation is // used. - ChainConfigJson []byte `protobuf:"bytes,1,opt,name=chain_config_json,json=chainConfigJson,proto3" json:"chain_config_json,omitempty"` + ChainConfigJson ChainConfig `protobuf:"bytes,1,opt,name=chain_config_json,json=chainConfigJson,proto3" json:"chain_config_json"` // Fields from EVMConfig // Original type: common.Address CoinBase []byte `protobuf:"bytes,2,opt,name=coin_base,json=coinBase,proto3" json:"coin_base,omitempty"` @@ -1632,11 +1632,11 @@ func (m *PrepareTxEVMConfig) XXX_DiscardUnknown() { var xxx_messageInfo_PrepareTxEVMConfig proto.InternalMessageInfo -func (m *PrepareTxEVMConfig) GetChainConfigJson() []byte { +func (m *PrepareTxEVMConfig) GetChainConfigJson() ChainConfig { if m != nil { return m.ChainConfigJson } - return nil + return ChainConfig{} } func (m *PrepareTxEVMConfig) GetCoinBase() []byte { @@ -1695,6 +1695,367 @@ func (m *PrepareTxEVMConfig) GetOverrides() []byte { return nil } +type ChainConfig struct { + // *big.Int + ChainID uint64 `protobuf:"varint,1,opt,name=chain_i_d,json=chainID,proto3" json:"chain_i_d,omitempty"` + // *big.Int + HomesteadBlock uint64 `protobuf:"varint,2,opt,name=homestead_block,json=homesteadBlock,proto3" json:"homestead_block,omitempty"` + // *big.Int + DAOForkBlock uint64 `protobuf:"varint,3,opt,name=d_a_o_fork_block,json=dAOForkBlock,proto3" json:"d_a_o_fork_block,omitempty"` + DAOForkSupport bool `protobuf:"varint,4,opt,name=d_a_o_fork_support,json=dAOForkSupport,proto3" json:"d_a_o_fork_support,omitempty"` + // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) + // *big.Int + EIP_150Block uint64 `protobuf:"varint,5,opt,name=e_i_p_150_block,json=eIP150Block,proto3" json:"e_i_p_150_block,omitempty"` + // *big.Int + EIP155Block uint64 `protobuf:"varint,6,opt,name=e_i_p155_block,json=eIP155Block,proto3" json:"e_i_p155_block,omitempty"` + // *big.Int + EIP158Block uint64 `protobuf:"varint,7,opt,name=e_i_p158_block,json=eIP158Block,proto3" json:"e_i_p158_block,omitempty"` + // *big.Int + ByzantiumBlock uint64 `protobuf:"varint,8,opt,name=byzantium_block,json=byzantiumBlock,proto3" json:"byzantium_block,omitempty"` + // *big.Int + ConstantinopleBlock uint64 `protobuf:"varint,9,opt,name=constantinople_block,json=constantinopleBlock,proto3" json:"constantinople_block,omitempty"` + // *big.Int + PetersburgBlock uint64 `protobuf:"varint,10,opt,name=petersburg_block,json=petersburgBlock,proto3" json:"petersburg_block,omitempty"` + // *big.Int + IstanbulBlock uint64 `protobuf:"varint,11,opt,name=istanbul_block,json=istanbulBlock,proto3" json:"istanbul_block,omitempty"` + // *big.Int + MuirGlacierBlock uint64 `protobuf:"varint,12,opt,name=muir_glacier_block,json=muirGlacierBlock,proto3" json:"muir_glacier_block,omitempty"` + // *big.Int + BerlinBlock uint64 `protobuf:"varint,13,opt,name=berlin_block,json=berlinBlock,proto3" json:"berlin_block,omitempty"` + // *big.Int + LondonBlock uint64 `protobuf:"varint,14,opt,name=london_block,json=londonBlock,proto3" json:"london_block,omitempty"` + // *big.Int + ArrowGlacierBlock uint64 `protobuf:"varint,15,opt,name=arrow_glacier_block,json=arrowGlacierBlock,proto3" json:"arrow_glacier_block,omitempty"` + // *big.Int + GrayGlacierBlock uint64 `protobuf:"varint,16,opt,name=gray_glacier_block,json=grayGlacierBlock,proto3" json:"gray_glacier_block,omitempty"` + // *big.Int + MergeNetsplitBlock uint64 `protobuf:"varint,17,opt,name=merge_netsplit_block,json=mergeNetsplitBlock,proto3" json:"merge_netsplit_block,omitempty"` + // *uint64 + ShanghaiTime uint64 `protobuf:"varint,18,opt,name=shanghai_time,json=shanghaiTime,proto3" json:"shanghai_time,omitempty"` + // *uint64 + CancunTime uint64 `protobuf:"varint,19,opt,name=cancun_time,json=cancunTime,proto3" json:"cancun_time,omitempty"` + // *uint64 + PragueTime uint64 `protobuf:"varint,20,opt,name=prague_time,json=pragueTime,proto3" json:"prague_time,omitempty"` + // *uint64 + VerkleTime uint64 `protobuf:"varint,21,opt,name=verkle_time,json=verkleTime,proto3" json:"verkle_time,omitempty"` + // TerminalTotalDifficulty is the amount of total difficulty reached by + // the network that triggers the consensus upgrade. + // *big.Int + TerminalTotalDifficulty uint64 `protobuf:"varint,22,opt,name=terminal_total_difficulty,json=terminalTotalDifficulty,proto3" json:"terminal_total_difficulty,omitempty"` + // TerminalTotalDifficultyPassed is a flag specifying that the network already + // passed the terminal total difficulty. Its purpose is to disable legacy sync + // even without having seen the TTD locally (safer long term). + TerminalTotalDifficultyPassed bool `protobuf:"varint,23,opt,name=terminal_total_difficulty_passed,json=terminalTotalDifficultyPassed,proto3" json:"terminal_total_difficulty_passed,omitempty"` + // Various consensus engines + Ethash *EthashConfig `protobuf:"bytes,24,opt,name=ethash,proto3" json:"ethash,omitempty"` + Clique *CliqueConfig `protobuf:"bytes,25,opt,name=clique,proto3" json:"clique,omitempty"` + IsDevMode bool `protobuf:"varint,26,opt,name=is_dev_mode,json=isDevMode,proto3" json:"is_dev_mode,omitempty"` +} + +func (m *ChainConfig) Reset() { *m = ChainConfig{} } +func (m *ChainConfig) String() string { return proto.CompactTextString(m) } +func (*ChainConfig) ProtoMessage() {} +func (*ChainConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{26} +} +func (m *ChainConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChainConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ChainConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChainConfig.Merge(m, src) +} +func (m *ChainConfig) XXX_Size() int { + return m.Size() +} +func (m *ChainConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ChainConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ChainConfig proto.InternalMessageInfo + +func (m *ChainConfig) GetChainID() uint64 { + if m != nil { + return m.ChainID + } + return 0 +} + +func (m *ChainConfig) GetHomesteadBlock() uint64 { + if m != nil { + return m.HomesteadBlock + } + return 0 +} + +func (m *ChainConfig) GetDAOForkBlock() uint64 { + if m != nil { + return m.DAOForkBlock + } + return 0 +} + +func (m *ChainConfig) GetDAOForkSupport() bool { + if m != nil { + return m.DAOForkSupport + } + return false +} + +func (m *ChainConfig) GetEIP_150Block() uint64 { + if m != nil { + return m.EIP_150Block + } + return 0 +} + +func (m *ChainConfig) GetEIP155Block() uint64 { + if m != nil { + return m.EIP155Block + } + return 0 +} + +func (m *ChainConfig) GetEIP158Block() uint64 { + if m != nil { + return m.EIP158Block + } + return 0 +} + +func (m *ChainConfig) GetByzantiumBlock() uint64 { + if m != nil { + return m.ByzantiumBlock + } + return 0 +} + +func (m *ChainConfig) GetConstantinopleBlock() uint64 { + if m != nil { + return m.ConstantinopleBlock + } + return 0 +} + +func (m *ChainConfig) GetPetersburgBlock() uint64 { + if m != nil { + return m.PetersburgBlock + } + return 0 +} + +func (m *ChainConfig) GetIstanbulBlock() uint64 { + if m != nil { + return m.IstanbulBlock + } + return 0 +} + +func (m *ChainConfig) GetMuirGlacierBlock() uint64 { + if m != nil { + return m.MuirGlacierBlock + } + return 0 +} + +func (m *ChainConfig) GetBerlinBlock() uint64 { + if m != nil { + return m.BerlinBlock + } + return 0 +} + +func (m *ChainConfig) GetLondonBlock() uint64 { + if m != nil { + return m.LondonBlock + } + return 0 +} + +func (m *ChainConfig) GetArrowGlacierBlock() uint64 { + if m != nil { + return m.ArrowGlacierBlock + } + return 0 +} + +func (m *ChainConfig) GetGrayGlacierBlock() uint64 { + if m != nil { + return m.GrayGlacierBlock + } + return 0 +} + +func (m *ChainConfig) GetMergeNetsplitBlock() uint64 { + if m != nil { + return m.MergeNetsplitBlock + } + return 0 +} + +func (m *ChainConfig) GetShanghaiTime() uint64 { + if m != nil { + return m.ShanghaiTime + } + return 0 +} + +func (m *ChainConfig) GetCancunTime() uint64 { + if m != nil { + return m.CancunTime + } + return 0 +} + +func (m *ChainConfig) GetPragueTime() uint64 { + if m != nil { + return m.PragueTime + } + return 0 +} + +func (m *ChainConfig) GetVerkleTime() uint64 { + if m != nil { + return m.VerkleTime + } + return 0 +} + +func (m *ChainConfig) GetTerminalTotalDifficulty() uint64 { + if m != nil { + return m.TerminalTotalDifficulty + } + return 0 +} + +func (m *ChainConfig) GetTerminalTotalDifficultyPassed() bool { + if m != nil { + return m.TerminalTotalDifficultyPassed + } + return false +} + +func (m *ChainConfig) GetEthash() *EthashConfig { + if m != nil { + return m.Ethash + } + return nil +} + +func (m *ChainConfig) GetClique() *CliqueConfig { + if m != nil { + return m.Clique + } + return nil +} + +func (m *ChainConfig) GetIsDevMode() bool { + if m != nil { + return m.IsDevMode + } + return false +} + +type EthashConfig struct { +} + +func (m *EthashConfig) Reset() { *m = EthashConfig{} } +func (m *EthashConfig) String() string { return proto.CompactTextString(m) } +func (*EthashConfig) ProtoMessage() {} +func (*EthashConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{27} +} +func (m *EthashConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EthashConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EthashConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EthashConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_EthashConfig.Merge(m, src) +} +func (m *EthashConfig) XXX_Size() int { + return m.Size() +} +func (m *EthashConfig) XXX_DiscardUnknown() { + xxx_messageInfo_EthashConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_EthashConfig proto.InternalMessageInfo + +// CliqueConfig is the consensus engine configs for proof-of-authority based sealing. +type CliqueConfig struct { + Period uint64 `protobuf:"varint,1,opt,name=Period,proto3" json:"Period,omitempty"` + Epoch uint64 `protobuf:"varint,2,opt,name=Epoch,proto3" json:"Epoch,omitempty"` +} + +func (m *CliqueConfig) Reset() { *m = CliqueConfig{} } +func (m *CliqueConfig) String() string { return proto.CompactTextString(m) } +func (*CliqueConfig) ProtoMessage() {} +func (*CliqueConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{28} +} +func (m *CliqueConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CliqueConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CliqueConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CliqueConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CliqueConfig.Merge(m, src) +} +func (m *CliqueConfig) XXX_Size() int { + return m.Size() +} +func (m *CliqueConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CliqueConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CliqueConfig proto.InternalMessageInfo + +func (m *CliqueConfig) GetPeriod() uint64 { + if m != nil { + return m.Period + } + return 0 +} + +func (m *CliqueConfig) GetEpoch() uint64 { + if m != nil { + return m.Epoch + } + return 0 +} + // TxConfig encapulates the readonly information of current tx for `StateDB`. type TxConfig struct { // Original type: common.Hash @@ -1709,7 +2070,7 @@ func (m *TxConfig) Reset() { *m = TxConfig{} } func (m *TxConfig) String() string { return proto.CompactTextString(m) } func (*TxConfig) ProtoMessage() {} func (*TxConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{26} + return fileDescriptor_1d9fb6e76534f03e, []int{29} } func (m *TxConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1798,7 +2159,7 @@ func (m *EthLog) Reset() { *m = EthLog{} } func (m *EthLog) String() string { return proto.CompactTextString(m) } func (*EthLog) ProtoMessage() {} func (*EthLog) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{27} + return fileDescriptor_1d9fb6e76534f03e, []int{30} } func (m *EthLog) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1890,153 +2251,277 @@ func (m *EthLog) GetRemoved() bool { return false } -func init() { - proto.RegisterType((*PrepareTxRequest)(nil), "ethermint.sgx.v1.PrepareTxRequest") - proto.RegisterType((*PrepareTxResponse)(nil), "ethermint.sgx.v1.PrepareTxResponse") - proto.RegisterType((*CreateRequest)(nil), "ethermint.sgx.v1.CreateRequest") - proto.RegisterType((*CreateResponse)(nil), "ethermint.sgx.v1.CreateResponse") - proto.RegisterType((*CallRequest)(nil), "ethermint.sgx.v1.CallRequest") - proto.RegisterType((*CallResponse)(nil), "ethermint.sgx.v1.CallResponse") - proto.RegisterType((*CommitRequest)(nil), "ethermint.sgx.v1.CommitRequest") - proto.RegisterType((*CommitResponse)(nil), "ethermint.sgx.v1.CommitResponse") - proto.RegisterType((*StateDBAddBalanceRequest)(nil), "ethermint.sgx.v1.StateDBAddBalanceRequest") - proto.RegisterType((*StateDBAddBalanceResponse)(nil), "ethermint.sgx.v1.StateDBAddBalanceResponse") - proto.RegisterType((*StateDBSubBalanceRequest)(nil), "ethermint.sgx.v1.StateDBSubBalanceRequest") - proto.RegisterType((*StateDBSubBalanceResponse)(nil), "ethermint.sgx.v1.StateDBSubBalanceResponse") - proto.RegisterType((*StateDBSetNonceRequest)(nil), "ethermint.sgx.v1.StateDBSetNonceRequest") - proto.RegisterType((*StateDBSetNonceResponse)(nil), "ethermint.sgx.v1.StateDBSetNonceResponse") - proto.RegisterType((*StateDBIncreaseNonceRequest)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceRequest") - proto.RegisterType((*StateDBIncreaseNonceResponse)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceResponse") - proto.RegisterType((*Rules)(nil), "ethermint.sgx.v1.Rules") - proto.RegisterType((*AccessTuple)(nil), "ethermint.sgx.v1.AccessTuple") - proto.RegisterType((*StateDBPrepareRequest)(nil), "ethermint.sgx.v1.StateDBPrepareRequest") - proto.RegisterType((*StateDBPrepareResponse)(nil), "ethermint.sgx.v1.StateDBPrepareResponse") - proto.RegisterType((*StateDBGetRefundRequest)(nil), "ethermint.sgx.v1.StateDBGetRefundRequest") - proto.RegisterType((*StateDBGetRefundResponse)(nil), "ethermint.sgx.v1.StateDBGetRefundResponse") - proto.RegisterType((*StateDBGetLogsRequest)(nil), "ethermint.sgx.v1.StateDBGetLogsRequest") - proto.RegisterType((*StateDBGetLogsResponse)(nil), "ethermint.sgx.v1.StateDBGetLogsResponse") - proto.RegisterType((*Message)(nil), "ethermint.sgx.v1.Message") - proto.RegisterType((*PrepareTxEVMConfig)(nil), "ethermint.sgx.v1.PrepareTxEVMConfig") - proto.RegisterType((*TxConfig)(nil), "ethermint.sgx.v1.TxConfig") - proto.RegisterType((*EthLog)(nil), "ethermint.sgx.v1.EthLog") +type OverrideAccount struct { + // *hexutil.Uint64 + Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"` + // *hexutil.Bytes + Code []byte `protobuf:"bytes,2,opt,name=Code,proto3" json:"Code,omitempty"` + // **hexutil.Big + Balance []uint64 `protobuf:"varint,3,rep,packed,name=Balance,proto3" json:"Balance,omitempty"` + // *map[common.Hash]common.Hash + State map[string]string `protobuf:"bytes,4,rep,name=state,proto3" json:"state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // *map[common.Hash]common.Hash + StateDiff map[string]string `protobuf:"bytes,5,rep,name=state_diff,json=stateDiff,proto3" json:"state_diff,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } - -var fileDescriptor_1d9fb6e76534f03e = []byte{ - // 1747 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x18, 0x4d, 0x6f, 0xdb, 0xc8, - 0xd5, 0xb2, 0x64, 0x59, 0x7a, 0x92, 0x1d, 0x79, 0x9a, 0x3a, 0xb4, 0x92, 0x28, 0x5e, 0x6e, 0xd1, - 0x75, 0xb3, 0x58, 0x79, 0xed, 0x22, 0x8b, 0x5c, 0x5a, 0x34, 0xb6, 0xb3, 0x8e, 0xb7, 0xce, 0xd6, - 0x65, 0x8c, 0x1c, 0x7a, 0x21, 0x46, 0xe4, 0x33, 0x35, 0x35, 0xc9, 0xe1, 0x72, 0x46, 0xaa, 0xbc, - 0xc7, 0x02, 0xbd, 0xf7, 0xd4, 0xbf, 0xd0, 0xbf, 0xb2, 0x40, 0x2f, 0x8b, 0x9e, 0x7a, 0x2a, 0xda, - 0xe4, 0xdc, 0x5b, 0x7f, 0x40, 0x31, 0xc3, 0x21, 0x25, 0x59, 0x92, 0x2b, 0x20, 0x45, 0x2f, 0x02, - 0x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, 0x00, 0x00, 0xff, 0xff, 0x87, 0xa6, 0xd4, 0x58, 0xeb, - 0x12, 0x00, 0x00, +func (m *OverrideAccount) Reset() { *m = OverrideAccount{} } +func (m *OverrideAccount) String() string { return proto.CompactTextString(m) } +func (*OverrideAccount) ProtoMessage() {} +func (*OverrideAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{31} } - +func (m *OverrideAccount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OverrideAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OverrideAccount.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OverrideAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_OverrideAccount.Merge(m, src) +} +func (m *OverrideAccount) XXX_Size() int { + return m.Size() +} +func (m *OverrideAccount) XXX_DiscardUnknown() { + xxx_messageInfo_OverrideAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_OverrideAccount proto.InternalMessageInfo + +func (m *OverrideAccount) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *OverrideAccount) GetCode() []byte { + if m != nil { + return m.Code + } + return nil +} + +func (m *OverrideAccount) GetBalance() []uint64 { + if m != nil { + return m.Balance + } + return nil +} + +func (m *OverrideAccount) GetState() map[string]string { + if m != nil { + return m.State + } + return nil +} + +func (m *OverrideAccount) GetStateDiff() map[string]string { + if m != nil { + return m.StateDiff + } + return nil +} + +func init() { + proto.RegisterType((*PrepareTxRequest)(nil), "ethermint.sgx.v1.PrepareTxRequest") + proto.RegisterType((*PrepareTxResponse)(nil), "ethermint.sgx.v1.PrepareTxResponse") + proto.RegisterType((*CreateRequest)(nil), "ethermint.sgx.v1.CreateRequest") + proto.RegisterType((*CreateResponse)(nil), "ethermint.sgx.v1.CreateResponse") + proto.RegisterType((*CallRequest)(nil), "ethermint.sgx.v1.CallRequest") + proto.RegisterType((*CallResponse)(nil), "ethermint.sgx.v1.CallResponse") + proto.RegisterType((*CommitRequest)(nil), "ethermint.sgx.v1.CommitRequest") + proto.RegisterType((*CommitResponse)(nil), "ethermint.sgx.v1.CommitResponse") + proto.RegisterType((*StateDBAddBalanceRequest)(nil), "ethermint.sgx.v1.StateDBAddBalanceRequest") + proto.RegisterType((*StateDBAddBalanceResponse)(nil), "ethermint.sgx.v1.StateDBAddBalanceResponse") + proto.RegisterType((*StateDBSubBalanceRequest)(nil), "ethermint.sgx.v1.StateDBSubBalanceRequest") + proto.RegisterType((*StateDBSubBalanceResponse)(nil), "ethermint.sgx.v1.StateDBSubBalanceResponse") + proto.RegisterType((*StateDBSetNonceRequest)(nil), "ethermint.sgx.v1.StateDBSetNonceRequest") + proto.RegisterType((*StateDBSetNonceResponse)(nil), "ethermint.sgx.v1.StateDBSetNonceResponse") + proto.RegisterType((*StateDBIncreaseNonceRequest)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceRequest") + proto.RegisterType((*StateDBIncreaseNonceResponse)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceResponse") + proto.RegisterType((*Rules)(nil), "ethermint.sgx.v1.Rules") + proto.RegisterType((*AccessTuple)(nil), "ethermint.sgx.v1.AccessTuple") + proto.RegisterType((*StateDBPrepareRequest)(nil), "ethermint.sgx.v1.StateDBPrepareRequest") + proto.RegisterType((*StateDBPrepareResponse)(nil), "ethermint.sgx.v1.StateDBPrepareResponse") + proto.RegisterType((*StateDBGetRefundRequest)(nil), "ethermint.sgx.v1.StateDBGetRefundRequest") + proto.RegisterType((*StateDBGetRefundResponse)(nil), "ethermint.sgx.v1.StateDBGetRefundResponse") + proto.RegisterType((*StateDBGetLogsRequest)(nil), "ethermint.sgx.v1.StateDBGetLogsRequest") + proto.RegisterType((*StateDBGetLogsResponse)(nil), "ethermint.sgx.v1.StateDBGetLogsResponse") + proto.RegisterType((*Message)(nil), "ethermint.sgx.v1.Message") + proto.RegisterType((*PrepareTxEVMConfig)(nil), "ethermint.sgx.v1.PrepareTxEVMConfig") + proto.RegisterType((*ChainConfig)(nil), "ethermint.sgx.v1.ChainConfig") + proto.RegisterType((*EthashConfig)(nil), "ethermint.sgx.v1.EthashConfig") + proto.RegisterType((*CliqueConfig)(nil), "ethermint.sgx.v1.CliqueConfig") + proto.RegisterType((*TxConfig)(nil), "ethermint.sgx.v1.TxConfig") + proto.RegisterType((*EthLog)(nil), "ethermint.sgx.v1.EthLog") + proto.RegisterType((*OverrideAccount)(nil), "ethermint.sgx.v1.OverrideAccount") + proto.RegisterMapType((map[string]string)(nil), "ethermint.sgx.v1.OverrideAccount.StateDiffEntry") + proto.RegisterMapType((map[string]string)(nil), "ethermint.sgx.v1.OverrideAccount.StateEntry") +} + +func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } + +var fileDescriptor_1d9fb6e76534f03e = []byte{ + // 2348 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0xcf, 0x6f, 0x1b, 0xc7, + 0xf5, 0x17, 0x45, 0x89, 0x22, 0x1f, 0x29, 0x8a, 0x1a, 0x2b, 0xf2, 0x8a, 0xb6, 0x65, 0x65, 0xf3, + 0xc3, 0x8a, 0x93, 0x50, 0x96, 0xbe, 0x50, 0x20, 0x04, 0xf9, 0x16, 0xb5, 0x28, 0x45, 0x56, 0x6a, + 0xc7, 0x2a, 0x2d, 0xe4, 0xd0, 0xcb, 0x62, 0xb8, 0x3b, 0x5a, 0x4e, 0xb5, 0xdc, 0xa5, 0x77, 0x86, + 0x0c, 0x95, 0x63, 0x81, 0xde, 0x7b, 0xea, 0xbf, 0xd0, 0x7f, 0x25, 0x40, 0x2f, 0x39, 0xf6, 0x54, + 0xb4, 0xf6, 0xb9, 0xb7, 0x02, 0x3d, 0x15, 0x28, 0xe6, 0xc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x04, 0x9d, + 0x2e, 0xb6, 0x8a, 0x5c, 0x1c, 0x9f, 0x9e, 0xed, 0xee, 0x3f, 0x19, 0x17, 0xef, 0xe3, 0xd5, 0x19, + 0x89, 0xf7, 0xc7, 0xc5, 0x07, 0x78, 0x8b, 0x46, 0xe2, 0x03, 0xa3, 0xbf, 0x7d, 0xf5, 0x03, 0x0d, + 0x25, 0xef, 0x77, 0xf1, 0x46, 0xa1, 0xfe, 0xc3, 0x84, 0x45, 0x3e, 0x85, 0x55, 0x2e, 0x54, 0x80, + 0x15, 0x52, 0x71, 0xc2, 0xa8, 0x17, 0x30, 0x6b, 0x09, 0x71, 0x35, 0x2e, 0x9a, 0x63, 0x7c, 0x15, + 0x66, 0xb8, 0x70, 0x7a, 0x4c, 0xb2, 0x58, 0xb4, 0xfb, 0xb1, 0x6f, 0x15, 0x11, 0x58, 0xe1, 0xe2, + 0x2c, 0xe5, 0x91, 0x87, 0x68, 0x13, 0x57, 0xf3, 0xda, 0xfd, 0xc0, 0x2a, 0x21, 0x04, 0xb8, 0x38, + 0x35, 0x1c, 0x72, 0x0f, 0x4a, 0xca, 0x2a, 0x16, 0x07, 0x3c, 0xb4, 0x20, 0x31, 0xf9, 0x10, 0x69, + 0x23, 0x0c, 0xa2, 0xd0, 0x8b, 0x42, 0xab, 0x9c, 0x08, 0x9f, 0x23, 0xad, 0xb6, 0x9a, 0x0b, 0xa7, + 0xcb, 0x62, 0x9f, 0x59, 0x15, 0x94, 0x2d, 0x71, 0xf1, 0x42, 0x91, 0x46, 0xab, 0xe8, 0xd0, 0xd0, + 0xef, 0x50, 0x6e, 0x2d, 0x27, 0x5a, 0x5f, 0x19, 0x8e, 0x59, 0xd8, 0xa5, 0xa1, 0xdb, 0x0f, 0xad, + 0x6a, 0xb2, 0x70, 0x13, 0x69, 0x23, 0xec, 0xc5, 0xd4, 0xef, 0x33, 0x6b, 0x25, 0x11, 0x9e, 0x21, + 0x6d, 0x84, 0x03, 0x16, 0x5f, 0x06, 0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x94, 0x33, 0x1b, 0x47, 0xea, + 0x50, 0x32, 0x39, 0xd7, 0xb9, 0x96, 0x74, 0x8f, 0xc8, 0x23, 0x58, 0x49, 0x33, 0xae, 0xd3, 0x0e, + 0x22, 0xf7, 0xd2, 0x54, 0x82, 0xd5, 0x94, 0x7d, 0xa8, 0xb8, 0xe4, 0x63, 0xa8, 0x79, 0x0e, 0x75, + 0x22, 0xe7, 0x22, 0x8a, 0x2f, 0x0d, 0x52, 0xef, 0x68, 0xc5, 0x7b, 0xfa, 0xf2, 0xeb, 0x28, 0xbe, + 0xd4, 0xb8, 0xc7, 0x40, 0x32, 0x38, 0xd1, 0xef, 0xf5, 0xa2, 0x58, 0x9a, 0x54, 0x5c, 0x35, 0xc8, + 0x57, 0x9a, 0x4b, 0x3e, 0x84, 0x15, 0xcc, 0xc6, 0xce, 0xee, 0xfe, 0x13, 0xb3, 0xa4, 0xbe, 0x76, + 0x65, 0x86, 0x09, 0x5d, 0xaf, 0xf8, 0x01, 0x54, 0x93, 0x94, 0x6e, 0x40, 0x85, 0x0c, 0x68, 0xff, + 0x3a, 0xe8, 0xc0, 0x80, 0x96, 0x32, 0xa0, 0x03, 0x0d, 0x7a, 0x04, 0x2b, 0x69, 0x7a, 0x37, 0x28, + 0x7d, 0x15, 0xab, 0x29, 0x5b, 0x03, 0x77, 0x61, 0x6d, 0x3c, 0xc9, 0x1b, 0x74, 0x09, 0xd1, 0x77, + 0xc6, 0x65, 0x7a, 0xca, 0x27, 0x50, 0x1b, 0xa5, 0x7a, 0x03, 0x07, 0x84, 0xaf, 0x8c, 0xf8, 0x1a, + 0xfa, 0x11, 0x54, 0x93, 0x84, 0x6f, 0x80, 0xe6, 0x46, 0x26, 0x5c, 0x0d, 0xfb, 0x0c, 0x48, 0xb7, + 0xcf, 0x63, 0xc7, 0x0f, 0xa8, 0xcb, 0x59, 0x6c, 0xa0, 0x15, 0x84, 0xd6, 0x94, 0xe4, 0x44, 0x0b, + 0x34, 0xfa, 0x7d, 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, 0x59, 0xba, 0xbe, 0x2f, 0xd8, 0x4c, 0x50, 0xd3, 0x74, 0xb4, 0xd3, 0x84, 0xf2, 0x28, + 0x66, 0xdd, 0x68, 0xc0, 0x3c, 0xf3, 0xec, 0x48, 0x48, 0xfb, 0xcd, 0x3c, 0xac, 0xbc, 0x34, 0xe9, + 0xc4, 0x24, 0x75, 0xb5, 0x06, 0xbe, 0xe9, 0xcc, 0x37, 0xd3, 0x84, 0xf2, 0xb1, 0xa9, 0xce, 0x80, + 0x29, 0xb9, 0xd4, 0x58, 0xad, 0x6b, 0xde, 0xbd, 0x56, 0x7e, 0x2b, 0xaf, 0xcc, 0x34, 0x24, 0x39, + 0x84, 0x45, 0xa1, 0x4a, 0x40, 0x6b, 0x01, 0x8b, 0x99, 0xcf, 0x26, 0xcf, 0xdb, 0x35, 0xad, 0x0d, + 0xac, 0x18, 0x8f, 0x43, 0x19, 0x5f, 0xb5, 0xf4, 0x54, 0xf2, 0x12, 0x00, 0x07, 0x78, 0x59, 0xac, + 0x45, 0x5c, 0xe8, 0xc9, 0x2d, 0x17, 0x52, 0x37, 0x47, 0x2f, 0x56, 0x12, 0x09, 0x5d, 0x3f, 0x00, + 0x18, 0x69, 0x21, 0x35, 0xc8, 0x5f, 0xb2, 0x2b, 0x74, 0xb2, 0xd4, 0x52, 0xc3, 0x51, 0xad, 0x38, + 0x8f, 0x3c, 0x4d, 0x7c, 0x39, 0x7f, 0x90, 0xab, 0x7f, 0x05, 0xd5, 0xf1, 0x65, 0xff, 0x93, 0xd9, + 0x7b, 0x7f, 0x2c, 0x42, 0xe5, 0x97, 0x7d, 0x16, 0x5f, 0xbd, 0x62, 0xf1, 0x40, 0x15, 0x91, 0xdf, + 0x41, 0x29, 0xad, 0x97, 0x88, 0x7d, 0x43, 0xdf, 0xce, 0x14, 0xdc, 0xf5, 0x0f, 0x6e, 0xc4, 0x98, + 0xc7, 0xc1, 0x1c, 0x79, 0x01, 0x05, 0xdd, 0x12, 0x23, 0x0f, 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9, 0xcc, + 0xfd, 0xee, 0xed, 0xe6, 0xdc, 0x4f, 0x6f, 0x37, 0xe7, 0xfe, 0xf4, 0x76, 0x73, 0xee, 0x57, 0x1f, + 0xfb, 0x5c, 0x76, 0xfa, 0xed, 0x86, 0x1b, 0x75, 0x77, 0xd8, 0xa0, 0x1b, 0x89, 0x9d, 0xd1, 0x7f, + 0x24, 0x43, 0xfc, 0x97, 0x04, 0xff, 0x85, 0x68, 0x17, 0xf0, 0xdf, 0x8d, 0xff, 0xfb, 0x57, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xa5, 0xf1, 0x74, 0x3e, 0x43, 0x19, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -3718,17 +4203,20 @@ func (m *PrepareTxEVMConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.ChainConfigJson) > 0 { - i -= len(m.ChainConfigJson) - copy(dAtA[i:], m.ChainConfigJson) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainConfigJson))) - i-- - dAtA[i] = 0xa + { + size, err := m.ChainConfigJson.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *TxConfig) Marshal() (dAtA []byte, err error) { +func (m *ChainConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3738,129 +4226,480 @@ func (m *TxConfig) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TxConfig) MarshalTo(dAtA []byte) (int, error) { +func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TxConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.LogIndex != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.LogIndex)) + if m.IsDevMode { i-- - dAtA[i] = 0x20 - } - if m.TxIndex != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TxIndex)) + if m.IsDevMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- - dAtA[i] = 0x18 - } - if len(m.TxHash) > 0 { - i -= len(m.TxHash) - copy(dAtA[i:], m.TxHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) + dAtA[i] = 0x1 i-- - dAtA[i] = 0x12 + dAtA[i] = 0xd0 } - if len(m.BlockHash) > 0 { - i -= len(m.BlockHash) - copy(dAtA[i:], m.BlockHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) + if m.Clique != nil { + { + size, err := m.Clique.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0xa + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca } - return len(dAtA) - i, nil -} - -func (m *EthLog) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.Ethash != nil { + { + size, err := m.Ethash.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 } - return dAtA[:n], nil -} - -func (m *EthLog) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EthLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Removed { + if m.TerminalTotalDifficultyPassed { i-- - if m.Removed { + if m.TerminalTotalDifficultyPassed { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb8 + } + if m.TerminalTotalDifficulty != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TerminalTotalDifficulty)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb0 + } + if m.VerkleTime != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.VerkleTime)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + } + if m.PragueTime != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.PragueTime)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if m.CancunTime != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.CancunTime)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.ShanghaiTime != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ShanghaiTime)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.MergeNetsplitBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.MergeNetsplitBlock)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.GrayGlacierBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.GrayGlacierBlock)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.ArrowGlacierBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ArrowGlacierBlock)) + i-- + dAtA[i] = 0x78 + } + if m.LondonBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LondonBlock)) + i-- + dAtA[i] = 0x70 + } + if m.BerlinBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BerlinBlock)) + i-- + dAtA[i] = 0x68 + } + if m.MuirGlacierBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.MuirGlacierBlock)) + i-- + dAtA[i] = 0x60 + } + if m.IstanbulBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.IstanbulBlock)) + i-- + dAtA[i] = 0x58 + } + if m.PetersburgBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.PetersburgBlock)) + i-- + dAtA[i] = 0x50 + } + if m.ConstantinopleBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ConstantinopleBlock)) + i-- dAtA[i] = 0x48 } - if m.Index != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Index)) + if m.ByzantiumBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ByzantiumBlock)) i-- dAtA[i] = 0x40 } - if len(m.BlockHash) > 0 { - i -= len(m.BlockHash) - copy(dAtA[i:], m.BlockHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) + if m.EIP158Block != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.EIP158Block)) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x38 } - if m.TxIndex != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TxIndex)) + if m.EIP155Block != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.EIP155Block)) i-- dAtA[i] = 0x30 } - if len(m.TxHash) > 0 { - i -= len(m.TxHash) - copy(dAtA[i:], m.TxHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) + if m.EIP_150Block != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.EIP_150Block)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x28 } - if m.BlockNumber != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) + if m.DAOForkSupport { + i-- + if m.DAOForkSupport { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- dAtA[i] = 0x20 } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) + if m.DAOForkBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.DAOForkBlock)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } - if len(m.Topics) > 0 { - for iNdEx := len(m.Topics) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Topics[iNdEx]) - copy(dAtA[i:], m.Topics[iNdEx]) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Topics[iNdEx]))) - i-- - dAtA[i] = 0x12 - } + if m.HomesteadBlock != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HomesteadBlock)) + i-- + dAtA[i] = 0x10 } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + if m.ChainID != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainID)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { +func (m *EthashConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EthashConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EthashConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CliqueConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CliqueConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CliqueConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Epoch != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Epoch)) + i-- + dAtA[i] = 0x10 + } + if m.Period != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Period)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TxConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TxConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LogIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LogIndex)) + i-- + dAtA[i] = 0x20 + } + if m.TxIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TxIndex)) + i-- + dAtA[i] = 0x18 + } + if len(m.TxHash) > 0 { + i -= len(m.TxHash) + copy(dAtA[i:], m.TxHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) + i-- + dAtA[i] = 0x12 + } + if len(m.BlockHash) > 0 { + i -= len(m.BlockHash) + copy(dAtA[i:], m.BlockHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EthLog) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EthLog) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EthLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Removed { + i-- + if m.Removed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.Index != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x40 + } + if len(m.BlockHash) > 0 { + i -= len(m.BlockHash) + copy(dAtA[i:], m.BlockHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) + i-- + dAtA[i] = 0x3a + } + if m.TxIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TxIndex)) + i-- + dAtA[i] = 0x30 + } + if len(m.TxHash) > 0 { + i -= len(m.TxHash) + copy(dAtA[i:], m.TxHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) + i-- + dAtA[i] = 0x2a + } + if m.BlockNumber != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) + i-- + dAtA[i] = 0x20 + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x1a + } + if len(m.Topics) > 0 { + for iNdEx := len(m.Topics) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Topics[iNdEx]) + copy(dAtA[i:], m.Topics[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Topics[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OverrideAccount) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OverrideAccount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OverrideAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.StateDiff) > 0 { + for k := range m.StateDiff { + v := m.StateDiff[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintQuery(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintQuery(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + } + } + if len(m.State) > 0 { + for k := range m.State { + v := m.State[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintQuery(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintQuery(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Balance) > 0 { + dAtA12 := make([]byte, len(m.Balance)*10) + var j11 int + for _, num := range m.Balance { + for num >= 1<<7 { + dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j11++ + } + dAtA12[j11] = uint8(num) + j11++ + } + i -= j11 + copy(dAtA[i:], dAtA12[:j11]) + i = encodeVarintQuery(dAtA, i, uint64(j11)) + i-- + dAtA[i] = 0x1a + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0x12 + } + if m.Nonce != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset for v >= 1<<7 { @@ -4357,10 +5196,8 @@ func (m *PrepareTxEVMConfig) Size() (n int) { } var l int _ = l - l = len(m.ChainConfigJson) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } + l = m.ChainConfigJson.Size() + n += 1 + l + sovQuery(uint64(l)) l = len(m.CoinBase) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -4394,35 +5231,148 @@ func (m *PrepareTxEVMConfig) Size() (n int) { return n } -func (m *TxConfig) Size() (n int) { +func (m *ChainConfig) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.BlockHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if m.ChainID != 0 { + n += 1 + sovQuery(uint64(m.ChainID)) } - l = len(m.TxHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if m.HomesteadBlock != 0 { + n += 1 + sovQuery(uint64(m.HomesteadBlock)) } - if m.TxIndex != 0 { - n += 1 + sovQuery(uint64(m.TxIndex)) + if m.DAOForkBlock != 0 { + n += 1 + sovQuery(uint64(m.DAOForkBlock)) } - if m.LogIndex != 0 { - n += 1 + sovQuery(uint64(m.LogIndex)) + if m.DAOForkSupport { + n += 2 } - return n -} - -func (m *EthLog) Size() (n int) { - if m == nil { - return 0 + if m.EIP_150Block != 0 { + n += 1 + sovQuery(uint64(m.EIP_150Block)) } - var l int - _ = l + if m.EIP155Block != 0 { + n += 1 + sovQuery(uint64(m.EIP155Block)) + } + if m.EIP158Block != 0 { + n += 1 + sovQuery(uint64(m.EIP158Block)) + } + if m.ByzantiumBlock != 0 { + n += 1 + sovQuery(uint64(m.ByzantiumBlock)) + } + if m.ConstantinopleBlock != 0 { + n += 1 + sovQuery(uint64(m.ConstantinopleBlock)) + } + if m.PetersburgBlock != 0 { + n += 1 + sovQuery(uint64(m.PetersburgBlock)) + } + if m.IstanbulBlock != 0 { + n += 1 + sovQuery(uint64(m.IstanbulBlock)) + } + if m.MuirGlacierBlock != 0 { + n += 1 + sovQuery(uint64(m.MuirGlacierBlock)) + } + if m.BerlinBlock != 0 { + n += 1 + sovQuery(uint64(m.BerlinBlock)) + } + if m.LondonBlock != 0 { + n += 1 + sovQuery(uint64(m.LondonBlock)) + } + if m.ArrowGlacierBlock != 0 { + n += 1 + sovQuery(uint64(m.ArrowGlacierBlock)) + } + if m.GrayGlacierBlock != 0 { + n += 2 + sovQuery(uint64(m.GrayGlacierBlock)) + } + if m.MergeNetsplitBlock != 0 { + n += 2 + sovQuery(uint64(m.MergeNetsplitBlock)) + } + if m.ShanghaiTime != 0 { + n += 2 + sovQuery(uint64(m.ShanghaiTime)) + } + if m.CancunTime != 0 { + n += 2 + sovQuery(uint64(m.CancunTime)) + } + if m.PragueTime != 0 { + n += 2 + sovQuery(uint64(m.PragueTime)) + } + if m.VerkleTime != 0 { + n += 2 + sovQuery(uint64(m.VerkleTime)) + } + if m.TerminalTotalDifficulty != 0 { + n += 2 + sovQuery(uint64(m.TerminalTotalDifficulty)) + } + if m.TerminalTotalDifficultyPassed { + n += 3 + } + if m.Ethash != nil { + l = m.Ethash.Size() + n += 2 + l + sovQuery(uint64(l)) + } + if m.Clique != nil { + l = m.Clique.Size() + n += 2 + l + sovQuery(uint64(l)) + } + if m.IsDevMode { + n += 3 + } + return n +} + +func (m *EthashConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CliqueConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Period != 0 { + n += 1 + sovQuery(uint64(m.Period)) + } + if m.Epoch != 0 { + n += 1 + sovQuery(uint64(m.Epoch)) + } + return n +} + +func (m *TxConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BlockHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TxHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TxIndex != 0 { + n += 1 + sovQuery(uint64(m.TxIndex)) + } + if m.LogIndex != 0 { + n += 1 + sovQuery(uint64(m.LogIndex)) + } + return n +} + +func (m *EthLog) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -4460,6 +5410,45 @@ func (m *EthLog) Size() (n int) { return n } +func (m *OverrideAccount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Nonce != 0 { + n += 1 + sovQuery(uint64(m.Nonce)) + } + l = len(m.Code) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.Balance) > 0 { + l = 0 + for _, e := range m.Balance { + l += sovQuery(uint64(e)) + } + n += 1 + sovQuery(uint64(l)) + l + } + if len(m.State) > 0 { + for k, v := range m.State { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + 1 + len(v) + sovQuery(uint64(len(v))) + n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) + } + } + if len(m.StateDiff) > 0 { + for k, v := range m.StateDiff { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + 1 + len(v) + sovQuery(uint64(len(v))) + n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) + } + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -7601,7 +8590,7 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChainConfigJson", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7611,24 +8600,23 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainConfigJson = append(m.ChainConfigJson[:0], dAtA[iNdEx:postIndex]...) - if m.ChainConfigJson == nil { - m.ChainConfigJson = []byte{} + if err := m.ChainConfigJson.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 2: @@ -7920,7 +8908,7 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { } return nil } -func (m *TxConfig) Unmarshal(dAtA []byte) error { +func (m *ChainConfig) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7943,17 +8931,17 @@ func (m *TxConfig) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TxConfig: wiretype end group for non-group") + return fmt.Errorf("proto: ChainConfig: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TxConfig: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChainConfig: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) } - var byteLen int + m.ChainID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7963,31 +8951,16 @@ func (m *TxConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.ChainID |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) - if m.BlockHash == nil { - m.BlockHash = []byte{} - } - iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HomesteadBlock", wireType) } - var byteLen int + m.HomesteadBlock = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7997,31 +8970,16 @@ func (m *TxConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.HomesteadBlock |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) - if m.TxHash == nil { - m.TxHash = []byte{} - } - iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DAOForkBlock", wireType) } - m.TxIndex = 0 + m.DAOForkBlock = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8031,16 +8989,16 @@ func (m *TxConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxIndex |= uint64(b&0x7F) << shift + m.DAOForkBlock |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LogIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DAOForkSupport", wireType) } - m.LogIndex = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8050,66 +9008,17 @@ func (m *TxConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LogIndex |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EthLog) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EthLog: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EthLog: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + m.DAOForkSupport = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EIP_150Block", wireType) } - var byteLen int + m.EIP_150Block = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8119,31 +9028,16 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.EIP_150Block |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) - if m.Address == nil { - m.Address = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EIP155Block", wireType) } - var byteLen int + m.EIP155Block = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8153,29 +9047,16 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.EIP155Block |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Topics = append(m.Topics, make([]byte, postIndex-iNdEx)) - copy(m.Topics[len(m.Topics)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EIP158Block", wireType) } - var byteLen int + m.EIP158Block = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8185,31 +9066,54 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.EIP158Block |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByzantiumBlock", wireType) } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + m.ByzantiumBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ByzantiumBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return io.ErrUnexpectedEOF + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConstantinopleBlock", wireType) } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} + m.ConstantinopleBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConstantinopleBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 4: + case 10: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PetersburgBlock", wireType) } - m.BlockNumber = 0 + m.PetersburgBlock = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8219,16 +9123,16 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BlockNumber |= uint64(b&0x7F) << shift + m.PetersburgBlock |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IstanbulBlock", wireType) } - var byteLen int + m.IstanbulBlock = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8238,31 +9142,54 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.IstanbulBlock |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MuirGlacierBlock", wireType) } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + m.MuirGlacierBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MuirGlacierBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return io.ErrUnexpectedEOF + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BerlinBlock", wireType) } - m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) - if m.TxHash == nil { - m.TxHash = []byte{} + m.BerlinBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BerlinBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 6: + case 14: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LondonBlock", wireType) } - m.TxIndex = 0 + m.LondonBlock = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8272,16 +9199,16 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxIndex |= uint64(b&0x7F) << shift + m.LondonBlock |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ArrowGlacierBlock", wireType) } - var byteLen int + m.ArrowGlacierBlock = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8291,31 +9218,54 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.ArrowGlacierBlock |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GrayGlacierBlock", wireType) } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + m.GrayGlacierBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GrayGlacierBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return io.ErrUnexpectedEOF + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MergeNetsplitBlock", wireType) } - m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) - if m.BlockHash == nil { - m.BlockHash = []byte{} + m.MergeNetsplitBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MergeNetsplitBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 8: + case 18: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShanghaiTime", wireType) } - m.Index = 0 + m.ShanghaiTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8325,14 +9275,90 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.ShanghaiTime |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 9: + case 19: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Removed", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CancunTime", wireType) + } + m.CancunTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CancunTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PragueTime", wireType) + } + m.PragueTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PragueTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VerkleTime", wireType) + } + m.VerkleTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.VerkleTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 22: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TerminalTotalDifficulty", wireType) + } + m.TerminalTotalDifficulty = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TerminalTotalDifficulty |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 23: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TerminalTotalDifficultyPassed", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -8349,7 +9375,1121 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { break } } - m.Removed = bool(v != 0) + m.TerminalTotalDifficultyPassed = bool(v != 0) + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ethash", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ethash == nil { + m.Ethash = &EthashConfig{} + } + if err := m.Ethash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Clique", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Clique == nil { + m.Clique = &CliqueConfig{} + } + if err := m.Clique.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 26: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsDevMode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsDevMode = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EthashConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EthashConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EthashConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CliqueConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CliqueConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CliqueConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Period", wireType) + } + m.Period = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Period |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + } + m.Epoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Epoch |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TxConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TxConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TxConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) + if m.BlockHash == nil { + m.BlockHash = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) + if m.TxHash == nil { + m.TxHash = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) + } + m.TxIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TxIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LogIndex", wireType) + } + m.LogIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LogIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EthLog) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EthLog: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EthLog: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Topics = append(m.Topics, make([]byte, postIndex-iNdEx)) + copy(m.Topics[len(m.Topics)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) + } + m.BlockNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) + if m.TxHash == nil { + m.TxHash = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) + } + m.TxIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TxIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) + if m.BlockHash == nil { + m.BlockHash = []byte{} + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Removed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Removed = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OverrideAccount) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OverrideAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OverrideAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) + if m.Code == nil { + m.Code = []byte{} + } + iNdEx = postIndex + case 3: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Balance = append(m.Balance, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Balance) == 0 { + m.Balance = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Balance = append(m.Balance, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthQuery + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthQuery + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthQuery + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthQuery + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.State[mapkey] = mapvalue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StateDiff", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StateDiff == nil { + m.StateDiff = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthQuery + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthQuery + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthQuery + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthQuery + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.StateDiff[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) From e7dd0bf2f1d801d1dfc4606eb14ebaf67ee49f2e Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Wed, 24 Apr 2024 16:38:15 +0000 Subject: [PATCH 36/46] chore: update overrides --- proto/ethermint/sgx/v1/query.proto | 12 +- x/evm/keeper/state_transition.go | 32 +- x/sgx/types/query.pb.go | 589 ++++++++++++++++------------- 3 files changed, 345 insertions(+), 288 deletions(-) diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index bcea8b91ce..6a90898da3 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -279,7 +279,7 @@ message PrepareTxEVMConfig { string evm_denom = 7; repeated int64 extra_eips = 8; // *rpctypes.StateOverride : original type - bytes overrides = 9; + map overrides = 9; } message ChainConfig { @@ -397,13 +397,13 @@ message EthLog { message OverrideAccount { // *hexutil.Uint64 - uint64 Nonce = 1; + uint64 Nonce = 1[(gogoproto.nullable) = true]; // *hexutil.Bytes - bytes Code = 2; + bytes Code = 2[(gogoproto.nullable) = true]; // **hexutil.Big - repeated uint64 Balance = 3; + uint64 Balance = 3[(gogoproto.nullable) = true]; // *map[common.Hash]common.Hash - map state = 4; + map state = 4[(gogoproto.nullable) = true]; // *map[common.Hash]common.Hash - map state_diff = 5; + map state_diff = 5[(gogoproto.nullable) = true]; } diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index c6ca2c930d..10aaefa410 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -727,8 +727,9 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf // Step 1. Send a "PrepareTx" request to the SGX enclave. chainConfig := k.prepareSgxChainConfig(cfg) - overrides := make(map[string]sgxtypes.OverrideAccount, 0) + var overrides map[string]*sgxtypes.OverrideAccount if cfg.Overrides != nil { + overrides = make(map[string]*sgxtypes.OverrideAccount, 0) for address, account := range *cfg.Overrides { overrideAccount := sgxtypes.OverrideAccount{} if account.Nonce != nil { @@ -739,21 +740,24 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf overrideAccount.Code = []byte(*account.Code) } - *account.Balance. if account.Balance != nil { - overrideAccount.Balance = *big.Int(account.Balance) + overrideAccount.Balance = (*big.Int)(*account.Balance).Uint64() } - // // *hexutil.Uint64 - // Nonce: uint64(*account.Nonce), - // // *hexutil.Bytes - // Code: acccount.Code, - // // **hexutil.Big - // Balance: account.Balance, - - // *map[common.Hash]common.Hash - // State map[string]string `protobuf:"bytes,4,rep,name=state,proto3" json:"state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // *map[common.Hash]common.Hash - // StateDiff map[string]string `protobuf:"bytes,5,rep,name=state_diff,json=stateDiff,proto3" json:"state_diff,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + + // Replace entire state if caller requires. + if account.State != nil { + for key, value := range *account.State { + overrideAccount.State[key.Hex()] = value.Hex() + } + } + // Apply state diff into specified accounts. + if account.StateDiff != nil { + for key, value := range *account.StateDiff { + overrideAccount.StateDiff[key.Hex()] = value.Hex() + } + } + + overrides[address.Hex()] = &overrideAccount } } diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index 04e18f6573..0258e50052 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -1596,7 +1596,7 @@ type PrepareTxEVMConfig struct { EvmDenom string `protobuf:"bytes,7,opt,name=evm_denom,json=evmDenom,proto3" json:"evm_denom,omitempty"` ExtraEips []int64 `protobuf:"varint,8,rep,packed,name=extra_eips,json=extraEips,proto3" json:"extra_eips,omitempty"` // *rpctypes.StateOverride : original type - Overrides []byte `protobuf:"bytes,9,opt,name=overrides,proto3" json:"overrides,omitempty"` + Overrides map[string]*OverrideAccount `protobuf:"bytes,9,rep,name=overrides,proto3" json:"overrides,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (m *PrepareTxEVMConfig) Reset() { *m = PrepareTxEVMConfig{} } @@ -1688,7 +1688,7 @@ func (m *PrepareTxEVMConfig) GetExtraEips() []int64 { return nil } -func (m *PrepareTxEVMConfig) GetOverrides() []byte { +func (m *PrepareTxEVMConfig) GetOverrides() map[string]*OverrideAccount { if m != nil { return m.Overrides } @@ -2257,7 +2257,7 @@ type OverrideAccount struct { // *hexutil.Bytes Code []byte `protobuf:"bytes,2,opt,name=Code,proto3" json:"Code,omitempty"` // **hexutil.Big - Balance []uint64 `protobuf:"varint,3,rep,packed,name=Balance,proto3" json:"Balance,omitempty"` + Balance uint64 `protobuf:"varint,3,opt,name=Balance,proto3" json:"Balance,omitempty"` // *map[common.Hash]common.Hash State map[string]string `protobuf:"bytes,4,rep,name=state,proto3" json:"state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // *map[common.Hash]common.Hash @@ -2311,11 +2311,11 @@ func (m *OverrideAccount) GetCode() []byte { return nil } -func (m *OverrideAccount) GetBalance() []uint64 { +func (m *OverrideAccount) GetBalance() uint64 { if m != nil { return m.Balance } - return nil + return 0 } func (m *OverrideAccount) GetState() map[string]string { @@ -2359,6 +2359,7 @@ func init() { proto.RegisterType((*StateDBGetLogsResponse)(nil), "ethermint.sgx.v1.StateDBGetLogsResponse") proto.RegisterType((*Message)(nil), "ethermint.sgx.v1.Message") proto.RegisterType((*PrepareTxEVMConfig)(nil), "ethermint.sgx.v1.PrepareTxEVMConfig") + proto.RegisterMapType((map[string]*OverrideAccount)(nil), "ethermint.sgx.v1.PrepareTxEVMConfig.OverridesEntry") proto.RegisterType((*ChainConfig)(nil), "ethermint.sgx.v1.ChainConfig") proto.RegisterType((*EthashConfig)(nil), "ethermint.sgx.v1.EthashConfig") proto.RegisterType((*CliqueConfig)(nil), "ethermint.sgx.v1.CliqueConfig") @@ -2372,154 +2373,157 @@ func init() { func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } var fileDescriptor_1d9fb6e76534f03e = []byte{ - // 2348 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0xcf, 0x6f, 0x1b, 0xc7, - 0xf5, 0x17, 0x45, 0x89, 0x22, 0x1f, 0x29, 0x8a, 0x1a, 0x2b, 0xf2, 0x8a, 0xb6, 0x65, 0x65, 0xf3, - 0xc3, 0x8a, 0x93, 0x50, 0x96, 0xbe, 0x50, 0x20, 0x04, 0xf9, 0x16, 0xb5, 0x28, 0x45, 0x56, 0x6a, - 0xc7, 0x2a, 0x2d, 0xe4, 0xd0, 0xcb, 0x62, 0xb8, 0x3b, 0x5a, 0x4e, 0xb5, 0xdc, 0xa5, 0x77, 0x86, - 0x0c, 0x95, 0x63, 0x81, 0xde, 0x7b, 0xea, 0xbf, 0xd0, 0x7f, 0x25, 0x40, 0x2f, 0x39, 0xf6, 0x54, - 0xb4, 0xf6, 0xb9, 0xb7, 0x02, 0x3d, 0x15, 0x28, 0xe6, 0xcd, 0xec, 0x72, 0x29, 0x92, 0xaa, 0x0a, - 0x17, 0xbd, 0x10, 0xf3, 0xde, 0xfb, 0xcc, 0xbc, 0xf7, 0x66, 0x67, 0xde, 0x7b, 0xf3, 0x08, 0xf7, - 0x99, 0xec, 0xb0,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0x46, 0xe2, 0x03, 0xa3, 0xbf, 0x7d, 0xf5, 0x03, 0x0d, - 0x25, 0xef, 0x77, 0xf1, 0x46, 0xa1, 0xfe, 0xc3, 0x84, 0x45, 0x3e, 0x85, 0x55, 0x2e, 0x54, 0x80, - 0x15, 0x52, 0x71, 0xc2, 0xa8, 0x17, 0x30, 0x6b, 0x09, 0x71, 0x35, 0x2e, 0x9a, 0x63, 0x7c, 0x15, - 0x66, 0xb8, 0x70, 0x7a, 0x4c, 0xb2, 0x58, 0xb4, 0xfb, 0xb1, 0x6f, 0x15, 0x11, 0x58, 0xe1, 0xe2, - 0x2c, 0xe5, 0x91, 0x87, 0x68, 0x13, 0x57, 0xf3, 0xda, 0xfd, 0xc0, 0x2a, 0x21, 0x04, 0xb8, 0x38, - 0x35, 0x1c, 0x72, 0x0f, 0x4a, 0xca, 0x2a, 0x16, 0x07, 0x3c, 0xb4, 0x20, 0x31, 0xf9, 0x10, 0x69, - 0x23, 0x0c, 0xa2, 0xd0, 0x8b, 0x42, 0xab, 0x9c, 0x08, 0x9f, 0x23, 0xad, 0xb6, 0x9a, 0x0b, 0xa7, - 0xcb, 0x62, 0x9f, 0x59, 0x15, 0x94, 0x2d, 0x71, 0xf1, 0x42, 0x91, 0x46, 0xab, 0xe8, 0xd0, 0xd0, - 0xef, 0x50, 0x6e, 0x2d, 0x27, 0x5a, 0x5f, 0x19, 0x8e, 0x59, 0xd8, 0xa5, 0xa1, 0xdb, 0x0f, 0xad, - 0x6a, 0xb2, 0x70, 0x13, 0x69, 0x23, 0xec, 0xc5, 0xd4, 0xef, 0x33, 0x6b, 0x25, 0x11, 0x9e, 0x21, - 0x6d, 0x84, 0x03, 0x16, 0x5f, 0x06, 0xcc, 0xaa, 0x25, 0xc2, 0xef, 0x90, 0xb6, 0xbf, 0x81, 0xf2, - 0x53, 0xd7, 0x65, 0x42, 0x9c, 0xf7, 0xd5, 0x0e, 0x59, 0xb0, 0xa4, 0x82, 0x1d, 0x13, 0xc2, 0x84, - 0xa6, 0x84, 0x54, 0xdf, 0x42, 0xc8, 0x28, 0xa6, 0x3e, 0x73, 0x2e, 0xd9, 0x95, 0x8a, 0x4e, 0xf9, - 0xed, 0x4a, 0xab, 0x6c, 0x78, 0xbf, 0x60, 0x57, 0xc2, 0xfe, 0x5b, 0x0e, 0xde, 0x33, 0x87, 0xce, - 0xa4, 0xaa, 0xdb, 0x1f, 0x62, 0x81, 0x29, 0x38, 0x39, 0xc4, 0x9a, 0x22, 0x75, 0x28, 0xba, 0x11, - 0x0f, 0xdb, 0x54, 0x24, 0xa9, 0x27, 0xa5, 0x55, 0x88, 0xf6, 0x98, 0x48, 0xa2, 0x31, 0x8e, 0xc9, - 0xe7, 0xb0, 0x18, 0xab, 0x33, 0x8d, 0x07, 0xa9, 0xbc, 0x77, 0x77, 0x32, 0xd3, 0xe2, 0x91, 0x6f, - 0x69, 0x14, 0xf9, 0x19, 0x94, 0x29, 0xfa, 0xee, 0x04, 0x5c, 0x48, 0xab, 0xb0, 0x95, 0xdf, 0x2e, - 0xef, 0x3d, 0x98, 0x9c, 0x94, 0xd9, 0xa0, 0x16, 0xe8, 0x19, 0xcf, 0xb9, 0x90, 0xb6, 0x95, 0xc6, - 0x8e, 0xd4, 0x5d, 0x73, 0xbb, 0x0e, 0xd2, 0xeb, 0x7e, 0xc2, 0x64, 0x8b, 0x5d, 0xf4, 0x43, 0xef, - 0x96, 0x11, 0x7b, 0x2f, 0x8d, 0x8b, 0x99, 0x99, 0x26, 0x67, 0xac, 0x43, 0x21, 0x46, 0x8e, 0x99, - 0x66, 0x28, 0xfb, 0x8b, 0x74, 0xdb, 0x4f, 0x98, 0x7c, 0x1e, 0xf9, 0xe2, 0x96, 0xba, 0x8e, 0x52, - 0xfb, 0xd3, 0x79, 0x46, 0xd3, 0x63, 0xc8, 0x07, 0x91, 0x6f, 0xe5, 0x70, 0x47, 0xac, 0xc9, 0x1d, - 0x39, 0x96, 0x9d, 0xe7, 0x91, 0xdf, 0x52, 0x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 0x3c, 0xac, 0xbc, 0x34, 0xe9, - 0xc4, 0x24, 0x75, 0xb5, 0x06, 0xbe, 0xe9, 0xcc, 0x37, 0xd3, 0x84, 0xf2, 0xb1, 0xa9, 0xce, 0x80, - 0x29, 0xb9, 0xd4, 0x58, 0xad, 0x6b, 0xde, 0xbd, 0x56, 0x7e, 0x2b, 0xaf, 0xcc, 0x34, 0x24, 0x39, - 0x84, 0x45, 0xa1, 0x4a, 0x40, 0x6b, 0x01, 0x8b, 0x99, 0xcf, 0x26, 0xcf, 0xdb, 0x35, 0xad, 0x0d, - 0xac, 0x18, 0x8f, 0x43, 0x19, 0x5f, 0xb5, 0xf4, 0x54, 0xf2, 0x12, 0x00, 0x07, 0x78, 0x59, 0xac, - 0x45, 0x5c, 0xe8, 0xc9, 0x2d, 0x17, 0x52, 0x37, 0x47, 0x2f, 0x56, 0x12, 0x09, 0x5d, 0x3f, 0x00, - 0x18, 0x69, 0x21, 0x35, 0xc8, 0x5f, 0xb2, 0x2b, 0x74, 0xb2, 0xd4, 0x52, 0xc3, 0x51, 0xad, 0x38, - 0x8f, 0x3c, 0x4d, 0x7c, 0x39, 0x7f, 0x90, 0xab, 0x7f, 0x05, 0xd5, 0xf1, 0x65, 0xff, 0x93, 0xd9, - 0x7b, 0x7f, 0x2c, 0x42, 0xe5, 0x97, 0x7d, 0x16, 0x5f, 0xbd, 0x62, 0xf1, 0x40, 0x15, 0x91, 0xdf, - 0x41, 0x29, 0xad, 0x97, 0x88, 0x7d, 0x43, 0xdf, 0xce, 0x14, 0xdc, 0xf5, 0x0f, 0x6e, 0xc4, 0x98, - 0xc7, 0xc1, 0x1c, 0x79, 0x01, 0x05, 0xdd, 0x12, 0x23, 0x0f, 0xa7, 0x5c, 0xf0, 0x6c, 0xc3, 0xae, - 0xbe, 0x35, 0x1b, 0x90, 0x2e, 0x77, 0x02, 0x0b, 0x4d, 0x1a, 0x04, 0x64, 0x5a, 0xb5, 0x36, 0xea, - 0x85, 0xd5, 0x37, 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75, 0x77, 0xd8, 0xa0, 0x1b, 0x89, 0x9d, 0xd1, 0x7f, - 0x24, 0x43, 0xfc, 0x97, 0x04, 0xff, 0x85, 0x68, 0x17, 0xf0, 0xdf, 0x8d, 0xff, 0xfb, 0x57, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xa5, 0xf1, 0x74, 0x3e, 0x43, 0x19, 0x00, 0x00, + // 2391 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0x4d, 0x6f, 0x23, 0xc7, + 0xd1, 0x16, 0x45, 0x8a, 0x22, 0x8b, 0x14, 0x45, 0xf5, 0xca, 0xbb, 0x23, 0xae, 0x57, 0x2b, 0x8f, + 0x3f, 0x56, 0x5e, 0xdb, 0xd4, 0x4a, 0x86, 0xfc, 0x0a, 0x86, 0xdf, 0x20, 0x2b, 0x4a, 0xd6, 0xca, + 0xd9, 0xf5, 0xca, 0x5c, 0xc5, 0x87, 0x5c, 0x06, 0xcd, 0x99, 0xd6, 0xb0, 0xa3, 0xe1, 0x0c, 0x3d, + 0xdd, 0xa4, 0x29, 0x9f, 0x82, 0x00, 0x39, 0x06, 0xc8, 0x29, 0x7f, 0x21, 0x7f, 0xc5, 0x40, 0x2e, + 0x3e, 0xe6, 0x14, 0x24, 0xf6, 0x39, 0xb7, 0x5c, 0x03, 0x04, 0x5d, 0xdd, 0x33, 0x1c, 0x8a, 0xa4, + 0xac, 0xc0, 0x41, 0x2e, 0xc4, 0x54, 0xd5, 0xd3, 0x5d, 0x55, 0xfd, 0x51, 0x55, 0x5d, 0x84, 0xd7, + 0x99, 0xec, 0xb2, 0xb8, 0xc7, 0x43, 0xb9, 0x23, 0xfc, 0xd1, 0xce, 0x70, 0x77, 0xe7, 0xab, 0x01, + 0x8b, 0xaf, 0x9a, 0xfd, 0x38, 0x92, 0x11, 0xa9, 0xa7, 0xd2, 0xa6, 0xf0, 0x47, 0xcd, 0x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0x52, 0x71, 0xc2, 0xa8, 0x1f, 0x30, 0x6b, 0x19, 0x71, 0x75, 0x2e, 0x5a, 0x13, 0x7c, + 0x15, 0x66, 0xb8, 0x70, 0xfa, 0x4c, 0xb2, 0x58, 0x74, 0x06, 0xb1, 0x6f, 0x95, 0x10, 0x58, 0xe5, + 0xe2, 0x2c, 0xe5, 0x91, 0x87, 0x68, 0x13, 0x57, 0xe3, 0x3a, 0x83, 0xc0, 0x2a, 0x23, 0x04, 0xb8, + 0x38, 0x35, 0x1c, 0x72, 0x1f, 0xca, 0xca, 0x2a, 0x16, 0x07, 0x3c, 0xb4, 0x20, 0x31, 0xf9, 0x10, + 0x69, 0x23, 0x0c, 0xa2, 0xd0, 0x8b, 0x42, 0xab, 0x92, 0x08, 0x9f, 0x23, 0xad, 0x96, 0x9a, 0x0b, + 0xa7, 0xc7, 0x62, 0x9f, 0x59, 0x55, 0x94, 0x2d, 0x73, 0xf1, 0x42, 0x91, 0x46, 0xab, 0xe8, 0xd2, + 0xd0, 0xef, 0x52, 0x6e, 0xad, 0x24, 0x5a, 0x5f, 0x19, 0x8e, 0x99, 0xd8, 0xa5, 0xa1, 0x3b, 0x08, + 0xad, 0x5a, 0x32, 0x71, 0x0b, 0x69, 0x23, 0xec, 0xc7, 0xd4, 0x1f, 0x30, 0x6b, 0x35, 0x11, 0x9e, + 0x21, 0x6d, 0x84, 0x43, 0x16, 0x5f, 0x06, 0xcc, 0xaa, 0x27, 0xc2, 0x2f, 0x91, 0xb6, 0x3f, 0x83, + 0xca, 0x53, 0xd7, 0x65, 0x42, 0x9c, 0x0f, 0xd4, 0x0a, 0x59, 0xb0, 0xac, 0x82, 0x1d, 0x13, 0xc2, + 0x84, 0xa6, 0x84, 0x54, 0x7b, 0x21, 0x64, 0x14, 0x53, 0x9f, 0x39, 0x97, 0xec, 0x4a, 0x45, 0xa7, + 0xfc, 0x76, 0xb5, 0x5d, 0x31, 0xbc, 0x5f, 0xb0, 0x2b, 0x61, 0xff, 0x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0xf4, 0x1b, 0x50, 0xd5, 0xa5, 0x8b, 0xc1, 0xad, 0x68, 0xf7, + 0x35, 0x2f, 0x85, 0xe8, 0x02, 0xc6, 0x40, 0x6a, 0xe6, 0x21, 0x82, 0x3c, 0x0d, 0x69, 0xc2, 0x1d, + 0x1a, 0xc7, 0xd1, 0xd7, 0xd7, 0x94, 0xae, 0x22, 0x72, 0x0d, 0x45, 0x13, 0x5a, 0xdf, 0x07, 0xe2, + 0xc7, 0xf4, 0xea, 0x1a, 0xbc, 0xae, 0x6d, 0x54, 0x92, 0x09, 0xf4, 0x13, 0x58, 0xc7, 0x22, 0xc9, + 0x09, 0x99, 0x14, 0xfd, 0x80, 0x4b, 0x83, 0x5f, 0x43, 0x3c, 0x41, 0xd9, 0xe7, 0x46, 0x94, 0xac, + 0xea, 0x4a, 0x52, 0x3b, 0x39, 0x92, 0xf7, 0x98, 0x45, 0x14, 0x14, 0x43, 0x44, 0xae, 0x5d, 0x4d, + 0x44, 0xe7, 0xbc, 0xc7, 0xc8, 0xdb, 0x50, 0xd1, 0x55, 0x94, 0x06, 0xde, 0xc9, 0x00, 0x41, 0x0b, + 0x12, 0x98, 0xae, 0xa7, 0x34, 0x6c, 0x3d, 0x0b, 0xd3, 0x82, 0x04, 0xa6, 0x2b, 0x2b, 0x0d, 0x7b, + 0x2d, 0x0b, 0xd3, 0x02, 0x84, 0x7d, 0x0c, 0x1b, 0x12, 0xef, 0x25, 0x0d, 0x1c, 0x19, 0x49, 0x1a, + 0x38, 0x1e, 0xbf, 0xb8, 0xe0, 0xee, 0x20, 0x90, 0x57, 0xd6, 0x5d, 0x74, 0xeb, 0x5e, 0x02, 0x38, + 0x57, 0xf2, 0xa3, 0x54, 0x4c, 0x4e, 0x60, 0x6b, 0xee, 0x58, 0xa7, 0x4f, 0x85, 0x60, 0x9e, 0x75, + 0x0f, 0xef, 0xcd, 0x83, 0x39, 0x53, 0x9c, 0x21, 0x88, 0x7c, 0x04, 0x45, 0x26, 0xb1, 0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 0xe1, 0x2f, 0x3f, 0x6c, 0x2e, 0xfc, 0xea, 0x1d, 0x9f, 0xcb, 0xee, 0xa0, + 0xd3, 0x74, 0xa3, 0xde, 0x0e, 0x1b, 0xf6, 0x22, 0xb1, 0x33, 0xfe, 0x5f, 0x67, 0x84, 0xff, 0xec, + 0xe0, 0x3f, 0x27, 0x9d, 0x22, 0xfe, 0x23, 0xf3, 0xe1, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x20, + 0xe5, 0x64, 0xfd, 0xf7, 0x19, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -4129,28 +4133,47 @@ func (m *PrepareTxEVMConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if len(m.Overrides) > 0 { - i -= len(m.Overrides) - copy(dAtA[i:], m.Overrides) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Overrides))) - i-- - dAtA[i] = 0x4a + for k := range m.Overrides { + v := m.Overrides[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintQuery(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x4a + } } if len(m.ExtraEips) > 0 { - dAtA6 := make([]byte, len(m.ExtraEips)*10) - var j5 int + dAtA7 := make([]byte, len(m.ExtraEips)*10) + var j6 int for _, num1 := range m.ExtraEips { num := uint64(num1) for num >= 1<<7 { - dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) + dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j5++ + j6++ } - dAtA6[j5] = uint8(num) - j5++ + dAtA7[j6] = uint8(num) + j6++ } - i -= j5 - copy(dAtA[i:], dAtA6[:j5]) - i = encodeVarintQuery(dAtA, i, uint64(j5)) + i -= j6 + copy(dAtA[i:], dAtA7[:j6]) + i = encodeVarintQuery(dAtA, i, uint64(j6)) i-- dAtA[i] = 0x42 } @@ -4666,23 +4689,10 @@ func (m *OverrideAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x22 } } - if len(m.Balance) > 0 { - dAtA12 := make([]byte, len(m.Balance)*10) - var j11 int - for _, num := range m.Balance { - for num >= 1<<7 { - dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j11++ - } - dAtA12[j11] = uint8(num) - j11++ - } - i -= j11 - copy(dAtA[i:], dAtA12[:j11]) - i = encodeVarintQuery(dAtA, i, uint64(j11)) + if m.Balance != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Balance)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } if len(m.Code) > 0 { i -= len(m.Code) @@ -5224,9 +5234,18 @@ func (m *PrepareTxEVMConfig) Size() (n int) { } n += 1 + sovQuery(uint64(l)) + l } - l = len(m.Overrides) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Overrides) > 0 { + for k, v := range m.Overrides { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovQuery(uint64(l)) + } + mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + l + n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) + } } return n } @@ -5423,12 +5442,8 @@ func (m *OverrideAccount) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if len(m.Balance) > 0 { - l = 0 - for _, e := range m.Balance { - l += sovQuery(uint64(e)) - } - n += 1 + sovQuery(uint64(l)) + l + if m.Balance != 0 { + n += 1 + sovQuery(uint64(m.Balance)) } if len(m.State) > 0 { for k, v := range m.State { @@ -8857,7 +8872,7 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Overrides", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8867,25 +8882,120 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Overrides = append(m.Overrides[:0], dAtA[iNdEx:postIndex]...) if m.Overrides == nil { - m.Overrides = []byte{} + m.Overrides = make(map[string]*OverrideAccount) } + var mapkey string + var mapvalue *OverrideAccount + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthQuery + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthQuery + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthQuery + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthQuery + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &OverrideAccount{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Overrides[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -10161,80 +10271,23 @@ func (m *OverrideAccount) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 3: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Balance = append(m.Balance, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthQuery + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + } + m.Balance = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Balance) == 0 { - m.Balance = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Balance = append(m.Balance, v) + b := dAtA[iNdEx] + iNdEx++ + m.Balance |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) } case 4: if wireType != 2 { From b92b02b98fe9ba16c2523079dcbd3a65aa1dd89c Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Wed, 24 Apr 2024 17:29:16 +0000 Subject: [PATCH 37/46] chore: proto change --- x/evm/migrations/v4/types/params_v4.pb.go | 7 +++---- x/sgx/types/query.pb.go | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/x/evm/migrations/v4/types/params_v4.pb.go b/x/evm/migrations/v4/types/params_v4.pb.go index 3b7e32580b..e1be6d84f6 100644 --- a/x/evm/migrations/v4/types/params_v4.pb.go +++ b/x/evm/migrations/v4/types/params_v4.pb.go @@ -10,7 +10,6 @@ import ( io "io" math "math" math_bits "math/bits" - v0types "github.com/evmos/ethermint/x/evm/migrations/v0/types" ) // Reference imports to suppress errors if they are not otherwise used. @@ -36,7 +35,7 @@ type V4Params struct { // extra_eips defines the additional EIPs for the vm.Config ExtraEIPs ExtraEIPs `protobuf:"bytes,4,opt,name=extra_eips,json=extraEips,proto3" json:"extra_eips"` // chain_config defines the EVM chain configuration parameters - ChainConfig v0types.V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` + ChainConfig V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` // allow_unprotected_txs defines if replay-protected (i.e non EIP155 // signed) transactions can be executed on the state machine. AllowUnprotectedTxs bool `protobuf:"varint,6,opt,name=allow_unprotected_txs,json=allowUnprotectedTxs,proto3" json:"allow_unprotected_txs,omitempty"` @@ -103,11 +102,11 @@ func (m *V4Params) GetExtraEIPs() ExtraEIPs { return ExtraEIPs{} } -func (m *V4Params) GetChainConfig() v0types.V0ChainConfig { +func (m *V4Params) GetChainConfig() V0ChainConfig { if m != nil { return m.ChainConfig } - return v0types.V0ChainConfig{} + return V0ChainConfig{} } func (m *V4Params) GetAllowUnprotectedTxs() bool { diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index 0258e50052..fd6ce83d91 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -9,7 +9,7 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - types "github.com/cometbft/cometbft/proto/tendermint/types" + types "github.com/tendermint/tendermint/proto/tendermint/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" From 4f53b80352b678f888f27c141448b1cbbe28cd9d Mon Sep 17 00:00:00 2001 From: Kenta <104029393+kenta-mori3322@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:39:54 +0900 Subject: [PATCH 38/46] chore: protogen change (#4) * chore: protogen change * chore: use json marshall for overrides * chore: remove protobuf declare for overrides * chore: fix nil pointer issue * chore: fix bug with data mapping --- proto/ethermint/evm/v1/query.proto | 11 - proto/ethermint/sgx/v1/query.proto | 17 +- x/evm/keeper/grpc_query.go | 28 +- x/evm/keeper/state_transition.go | 140 +-- x/evm/migrations/v4/types/params_v4.pb.go | 7 +- x/evm/types/query.pb.go | 267 +++--- x/evm/types/query.pb.gw.go | 995 +------------------- x/sgx/types/query.pb.go | 1040 ++++----------------- 8 files changed, 431 insertions(+), 2074 deletions(-) diff --git a/proto/ethermint/evm/v1/query.proto b/proto/ethermint/evm/v1/query.proto index 28b39a1f2b..d2845e9f0a 100644 --- a/proto/ethermint/evm/v1/query.proto +++ b/proto/ethermint/evm/v1/query.proto @@ -86,47 +86,36 @@ service Query { // ----------------------------------------- // Query clients for evm keeper statedb access rpc QueryGetHashStateDB(GetHashRequest) returns (GetHashResponse) { - option (google.api.http).get = "/ethermint/evm/v1/get_hash"; } rpc PostAddBalanceStateDB(AddBalanceRequest) returns (AddBalanceResponse) { - option (google.api.http).post = "/ethermint/evm/v1/add_balance"; } rpc PostSubBalanceStateDB(SubBalanceRequest) returns (SubBalanceResponse) { - option (google.api.http).post = "/ethermint/evm/v1/sub_balance"; } rpc QueryGetBalanceStateDB(GetBalanceRequest) returns (GetBalanceResponse) { - option (google.api.http).get = "/ethermint/evm/v1/get_balance"; } rpc QueryGetAccountStateDB(GetAccountRequest) returns (GetAccountResponse) { - option (google.api.http).get = "/ethermint/evm/v1/get_account"; } rpc QueryGetStateStateDB(GetStateRequest) returns (GetStateResponse) { - option (google.api.http).get = "/ethermint/evm/v1/get_state"; } rpc QueryGetCodeStateDB(GetCodeRequest) returns (GetCodeResponse) { - option (google.api.http).get = "/ethermint/evm/v1/get_code"; } rpc PostSetAccountStateDB(SetAccountRequest) returns (SetAccountResponse) { - option (google.api.http).post = "/ethermint/evm/v1/set_account"; } rpc PostSetStateStateDB(SetStateRequest) returns (SetStateResponse) { - option (google.api.http).post = "/ethermint/evm/v1/set_state"; } rpc PostSetCodeStateDB(SetCodeRequest) returns (SetCodeResponse) { - option (google.api.http).post = "/ethermint/evm/v1/set_code"; } rpc PostDeleteAccountStateDB(DeleteAccountRequest) returns (DeleteAccountResponse) { - option (google.api.http).post = "/ethermint/evm/v1/delete_account"; } } diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index 6a90898da3..2feea6ba5c 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -279,7 +279,7 @@ message PrepareTxEVMConfig { string evm_denom = 7; repeated int64 extra_eips = 8; // *rpctypes.StateOverride : original type - map overrides = 9; + bytes overrides = 9; } message ChainConfig { @@ -393,17 +393,4 @@ message EthLog { // The Removed field is true if this log was reverted due to a chain reorganisation. // You must pay attention to this field if you receive logs through a filter query. bool removed = 9; -} - -message OverrideAccount { - // *hexutil.Uint64 - uint64 Nonce = 1[(gogoproto.nullable) = true]; - // *hexutil.Bytes - bytes Code = 2[(gogoproto.nullable) = true]; - // **hexutil.Big - uint64 Balance = 3[(gogoproto.nullable) = true]; - // *map[common.Hash]common.Hash - map state = 4[(gogoproto.nullable) = true]; - // *map[common.Hash]common.Hash - map state_diff = 5[(gogoproto.nullable) = true]; -} +} \ No newline at end of file diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index 0d8dba90d4..4050b3b67c 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -344,24 +344,22 @@ func (k Keeper) EstimateGas(c context.Context, req *types.EthCallRequest) (*type // NOTE: the errors from the executable below should be consistent with go-ethereum, // so we don't wrap them with the gRPC status code - + msg = core.Message{ + From: msg.From, + To: msg.To, + Nonce: msg.Nonce, + Value: msg.Value, + GasPrice: msg.GasPrice, + GasFeeCap: msg.GasFeeCap, + GasTipCap: msg.GasTipCap, + Data: msg.Data, + AccessList: msg.AccessList, + SkipAccountChecks: msg.SkipAccountChecks, + } // Create a helper to check if a gas allowance results in an executable transaction executable := func(gas uint64) (vmError bool, rsp *types.MsgEthereumTxResponse, err error) { // update the message with the new gas value - msg = core.Message{ - From: msg.From, - To: msg.To, - Nonce: msg.Nonce, - Value: msg.Value, - GasLimit: gas, - GasPrice: msg.GasPrice, - GasFeeCap: msg.GasFeeCap, - GasTipCap: msg.GasTipCap, - Data: msg.Data, - AccessList: msg.AccessList, - SkipAccountChecks: msg.SkipAccountChecks, - } - + msg.GasLimit = gas // pass false to not commit StateDB rsp, err = k.ApplyMessageWithConfig(ctx, msg, cfg, false) if err != nil { diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 10aaefa410..5eee9d48f0 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -17,6 +17,7 @@ package keeper import ( "context" + "encoding/json" "fmt" "math/big" "net" @@ -413,7 +414,7 @@ func (k *Keeper) ApplyMessageWithConfig( HandlerId: handlerId, Sender: msg.From.Bytes(), Coinbase: cfg.CoinBase.Bytes(), - Dest: msg.To.Bytes(), + Dest: k.SafeAddress2Bytes(msg.To), Rules: &sgxtypes.Rules{ ChainId: rules.ChainID.Uint64(), IsHomestead: rules.IsHomestead, @@ -427,7 +428,7 @@ func (k *Keeper) ApplyMessageWithConfig( IsBerlin: rules.IsBerlin, IsLondon: rules.IsLondon, IsMerge: rules.IsMerge, - IsShanghai: rules.IsMerge, + IsShanghai: rules.IsShanghai, IsCancun: rules.IsCancun, IsPrague: rules.IsPrague, IsVerkle: rules.IsVerkle, @@ -479,15 +480,18 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // ret, _, leftoverGas, vmErr = evm.Create(sender, msg.Data, leftoverGas, msg.Value) resp, vmErr := sgxGrpcClient.Create(ctx, &sgxtypes.CreateRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Code: msg.Data, Gas: leftoverGas, Value: msg.Value.Uint64()}) - ret = resp.Ret - leftoverGas = resp.LeftOverGas if vmErr != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(vmErr) { panic("sgx rpc server is down") } + + return nil, vmErr } + ret = resp.Ret + leftoverGas = resp.LeftOverGas + // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce+1) _, vmErr = sgxGrpcClient.StateDBSetNonce(ctx, &sgxtypes.StateDBSetNonceRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Nonce: msg.Nonce + 1}) @@ -496,14 +500,13 @@ func (k *Keeper) ApplyMessageWithConfig( if k.IsSgxDownError(vmErr) { panic("sgx rpc server is down") } + + return nil, vmErr } } else { // Ethermint original code: // ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) - resp, vmErr := sgxGrpcClient.Call(ctx, &sgxtypes.CallRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Addr: msg.To.Bytes(), Input: msg.Data, Gas: leftoverGas, Value: msg.Value.Uint64()}) - ret = resp.Ret - leftoverGas = resp.LeftOverGas - + resp, vmErr := sgxGrpcClient.Call(ctx, &sgxtypes.CallRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Addr: k.SafeAddress2Bytes(msg.To), Input: msg.Data, Gas: leftoverGas, Value: msg.Value.Uint64()}) if vmErr != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(vmErr) { @@ -512,6 +515,8 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, vmErr } + ret = resp.Ret + leftoverGas = resp.LeftOverGas } refundQuotient := params.RefundQuotient @@ -641,55 +646,85 @@ func (k *Keeper) ApplyMessageWithConfig( }, nil } +func (k *Keeper) SafeBigInt2Uint64Convert(val *big.Int) uint64 { + if val == nil { + return 0 + } + return val.Uint64() +} + +func (k *Keeper) ChainConfigBitInt2Uint64(val *big.Int) uint64 { + if val == nil { + return 99999 + } + return val.Uint64() +} + +func (k *Keeper) SafeAddress2Bytes(addr *common.Address) []byte { + if addr == nil { + return nil + } + return addr.Bytes() +} + func (k *Keeper) prepareSgxChainConfig(cfg *EVMConfig) sgxtypes.ChainConfig { chainConfig := cfg.ChainConfig sgxChainConfig := sgxtypes.ChainConfig{ // *big.Int - ChainID: chainConfig.ChainID.Uint64(), + ChainID: k.SafeBigInt2Uint64Convert(chainConfig.ChainID), // *big.Int - HomesteadBlock: chainConfig.HomesteadBlock.Uint64(), + HomesteadBlock: k.ChainConfigBitInt2Uint64(chainConfig.HomesteadBlock), // *big.Int - DAOForkBlock: chainConfig.DAOForkBlock.Uint64(), + DAOForkBlock: k.ChainConfigBitInt2Uint64(chainConfig.DAOForkBlock), DAOForkSupport: chainConfig.DAOForkSupport, // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) // *big.Int - EIP_150Block: chainConfig.EIP150Block.Uint64(), + EIP_150Block: k.ChainConfigBitInt2Uint64(chainConfig.EIP150Block), // *big.Int - EIP155Block: chainConfig.EIP155Block.Uint64(), + EIP155Block: k.ChainConfigBitInt2Uint64(chainConfig.EIP155Block), // *big.Int - EIP158Block: chainConfig.EIP158Block.Uint64(), + EIP158Block: k.ChainConfigBitInt2Uint64(chainConfig.EIP158Block), // *big.Int - ByzantiumBlock: chainConfig.ByzantiumBlock.Uint64(), + ByzantiumBlock: k.ChainConfigBitInt2Uint64(chainConfig.ByzantiumBlock), // *big.Int - ConstantinopleBlock: chainConfig.ConstantinopleBlock.Uint64(), + ConstantinopleBlock: k.ChainConfigBitInt2Uint64(chainConfig.ConstantinopleBlock), // *big.Int - PetersburgBlock: chainConfig.PetersburgBlock.Uint64(), + PetersburgBlock: k.ChainConfigBitInt2Uint64(chainConfig.PetersburgBlock), // *big.Int - IstanbulBlock: chainConfig.IstanbulBlock.Uint64(), + IstanbulBlock: k.ChainConfigBitInt2Uint64(chainConfig.IstanbulBlock), // *big.Int - MuirGlacierBlock: chainConfig.MuirGlacierBlock.Uint64(), + MuirGlacierBlock: k.ChainConfigBitInt2Uint64(chainConfig.MuirGlacierBlock), // *big.Int - BerlinBlock: chainConfig.BerlinBlock.Uint64(), + BerlinBlock: k.ChainConfigBitInt2Uint64(chainConfig.BerlinBlock), // *big.Int - LondonBlock: chainConfig.LondonBlock.Uint64(), + LondonBlock: k.ChainConfigBitInt2Uint64(chainConfig.LondonBlock), // *big.Int - ArrowGlacierBlock: chainConfig.ArrowGlacierBlock.Uint64(), + ArrowGlacierBlock: k.ChainConfigBitInt2Uint64(chainConfig.ArrowGlacierBlock), // *big.Int - GrayGlacierBlock: chainConfig.GrayGlacierBlock.Uint64(), + GrayGlacierBlock: k.ChainConfigBitInt2Uint64(chainConfig.GrayGlacierBlock), // *big.Int - MergeNetsplitBlock: chainConfig.MergeNetsplitBlock.Uint64(), + MergeNetsplitBlock: k.ChainConfigBitInt2Uint64(chainConfig.MergeNetsplitBlock), // TerminalTotalDifficulty is the amount of total difficulty reached by // the network that triggers the consensus upgrade. // *big.Int - TerminalTotalDifficulty: chainConfig.TerminalTotalDifficulty.Uint64(), + TerminalTotalDifficulty: k.SafeBigInt2Uint64Convert(chainConfig.TerminalTotalDifficulty), // TerminalTotalDifficultyPassed is a flag specifying that the network already // passed the terminal total difficulty. Its purpose is to disable legacy sync // even without having seen the TTD locally (safer long term). TerminalTotalDifficultyPassed: chainConfig.TerminalTotalDifficultyPassed, // Various consensus engines - Ethash: &sgxtypes.EthashConfig{}, - IsDevMode: chainConfig.IsDevMode, + Ethash: nil, + Clique: nil, + IsDevMode: chainConfig.IsDevMode, + ShanghaiTime: 100000, + CancunTime: 100000, + PragueTime: 100000, + VerkleTime: 100000, + } + + if chainConfig.Ethash != nil { + sgxChainConfig.Ethash = &sgxtypes.EthashConfig{} } if chainConfig.Clique != nil { @@ -727,47 +762,20 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf // Step 1. Send a "PrepareTx" request to the SGX enclave. chainConfig := k.prepareSgxChainConfig(cfg) - var overrides map[string]*sgxtypes.OverrideAccount + var overrides []byte + var err error if cfg.Overrides != nil { - overrides = make(map[string]*sgxtypes.OverrideAccount, 0) - for address, account := range *cfg.Overrides { - overrideAccount := sgxtypes.OverrideAccount{} - if account.Nonce != nil { - overrideAccount.Nonce = uint64(*account.Nonce) - } - - if account.Code != nil { - overrideAccount.Code = []byte(*account.Code) - } - - if account.Balance != nil { - overrideAccount.Balance = (*big.Int)(*account.Balance).Uint64() - } - - // Replace entire state if caller requires. - if account.State != nil { - for key, value := range *account.State { - overrideAccount.State[key.Hex()] = value.Hex() - } - } - // Apply state diff into specified accounts. - if account.StateDiff != nil { - for key, value := range *account.StateDiff { - overrideAccount.StateDiff[key.Hex()] = value.Hex() - } - } - - overrides[address.Hex()] = &overrideAccount + overrides, err = json.Marshal(cfg.Overrides) + if err != nil { + return 0, err } } - ctx.HeaderHash() - // Prepare EvmConfig evmConfig := sgxtypes.PrepareTxEVMConfig{ ChainConfigJson: chainConfig, CoinBase: cfg.CoinBase.Bytes(), - BaseFee: cfg.BaseFee.Uint64(), + BaseFee: k.SafeBigInt2Uint64Convert(cfg.BaseFee), DebugTrace: cfg.DebugTrace, NoBaseFee: cfg.FeeMarketParams.NoBaseFee, EvmDenom: cfg.Params.EvmDenom, @@ -787,23 +795,23 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf // core.Message sgxMsg := sgxtypes.Message{ // Original type: *common.Address - To: msg.To.Bytes(), + To: k.SafeAddress2Bytes(msg.To), // Original type: common.Address From: msg.From.Bytes(), Nonce: msg.Nonce, // *big.Int - Value: msg.Value.Uint64(), + Value: k.SafeBigInt2Uint64Convert(msg.Value), GasLimit: msg.GasLimit, // Original type: *big.Int - GasPrice: msg.GasPrice.Uint64(), + GasPrice: k.SafeBigInt2Uint64Convert(msg.GasPrice), // Original type: *big.Int - GasFeeCap: msg.GasFeeCap.Uint64(), + GasFeeCap: k.SafeBigInt2Uint64Convert(msg.GasFeeCap), // Original type: *big.Int - GasTipCap: msg.GasTipCap.Uint64(), + GasTipCap: k.SafeBigInt2Uint64Convert(msg.GasTipCap), Data: msg.Data, // Original types: AccessList // Original type: *big.Int - BlobGasFeeCap: msg.BlobGasFeeCap.Uint64(), + BlobGasFeeCap: k.SafeBigInt2Uint64Convert(msg.BlobGasFeeCap), // Original type: []common.Hash // When SkipAccountChecks is true, the message nonce is not checked against the // account nonce in state. It also disables checking that the sender is an EOA. diff --git a/x/evm/migrations/v4/types/params_v4.pb.go b/x/evm/migrations/v4/types/params_v4.pb.go index e1be6d84f6..3b7e32580b 100644 --- a/x/evm/migrations/v4/types/params_v4.pb.go +++ b/x/evm/migrations/v4/types/params_v4.pb.go @@ -10,6 +10,7 @@ import ( io "io" math "math" math_bits "math/bits" + v0types "github.com/evmos/ethermint/x/evm/migrations/v0/types" ) // Reference imports to suppress errors if they are not otherwise used. @@ -35,7 +36,7 @@ type V4Params struct { // extra_eips defines the additional EIPs for the vm.Config ExtraEIPs ExtraEIPs `protobuf:"bytes,4,opt,name=extra_eips,json=extraEips,proto3" json:"extra_eips"` // chain_config defines the EVM chain configuration parameters - ChainConfig V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` + ChainConfig v0types.V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` // allow_unprotected_txs defines if replay-protected (i.e non EIP155 // signed) transactions can be executed on the state machine. AllowUnprotectedTxs bool `protobuf:"varint,6,opt,name=allow_unprotected_txs,json=allowUnprotectedTxs,proto3" json:"allow_unprotected_txs,omitempty"` @@ -102,11 +103,11 @@ func (m *V4Params) GetExtraEIPs() ExtraEIPs { return ExtraEIPs{} } -func (m *V4Params) GetChainConfig() V0ChainConfig { +func (m *V4Params) GetChainConfig() v0types.V0ChainConfig { if m != nil { return m.ChainConfig } - return V0ChainConfig{} + return v0types.V0ChainConfig{} } func (m *V4Params) GetAllowUnprotectedTxs() bool { diff --git a/x/evm/types/query.pb.go b/x/evm/types/query.pb.go index 425d133e9d..381d06c0dd 100644 --- a/x/evm/types/query.pb.go +++ b/x/evm/types/query.pb.go @@ -2628,142 +2628,137 @@ func init() { func init() { proto.RegisterFile("ethermint/evm/v1/query.proto", fileDescriptor_e15a877459347994) } var fileDescriptor_e15a877459347994 = []byte{ - // 2152 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0xdd, 0x6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0xdb, 0xe3, 0xc8, 0xd4, 0x41, 0x6e, - 0x7c, 0xfc, 0xa7, 0x7f, 0xfc, 0xee, 0xdc, 0x16, 0xda, 0x28, 0xc6, 0x3a, 0x57, 0xca, 0x54, 0x8a, - 0x1f, 0xa8, 0x3c, 0xfa, 0x08, 0xfd, 0xc1, 0x80, 0xf3, 0x91, 0xee, 0x0b, 0xba, 0x31, 0x42, 0x4c, - 0x52, 0x97, 0xc7, 0xdc, 0x3b, 0x1b, 0xb1, 0x42, 0x76, 0x20, 0x91, 0xed, 0xa1, 0xeb, 0x71, 0x64, - 0xba, 0xd1, 0x13, 0x03, 0xf8, 0x47, 0x03, 0xe6, 0x86, 0x1b, 0x29, 0xc8, 0x1a, 0x21, 0x76, 0x44, - 0xff, 0xc6, 0x2c, 0x9e, 0x99, 0x5e, 0x21, 0x7d, 0x5d, 0x22, 0x7d, 0x05, 0x1d, 0xc4, 0x91, 0xf6, - 0xf4, 0x9e, 0x00, 0x6c, 0xb8, 0x37, 0xf4, 0x08, 0x7d, 0x62, 0x40, 0x4e, 0xc5, 0xe8, 0x91, 0xaa, - 0x8d, 0x66, 0x88, 0x91, 0xaa, 0x1d, 0x4e, 0x2f, 0x7b, 0x12, 0xd6, 0x36, 0xda, 0x8c, 0xc3, 0x52, - 0x41, 0x9d, 0x85, 0xae, 0xee, 0x73, 0x03, 0x72, 0xaa, 0x79, 0x32, 0x12, 0x48, 0xb4, 0x53, 0x33, - 0x12, 0xc8, 0x50, 0x0f, 0x06, 0xef, 0x4b, 0x20, 0x37, 0xd0, 0xb5, 0x38, 0x10, 0xe6, 0x93, 0x06, - 0x38, 0x8a, 0x1f, 0x9c, 0xd2, 0x87, 0x8f, 0xd0, 0xfb, 0x90, 0x15, 0xfe, 0x86, 0xf0, 0x48, 0x93, - 0x19, 0xb8, 0xbb, 0xb9, 0x91, 0x4a, 0xa3, 0x30, 0x5c, 0x93, 0x18, 0x36, 0xd0, 0xd5, 0x24, 0x6b, - 0xb2, 0x23,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, 0x06, 0x7d, 0xa4, 0x4a, 0x23, 0x55, - 0x71, 0xc8, 0x74, 0xff, 0xe6, 0x61, 0x92, 0x55, 0x46, 0x8b, 0x1b, 0xf3, 0x6a, 0x0a, 0xc5, 0x78, - 0xf9, 0x0e, 0xe5, 0xf2, 0x4d, 0x80, 0x3e, 0x33, 0x60, 0xf1, 0xbe, 0xcb, 0x78, 0x50, 0x49, 0x68, - 0x08, 0x09, 0xa1, 0x26, 0x56, 0xef, 0x98, 0x9b, 0xe9, 0x44, 0x51, 0x83, 0xc0, 0x09, 0x06, 0x41, - 0x6c, 0xbb, 0xa2, 0xff, 0x69, 0xd1, 0x58, 0x82, 0xf2, 0x21, 0x05, 0x4b, 0xac, 0xc8, 0x49, 0xc2, - 0x92, 0x50, 0x88, 0xa4, 0x60, 0x61, 0xdd, 0xea, 0x00, 0xcb, 0x6f, 0x0c, 0xd5, 0x72, 0x08, 0xea, - 0x8a, 0x14, 0x30, 0xb1, 0xd2, 0x26, 0x09, 0x4c, 0xbc, 0x42, 0x49, 0xf3, 0x14, 0xa1, 0xa1, 0x24, - 0x30, 0x2a, 0x21, 0xa7, 0x83, 0x19, 0xca, 0xf2, 0x9b, 0xe9, 0x44, 0x67, 0x03, 0xa3, 0x92, 0x3a, - 0xfa, 0xd8, 0x50, 0x65, 0xbb, 0x2e, 0x29, 0x34, 0x94, 0x64, 0x8b, 0x0c, 0x3f, 0x97, 0x4d, 0x9c, - 0x46, 0xa2, 0x60, 0x6c, 0x48, 0x18, 0x2b, 0xe8, 0x4a, 0x32, 0x0c, 0x26, 0x88, 0xc3, 0x6e, 0x23, - 0x52, 0x5f, 0xba, 0xdb, 0x84, 0x13, 0xe8, 0xd5, 0x14, 0x8a, 0xb3, 0xb9, 0x8d, 0x48, 0xa1, 0x81, - 0xa9, 0x9e, 0x45, 0x21, 0xe5, 0xb3, 0x28, 0xa4, 0x3c, 0x52, 0x21, 0x89, 0xa6, 0x1a, 0x52, 0xc8, - 0x2f, 0x0c, 0xb8, 0xa4, 0xb0, 0x8c, 0xd3, 0x47, 0x79, 0xbc, 0x3e, 0xca, 0x23, 0xf4, 0x81, 0xaf, - 0x24, 0xa3, 0xf0, 0xf5, 0xf1, 0x08, 0x90, 0x82, 0x30, 0x46, 0x1d, 0xe5, 0xb1, 0xea, 0x28, 0x27, - 0xab, 0x03, 0x9b, 0xc9, 0xf2, 0xa5, 0x3a, 0x7e, 0x6f, 0x40, 0x41, 0xc8, 0x8f, 0x14, 0x17, 0x1a, - 0x45, 0x42, 0xb8, 0x4e, 0xaa, 0x67, 0x92, 0x5e, 0x19, 0x89, 0xc5, 0x0a, 0xde, 0x95, 0x88, 0x30, - 0x5e, 0x8f, 0x23, 0xb2, 0xe5, 0x06, 0xad, 0x9a, 0xc3, 0x37, 0xbe, 0x7a, 0xb2, 0x6a, 0x7c, 0xfd, - 0x64, 0xd5, 0xf8, 0xe6, 0xc9, 0xaa, 0xf1, 0xc5, 0xd3, 0xd5, 0x89, 0xaf, 0x9f, 0xae, 0x4e, 0xfc, - 0xf5, 0xe9, 0xea, 0xc4, 0x8f, 0xb7, 0x43, 0xdd, 0x39, 0xda, 0x6b, 0xb9, 0x2c, 0xc4, 0xab, 0x2f, - 0xb9, 0xc9, 0x0e, 0x5d, 0x75, 0x4a, 0x36, 0x03, 0xff, 0xff, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, - 0xcd, 0xe1, 0xa6, 0x8e, 0x3f, 0x20, 0x00, 0x00, + // 2078 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0xcf, 0x6f, 0x1b, 0xc7, + 0xf5, 0xd7, 0x9a, 0x94, 0x48, 0x3d, 0xc9, 0x36, 0x35, 0x96, 0x6c, 0x6a, 0xbf, 0x12, 0x29, 0xaf, + 0xf5, 0xcb, 0xb6, 0xb2, 0xfb, 0x95, 0x1a, 0x24, 0x68, 0x2e, 0x8d, 0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0x3b, 0xd4, 0xb0, 0xb1, 0xdf, 0xd6, + 0xef, 0x3a, 0x3e, 0x2b, 0xb1, 0xf8, 0x69, 0xed, 0x18, 0x2e, 0x1c, 0x13, 0x9f, 0x69, 0x57, 0xfa, + 0xc6, 0x26, 0x40, 0x1b, 0x3b, 0x66, 0x97, 0xb8, 0xec, 0x0a, 0x41, 0x0e, 0x59, 0x14, 0x3b, 0x77, + 0x4d, 0x74, 0x19, 0x16, 0xda, 0xa4, 0x63, 0xb5, 0x7d, 0xf9, 0xbc, 0x83, 0x95, 0xb6, 0x03, 0x17, + 0x47, 0x8c, 0xc6, 0x97, 0x9a, 0x2c, 0x66, 0xb4, 0x5f, 0xc0, 0xca, 0x2d, 0xd3, 0x9c, 0xa8, 0x1e, + 0x67, 0x88, 0x64, 0x61, 0xc6, 0x34, 0x5d, 0x51, 0xd6, 0xf1, 0xff, 0xe8, 0x75, 0x58, 0xc0, 0x36, + 0xab, 0x4b, 0x8b, 0x19, 0xee, 0xc4, 0xeb, 0x91, 0xda, 0x43, 0x56, 0x1d, 0x55, 0xda, 0x71, 0x64, + 0x29, 0x10, 0x90, 0xb3, 0x7a, 0x23, 0x0c, 0x20, 0x80, 0xca, 0x60, 0xd5, 0xfb, 0xcd, 0xff, 0x2e, + 0xac, 0x30, 0x00, 0x01, 0xeb, 0x3d, 0x58, 0x39, 0x26, 0xfe, 0x8b, 0xc3, 0x5a, 0x85, 0x79, 0x93, + 0x38, 0xd4, 0x16, 0x99, 0x3e, 0x58, 0x68, 0xf7, 0x01, 0x85, 0xb9, 0x0b, 0xab, 0xbd, 0x3e, 0x51, + 0x8e, 0x57, 0x36, 0x19, 0xd0, 0x54, 0x57, 0x0a, 0xaa, 0xf5, 0x3b, 0x1c, 0xec, 0x44, 0xab, 0xf3, + 0xfc, 0x60, 0x35, 0x9d, 0xc3, 0x4a, 0x68, 0x35, 0x45, 0x27, 0x22, 0x1e, 0x89, 0x5c, 0x6a, 0xef, + 0x72, 0xcf, 0xab,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x0d, 0x82, 0xc8, 0xc0, + 0xa6, 0x5e, 0x28, 0x1c, 0x0d, 0x79, 0x40, 0xe2, 0xc3, 0xa0, 0xe6, 0x02, 0x9f, 0x3b, 0x7d, 0xe7, + 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x5d, 0xc8, 0x46, 0xaa, 0x1e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/evm/types/query.pb.gw.go b/x/evm/types/query.pb.gw.go index e91e2f5d81..c52b6b2cc6 100644 --- a/x/evm/types/query.pb.gw.go +++ b/x/evm/types/query.pb.gw.go @@ -595,662 +595,13 @@ func local_request_Query_BaseFee_0(ctx context.Context, marshaler runtime.Marsha } -var ( - filter_Query_QueryGetHashStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_QueryGetHashStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetHashRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetHashStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.QueryGetHashStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_QueryGetHashStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetHashRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetHashStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.QueryGetHashStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_PostAddBalanceStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_PostAddBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddBalanceRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostAddBalanceStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PostAddBalanceStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_PostAddBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddBalanceRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostAddBalanceStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PostAddBalanceStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_PostSubBalanceStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_PostSubBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SubBalanceRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSubBalanceStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PostSubBalanceStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_PostSubBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SubBalanceRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSubBalanceStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PostSubBalanceStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_QueryGetBalanceStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_QueryGetBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBalanceRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetBalanceStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.QueryGetBalanceStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_QueryGetBalanceStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBalanceRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetBalanceStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.QueryGetBalanceStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_QueryGetAccountStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_QueryGetAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetAccountRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetAccountStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.QueryGetAccountStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_QueryGetAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetAccountRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetAccountStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.QueryGetAccountStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_QueryGetStateStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_QueryGetStateStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetStateRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetStateStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.QueryGetStateStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_QueryGetStateStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetStateRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetStateStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.QueryGetStateStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_QueryGetCodeStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_QueryGetCodeStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCodeRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetCodeStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.QueryGetCodeStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_QueryGetCodeStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCodeRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryGetCodeStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.QueryGetCodeStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_PostSetAccountStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_PostSetAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SetAccountRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetAccountStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PostSetAccountStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_PostSetAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SetAccountRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetAccountStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PostSetAccountStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_PostSetStateStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_PostSetStateStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SetStateRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetStateStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PostSetStateStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_PostSetStateStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SetStateRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetStateStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PostSetStateStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_PostSetCodeStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_PostSetCodeStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SetCodeRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetCodeStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PostSetCodeStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_PostSetCodeStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SetCodeRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostSetCodeStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PostSetCodeStateDB(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_PostDeleteAccountStateDB_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_PostDeleteAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteAccountRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostDeleteAccountStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PostDeleteAccountStateDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_PostDeleteAccountStateDB_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteAccountRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PostDeleteAccountStateDB_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PostDeleteAccountStateDB(ctx, &protoReq) - return msg, metadata, err - -} - // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. -func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - - mux.Handle("GET", pattern_Query_Account_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Account_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Account_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_CosmosAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_CosmosAccount_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_CosmosAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_ValidatorAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_ValidatorAccount_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_ValidatorAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Balance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Balance_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Storage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Storage_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Storage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Code_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Code_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Code_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_EthCall_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_EthCall_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_EthCall_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_EstimateGas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_EstimateGas_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_EstimateGas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_TraceTx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_TraceTx_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_TraceTx_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_TraceBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_TraceBlock_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_TraceBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - mux.Handle("GET", pattern_Query_TraceCall_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Account_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1261,7 +612,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_TraceCall_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Account_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1269,11 +620,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_TraceCall_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Account_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_BaseFee_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_CosmosAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1284,7 +635,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_BaseFee_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_CosmosAccount_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1292,11 +643,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_BaseFee_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_CosmosAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryGetHashStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_ValidatorAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1307,7 +658,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryGetHashStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_ValidatorAccount_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1315,11 +666,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryGetHashStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_ValidatorAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Query_PostAddBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Balance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1330,7 +681,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PostAddBalanceStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Balance_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1338,11 +689,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PostAddBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Query_PostSubBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Storage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1353,7 +704,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PostSubBalanceStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Storage_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1361,11 +712,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PostSubBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Storage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryGetBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Code_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1376,7 +727,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryGetBalanceStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Code_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1384,11 +735,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryGetBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Code_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryGetAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1399,7 +750,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryGetAccountStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1407,11 +758,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryGetAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryGetStateStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_EthCall_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1422,7 +773,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryGetStateStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_EthCall_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1430,11 +781,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryGetStateStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_EthCall_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryGetCodeStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_EstimateGas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1445,7 +796,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryGetCodeStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_EstimateGas_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1453,11 +804,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryGetCodeStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_EstimateGas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Query_PostSetAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_TraceTx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1468,7 +819,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PostSetAccountStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_TraceTx_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1476,11 +827,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PostSetAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_TraceTx_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Query_PostSetStateStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_TraceBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1491,7 +842,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PostSetStateStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_TraceBlock_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1499,11 +850,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PostSetStateStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_TraceBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Query_PostSetCodeStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_TraceCall_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1514,7 +865,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PostSetCodeStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_TraceCall_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1522,11 +873,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PostSetCodeStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_TraceCall_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Query_PostDeleteAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_BaseFee_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1537,7 +888,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PostDeleteAccountStateDB_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_BaseFee_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1545,7 +896,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PostDeleteAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_BaseFee_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1850,226 +1201,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_QueryGetHashStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_QueryGetHashStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_QueryGetHashStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Query_PostAddBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_PostAddBalanceStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_PostAddBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Query_PostSubBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_PostSubBalanceStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_PostSubBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_QueryGetBalanceStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_QueryGetBalanceStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_QueryGetBalanceStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_QueryGetAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_QueryGetAccountStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_QueryGetAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_QueryGetStateStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_QueryGetStateStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_QueryGetStateStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_QueryGetCodeStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_QueryGetCodeStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_QueryGetCodeStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Query_PostSetAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_PostSetAccountStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_PostSetAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Query_PostSetStateStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_PostSetStateStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_PostSetStateStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Query_PostSetCodeStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_PostSetCodeStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_PostSetCodeStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Query_PostDeleteAccountStateDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_PostDeleteAccountStateDB_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_PostDeleteAccountStateDB_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -2099,28 +1230,6 @@ var ( pattern_Query_TraceCall_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "trace_call"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_BaseFee_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "base_fee"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_QueryGetHashStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_hash"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_PostAddBalanceStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "add_balance"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_PostSubBalanceStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "sub_balance"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_QueryGetBalanceStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_balance"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_QueryGetAccountStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_account"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_QueryGetStateStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_state"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_QueryGetCodeStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "get_code"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_PostSetAccountStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "set_account"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_PostSetStateStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "set_state"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_PostSetCodeStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "set_code"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_PostDeleteAccountStateDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ethermint", "evm", "v1", "delete_account"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -2149,26 +1258,4 @@ var ( forward_Query_TraceCall_0 = runtime.ForwardResponseMessage forward_Query_BaseFee_0 = runtime.ForwardResponseMessage - - forward_Query_QueryGetHashStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_PostAddBalanceStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_PostSubBalanceStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_QueryGetBalanceStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_QueryGetAccountStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_QueryGetStateStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_QueryGetCodeStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_PostSetAccountStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_PostSetStateStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_PostSetCodeStateDB_0 = runtime.ForwardResponseMessage - - forward_Query_PostDeleteAccountStateDB_0 = runtime.ForwardResponseMessage ) diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index fd6ce83d91..aeb6c52a89 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -9,7 +9,7 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - types "github.com/tendermint/tendermint/proto/tendermint/types" + types "github.com/cometbft/cometbft/proto/tendermint/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -1596,7 +1596,7 @@ type PrepareTxEVMConfig struct { EvmDenom string `protobuf:"bytes,7,opt,name=evm_denom,json=evmDenom,proto3" json:"evm_denom,omitempty"` ExtraEips []int64 `protobuf:"varint,8,rep,packed,name=extra_eips,json=extraEips,proto3" json:"extra_eips,omitempty"` // *rpctypes.StateOverride : original type - Overrides map[string]*OverrideAccount `protobuf:"bytes,9,rep,name=overrides,proto3" json:"overrides,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Overrides []byte `protobuf:"bytes,9,opt,name=overrides,proto3" json:"overrides,omitempty"` } func (m *PrepareTxEVMConfig) Reset() { *m = PrepareTxEVMConfig{} } @@ -1688,7 +1688,7 @@ func (m *PrepareTxEVMConfig) GetExtraEips() []int64 { return nil } -func (m *PrepareTxEVMConfig) GetOverrides() map[string]*OverrideAccount { +func (m *PrepareTxEVMConfig) GetOverrides() []byte { if m != nil { return m.Overrides } @@ -2251,87 +2251,6 @@ func (m *EthLog) GetRemoved() bool { return false } -type OverrideAccount struct { - // *hexutil.Uint64 - Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"` - // *hexutil.Bytes - Code []byte `protobuf:"bytes,2,opt,name=Code,proto3" json:"Code,omitempty"` - // **hexutil.Big - Balance uint64 `protobuf:"varint,3,opt,name=Balance,proto3" json:"Balance,omitempty"` - // *map[common.Hash]common.Hash - State map[string]string `protobuf:"bytes,4,rep,name=state,proto3" json:"state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // *map[common.Hash]common.Hash - StateDiff map[string]string `protobuf:"bytes,5,rep,name=state_diff,json=stateDiff,proto3" json:"state_diff,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (m *OverrideAccount) Reset() { *m = OverrideAccount{} } -func (m *OverrideAccount) String() string { return proto.CompactTextString(m) } -func (*OverrideAccount) ProtoMessage() {} -func (*OverrideAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{31} -} -func (m *OverrideAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OverrideAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OverrideAccount.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *OverrideAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_OverrideAccount.Merge(m, src) -} -func (m *OverrideAccount) XXX_Size() int { - return m.Size() -} -func (m *OverrideAccount) XXX_DiscardUnknown() { - xxx_messageInfo_OverrideAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_OverrideAccount proto.InternalMessageInfo - -func (m *OverrideAccount) GetNonce() uint64 { - if m != nil { - return m.Nonce - } - return 0 -} - -func (m *OverrideAccount) GetCode() []byte { - if m != nil { - return m.Code - } - return nil -} - -func (m *OverrideAccount) GetBalance() uint64 { - if m != nil { - return m.Balance - } - return 0 -} - -func (m *OverrideAccount) GetState() map[string]string { - if m != nil { - return m.State - } - return nil -} - -func (m *OverrideAccount) GetStateDiff() map[string]string { - if m != nil { - return m.StateDiff - } - return nil -} - func init() { proto.RegisterType((*PrepareTxRequest)(nil), "ethermint.sgx.v1.PrepareTxRequest") proto.RegisterType((*PrepareTxResponse)(nil), "ethermint.sgx.v1.PrepareTxResponse") @@ -2359,171 +2278,156 @@ func init() { proto.RegisterType((*StateDBGetLogsResponse)(nil), "ethermint.sgx.v1.StateDBGetLogsResponse") proto.RegisterType((*Message)(nil), "ethermint.sgx.v1.Message") proto.RegisterType((*PrepareTxEVMConfig)(nil), "ethermint.sgx.v1.PrepareTxEVMConfig") - proto.RegisterMapType((map[string]*OverrideAccount)(nil), "ethermint.sgx.v1.PrepareTxEVMConfig.OverridesEntry") proto.RegisterType((*ChainConfig)(nil), "ethermint.sgx.v1.ChainConfig") proto.RegisterType((*EthashConfig)(nil), "ethermint.sgx.v1.EthashConfig") proto.RegisterType((*CliqueConfig)(nil), "ethermint.sgx.v1.CliqueConfig") proto.RegisterType((*TxConfig)(nil), "ethermint.sgx.v1.TxConfig") proto.RegisterType((*EthLog)(nil), "ethermint.sgx.v1.EthLog") - proto.RegisterType((*OverrideAccount)(nil), "ethermint.sgx.v1.OverrideAccount") - proto.RegisterMapType((map[string]string)(nil), "ethermint.sgx.v1.OverrideAccount.StateDiffEntry") - proto.RegisterMapType((map[string]string)(nil), "ethermint.sgx.v1.OverrideAccount.StateEntry") } func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } var fileDescriptor_1d9fb6e76534f03e = []byte{ - // 2391 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0x4d, 0x6f, 0x23, 0xc7, - 0xd1, 0x16, 0x45, 0x8a, 0x22, 0x8b, 0x14, 0x45, 0xf5, 0xca, 0xbb, 0x23, 0xae, 0x57, 0x2b, 0x8f, - 0x3f, 0x56, 0x5e, 0xdb, 0xd4, 0x4a, 0x86, 0xfc, 0x0a, 0x86, 0xdf, 0x20, 0x2b, 0x4a, 0xd6, 0xca, - 0xd9, 0xf5, 0xca, 0x5c, 0xc5, 0x87, 0x5c, 0x06, 0xcd, 0x99, 0xd6, 0xb0,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0x3d, - 0xf2, 0x06, 0x54, 0xb9, 0x70, 0xba, 0x51, 0x8f, 0x09, 0xc9, 0xa8, 0x87, 0x2a, 0x4a, 0xed, 0x0a, - 0x17, 0xcf, 0x12, 0x16, 0x79, 0x00, 0x15, 0x2e, 0x1c, 0xe6, 0x70, 0xa7, 0xbf, 0xbb, 0xff, 0x04, - 0x9d, 0x2e, 0xb5, 0x4b, 0x5c, 0x1c, 0x9f, 0x9e, 0xed, 0xee, 0x3f, 0x99, 0x14, 0xef, 0xe3, 0xd5, - 0x19, 0x8b, 0xf7, 0x27, 0xc5, 0x07, 0x78, 0x8b, 0xc6, 0xe2, 0x03, 0xa3, 0xbf, 0x73, 0xf5, 0x0d, - 0x0d, 0x25, 0x1f, 0xf4, 0xf0, 0x46, 0xa1, 0xfe, 0xc3, 0x84, 0x45, 0xde, 0x83, 0x35, 0x2e, 0x54, - 0x80, 0x15, 0x52, 0x71, 0xc2, 0xa8, 0x1f, 0x30, 0x6b, 0x19, 0x71, 0x75, 0x2e, 0x5a, 0x13, 0x7c, - 0x15, 0x66, 0xb8, 0x70, 0xfa, 0x4c, 0xb2, 0x58, 0x74, 0x06, 0xb1, 0x6f, 0x95, 0x10, 0x58, 0xe5, - 0xe2, 0x2c, 0xe5, 0x91, 0x87, 0x68, 0x13, 0x57, 0xe3, 0x3a, 0x83, 0xc0, 0x2a, 0x23, 0x04, 0xb8, - 0x38, 0x35, 0x1c, 0x72, 0x1f, 0xca, 0xca, 0x2a, 0x16, 0x07, 0x3c, 0xb4, 0x20, 0x31, 0xf9, 0x10, - 0x69, 0x23, 0x0c, 0xa2, 0xd0, 0x8b, 0x42, 0xab, 0x92, 0x08, 0x9f, 0x23, 0xad, 0x96, 0x9a, 0x0b, - 0xa7, 0xc7, 0x62, 0x9f, 0x59, 0x55, 0x94, 0x2d, 0x73, 0xf1, 0x42, 0x91, 0x46, 0xab, 0xe8, 0xd2, - 0xd0, 0xef, 0x52, 0x6e, 0xad, 0x24, 0x5a, 0x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6, 0xbc, 0x0a, 0xaa, 0x5f, 0x51, 0xfc, 0x93, 0xd4, 0xc4, 0x87, 0x50, 0x41, - 0xa0, 0x2a, 0x61, 0x99, 0xb0, 0xaa, 0x78, 0xe1, 0x40, 0xb1, 0x9e, 0x21, 0x87, 0x34, 0xe1, 0x8e, - 0xb8, 0xe4, 0x7d, 0x87, 0xba, 0xae, 0x4a, 0x74, 0x8e, 0xdb, 0x65, 0xee, 0xa5, 0x30, 0xb1, 0x63, - 0x4d, 0x89, 0x9e, 0x6a, 0x49, 0x0b, 0x05, 0xf6, 0xef, 0x0b, 0x40, 0xa6, 0x4b, 0x4d, 0xf2, 0x12, - 0xd6, 0x74, 0x02, 0xd0, 0x65, 0xaa, 0xf3, 0x6b, 0x11, 0x85, 0xb8, 0x87, 0x33, 0x9d, 0x6b, 0x29, - 0xe8, 0x44, 0x91, 0xba, 0xea, 0x8e, 0x59, 0x9f, 0x89, 0x08, 0xa3, 0x91, 0xba, 0xa6, 0x0e, 0xde, - 0xdb, 0xc5, 0xf1, 0xbd, 0x3d, 0x54, 0xf7, 0x76, 0x03, 0x4a, 0x8a, 0xaf, 0x5c, 0x37, 0x27, 0x60, - 0x59, 0xd1, 0x9f, 0x32, 0x46, 0xfe, 0x1f, 0xca, 0x72, 0x34, 0x59, 0x2c, 0x37, 0xa6, 0x0d, 0x38, - 0x1f, 0x4d, 0x68, 0x2f, 0x49, 0x43, 0xab, 0xf5, 0xf2, 0x58, 0x67, 0xe0, 0x3b, 0xaa, 0x64, 0x64, - 0x26, 0x99, 0x00, 0xb2, 0xce, 0x15, 0x47, 0xed, 0x79, 0x18, 0x39, 0xa9, 0x76, 0x9d, 0x4d, 0xca, - 0x61, 0x74, 0x68, 0xf4, 0xdf, 0x07, 0x55, 0x6f, 0x3b, 0x1e, 0x0b, 0xa3, 0x1e, 0x9e, 0x98, 0x72, - 0xbb, 0xc4, 0x86, 0xbd, 0x23, 0x45, 0xab, 0xbb, 0xc4, 0x46, 0x32, 0xa6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d, 0xaf, 0x46, 0xf3, 0xb6, 0xf0, 0x54, 0x31, 0x4b, 0x2e, 0x54, 0xf2, 0x2c, 0x27, 0x8f, 0xe6, - 0xce, 0x31, 0xd9, 0xa7, 0x68, 0x6c, 0xff, 0x38, 0x30, 0x55, 0x73, 0x09, 0xf5, 0xeb, 0x2f, 0x75, - 0x32, 0x7f, 0x81, 0xae, 0xf7, 0x01, 0x1a, 0x8f, 0x6f, 0x03, 0x9d, 0xe1, 0x93, 0x79, 0xaa, 0xdf, - 0xe0, 0xd3, 0x64, 0x13, 0xe0, 0x06, 0x9f, 0xae, 0xbd, 0xfa, 0xed, 0x85, 0xc3, 0x9f, 0x7f, 0xfb, - 0xfd, 0x66, 0xee, 0xbb, 0xef, 0x37, 0x73, 0x7f, 0xfb, 0x7e, 0x33, 0xf7, 0x87, 0x1f, 0x36, 0x17, - 0xbe, 0xfb, 0x61, 0x73, 0xe1, 0x2f, 0x3f, 0x6c, 0x2e, 0xfc, 0xea, 0x1d, 0x9f, 0xcb, 0xee, 0xa0, - 0xd3, 0x74, 0xa3, 0xde, 0x0e, 0x1b, 0xf6, 0x22, 0xb1, 0x33, 0xfe, 0x5f, 0x67, 0x84, 0xff, 0xec, - 0xe0, 0x3f, 0x27, 0x9d, 0x22, 0xfe, 0x23, 0xf3, 0xe1, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x20, - 0xe5, 0x64, 0xfd, 0xf7, 0x19, 0x00, 0x00, + // 2222 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x6f, 0xdb, 0xc8, + 0x15, 0xb7, 0x2c, 0x5b, 0x96, 0x9e, 0x64, 0x59, 0x9e, 0x78, 0x1d, 0x5a, 0x49, 0x1c, 0x2f, 0xb3, + 0xbb, 0xf1, 0x66, 0x77, 0xe5, 0xd8, 0x85, 0x83, 0xa0, 0x68, 0x8b, 0xc6, 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0x00, 0x8b, 0x9d, 0x24, 0x20, 0x1c, + 0x6d, 0x40, 0xd9, 0xed, 0x61, 0x1a, 0x8e, 0x1e, 0xbf, 0xa4, 0xe4, 0x63, 0x0f, 0x7d, 0x0a, 0x35, + 0xca, 0x9d, 0x1e, 0xeb, 0x13, 0x2e, 0x08, 0xf6, 0x94, 0x89, 0x72, 0xa7, 0x4a, 0xf9, 0xf3, 0x54, + 0x85, 0xee, 0x40, 0x95, 0x72, 0x87, 0x38, 0xd4, 0x89, 0x76, 0xf7, 0x1f, 0xaa, 0xa0, 0xcb, 0x9d, + 0x32, 0xe5, 0x4f, 0x8f, 0x4f, 0x76, 0xf7, 0x1f, 0x8e, 0xc3, 0xfb, 0xea, 0xea, 0x8c, 0xe0, 0xfd, + 0x71, 0xf8, 0xb1, 0xba, 0x45, 0x23, 0xf8, 0xb1, 0xb1, 0xdf, 0xbd, 0xf8, 0x1e, 0x87, 0x82, 0x26, + 0x7d, 0x75, 0xa3, 0x94, 0xfd, 0x83, 0x54, 0x85, 0xbe, 0x82, 0x55, 0xca, 0x65, 0x82, 0xe5, 0x42, + 0x6a, 0x42, 0x16, 0x05, 0xc4, 0x5a, 0x52, 0xbc, 0x06, 0xe5, 0xed, 0x31, 0xbd, 0x4c, 0x33, 0x94, + 0x3b, 0x11, 0x11, 0x24, 0xe6, 0xdd, 0x24, 0xf6, 0xad, 0xb2, 0x22, 0xd6, 0x28, 0x3f, 0xc9, 0x74, + 0xe8, 0xae, 0xf2, 0x89, 0xca, 0x75, 0xdd, 0x24, 0xb0, 0x2a, 0x8a, 0x02, 0x94, 0x1f, 0x1b, 0x0d, + 0xba, 0x05, 0x15, 0xe9, 0x15, 0x89, 0x03, 0x1a, 0x5a, 0x90, 0xba, 0x7c, 0xa0, 0x64, 0x03, 0x06, + 0x2c, 0xf4, 0x58, 0x68, 0x55, 0x53, 0xf0, 0x85, 0x92, 0xe5, 0x56, 0x53, 0xee, 0xf4, 0x49, 0xec, + 0x13, 0xab, 0x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38, 0xa6, 0x97, 0x7c, + 0x09, 0x8d, 0x51, 0xa9, 0x37, 0x74, 0x50, 0xf4, 0x95, 0x91, 0x5e, 0x53, 0x3f, 0x87, 0x7a, 0x5a, + 0xf0, 0x0d, 0xd1, 0xdc, 0xc8, 0x54, 0xab, 0x69, 0x5f, 0x03, 0xea, 0x27, 0x34, 0x76, 0xfc, 0x00, + 0xbb, 0x94, 0xc4, 0x86, 0x5a, 0x53, 0xd4, 0x86, 0x44, 0x8e, 0x34, 0xa0, 0xd9, 0x9f, 0x42, 0x4d, + 0x37, 0x09, 0x86, 0xb7, 0xac, 0xc3, 0xd7, 0xba, 0x8c, 0xa2, 0x5b, 0x05, 0x43, 0xa9, 0x9b, 0x96, + 0x5f, 0xe9, 0x34, 0xa5, 0x05, 0x37, 0x70, 0x1c, 0xb3, 0xef, 0x2e, 0x19, 0x5d, 0x51, 0xcc, 0x55, + 0x05, 0x8d, 0x59, 0xfd, 0x1a, 0x90, 0x1f, 0xe3, 0x8b, 0x4b, 0xf4, 0x86, 0xf6, 0x51, 0x22, 0x63, + 0xec, 0x87, 0xb0, 0xa6, 0xda, 0x11, 0x27, 0x24, 0x82, 0x47, 0x01, 0x15, 0x86, 0xbf, 0xaa, 0xf8, + 0x48, 0x61, 0xaf, 0x0c, 0x94, 0xee, 0xea, 0x72, 0xda, 0xa5, 0x38, 0x82, 0xf6, 0x89, 0x85, 0x24, + 0x55, 0x5d, 0xc6, 0x42, 0xa7, 0x96, 0x42, 0xa7, 0xb4, 0x4f, 0xd0, 0xe7, 0x50, 0xd5, 0xfd, 0x8a, + 0x26, 0xde, 0xc8, 0x11, 0x41, 0x03, 0x29, 0x4d, 0x77, 0x2e, 0x9a, 0xb6, 0x96, 0xa7, 0x69, 0x20, + 0xa5, 0xe9, 0x1e, 0x46, 0xd3, 0x3e, 0xc9, 0xd3, 0x34, 0xa0, 0x68, 0x3f, 0x85, 0x0d, 0xa1, 0x12, + 0x06, 0x0e, 0x1c, 0xc1, 0x04,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 0x01, 0x4a, 0xba, 0xfb, + 0xb8, 0xa2, 0x57, 0x5d, 0x87, 0x92, 0x60, 0x11, 0x75, 0xd3, 0x2e, 0xd5, 0x48, 0x59, 0x51, 0x2f, + 0xe6, 0x8a, 0xba, 0xbc, 0xa5, 0x2a, 0x80, 0x30, 0xe9, 0x77, 0x49, 0x6c, 0x0c, 0x56, 0x95, 0xee, + 0x95, 0x52, 0xe5, 0x83, 0x58, 0x9c, 0x19, 0x44, 0x69, 0x3c, 0x88, 0xf1, 0x7d, 0x59, 0xba, 0xbc, + 0x2f, 0x6a, 0x98, 0x20, 0x97, 0xe9, 0x6c, 0xa7, 0x05, 0x19, 0x51, 0x4c, 0xfa, 0x6c, 0x40, 0x3c, + 0xf3, 0xd9, 0x91, 0x8a, 0x7b, 0x7f, 0x2e, 0x43, 0xed, 0xd7, 0x09, 0x89, 0x2f, 0xde, 0x90, 0x78, + 0x20, 0xfb, 0x9b, 0xb7, 0x50, 0xc9, 0x4a, 0x39, 0xb2, 0xaf, 0x18, 0x29, 0x99, 0x5e, 0xb0, 0x79, + 0xef, 0x4a, 0x8e, 0xe9, 0x5b, 0xe7, 0xd0, 0x4b, 0x28, 0xe9, 0x69, 0x0d, 0xba, 0x3b, 0xe5, 0xec, + 0xe5, 0x67, 0x49, 0xcd, 0xad, 0xd9, 0x84, 0xec, 0x71, 0x47, 0xb0, 0xd0, 0xc6, 0x41, 0x80, 0xa6, + 0x35, 0x12, 0xa3, 0x31, 0x4d, 0x73, 0x73, 0x16, 0x3c, 0xe6, 0x97, 0x9a, 0x64, 0x4c, 0xf5, 0x2b, + 0x3f, 0x13, 0x99, 0xea, 0xd7, 0xf8, 0x10, 0x64, 0x0e, 0x85, 0xb0, 0x3a, 0x31, 0x9b, 0x40, 0x0f, + 0x26, 0x17, 0xce, 0x9a, 0x95, 0x34, 0xbf, 0xba, 0x16, 0x77, 0x8a, 0xbd, 0xd1, 0x0c, 0xe2, 0x0a, + 0x7b, 0x13, 0x33, 0x91, 0x2b, 0xec, 0x4d, 0x19, 0x6a, 0xcc, 0xa1, 0x1e, 0xac, 0x5c, 0x9a, 0x37, + 0xa0, 0xed, 0xd9, 0x4f, 0x18, 0x9f, 0x7c, 0x34, 0xbf, 0xbc, 0x06, 0x33, 0xb3, 0xf4, 0x1d, 0xac, + 0x4d, 0x1b, 0x34, 0xa0, 0x6f, 0x66, 0x3e, 0x64, 0xda, 0x98, 0xa3, 0xd9, 0xba, 0x2e, 0x3d, 0x33, + 0x4c, 0xa0, 0x3e, 0xfe, 0xf5, 0x85, 0xee, 0xcf, 0x7c, 0xc6, 0xf8, 0xe7, 0x68, 0x73, 0xfb, 0xbf, + 0x13, 0x33, 0x33, 0xe7, 0xd0, 0xb8, 0xfc, 0x41, 0x86, 0x66, 0x6f, 0xd0, 0xe5, 0xcf, 0xbd, 0xe6, + 0x83, 0xeb, 0x50, 0xa7, 0xc4, 0x64, 0xbe, 0xc8, 0xae, 0x88, 0x69, 0xfc, 0x5b, 0xef, 0x8a, 0x98, + 0x2e, 0x7d, 0xdc, 0xd9, 0x73, 0x07, 0xbf, 0xfc, 0xe1, 0xfd, 0x66, 0xe1, 0xc7, 0xf7, 0x9b, 0x85, + 0xbf, 0xbd, 0xdf, 0x2c, 0xfc, 0xe1, 0xc3, 0xe6, 0xdc, 0x8f, 0x1f, 0x36, 0xe7, 0xfe, 0xf2, 0x61, + 0x73, 0xee, 0x37, 0x5f, 0xf8, 0x54, 0xf4, 0x92, 0x6e, 0xcb, 0x65, 0xfd, 0x1d, 0x32, 0xe8, 0x33, + 0xbe, 0x33, 0x1a, 0xdf, 0x0f, 0xd5, 0x00, 0x5f, 0x0d, 0xc8, 0xbb, 0x25, 0x35, 0x78, 0xff, 0xc9, + 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x14, 0x7e, 0xa3, 0xde, 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -4133,47 +4037,28 @@ func (m *PrepareTxEVMConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if len(m.Overrides) > 0 { - for k := range m.Overrides { - v := m.Overrides[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintQuery(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x4a - } + i -= len(m.Overrides) + copy(dAtA[i:], m.Overrides) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Overrides))) + i-- + dAtA[i] = 0x4a } if len(m.ExtraEips) > 0 { - dAtA7 := make([]byte, len(m.ExtraEips)*10) - var j6 int + dAtA6 := make([]byte, len(m.ExtraEips)*10) + var j5 int for _, num1 := range m.ExtraEips { num := uint64(num1) for num >= 1<<7 { - dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) + dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j6++ + j5++ } - dAtA7[j6] = uint8(num) - j6++ + dAtA6[j5] = uint8(num) + j5++ } - i -= j6 - copy(dAtA[i:], dAtA7[:j6]) - i = encodeVarintQuery(dAtA, i, uint64(j6)) + i -= j5 + copy(dAtA[i:], dAtA6[:j5]) + i = encodeVarintQuery(dAtA, i, uint64(j5)) i-- dAtA[i] = 0x42 } @@ -4631,84 +4516,6 @@ func (m *EthLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *OverrideAccount) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OverrideAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OverrideAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.StateDiff) > 0 { - for k := range m.StateDiff { - v := m.StateDiff[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintQuery(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintQuery(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.State) > 0 { - for k := range m.State { - v := m.State[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintQuery(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintQuery(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if m.Balance != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Balance)) - i-- - dAtA[i] = 0x18 - } - if len(m.Code) > 0 { - i -= len(m.Code) - copy(dAtA[i:], m.Code) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) - i-- - dAtA[i] = 0x12 - } - if m.Nonce != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -5234,18 +5041,9 @@ func (m *PrepareTxEVMConfig) Size() (n int) { } n += 1 + sovQuery(uint64(l)) + l } - if len(m.Overrides) > 0 { - for k, v := range m.Overrides { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovQuery(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + l - n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) - } + l = len(m.Overrides) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } return n } @@ -5429,41 +5227,6 @@ func (m *EthLog) Size() (n int) { return n } -func (m *OverrideAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Nonce != 0 { - n += 1 + sovQuery(uint64(m.Nonce)) - } - l = len(m.Code) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Balance != 0 { - n += 1 + sovQuery(uint64(m.Balance)) - } - if len(m.State) > 0 { - for k, v := range m.State { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + 1 + len(v) + sovQuery(uint64(len(v))) - n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) - } - } - if len(m.StateDiff) > 0 { - for k, v := range m.StateDiff { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + 1 + len(v) + sovQuery(uint64(len(v))) - n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) - } - } - return n -} - func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -8872,7 +8635,7 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Overrides", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8882,120 +8645,25 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } + m.Overrides = append(m.Overrides[:0], dAtA[iNdEx:postIndex]...) if m.Overrides == nil { - m.Overrides = make(map[string]*OverrideAccount) + m.Overrides = []byte{} } - var mapkey string - var mapvalue *OverrideAccount - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthQuery - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthQuery - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthQuery - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthQuery - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &OverrideAccount{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Overrides[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -10188,382 +9856,6 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } return nil } -func (m *OverrideAccount) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OverrideAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OverrideAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - m.Nonce = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Nonce |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) - if m.Code == nil { - m.Code = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) - } - m.Balance = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Balance |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.State == nil { - m.State = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthQuery - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthQuery - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthQuery - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthQuery - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.State[mapkey] = mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateDiff", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StateDiff == nil { - m.StateDiff = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthQuery - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthQuery - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthQuery - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthQuery - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.StateDiff[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 From 15a0b786b406b182dd2665b314c2598c6999b236 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Thu, 25 Apr 2024 06:57:23 +0000 Subject: [PATCH 39/46] chore: remov panic in gas estimate --- x/evm/keeper/grpc_query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index 4050b3b67c..ec6c324c53 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -392,7 +392,7 @@ func (k Keeper) EstimateGas(c context.Context, req *types.EthCallRequest) (*type VmError: result.VmError, }, nil } - panic(result.VmError) + return nil, errors.New(result.VmError) } // Otherwise, the specified gas cap is too low return nil, fmt.Errorf("gas required exceeds allowance (%d)", gasCap) From e545fdbca09bdec1eba4a98771b990c43fbe1ce4 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Thu, 25 Apr 2024 06:58:28 +0000 Subject: [PATCH 40/46] chore: remove rpc client --- x/evm/keeper/rpc_client.go | 243 ------------------------------------- 1 file changed, 243 deletions(-) delete mode 100644 x/evm/keeper/rpc_client.go diff --git a/x/evm/keeper/rpc_client.go b/x/evm/keeper/rpc_client.go deleted file mode 100644 index 9e3a6c9fa5..0000000000 --- a/x/evm/keeper/rpc_client.go +++ /dev/null @@ -1,243 +0,0 @@ -package keeper - -import ( - "fmt" - "math/big" - "net/rpc" - - "cosmossdk.io/log" - cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core" - ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/params" - "github.com/evmos/ethermint/x/evm/statedb" -) - -type sgxRPCClient struct { - logger log.Logger - cl *rpc.Client -} - -// newSgxRPCClient creates a new RPC client to communicate with the SGX binary. -func newSgxRPCClient(logger log.Logger) (*sgxRPCClient, error) { - // TODO Make ports configurable - cl, err := rpc.DialHTTP("tcp", "localhost"+":9092") - if err != nil { - // panic cosmos app here - panic("sgx rpc server is down") - } - - return &sgxRPCClient{ - logger: logger, - cl: cl, - }, nil -} - -func (c *sgxRPCClient) doCall(method string, args, reply any) error { - c.logger.Debug(fmt.Sprintf("RPC call %s", method), "args", args) - err := c.cl.Call(method, args, reply) - c.logger.Debug(fmt.Sprintf("RPC call %s", method), "reply", reply) - return err -} - -func (c *sgxRPCClient) PrepareTx(args PrepareTxArgs, reply *PrepareTxReply) error { - return c.doCall("SgxRpcServer.PrepareTx", args, reply) -} - -func (c *sgxRPCClient) Call(args CallArgs, reply *CallReply) error { - return c.doCall("SgxRpcServer.Call", args, reply) -} - -func (c *sgxRPCClient) Create(args CreateArgs, reply *CreateReply) error { - return c.doCall("SgxRpcServer.Create", args, reply) -} - -func (c *sgxRPCClient) Commit(args CommitArgs, reply *CommitReply) error { - return c.doCall("SgxRpcServer.Commit", args, reply) -} - -func (c *sgxRPCClient) StateDBAddBalance(args StateDBAddBalanceArgs, reply *StateDBAddBalanceReply) error { - return c.doCall("SgxRpcServer.StateDBAddBalance", args, reply) -} - -func (c *sgxRPCClient) StateDBSubBalance(args StateDBSubBalanceArgs, reply *StateDBSubBalanceReply) error { - return c.doCall("SgxRpcServer.StateDBSubBalance", args, reply) -} - -func (c *sgxRPCClient) StateDBSetNonce(args StateDBSetNonceArgs, reply *StateDBSetNonceReply) error { - return c.doCall("SgxRpcServer.StateDBSetNonce", args, reply) -} - -func (c *sgxRPCClient) StateDBIncreaseNonce(args StateDBIncreaseNonceArgs, reply *StateDBIncreaseNonceReply) error { - return c.doCall("SgxRpcServer.StateDBIncreaseNonce", args, reply) -} - -func (c *sgxRPCClient) StateDBPrepare(args StateDBPrepareArgs, reply *StateDBPrepareReply) error { - return c.doCall("SgxRpcServer.StateDBPrepare", args, reply) -} - -func (c *sgxRPCClient) StateDBGetRefund(args StateDBGetRefundArgs, reply *StateDBGetRefundReply) error { - return c.doCall("SgxRpcServer.StateDBGetRefund", args, reply) -} - -func (c *sgxRPCClient) StateDBGetLogs(args StateDBGetLogsArgs, reply *StateDBGetLogsReply) error { - return c.doCall("SgxRpcServer.StateDBGetLogs", args, reply) -} - -// PrepareTxEVMConfig only contains the fields from EVMConfig that are needed -// to create a new EVM instance. This is used to pass the EVM configuration -// over RPC to the SGX binary. -type PrepareTxEVMConfig struct { - // ChainConfig is the EVM chain configuration in JSON format. Since the - // underlying params.ChainConfig struct contains pointer fields, they are - // not serializable over RPC with gob. Instead, the JSON representation is - // used. - ChainConfigJson []byte - - // Fields from EVMConfig - CoinBase common.Address - BaseFee *big.Int - TxConfig statedb.TxConfig - DebugTrace bool - - // Fields from EVMConfig.FeeMarketParams struct - NoBaseFee bool - - // Fields from EVMConfig.Params struct - EvmDenom string - ExtraEips []int - // *rpctypes.StateOverride : original type - Overrides []byte -} - -// PrepareTxArgs is the argument struct for the SgxRpcServer.PrepareTx RPC method. -type PrepareTxArgs struct { - TxHash []byte - // Header is the Tendermint header of the block in which the transaction - // will be executed. - Header cmtproto.Header - // Msg is the EVM transaction message to run on the EVM. - Msg core.Message - // EvmConfig is the EVM configuration to set. - EvmConfig PrepareTxEVMConfig -} - -// PrepareTxArgs is the reply struct for the SgxRpcServer.PrepareTx RPC method. -type PrepareTxReply struct { - // Handler Id - HandlerId uint64 -} - -// CallArgs is the argument struct for the SgxRpcServer.Call RPC method. -type CallArgs struct { - HandlerId uint64 - Caller vm.AccountRef - Addr common.Address - Input []byte - Gas uint64 - Value *big.Int -} - -// CallReply is the reply struct for the SgxRpcServer.Call RPC method. -type CallReply struct { - Ret []byte - LeftOverGas uint64 -} - -// CreateArgs is the argument struct for the SgxRpcServer.Create RPC method. -type CreateArgs struct { - HandlerId uint64 - Caller vm.AccountRef - Code []byte - Gas uint64 - Value *big.Int -} - -// CreateReply is the reply struct for the SgxRpcServer.Create RPC method. -type CreateReply struct { - Ret []byte - ContractAddr common.Address - LeftOverGas uint64 -} - -// CommitArgs is the argument struct for the SgxRpcServer.Commit RPC method. -type CommitArgs struct { - HandlerId uint64 - Commit bool -} - -// CommitReply is the reply struct for the SgxRpcServer.Commit RPC method. -type CommitReply struct { -} - -// CommitArgs is the argument struct for the SgxRpcServer.StateDBSubBalance RPC method. -type StateDBSubBalanceArgs struct { - HandlerId uint64 - Caller vm.AccountRef - Msg core.Message -} - -// CommitReply is the reply struct for the SgxRpcServer.StateDBSubBalance RPC method. -type StateDBSubBalanceReply struct { -} - -// CommitArgs is the argument struct for the SgxRpcServer.StateDSetNonce RPC method. -type StateDBSetNonceArgs struct { - HandlerId uint64 - Caller vm.AccountRef - Nonce uint64 -} - -// CommitReply is the reply struct for the SgxRpcServer.StateDSetNonce RPC method. -type StateDBSetNonceReply struct { -} - -// StateDBAddBalanceArgs is the argument struct for the SgxRpcServer.StateDBAddBalance RPC method. -type StateDBAddBalanceArgs struct { - HandlerId uint64 - Caller vm.AccountRef - Msg core.Message - LeftoverGas uint64 -} - -// StateDBAddBalanceReply is the reply struct for the SgxRpcServer.StateDBAddBalance RPC method. -type StateDBAddBalanceReply struct { -} - -type StateDBPrepareArgs struct { - HandlerId uint64 - Msg core.Message - Rules params.Rules -} - -type StateDBPrepareReply struct { -} - -// StateDBIncreaseNonceArgs is the argument struct for the SgxRpcServer.StateDBIncreaseNonce RPC method. -type StateDBIncreaseNonceArgs struct { - HandlerId uint64 - Caller vm.AccountRef - Msg core.Message -} - -// StateDBIncreaseNonceReply is the reply struct for the SgxRpcServer.StateDBIncreaseNonce RPC method. -type StateDBIncreaseNonceReply struct { -} - -type StateDBGetRefundArgs struct { - HandlerId uint64 -} - -type StateDBGetRefundReply struct { - Refund uint64 -} - -type StateDBGetLogsArgs struct { - HandlerId uint64 -} - -type StateDBGetLogsReply struct { - Logs []*ethtypes.Log -} From e30564b8a4b97b896c8709ea494e468bb1f59d6a Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Thu, 25 Apr 2024 14:55:54 +0000 Subject: [PATCH 41/46] chore: json marshal --- proto/ethermint/sgx/v1/query.proto | 75 ++-- x/evm/keeper/grpc_query.go | 4 +- x/evm/keeper/state_transition.go | 215 ++------- x/evm/migrations/v4/types/params_v4.pb.go | 7 +- x/sgx/types/query.pb.go | 511 +++++++++++----------- 5 files changed, 359 insertions(+), 453 deletions(-) diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index 2feea6ba5c..d95d5c2c9f 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -60,7 +60,8 @@ message PrepareTxRequest { // will be executed. tendermint.types.Header header = 2[(gogoproto.nullable) = false]; // Header cmtproto.Header // Msg is the EVM transaction message to run on the EVM. - Message msg = 3[(gogoproto.nullable) = false]; // Msg core.Message + // Original type: core.Message + bytes msg = 3; // EvmConfig is the EVM configuration to set. PrepareTxEVMConfig evm_config = 4[(gogoproto.nullable) = false]; // EvmConfig PrepareTxEVMConfig } @@ -206,7 +207,8 @@ message StateDBPrepareRequest { bytes coinbase = 3; // Original data type: common.Address bytes dest = 4; - Rules rules = 5; + // Original type: params.Rules + bytes rules = 5; repeated AccessTuple access_list = 6; } @@ -236,9 +238,11 @@ message Message { bytes to = 1; // Original type: common.Address bytes from = 2; + // Original type: uint64 uint64 nonce = 3; - // *big.Int + // Original type: *big.Int uint64 value = 4; + // Original type: uint64 uint64 gas_limit = 5; // Original type: *big.Int uint64 gas_price = 6; @@ -246,6 +250,7 @@ message Message { uint64 gas_fee_cap = 7; // Original type: *big.Int uint64 gas_tip_cap = 8; + // Original type: []byte bytes data = 9; // Original types: AccessList repeated AccessTuple access_list = 10 [(gogoproto.nullable) = false]; @@ -256,6 +261,7 @@ message Message { // When SkipAccountChecks is true, the message nonce is not checked against the // account nonce in state. It also disables checking that the sender is an EOA. // This field will be set to true for operations like RPC eth_call. + // Original type: bool bool skip_account_checks = 13; } @@ -264,7 +270,8 @@ message PrepareTxEVMConfig { // underlying params.ChainConfig struct contains pointer fields, they are // not serializable over RPC with gob. Instead, the JSON representation is // used. - ChainConfig chain_config_json = 1[(gogoproto.nullable) = false]; + // Original type: params.ChainConfig + bytes chain_config_json = 1; // Fields from EVMConfig // Original type: common.Address bytes coin_base = 2; @@ -272,79 +279,89 @@ message PrepareTxEVMConfig { uint64 base_fee = 3; // Original type: statedb.TxConfig TxConfig tx_config = 4[(gogoproto.nullable) = false]; + // Original type: bool bool debug_trace = 5; // Fields from EVMConfig.FeeMarketParams struct + // Original type: bool bool no_base_fee = 6; // Fields from EVMConfig.Params struct + // Original type: string string evm_denom = 7; + // Original type: []int64 repeated int64 extra_eips = 8; - // *rpctypes.StateOverride : original type + // type StateOverride map[common.Address]OverrideAccount + // Original type: *rpctypes.StateOverride bytes overrides = 9; } message ChainConfig { - // *big.Int + // Original type:*big.Int uint64 chain_i_d = 1; // chainId identifies the current chain and is used for replay protection - // *big.Int + // Original type: *big.Int uint64 homestead_block = 2; // Homestead switch block (nil = no fork, 0 = already homestead) - // *big.Int + // Original type: *big.Int uint64 d_a_o_fork_block = 3; // TheDAO hard-fork switch block (nil = no fork) - bool d_a_o_fork_support = 4; // Whether the nodes supports or opposes the DAO hard-fork + // Original type: bool + bool d_a_o_fork_support = 4; // Whether the nodes supports or opposes the DAO hard-fork // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) - // *big.Int + // Original type: *big.Int uint64 e_i_p_150_block = 5; // EIP150 HF block (nil = no fork) - // *big.Int + // Original type: *big.Int uint64 e_i_p155_block = 6; // EIP155 HF block - // *big.Int + // Original type: *big.Int uint64 e_i_p158_block = 7; // EIP158 HF block - // *big.Int + // Original type: *big.Int uint64 byzantium_block = 8; // Byzantium switch block (nil = no fork, 0 = already on byzantium) - // *big.Int + // Original type: *big.Int uint64 constantinople_block = 9; // Constantinople switch block (nil = no fork, 0 = already activated) - // *big.Int + // Original type: *big.Int uint64 petersburg_block = 10; // Petersburg switch block (nil = same as Constantinople) - // *big.Int + // Original type: *big.Int uint64 istanbul_block = 11; // Istanbul switch block (nil = no fork, 0 = already on istanbul) - // *big.Int + // Original type: *big.Int uint64 muir_glacier_block = 12; // Eip-2384 (bomb delay) switch block (nil = no fork, 0 = already activated) - // *big.Int + // Original type: *big.Int uint64 berlin_block = 13; // Berlin switch block (nil = no fork, 0 = already on berlin) - // *big.Int + // Original type: *big.Int uint64 london_block = 14; // London switch block (nil = no fork, 0 = already on london) - // *big.Int + // Original type: *big.Int uint64 arrow_glacier_block = 15; // Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated) - // *big.Int + // Original type: *big.Int uint64 gray_glacier_block = 16; // Eip-5133 (bomb delay) switch block (nil = no fork, 0 = already activated) - // *big.Int + // Original type: *big.Int uint64 merge_netsplit_block = 17; // Virtual fork after The Merge to use as a network splitter // Fork scheduling was switched from blocks to timestamps here - // *uint64 + // Original type: *uint64 uint64 shanghai_time = 18[(gogoproto.nullable) = true]; // Shanghai switch time (nil = no fork, 0 = already on shanghai) - // *uint64 + // Original type: *uint64 uint64 cancun_time = 19[(gogoproto.nullable) = true]; // Cancun switch time (nil = no fork, 0 = already on cancun) - // *uint64 + // Original type: *uint64 uint64 prague_time = 20[(gogoproto.nullable) = true]; // Prague switch time (nil = no fork, 0 = already on prague) - // *uint64 + // Original type: *uint64 uint64 verkle_time = 21[(gogoproto.nullable) = true]; // Verkle switch time (nil = no fork, 0 = already on verkle) // TerminalTotalDifficulty is the amount of total difficulty reached by // the network that triggers the consensus upgrade. - // *big.Int + // Original type: *big.Int uint64 terminal_total_difficulty = 22; // TerminalTotalDifficultyPassed is a flag specifying that the network already // passed the terminal total difficulty. Its purpose is to disable legacy sync // even without having seen the TTD locally (safer long term). + // Original type: bool bool terminal_total_difficulty_passed = 23; // Various consensus engines + // Original type: params.EthashConfig EthashConfig ethash = 24; + // Original type: params.CliqueConfig CliqueConfig clique = 25; + // Original type: bool bool is_dev_mode = 26; } @@ -352,7 +369,9 @@ message EthashConfig {} // CliqueConfig is the consensus engine configs for proof-of-authority based sealing. message CliqueConfig { + // Original type: uint64 uint64 Period = 1; // Number of seconds between blocks to enforce + // Original type: uint64 uint64 Epoch = 2; // Epoch length to reset votes and checkpoint } @@ -362,7 +381,9 @@ message TxConfig { bytes block_hash = 1; // hash of current block // Original type: common.Hash bytes tx_hash = 2; // hash of current tx + // Original type: int64 uint64 tx_index = 3; // the index of current transaction + // Original type: int64 uint64 log_index = 4; // the index of next log within current block } diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index ec6c324c53..6a2a77a6c0 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -944,6 +944,6 @@ func (k Keeper) PostDeleteAccountStateDB(_ context.Context, req *types.DeleteAcc addr := common.HexToAddress(req.Addr) - k.DeleteAccount(*ctx, addr) - return &types.DeleteAccountResponse{}, nil + err := k.DeleteAccount(*ctx, addr) + return &types.DeleteAccountResponse{}, err } diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 5eee9d48f0..b56ed9ef71 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -410,29 +410,16 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) + sgxRules, err := json.Marshal(rules) + if err != nil { + return nil, errorsmod.Wrap(err, "rule marshall failure") + } dbPrepareReq := &sgxtypes.StateDBPrepareRequest{ - HandlerId: handlerId, - Sender: msg.From.Bytes(), - Coinbase: cfg.CoinBase.Bytes(), - Dest: k.SafeAddress2Bytes(msg.To), - Rules: &sgxtypes.Rules{ - ChainId: rules.ChainID.Uint64(), - IsHomestead: rules.IsHomestead, - IsEIP150: rules.IsEIP150, - IsEIP155: rules.IsEIP155, - IsEIP158: rules.IsEIP158, - IsByzantium: rules.IsByzantium, - IsConstantinople: rules.IsConstantinople, - IsPetersburg: rules.IsPetersburg, - IsIstanbul: rules.IsIstanbul, - IsBerlin: rules.IsBerlin, - IsLondon: rules.IsLondon, - IsMerge: rules.IsMerge, - IsShanghai: rules.IsShanghai, - IsCancun: rules.IsCancun, - IsPrague: rules.IsPrague, - IsVerkle: rules.IsVerkle, - }, + HandlerId: handlerId, + Sender: msg.From.Bytes(), + Coinbase: cfg.CoinBase.Bytes(), + Dest: k.SafeAddress2Bytes(msg.To), + Rules: sgxRules, AccessList: make([]*sgxtypes.AccessTuple, 0), } @@ -467,7 +454,11 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce) - _, err := sgxGrpcClient.StateDBSetNonce(ctx, &sgxtypes.StateDBSetNonceRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Nonce: msg.Nonce}) + _, err := sgxGrpcClient.StateDBSetNonce(ctx, &sgxtypes.StateDBSetNonceRequest{ + HandlerId: handlerId, + Caller: msg.From.Bytes(), + Nonce: msg.Nonce, + }) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -479,7 +470,13 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // ret, _, leftoverGas, vmErr = evm.Create(sender, msg.Data, leftoverGas, msg.Value) - resp, vmErr := sgxGrpcClient.Create(ctx, &sgxtypes.CreateRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Code: msg.Data, Gas: leftoverGas, Value: msg.Value.Uint64()}) + resp, vmErr := sgxGrpcClient.Create(ctx, &sgxtypes.CreateRequest{ + HandlerId: handlerId, + Caller: msg.From.Bytes(), + Code: msg.Data, + Gas: leftoverGas, + Value: msg.Value.Uint64(), + }) if vmErr != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(vmErr) { @@ -494,7 +491,11 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce+1) - _, vmErr = sgxGrpcClient.StateDBSetNonce(ctx, &sgxtypes.StateDBSetNonceRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Nonce: msg.Nonce + 1}) + _, vmErr = sgxGrpcClient.StateDBSetNonce(ctx, &sgxtypes.StateDBSetNonceRequest{ + HandlerId: handlerId, + Caller: msg.From.Bytes(), + Nonce: msg.Nonce + 1, + }) if vmErr != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(vmErr) { @@ -506,7 +507,14 @@ func (k *Keeper) ApplyMessageWithConfig( } else { // Ethermint original code: // ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) - resp, vmErr := sgxGrpcClient.Call(ctx, &sgxtypes.CallRequest{HandlerId: handlerId, Caller: msg.From.Bytes(), Addr: k.SafeAddress2Bytes(msg.To), Input: msg.Data, Gas: leftoverGas, Value: msg.Value.Uint64()}) + resp, vmErr := sgxGrpcClient.Call(ctx, &sgxtypes.CallRequest{ + HandlerId: handlerId, + Caller: msg.From.Bytes(), + Addr: k.SafeAddress2Bytes(msg.To), + Input: msg.Data, + Gas: leftoverGas, + Value: msg.Value.Uint64(), + }) if vmErr != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(vmErr) { @@ -536,7 +544,9 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // leftoverGas += GasToRefund(stateDB.GetRefund(), temporaryGasUsed, refundQuotient) - resp, err := sgxGrpcClient.StateDBGetRefund(ctx, &sgxtypes.StateDBGetRefundRequest{HandlerId: handlerId}) + resp, err := sgxGrpcClient.StateDBGetRefund(ctx, &sgxtypes.StateDBGetRefundRequest{ + HandlerId: handlerId, + }) if err != nil { // panic cosmos if sgx isn't available. if k.IsSgxDownError(err) { @@ -653,13 +663,6 @@ func (k *Keeper) SafeBigInt2Uint64Convert(val *big.Int) uint64 { return val.Uint64() } -func (k *Keeper) ChainConfigBitInt2Uint64(val *big.Int) uint64 { - if val == nil { - return 99999 - } - return val.Uint64() -} - func (k *Keeper) SafeAddress2Bytes(addr *common.Address) []byte { if addr == nil { return nil @@ -667,92 +670,6 @@ func (k *Keeper) SafeAddress2Bytes(addr *common.Address) []byte { return addr.Bytes() } -func (k *Keeper) prepareSgxChainConfig(cfg *EVMConfig) sgxtypes.ChainConfig { - chainConfig := cfg.ChainConfig - sgxChainConfig := sgxtypes.ChainConfig{ - // *big.Int - ChainID: k.SafeBigInt2Uint64Convert(chainConfig.ChainID), - // *big.Int - HomesteadBlock: k.ChainConfigBitInt2Uint64(chainConfig.HomesteadBlock), - // *big.Int - DAOForkBlock: k.ChainConfigBitInt2Uint64(chainConfig.DAOForkBlock), - DAOForkSupport: chainConfig.DAOForkSupport, - // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) - // *big.Int - EIP_150Block: k.ChainConfigBitInt2Uint64(chainConfig.EIP150Block), - // *big.Int - EIP155Block: k.ChainConfigBitInt2Uint64(chainConfig.EIP155Block), - // *big.Int - EIP158Block: k.ChainConfigBitInt2Uint64(chainConfig.EIP158Block), - // *big.Int - ByzantiumBlock: k.ChainConfigBitInt2Uint64(chainConfig.ByzantiumBlock), - // *big.Int - ConstantinopleBlock: k.ChainConfigBitInt2Uint64(chainConfig.ConstantinopleBlock), - // *big.Int - PetersburgBlock: k.ChainConfigBitInt2Uint64(chainConfig.PetersburgBlock), - // *big.Int - IstanbulBlock: k.ChainConfigBitInt2Uint64(chainConfig.IstanbulBlock), - // *big.Int - MuirGlacierBlock: k.ChainConfigBitInt2Uint64(chainConfig.MuirGlacierBlock), - // *big.Int - BerlinBlock: k.ChainConfigBitInt2Uint64(chainConfig.BerlinBlock), - // *big.Int - LondonBlock: k.ChainConfigBitInt2Uint64(chainConfig.LondonBlock), - // *big.Int - ArrowGlacierBlock: k.ChainConfigBitInt2Uint64(chainConfig.ArrowGlacierBlock), - // *big.Int - GrayGlacierBlock: k.ChainConfigBitInt2Uint64(chainConfig.GrayGlacierBlock), - // *big.Int - MergeNetsplitBlock: k.ChainConfigBitInt2Uint64(chainConfig.MergeNetsplitBlock), - - // TerminalTotalDifficulty is the amount of total difficulty reached by - // the network that triggers the consensus upgrade. - // *big.Int - TerminalTotalDifficulty: k.SafeBigInt2Uint64Convert(chainConfig.TerminalTotalDifficulty), - // TerminalTotalDifficultyPassed is a flag specifying that the network already - // passed the terminal total difficulty. Its purpose is to disable legacy sync - // even without having seen the TTD locally (safer long term). - TerminalTotalDifficultyPassed: chainConfig.TerminalTotalDifficultyPassed, - // Various consensus engines - Ethash: nil, - Clique: nil, - IsDevMode: chainConfig.IsDevMode, - ShanghaiTime: 100000, - CancunTime: 100000, - PragueTime: 100000, - VerkleTime: 100000, - } - - if chainConfig.Ethash != nil { - sgxChainConfig.Ethash = &sgxtypes.EthashConfig{} - } - - if chainConfig.Clique != nil { - sgxChainConfig.Clique = &sgxtypes.CliqueConfig{ - Period: chainConfig.Clique.Period, - Epoch: chainConfig.Clique.Epoch, - } - } - - if chainConfig.ShanghaiTime != nil { - sgxChainConfig.ShanghaiTime = *chainConfig.ShanghaiTime - } - - if chainConfig.CancunTime != nil { - sgxChainConfig.CancunTime = *chainConfig.CancunTime - } - - if chainConfig.PragueTime != nil { - sgxChainConfig.PragueTime = *chainConfig.PragueTime - } - - if chainConfig.VerkleTime != nil { - sgxChainConfig.VerkleTime = *chainConfig.VerkleTime - } - - return sgxChainConfig -} - // prepareTxForSgx prepares the transaction for the SGX enclave. It: // - creates an RPC server around the keeper to receive requests sent by the // SGX @@ -760,10 +677,12 @@ func (k *Keeper) prepareSgxChainConfig(cfg *EVMConfig) sgxtypes.ChainConfig { // block info func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxGrpcClient sgxtypes.QueryServiceClient) (uint64, error) { // Step 1. Send a "PrepareTx" request to the SGX enclave. - chainConfig := k.prepareSgxChainConfig(cfg) + chainConfig, err := json.Marshal(cfg.ChainConfig) + if err != nil { + return 0, err + } var overrides []byte - var err error if cfg.Overrides != nil { overrides, err = json.Marshal(cfg.Overrides) if err != nil { @@ -792,57 +711,11 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf evmConfig.TxConfig = txConfig - // core.Message - sgxMsg := sgxtypes.Message{ - // Original type: *common.Address - To: k.SafeAddress2Bytes(msg.To), - // Original type: common.Address - From: msg.From.Bytes(), - Nonce: msg.Nonce, - // *big.Int - Value: k.SafeBigInt2Uint64Convert(msg.Value), - GasLimit: msg.GasLimit, - // Original type: *big.Int - GasPrice: k.SafeBigInt2Uint64Convert(msg.GasPrice), - // Original type: *big.Int - GasFeeCap: k.SafeBigInt2Uint64Convert(msg.GasFeeCap), - // Original type: *big.Int - GasTipCap: k.SafeBigInt2Uint64Convert(msg.GasTipCap), - Data: msg.Data, - // Original types: AccessList - // Original type: *big.Int - BlobGasFeeCap: k.SafeBigInt2Uint64Convert(msg.BlobGasFeeCap), - // Original type: []common.Hash - // When SkipAccountChecks is true, the message nonce is not checked against the - // account nonce in state. It also disables checking that the sender is an EOA. - // This field will be set to true for operations like RPC eth_call. - SkipAccountChecks: msg.SkipAccountChecks, - } - - // AccessList{} - accessList := make([]sgxtypes.AccessTuple, 0) - for _, accList := range msg.AccessList { - storageKeys := make([][]byte, 0) - if accList.StorageKeys != nil && len(accList.StorageKeys) > 0 { - for _, storageKey := range accList.StorageKeys { - storageKeys = append(storageKeys, storageKey.Bytes()) - } - } - - accessList = append(accessList, sgxtypes.AccessTuple{ - Address: accList.Address.Bytes(), - StorageKeys: storageKeys, - }) - } - - blobHashes := make([][]byte, 0) - for _, hashes := range msg.BlobHashes { - blobHashes = append(blobHashes, hashes.Bytes()) + sgxMsg, err := json.Marshal(msg) + if err != nil { + return 0, err } - sgxMsg.AccessList = accessList - sgxMsg.BlobHashes = blobHashes - resp, err := sgxGrpcClient.PrepareTx(ctx, &sgxtypes.PrepareTxRequest{TxHash: cfg.TxConfig.TxHash.Bytes(), Header: ctx.BlockHeader(), Msg: sgxMsg, EvmConfig: evmConfig}) if err != nil { // panic cosmos if sgx isn't available. diff --git a/x/evm/migrations/v4/types/params_v4.pb.go b/x/evm/migrations/v4/types/params_v4.pb.go index 3b7e32580b..e1be6d84f6 100644 --- a/x/evm/migrations/v4/types/params_v4.pb.go +++ b/x/evm/migrations/v4/types/params_v4.pb.go @@ -10,7 +10,6 @@ import ( io "io" math "math" math_bits "math/bits" - v0types "github.com/evmos/ethermint/x/evm/migrations/v0/types" ) // Reference imports to suppress errors if they are not otherwise used. @@ -36,7 +35,7 @@ type V4Params struct { // extra_eips defines the additional EIPs for the vm.Config ExtraEIPs ExtraEIPs `protobuf:"bytes,4,opt,name=extra_eips,json=extraEips,proto3" json:"extra_eips"` // chain_config defines the EVM chain configuration parameters - ChainConfig v0types.V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` + ChainConfig V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` // allow_unprotected_txs defines if replay-protected (i.e non EIP155 // signed) transactions can be executed on the state machine. AllowUnprotectedTxs bool `protobuf:"varint,6,opt,name=allow_unprotected_txs,json=allowUnprotectedTxs,proto3" json:"allow_unprotected_txs,omitempty"` @@ -103,11 +102,11 @@ func (m *V4Params) GetExtraEIPs() ExtraEIPs { return ExtraEIPs{} } -func (m *V4Params) GetChainConfig() v0types.V0ChainConfig { +func (m *V4Params) GetChainConfig() V0ChainConfig { if m != nil { return m.ChainConfig } - return v0types.V0ChainConfig{} + return V0ChainConfig{} } func (m *V4Params) GetAllowUnprotectedTxs() bool { diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index aeb6c52a89..dee71d0ebd 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -9,7 +9,7 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - types "github.com/cometbft/cometbft/proto/tendermint/types" + types "github.com/tendermint/tendermint/proto/tendermint/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -35,7 +35,8 @@ type PrepareTxRequest struct { // will be executed. Header types.Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header"` // Msg is the EVM transaction message to run on the EVM. - Msg Message `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg"` + // Original type: core.Message + Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // EvmConfig is the EVM configuration to set. EvmConfig PrepareTxEVMConfig `protobuf:"bytes,4,opt,name=evm_config,json=evmConfig,proto3" json:"evm_config"` } @@ -87,11 +88,11 @@ func (m *PrepareTxRequest) GetHeader() types.Header { return types.Header{} } -func (m *PrepareTxRequest) GetMsg() Message { +func (m *PrepareTxRequest) GetMsg() []byte { if m != nil { return m.Msg } - return Message{} + return nil } func (m *PrepareTxRequest) GetEvmConfig() PrepareTxEVMConfig { @@ -1130,8 +1131,9 @@ type StateDBPrepareRequest struct { // Original data type: common.Address Coinbase []byte `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` // Original data type: common.Address - Dest []byte `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"` - Rules *Rules `protobuf:"bytes,5,opt,name=rules,proto3" json:"rules,omitempty"` + Dest []byte `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"` + // Original type: params.Rules + Rules []byte `protobuf:"bytes,5,opt,name=rules,proto3" json:"rules,omitempty"` AccessList []*AccessTuple `protobuf:"bytes,6,rep,name=access_list,json=accessList,proto3" json:"access_list,omitempty"` } @@ -1196,7 +1198,7 @@ func (m *StateDBPrepareRequest) GetDest() []byte { return nil } -func (m *StateDBPrepareRequest) GetRules() *Rules { +func (m *StateDBPrepareRequest) GetRules() []byte { if m != nil { return m.Rules } @@ -1428,10 +1430,12 @@ type Message struct { // Original type: *common.Address To []byte `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` // Original type: common.Address - From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // Original type: uint64 Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` - // *big.Int - Value uint64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` + // Original type: *big.Int + Value uint64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` + // Original type: uint64 GasLimit uint64 `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // Original type: *big.Int GasPrice uint64 `protobuf:"varint,6,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` @@ -1439,7 +1443,8 @@ type Message struct { GasFeeCap uint64 `protobuf:"varint,7,opt,name=gas_fee_cap,json=gasFeeCap,proto3" json:"gas_fee_cap,omitempty"` // Original type: *big.Int GasTipCap uint64 `protobuf:"varint,8,opt,name=gas_tip_cap,json=gasTipCap,proto3" json:"gas_tip_cap,omitempty"` - Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` + // Original type: []byte + Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` // Original types: AccessList AccessList []AccessTuple `protobuf:"bytes,10,rep,name=access_list,json=accessList,proto3" json:"access_list"` // Original type: *big.Int @@ -1449,6 +1454,7 @@ type Message struct { // When SkipAccountChecks is true, the message nonce is not checked against the // account nonce in state. It also disables checking that the sender is an EOA. // This field will be set to true for operations like RPC eth_call. + // Original type: bool SkipAccountChecks bool `protobuf:"varint,13,opt,name=skip_account_checks,json=skipAccountChecks,proto3" json:"skip_account_checks,omitempty"` } @@ -1581,21 +1587,27 @@ type PrepareTxEVMConfig struct { // underlying params.ChainConfig struct contains pointer fields, they are // not serializable over RPC with gob. Instead, the JSON representation is // used. - ChainConfigJson ChainConfig `protobuf:"bytes,1,opt,name=chain_config_json,json=chainConfigJson,proto3" json:"chain_config_json"` + // Original type: params.ChainConfig + ChainConfigJson []byte `protobuf:"bytes,1,opt,name=chain_config_json,json=chainConfigJson,proto3" json:"chain_config_json,omitempty"` // Fields from EVMConfig // Original type: common.Address CoinBase []byte `protobuf:"bytes,2,opt,name=coin_base,json=coinBase,proto3" json:"coin_base,omitempty"` // Original type: *big.Int BaseFee uint64 `protobuf:"varint,3,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` // Original type: statedb.TxConfig - TxConfig TxConfig `protobuf:"bytes,4,opt,name=tx_config,json=txConfig,proto3" json:"tx_config"` - DebugTrace bool `protobuf:"varint,5,opt,name=debug_trace,json=debugTrace,proto3" json:"debug_trace,omitempty"` + TxConfig TxConfig `protobuf:"bytes,4,opt,name=tx_config,json=txConfig,proto3" json:"tx_config"` + // Original type: bool + DebugTrace bool `protobuf:"varint,5,opt,name=debug_trace,json=debugTrace,proto3" json:"debug_trace,omitempty"` // Fields from EVMConfig.FeeMarketParams struct + // Original type: bool NoBaseFee bool `protobuf:"varint,6,opt,name=no_base_fee,json=noBaseFee,proto3" json:"no_base_fee,omitempty"` // Fields from EVMConfig.Params struct - EvmDenom string `protobuf:"bytes,7,opt,name=evm_denom,json=evmDenom,proto3" json:"evm_denom,omitempty"` + // Original type: string + EvmDenom string `protobuf:"bytes,7,opt,name=evm_denom,json=evmDenom,proto3" json:"evm_denom,omitempty"` + // Original type: []int64 ExtraEips []int64 `protobuf:"varint,8,rep,packed,name=extra_eips,json=extraEips,proto3" json:"extra_eips,omitempty"` - // *rpctypes.StateOverride : original type + // type StateOverride map[common.Address]OverrideAccount + // Original type: *rpctypes.StateOverride Overrides []byte `protobuf:"bytes,9,opt,name=overrides,proto3" json:"overrides,omitempty"` } @@ -1632,11 +1644,11 @@ func (m *PrepareTxEVMConfig) XXX_DiscardUnknown() { var xxx_messageInfo_PrepareTxEVMConfig proto.InternalMessageInfo -func (m *PrepareTxEVMConfig) GetChainConfigJson() ChainConfig { +func (m *PrepareTxEVMConfig) GetChainConfigJson() []byte { if m != nil { return m.ChainConfigJson } - return ChainConfig{} + return nil } func (m *PrepareTxEVMConfig) GetCoinBase() []byte { @@ -1696,60 +1708,65 @@ func (m *PrepareTxEVMConfig) GetOverrides() []byte { } type ChainConfig struct { - // *big.Int + // Original type:*big.Int ChainID uint64 `protobuf:"varint,1,opt,name=chain_i_d,json=chainID,proto3" json:"chain_i_d,omitempty"` - // *big.Int + // Original type: *big.Int HomesteadBlock uint64 `protobuf:"varint,2,opt,name=homestead_block,json=homesteadBlock,proto3" json:"homestead_block,omitempty"` - // *big.Int - DAOForkBlock uint64 `protobuf:"varint,3,opt,name=d_a_o_fork_block,json=dAOForkBlock,proto3" json:"d_a_o_fork_block,omitempty"` - DAOForkSupport bool `protobuf:"varint,4,opt,name=d_a_o_fork_support,json=dAOForkSupport,proto3" json:"d_a_o_fork_support,omitempty"` + // Original type: *big.Int + DAOForkBlock uint64 `protobuf:"varint,3,opt,name=d_a_o_fork_block,json=dAOForkBlock,proto3" json:"d_a_o_fork_block,omitempty"` + // Original type: bool + DAOForkSupport bool `protobuf:"varint,4,opt,name=d_a_o_fork_support,json=dAOForkSupport,proto3" json:"d_a_o_fork_support,omitempty"` // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) - // *big.Int + // Original type: *big.Int EIP_150Block uint64 `protobuf:"varint,5,opt,name=e_i_p_150_block,json=eIP150Block,proto3" json:"e_i_p_150_block,omitempty"` - // *big.Int + // Original type: *big.Int EIP155Block uint64 `protobuf:"varint,6,opt,name=e_i_p155_block,json=eIP155Block,proto3" json:"e_i_p155_block,omitempty"` - // *big.Int + // Original type: *big.Int EIP158Block uint64 `protobuf:"varint,7,opt,name=e_i_p158_block,json=eIP158Block,proto3" json:"e_i_p158_block,omitempty"` - // *big.Int + // Original type: *big.Int ByzantiumBlock uint64 `protobuf:"varint,8,opt,name=byzantium_block,json=byzantiumBlock,proto3" json:"byzantium_block,omitempty"` - // *big.Int + // Original type: *big.Int ConstantinopleBlock uint64 `protobuf:"varint,9,opt,name=constantinople_block,json=constantinopleBlock,proto3" json:"constantinople_block,omitempty"` - // *big.Int + // Original type: *big.Int PetersburgBlock uint64 `protobuf:"varint,10,opt,name=petersburg_block,json=petersburgBlock,proto3" json:"petersburg_block,omitempty"` - // *big.Int + // Original type: *big.Int IstanbulBlock uint64 `protobuf:"varint,11,opt,name=istanbul_block,json=istanbulBlock,proto3" json:"istanbul_block,omitempty"` - // *big.Int + // Original type: *big.Int MuirGlacierBlock uint64 `protobuf:"varint,12,opt,name=muir_glacier_block,json=muirGlacierBlock,proto3" json:"muir_glacier_block,omitempty"` - // *big.Int + // Original type: *big.Int BerlinBlock uint64 `protobuf:"varint,13,opt,name=berlin_block,json=berlinBlock,proto3" json:"berlin_block,omitempty"` - // *big.Int + // Original type: *big.Int LondonBlock uint64 `protobuf:"varint,14,opt,name=london_block,json=londonBlock,proto3" json:"london_block,omitempty"` - // *big.Int + // Original type: *big.Int ArrowGlacierBlock uint64 `protobuf:"varint,15,opt,name=arrow_glacier_block,json=arrowGlacierBlock,proto3" json:"arrow_glacier_block,omitempty"` - // *big.Int + // Original type: *big.Int GrayGlacierBlock uint64 `protobuf:"varint,16,opt,name=gray_glacier_block,json=grayGlacierBlock,proto3" json:"gray_glacier_block,omitempty"` - // *big.Int + // Original type: *big.Int MergeNetsplitBlock uint64 `protobuf:"varint,17,opt,name=merge_netsplit_block,json=mergeNetsplitBlock,proto3" json:"merge_netsplit_block,omitempty"` - // *uint64 + // Original type: *uint64 ShanghaiTime uint64 `protobuf:"varint,18,opt,name=shanghai_time,json=shanghaiTime,proto3" json:"shanghai_time,omitempty"` - // *uint64 + // Original type: *uint64 CancunTime uint64 `protobuf:"varint,19,opt,name=cancun_time,json=cancunTime,proto3" json:"cancun_time,omitempty"` - // *uint64 + // Original type: *uint64 PragueTime uint64 `protobuf:"varint,20,opt,name=prague_time,json=pragueTime,proto3" json:"prague_time,omitempty"` - // *uint64 + // Original type: *uint64 VerkleTime uint64 `protobuf:"varint,21,opt,name=verkle_time,json=verkleTime,proto3" json:"verkle_time,omitempty"` // TerminalTotalDifficulty is the amount of total difficulty reached by // the network that triggers the consensus upgrade. - // *big.Int + // Original type: *big.Int TerminalTotalDifficulty uint64 `protobuf:"varint,22,opt,name=terminal_total_difficulty,json=terminalTotalDifficulty,proto3" json:"terminal_total_difficulty,omitempty"` // TerminalTotalDifficultyPassed is a flag specifying that the network already // passed the terminal total difficulty. Its purpose is to disable legacy sync // even without having seen the TTD locally (safer long term). + // Original type: bool TerminalTotalDifficultyPassed bool `protobuf:"varint,23,opt,name=terminal_total_difficulty_passed,json=terminalTotalDifficultyPassed,proto3" json:"terminal_total_difficulty_passed,omitempty"` // Various consensus engines - Ethash *EthashConfig `protobuf:"bytes,24,opt,name=ethash,proto3" json:"ethash,omitempty"` - Clique *CliqueConfig `protobuf:"bytes,25,opt,name=clique,proto3" json:"clique,omitempty"` - IsDevMode bool `protobuf:"varint,26,opt,name=is_dev_mode,json=isDevMode,proto3" json:"is_dev_mode,omitempty"` + // Original type: params.EthashConfig + Ethash *EthashConfig `protobuf:"bytes,24,opt,name=ethash,proto3" json:"ethash,omitempty"` + // Original type: params.CliqueConfig + Clique *CliqueConfig `protobuf:"bytes,25,opt,name=clique,proto3" json:"clique,omitempty"` + // Original type: bool + IsDevMode bool `protobuf:"varint,26,opt,name=is_dev_mode,json=isDevMode,proto3" json:"is_dev_mode,omitempty"` } func (m *ChainConfig) Reset() { *m = ChainConfig{} } @@ -2005,8 +2022,10 @@ var xxx_messageInfo_EthashConfig proto.InternalMessageInfo // CliqueConfig is the consensus engine configs for proof-of-authority based sealing. type CliqueConfig struct { + // Original type: uint64 Period uint64 `protobuf:"varint,1,opt,name=Period,proto3" json:"Period,omitempty"` - Epoch uint64 `protobuf:"varint,2,opt,name=Epoch,proto3" json:"Epoch,omitempty"` + // Original type: uint64 + Epoch uint64 `protobuf:"varint,2,opt,name=Epoch,proto3" json:"Epoch,omitempty"` } func (m *CliqueConfig) Reset() { *m = CliqueConfig{} } @@ -2061,8 +2080,10 @@ type TxConfig struct { // Original type: common.Hash BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // Original type: common.Hash - TxHash []byte `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` - TxIndex uint64 `protobuf:"varint,3,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` + TxHash []byte `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + // Original type: int64 + TxIndex uint64 `protobuf:"varint,3,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` + // Original type: int64 LogIndex uint64 `protobuf:"varint,4,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` } @@ -2288,146 +2309,145 @@ func init() { func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } var fileDescriptor_1d9fb6e76534f03e = []byte{ - // 2222 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x6f, 0xdb, 0xc8, - 0x15, 0xb7, 0x2c, 0x5b, 0x96, 0x9e, 0x64, 0x59, 0x9e, 0x78, 0x1d, 0x5a, 0x49, 0x1c, 0x2f, 0xb3, - 0xbb, 0xf1, 0x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0xd6, 0xc6, 0x8b, 0xbc, 0x61, 0x57, 0x14, 0xfb, 0xc6, 0x38, 0xa6, 0x97, 0x7c, - 0x09, 0x8d, 0x51, 0xa9, 0x37, 0x74, 0x50, 0xf4, 0x95, 0x91, 0x5e, 0x53, 0x3f, 0x87, 0x7a, 0x5a, - 0xf0, 0x0d, 0xd1, 0xdc, 0xc8, 0x54, 0xab, 0x69, 0x5f, 0x03, 0xea, 0x27, 0x34, 0x76, 0xfc, 0x00, - 0xbb, 0x94, 0xc4, 0x86, 0x5a, 0x53, 0xd4, 0x86, 0x44, 0x8e, 0x34, 0xa0, 0xd9, 0x9f, 0x42, 0x4d, - 0x37, 0x09, 0x86, 0xb7, 0xac, 0xc3, 0xd7, 0xba, 0x8c, 0xa2, 0x5b, 0x05, 0x43, 0xa9, 0x9b, 0x96, - 0x5f, 0xe9, 0x34, 0xa5, 0x05, 0x37, 0x70, 0x1c, 0xb3, 0xef, 0x2e, 0x19, 0x5d, 0x51, 0xcc, 0x55, - 0x05, 0x8d, 0x59, 0xfd, 0x1a, 0x90, 0x1f, 0xe3, 0x8b, 0x4b, 0xf4, 0x86, 0xf6, 0x51, 0x22, 0x63, - 0xec, 0x87, 0xb0, 0xa6, 0xda, 0x11, 0x27, 0x24, 0x82, 0x47, 0x01, 0x15, 0x86, 0xbf, 0xaa, 0xf8, - 0x48, 0x61, 0xaf, 0x0c, 0x94, 0xee, 0xea, 0x72, 0xda, 0xa5, 0x38, 0x82, 0xf6, 0x89, 0x85, 0x24, - 0x55, 0x5d, 0xc6, 0x42, 0xa7, 0x96, 0x42, 0xa7, 0xb4, 0x4f, 0xd0, 0xe7, 0x50, 0xd5, 0xfd, 0x8a, - 0x26, 0xde, 0xc8, 0x11, 0x41, 0x03, 0x29, 0x4d, 0x77, 0x2e, 0x9a, 0xb6, 0x96, 0xa7, 0x69, 0x20, - 0xa5, 0xe9, 0x1e, 0x46, 0xd3, 0x3e, 0xc9, 0xd3, 0x34, 0xa0, 0x68, 0x3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30, 0xdd, 0x0e, 0x94, 0x03, 0xe6, 0x2b, 0xd0, 0xfe, 0x67, 0x01, 0x4a, 0xba, 0xfb, - 0xb8, 0xa2, 0x57, 0x5d, 0x87, 0x92, 0x60, 0x11, 0x75, 0xd3, 0x2e, 0xd5, 0x48, 0x59, 0x51, 0x2f, - 0xe6, 0x8a, 0xba, 0xbc, 0xa5, 0x2a, 0x80, 0x30, 0xe9, 0x77, 0x49, 0x6c, 0x0c, 0x56, 0x95, 0xee, - 0x95, 0x52, 0xe5, 0x83, 0x58, 0x9c, 0x19, 0x44, 0x69, 0x3c, 0x88, 0xf1, 0x7d, 0x59, 0xba, 0xbc, - 0x2f, 0x6a, 0x98, 0x20, 0x97, 0xe9, 0x6c, 0xa7, 0x05, 0x19, 0x51, 0x4c, 0xfa, 0x6c, 0x40, 0x3c, - 0xf3, 0xd9, 0x91, 0x8a, 0x7b, 0x7f, 0x2e, 0x43, 0xed, 0xd7, 0x09, 0x89, 0x2f, 0xde, 0x90, 0x78, - 0x20, 0xfb, 0x9b, 0xb7, 0x50, 0xc9, 0x4a, 0x39, 0xb2, 0xaf, 0x18, 0x29, 0x99, 0x5e, 0xb0, 0x79, - 0xef, 0x4a, 0x8e, 0xe9, 0x5b, 0xe7, 0xd0, 0x4b, 0x28, 0xe9, 0x69, 0x0d, 0xba, 0x3b, 0xe5, 0xec, - 0xe5, 0x67, 0x49, 0xcd, 0xad, 0xd9, 0x84, 0xec, 0x71, 0x47, 0xb0, 0xd0, 0xc6, 0x41, 0x80, 0xa6, - 0x35, 0x12, 0xa3, 0x31, 0x4d, 0x73, 0x73, 0x16, 0x3c, 0xe6, 0x97, 0x9a, 0x64, 0x4c, 0xf5, 0x2b, - 0x3f, 0x13, 0x99, 0xea, 0xd7, 0xf8, 0x10, 0x64, 0x0e, 0x85, 0xb0, 0x3a, 0x31, 0x9b, 0x40, 0x0f, - 0x26, 0x17, 0xce, 0x9a, 0x95, 0x34, 0xbf, 0xba, 0x16, 0x77, 0x8a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bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4d, 0x6f, 0x1b, 0xc9, + 0xd1, 0x16, 0xf5, 0x41, 0x91, 0x45, 0x8a, 0xa2, 0xda, 0x5a, 0x79, 0x44, 0xdb, 0xb2, 0x76, 0xbc, + 0xbb, 0xd6, 0x7a, 0xf7, 0xa5, 0x2c, 0xbf, 0x90, 0x61, 0x04, 0x49, 0x10, 0x8b, 0xb2, 0x65, 0x6d, + 0x6c, 0xaf, 0x42, 0x0b, 0x3e, 0xe4, 0x32, 0x68, 0xce, 0xb4, 0x86, 0x1d, 0xcd, 0x4c, 0x8f, 0xa7, + 0x7b, 0xb8, 0xd4, 0x1e, 0x03, 0xe4, 0x9e, 0x53, 0xfe, 0x42, 0xfe, 0x46, 0x8e, 0x0b, 0xe4, 0xb2, + 0x08, 0x72, 0xc8, 0x29, 0x08, 0xec, 0xbf, 0x90, 0x6b, 0x80, 0xa0, 0x3f, 0x66, 0x38, 0x14, 0x49, + 0x45, 0x80, 0x83, 0x5c, 0x88, 0xa9, 0x7a, 0x9e, 0xee, 0xea, 0x6a, 0x76, 0x57, 0x55, 0x17, 0xdc, + 0x26, 0xa2, 0x4f, 0x92, 0x90, 0x46, 0x62, 0x97, 0xfb, 0xc3, 0xdd, 0xc1, 0xde, 0xee, 0xbb, 0x94, + 0x24, 0x17, 0xed, 0x38, 0x61, 0x82, 0xa1, 0x66, 0x8e, 0xb6, 0xb9, 0x3f, 0x6c, 0x0f, 0xf6, 0x5a, + 0xb7, 0x05, 0x89, 0x3c, 0x33, 0x40, 0x5c, 0xc4, 0x84, 0xeb, 0x5f, 0xcd, 0x6f, 0xad, 0xfb, 0xcc, + 0x67, 0xea, 0x73, 0x57, 0x7e, 0x69, 0xad, 0xfd, 0xa7, 0x12, 0x34, 0x4f, 0x12, 0x12, 0xe3, 0x84, + 0x9c, 0x0e, 0xbb, 0xe4,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0xd4, + 0xb0, 0x72, 0xd1, 0x09, 0x28, 0x17, 0x56, 0x79, 0x7b, 0x61, 0xa7, 0xf6, 0xe8, 0xce, 0x64, 0x16, + 0x2e, 0xec, 0x43, 0x17, 0xf4, 0x88, 0x97, 0x94, 0x0b, 0xdb, 0xca, 0x43, 0x44, 0xee, 0x95, 0xb9, + 0x44, 0x4f, 0xf2, 0x5b, 0x7d, 0x44, 0x44, 0x97, 0x9c, 0xa5, 0x91, 0x77, 0xcd, 0xc0, 0xfc, 0x28, + 0x0f, 0x7f, 0x85, 0x91, 0x26, 0x35, 0x6c, 0x40, 0x39, 0x51, 0x1a, 0x33, 0xcc, 0x48, 0xf6, 0xe3, + 0x7c, 0x77, 0x8f, 0x88, 0x78, 0xc9, 0x7c, 0x7e, 0x4d, 0x5b, 0x87, 0xf9, 0xfa, 0xf3, 0x71, 0xc6, + 0xd2, 0x03, 0x58, 0x08, 0x98, 0x6f, 0x95, 0xd4, 0x8e, 0x58, 0x93, 0x3b, 0xf2, 0x4c, 0xf4, 0x5f, + 0x32, 0xbf, 0x2b, 0x49, 0xf6, 0x1f, 0x17, 0x60, 0xf9, 0x15, 0xe1, 0x1c, 0xfb, 0x04, 0x35, 0x60, + 0x5e, 0x30, 0x73, 0x40, 0xe6, 0x05, 0x93, 0xff, 0xc5, 0x59, 0xc2, 0x42, 0xf3, 0xef, 0xa9, 0xef, + 0xe9, 0x71, 0x70, 0x94, 0x1c, 0x17, 0x0b, 0xc9, 0x51, 0x9e, 0x50, 0x1f, 0xcb, 0xbf, 0x27, 0xa4, + 0xc2, 0xa4, 0xd2, 0x8a, 0x8f, 0xf9, 0x4b, 0x29, 0x67, 0x60, 0x9c, 0x50, 0x37, 0xcb, 0xa9, 0x12, + 0x3c, 0x91, 0x32, 0xda, 0x82, 0x9a, 0x04, 0xcf, 0x08, 0x71, 0x5c, 0x1c, 0xab, 0x8b, 0xbf, 0xd8, + 0x95, 0xfc, 0xe7, 0x84, 0x74, 0x70, 0x9c, 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, 0x66, 0x69, 0x40, 0x0c, 0x8f, 0xa5, 0x28, 0xc3, 0x70, 0xc0, 0x7c, 0x83, 0xe9, 0x4c, + 0x5f, 0x09, 0x98, 0xaf, 0x40, 0xfb, 0x9f, 0x25, 0x28, 0xeb, 0xc2, 0xe2, 0x8a, 0x6a, 0x73, 0x03, + 0xca, 0x82, 0xc5, 0xd4, 0xcd, 0xea, 0x4c, 0x23, 0xe5, 0xf9, 0x7a, 0xa1, 0x90, 0xaf, 0xe5, 0x2d, + 0x55, 0x0e, 0x44, 0x69, 0xd8, 0x23, 0x89, 0x31, 0x58, 0x53, 0xba, 0xd7, 0x4a, 0x55, 0x74, 0x62, + 0x69, 0xa6, 0x13, 0xe5, 0x71, 0x27, 0xc6, 0xf7, 0x65, 0xf9, 0xf2, 0xbe, 0xa8, 0x76, 0x80, 0x1c, + 0xa6, 0xa3, 0x9d, 0x16, 0xa4, 0x47, 0x09, 0x09, 0xd9, 0x80, 0x78, 0xe6, 0xe1, 0x90, 0x89, 0x8f, + 0xfe, 0x5c, 0x81, 0xfa, 0xaf, 0x52, 0x92, 0x5c, 0xbc, 0x21, 0xc9, 0x40, 0x96, 0x2e, 0x6f, 0xa1, + 0x9a, 0x67, 0x69, 0x64, 0x5f, 0xd1, 0x14, 0x32, 0x65, 0x5e, 0xeb, 0xde, 0x95, 0x1c, 0x53, 0x92, + 0xce, 0xa1, 0x57, 0x50, 0xd6, 0xfd, 0x16, 0x74, 0x77, 0xca, 0xd9, 0x2b, 0x76, 0x83, 0x5a, 0xdb, + 0xb3, 0x09, 0xf9, 0x74, 0x47, 0xb0, 0xd8, 0xc1, 0x41, 0x80, 0xa6, 0x14, 0x40, 0x85, 0x46, 0x4b, + 0x6b, 0x6b, 0x16, 0x3c, 0xb6, 0x2e, 0xd5, 0x8b, 0x98, 0xba, 0xae, 0x62, 0x57, 0x63, 0xea, 0xba, + 0xc6, 0xdb, 0x18, 0x73, 0x28, 0x82, 0xb5, 0x89, 0xee, 0x02, 0x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0x00, 0xff, 0xff, + 0x66, 0xcf, 0xc6, 0xb1, 0x7f, 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2922,16 +2942,13 @@ func (m *PrepareTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x22 - { - size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -3719,15 +3736,10 @@ func (m *StateDBPrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x32 } } - if m.Rules != nil { - { - size, err := m.Rules.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if len(m.Rules) > 0 { + i -= len(m.Rules) + copy(dAtA[i:], m.Rules) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Rules))) i-- dAtA[i] = 0x2a } @@ -4044,21 +4056,21 @@ func (m *PrepareTxEVMConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x4a } if len(m.ExtraEips) > 0 { - dAtA6 := make([]byte, len(m.ExtraEips)*10) - var j5 int + dAtA4 := make([]byte, len(m.ExtraEips)*10) + var j3 int for _, num1 := range m.ExtraEips { num := uint64(num1) for num >= 1<<7 { - dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j5++ + j3++ } - dAtA6[j5] = uint8(num) - j5++ + dAtA4[j3] = uint8(num) + j3++ } - i -= j5 - copy(dAtA[i:], dAtA6[:j5]) - i = encodeVarintQuery(dAtA, i, uint64(j5)) + i -= j3 + copy(dAtA[i:], dAtA4[:j3]) + i = encodeVarintQuery(dAtA, i, uint64(j3)) i-- dAtA[i] = 0x42 } @@ -4111,16 +4123,13 @@ func (m *PrepareTxEVMConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - { - size, err := m.ChainConfigJson.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + if len(m.ChainConfigJson) > 0 { + i -= len(m.ChainConfigJson) + copy(dAtA[i:], m.ChainConfigJson) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainConfigJson))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -4539,8 +4548,10 @@ func (m *PrepareTxRequest) Size() (n int) { } l = m.Header.Size() n += 1 + l + sovQuery(uint64(l)) - l = m.Msg.Size() - n += 1 + l + sovQuery(uint64(l)) + l = len(m.Msg) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } l = m.EvmConfig.Size() n += 1 + l + sovQuery(uint64(l)) return n @@ -4877,8 +4888,8 @@ func (m *StateDBPrepareRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if m.Rules != nil { - l = m.Rules.Size() + l = len(m.Rules) + if l > 0 { n += 1 + l + sovQuery(uint64(l)) } if len(m.AccessList) > 0 { @@ -5013,8 +5024,10 @@ func (m *PrepareTxEVMConfig) Size() (n int) { } var l int _ = l - l = m.ChainConfigJson.Size() - n += 1 + l + sovQuery(uint64(l)) + l = len(m.ChainConfigJson) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } l = len(m.CoinBase) if l > 0 { n += 1 + l + sovQuery(uint64(l)) @@ -5333,7 +5346,7 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5343,23 +5356,24 @@ func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) + if m.Msg == nil { + m.Msg = []byte{} } iNdEx = postIndex case 4: @@ -7536,7 +7550,7 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7546,26 +7560,24 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } + m.Rules = append(m.Rules[:0], dAtA[iNdEx:postIndex]...) if m.Rules == nil { - m.Rules = &Rules{} - } - if err := m.Rules.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Rules = []byte{} } iNdEx = postIndex case 6: @@ -8368,7 +8380,7 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChainConfigJson", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8378,23 +8390,24 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ChainConfigJson.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ChainConfigJson = append(m.ChainConfigJson[:0], dAtA[iNdEx:postIndex]...) + if m.ChainConfigJson == nil { + m.ChainConfigJson = []byte{} } iNdEx = postIndex case 2: From f882c9be35ac0e969ade5212533a365e91376d0c Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Thu, 25 Apr 2024 15:07:44 +0000 Subject: [PATCH 42/46] chore: manual fix protogen --- x/evm/migrations/v4/types/params_v4.pb.go | 7 ++++--- x/sgx/types/query.pb.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/x/evm/migrations/v4/types/params_v4.pb.go b/x/evm/migrations/v4/types/params_v4.pb.go index e1be6d84f6..3b7e32580b 100644 --- a/x/evm/migrations/v4/types/params_v4.pb.go +++ b/x/evm/migrations/v4/types/params_v4.pb.go @@ -10,6 +10,7 @@ import ( io "io" math "math" math_bits "math/bits" + v0types "github.com/evmos/ethermint/x/evm/migrations/v0/types" ) // Reference imports to suppress errors if they are not otherwise used. @@ -35,7 +36,7 @@ type V4Params struct { // extra_eips defines the additional EIPs for the vm.Config ExtraEIPs ExtraEIPs `protobuf:"bytes,4,opt,name=extra_eips,json=extraEips,proto3" json:"extra_eips"` // chain_config defines the EVM chain configuration parameters - ChainConfig V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` + ChainConfig v0types.V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"` // allow_unprotected_txs defines if replay-protected (i.e non EIP155 // signed) transactions can be executed on the state machine. AllowUnprotectedTxs bool `protobuf:"varint,6,opt,name=allow_unprotected_txs,json=allowUnprotectedTxs,proto3" json:"allow_unprotected_txs,omitempty"` @@ -102,11 +103,11 @@ func (m *V4Params) GetExtraEIPs() ExtraEIPs { return ExtraEIPs{} } -func (m *V4Params) GetChainConfig() V0ChainConfig { +func (m *V4Params) GetChainConfig() v0types.V0ChainConfig { if m != nil { return m.ChainConfig } - return V0ChainConfig{} + return v0types.V0ChainConfig{} } func (m *V4Params) GetAllowUnprotectedTxs() bool { diff --git a/x/sgx/types/query.pb.go b/x/sgx/types/query.pb.go index dee71d0ebd..8336fed5ec 100644 --- a/x/sgx/types/query.pb.go +++ b/x/sgx/types/query.pb.go @@ -9,7 +9,7 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - types "github.com/tendermint/tendermint/proto/tendermint/types" + types "github.com/cometbft/cometbft/proto/tendermint/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" From 51d2c295034117be4a846ad34d7977fec2c84a66 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Sun, 28 Apr 2024 18:14:41 +0200 Subject: [PATCH 43/46] make txs work --- proto/buf.lock | 12 +- proto/buf.yaml | 3 +- proto/ethermint/evm/v1/query.proto | 188 +- proto/ethermint/sgx/v1/query.proto | 436 +- x/evm/keeper/grpc_query.go | 195 - x/evm/keeper/grpc_query_tee.go | 205 + x/evm/keeper/state_transition.go | 236 +- x/{sgx/types => evm/sgx}/query.pb.go | 8027 ++++++++------------------ x/evm/types/errors.go | 3 +- x/evm/types/query.pb.go | 1901 ++++-- 10 files changed, 4232 insertions(+), 6974 deletions(-) create mode 100644 x/evm/keeper/grpc_query_tee.go rename x/{sgx/types => evm/sgx}/query.pb.go (59%) diff --git a/proto/buf.lock b/proto/buf.lock index face468fbe..5cbb141228 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -4,16 +4,20 @@ deps: - remote: buf.build owner: cosmos repository: cosmos-proto - commit: 1935555c206d4afb9e94615dfd0fad31 + commit: 04467658e59e44bbb22fe568206e1f70 + digest: shake256:73a640bd60e0c523b0f8237ff34eab67c45a38b64bbbde1d80224819d272dbf316ac183526bd245f994af6608b025f5130483d0133c5edd385531326b5990466 - remote: buf.build owner: cosmos repository: cosmos-sdk - commit: 508e19f5f37549e3a471a2a59b903c00 + commit: 5a6ab7bc14314acaa912d5e53aef1c2f + digest: shake256:02c00c73493720055f9b57553a35b5550023a3c1914123b247956288a78fb913aff70e66552777ae14d759467e119079d484af081264a5dd607a94d9fbc8116b - remote: buf.build owner: cosmos repository: gogo-proto - commit: 34d970b699f84aa382f3c29773a60836 + commit: 88ef6483f90f478fb938c37dde52ece3 + digest: shake256:89c45df2aa11e0cff97b0d695436713db3d993d76792e9f8dc1ae90e6ab9a9bec55503d48ceedd6b86069ab07d3041b32001b2bfe0227fa725dd515ff381e5ba - remote: buf.build owner: googleapis repository: googleapis - commit: 783e4b5374fa488ab068d08af9658438 + commit: 4ed3bc159a8b4ac68fe253218760d035 + digest: shake256:7149cf5e9955c692d381e557830555d4e93f205a0f1b8e2dfdae46d029369aa3fc1980e35df0d310f7cc3b622f93e19ad276769a283a967dd3065ddfd3a40e13 diff --git a/proto/buf.yaml b/proto/buf.yaml index a1740699e3..47ec6354eb 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,8 +1,7 @@ version: v1 name: buf.build/evmos/ethermint deps: - - buf.build/tendermint/tendermint:33ed361a90514289beabf3189e1d7665 # Same version as cosmos-sdk https://github.com/cosmos/cosmos-sdk/blob/7ea0d40ef242f7a1ec4d7b81d8a3278dda43e14f/proto/buf.yaml#L5 - - buf.build/cosmos/cosmos-sdk + - buf.build/cosmos/cosmos-sdk:v0.50.0 - buf.build/cosmos/cosmos-proto - buf.build/cosmos/gogo-proto - buf.build/googleapis/googleapis diff --git a/proto/ethermint/evm/v1/query.proto b/proto/ethermint/evm/v1/query.proto index d2845e9f0a..c0d4f52ec4 100644 --- a/proto/ethermint/evm/v1/query.proto +++ b/proto/ethermint/evm/v1/query.proto @@ -83,40 +83,22 @@ service Query { option (google.api.http).get = "/ethermint/evm/v1/base_fee"; } - // ----------------------------------------- - // Query clients for evm keeper statedb access - rpc QueryGetHashStateDB(GetHashRequest) returns (GetHashResponse) { - } - - rpc PostAddBalanceStateDB(AddBalanceRequest) returns (AddBalanceResponse) { - } - - rpc PostSubBalanceStateDB(SubBalanceRequest) returns (SubBalanceResponse) { - } - - rpc QueryGetBalanceStateDB(GetBalanceRequest) returns (GetBalanceResponse) { - } - - rpc QueryGetAccountStateDB(GetAccountRequest) returns (GetAccountResponse) { - } - - rpc QueryGetStateStateDB(GetStateRequest) returns (GetStateResponse) { - } - - rpc QueryGetCodeStateDB(GetCodeRequest) returns (GetCodeResponse) { - } - - rpc PostSetAccountStateDB(SetAccountRequest) returns (SetAccountResponse) { - } - - rpc PostSetStateStateDB(SetStateRequest) returns (SetStateResponse) { - } - - rpc PostSetCodeStateDB(SetCodeRequest) returns (SetCodeResponse) { - } - - rpc PostDeleteAccountStateDB(DeleteAccountRequest) returns (DeleteAccountResponse) { - } + // StateDB + // TODO Move to a separate service + // ref: https://github.com/Inco-fhevm/inco-monorepo/issues/26 + + rpc StateDBGetHash(GetHashRequest) returns (GetHashResponse) {} + rpc StateDBAddBalance(AddBalanceRequest) returns (AddBalanceResponse) {} + rpc StateDBSubBalance(SubBalanceRequest) returns (SubBalanceResponse) {} + rpc StateDBSetBalance(SetBalanceRequest) returns (SetBalanceResponse) {} + rpc StateDBGetBalance(GetBalanceRequest) returns (GetBalanceResponse) {} + rpc StateDBGetAccount(GetAccountRequest) returns (GetAccountResponse) {} + rpc StateDBGetState(GetStateRequest) returns (GetStateResponse) {} + rpc StateDBGetCode(GetCodeRequest) returns (GetCodeResponse) {} + rpc StateDBSetAccount(SetAccountRequest) returns (SetAccountResponse) {} + rpc StateDBSetState(SetStateRequest) returns (SetStateResponse) {} + rpc StateDBSetCode(SetCodeRequest) returns (SetCodeResponse) {} + rpc StateDBDeleteAccount(DeleteAccountRequest) returns (DeleteAccountResponse) {} } // QueryAccountRequest is the request type for the Query/Account RPC method. @@ -374,131 +356,155 @@ message QueryBaseFeeResponse { } message GetHashRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; uint64 height = 2; } message GetHashResponse { - // hash *common.Hash - string hash = 1; + // Original type: hash *common.Hash + bytes hash = 1; } message AddBalanceRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // Addr sdk.AccAddress - string addr = 2; - // Amount sdk.Coins - repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false] ; + // Original type: sdk.AccAddress + bytes address = 2; + // Original type: sdk.Coins + repeated cosmos.base.v1beta1.Coin amount = 3 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } -message AddBalanceResponse { -} +message AddBalanceResponse {} message SubBalanceRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // Addr sdk.AccAddress - string addr = 2; - // Amount sdk.Coins - repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false] ; + // Original type: sdk.AccAddress + bytes address = 2; + // Original type: sdk.Coins + repeated cosmos.base.v1beta1.Coin amount = 3 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; } -message SubBalanceResponse { +message SubBalanceResponse {} + +message SetBalanceRequest { + // handler_id is the unique identifier of the request. + uint64 handler_id = 1; + // Original type: common.Address + bytes address = 2; + // Original type: *big.Int + string amount = 3; + string denom = 4; } +message SetBalanceResponse {} + message GetBalanceRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // Addr sdk.AccAddress - string addr = 2; - // Denom string - string denom = 3; + // Original type: sdk.AccAddress + bytes address = 2; + string denom = 3; } message GetBalanceResponse { - // Balance *big.Int - string balance = 1 [(gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false]; + // Original type: Balance *big.Int + string balance = 1; } message GetAccountRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // Addr common.Address - string addr = 2; + // Original type: common.Address + bytes address = 2; } message GetAccountResponse { - // accutal type is *statedb.Account - // Account *statedb.Account - bytes account = 1; + // Original type: *statedb.Account + Account account = 1; +} + +// Account is the Ethereum consensus representation of accounts. +// These objects are stored in the storage of auth module. +// +// Original type: statedb.Account +message Account { + uint64 nonce = 1; + bytes code_hash = 2; } message GetStateRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // Addr common.Address - string addr = 2; - // Key common.Hash - string key = 3; + // Original type: common.Address + bytes address = 2; + // Original type: common.Hash + bytes key = 3; } message GetStateResponse { - // Hash common.Hash - string hash = 1; + // Original type: common.Hash + bytes hash = 1; } message GetCodeRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // CodeHash common.Hash - string code_hash = 2; + // Original type: common.Hash + bytes code_hash = 2; } message GetCodeResponse { - // Code []byte - bytes code = 1; + // Code []byte + bytes code = 1; } message SetAccountRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // Addr common.Address - string addr = 2; - // Account statedb.Account - bytes account = 3; + // Original type: common.Address + bytes address = 2; + // Original type: statedb.Account + Account account = 3; } -message SetAccountResponse { - uint64 Nonce = 1; - bytes CodeHash = 2; -} +message SetAccountResponse {} message SetStateRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // Addr common.Address - string addr = 2; - // Key common.Hash - string key = 3; - // Value []byte + // Original type: common.Address + bytes address = 2; + // Original type: common.Hash + bytes key = 3; + // Original type: []byte bytes value = 4; } -message SetStateResponse { -} +message SetStateResponse {} message SetCodeRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // CodeHash []byte + // Original type: []byte bytes code_hash = 2; - // Code []byte + // Original type: []byte bytes code = 3; } -message SetCodeResponse { -} +message SetCodeResponse {} message DeleteAccountRequest { + // handler_id is the unique identifier of the request. uint64 handler_id = 1; - // Addr common.Address - string addr = 2; + // Original type: common.Address + bytes address = 2; } -message DeleteAccountResponse { -} \ No newline at end of file +message DeleteAccountResponse {} \ No newline at end of file diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index d95d5c2c9f..8d2ea2e22f 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -3,72 +3,91 @@ syntax = "proto3"; package ethermint.sgx.v1; import "tendermint/types/types.proto"; -import "gogoproto/gogo.proto"; -option go_package = "github.com/evmos/ethermint/x/sgx/types"; +option go_package = "github.com/evmos/ethermint/x/evm/sgx"; // QueryService defines the gRPC querier service. service QueryService { - // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { - rpc PrepareTx(PrepareTxRequest) returns (PrepareTxResponse) { - } - - // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { - rpc Create(CreateRequest) returns (CreateResponse) { - } - - // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { - rpc Call(CallRequest) returns (CallResponse) { - } - - // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { - rpc Commit(CommitRequest) returns (CommitResponse) { - } - - // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { - rpc StateDBAddBalance(StateDBAddBalanceRequest) returns (StateDBAddBalanceResponse) { - } - - // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { - rpc StateDBSubBalance(StateDBSubBalanceRequest) returns (StateDBSubBalanceResponse) { - } - - // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { - rpc StateDBSetNonce(StateDBSetNonceRequest) returns (StateDBSetNonceResponse) { - } - - // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { - rpc StateDBIncreaseNonce(StateDBIncreaseNonceRequest) returns (StateDBIncreaseNonceResponse) { - } - - // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { - rpc StateDBPrepare(StateDBPrepareRequest) returns (StateDBPrepareResponse) { - } - - // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { - rpc StateDBGetRefund(StateDBGetRefundRequest) returns (StateDBGetRefundResponse) { - } + rpc StartEVM(StartEVMRequest) returns (StartEVMResponse) {} + rpc Create(CreateRequest) returns (CreateResponse) {} + rpc Call(CallRequest) returns (CallResponse) {} + rpc Commit(CommitRequest) returns (CommitResponse) {} + rpc StateDBAddBalance(StateDBAddBalanceRequest) returns (StateDBAddBalanceResponse) {} + rpc StateDBSubBalance(StateDBSubBalanceRequest) returns (StateDBSubBalanceResponse) {} + rpc StateDBSetNonce(StateDBSetNonceRequest) returns (StateDBSetNonceResponse) {} + rpc StateDBIncreaseNonce(StateDBIncreaseNonceRequest) returns (StateDBIncreaseNonceResponse) {} + rpc StateDBPrepare(StateDBPrepareRequest) returns (StateDBPrepareResponse) {} + rpc StateDBGetRefund(StateDBGetRefundRequest) returns (StateDBGetRefundResponse) {} + rpc StateDBGetLogs(StateDBGetLogsRequest) returns (StateDBGetLogsResponse) {} + rpc StopEVM(StopEVMRequest) returns (StopEVMResponse) {} +} + +message StartEVMRequest { + // header is the Tendermint header of the block in which the transaction + // will be executed. + tendermint.types.Header header = 2; // Header cmtproto.Header + // msg is the EVM transaction message to run on the EVM. + // Because of nil pointers in Golang, we chose to use JSON bytes here instead + // of a separate Protobuf message. + // + // Original geth type: core.Message + bytes msg_json = 3; + // EvmConfig is the EVM configuration to set. + StartEVMConfig evm_config = 4; // EvmConfig StartEVMConfig +} - // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { - rpc StateDBGetLogs(StateDBGetLogsRequest) returns (StateDBGetLogsResponse) { - } +// StartEVMConfig is the EVM config that is passed to the SGX during the +// StartEVM request. +message StartEVMConfig { + // ChainConfig is the EVM chain configuration in JSON format. Since the + // underlying params.ChainConfig struct contains pointer fields, they are + // not serializable over RPC with gob. Instead, the JSON representation is + // used. + // + // Original type: params.ChainConfig + bytes chain_config_json = 1; + // Original type: common.Address + bytes coin_base = 2; + // Original type: *big.Int + string base_fee = 3; + // Original type: statedb.TxConfig + TxConfig tx_config = 4; + // Original type: bool + bool debug_trace = 5; + // Fields from EVMConfig.FeeMarketParams struct + // Original type: bool + bool no_base_fee = 6; + // Fields from EVMConfig.Params struct + // Original type: string + string evm_denom = 7; + // Original type: []int64 + repeated int64 extra_eips = 8; + // overrides_json is the collection of overridden accounts. We chose to use + // JSON bytes instead of a separate Protobuf message because of nil pointers + // and the complexity of the original geth type. + // + // Original geth type: *rpctypes.StateOverride + bytes overrides_json = 9; } -message PrepareTxRequest { - bytes tx_hash = 1; - // Header is the Tendermint header of the block in which the transaction - // will be executed. - tendermint.types.Header header = 2[(gogoproto.nullable) = false]; // Header cmtproto.Header - // Msg is the EVM transaction message to run on the EVM. - // Original type: core.Message - bytes msg = 3; - // EvmConfig is the EVM configuration to set. - PrepareTxEVMConfig evm_config = 4[(gogoproto.nullable) = false]; // EvmConfig PrepareTxEVMConfig +// TxConfig encapulates the readonly information of current tx for `StateDB`. +message TxConfig { + // Original type: common.Hash + bytes block_hash = 1; // hash of current block + // tx_hash is the hash of current tx. + // Original type: common.Hash + bytes tx_hash = 2; + // tx_index is the index of current transaction + // Original type: int64 + uint64 tx_index = 3; + // log_index is the index of next log within current block + // Original type: int64 + uint64 log_index = 4; } -message PrepareTxResponse { +message StartEVMResponse { // handler_id is the unique request ID that is given by the SGX binary. - uint64 handler_id = 1; + uint64 handler_id = 1; } message CreateRequest { @@ -76,37 +95,39 @@ message CreateRequest { uint64 handler_id = 1; // caller is the account that creates the contract. // Original data type: common.Address - bytes caller = 2; - bytes code = 3; - uint64 gas = 4; + bytes caller = 2; + bytes code = 3; + uint64 gas = 4; // value is the amount of wei to send with the contract creation. - uint64 value = 5; + uint64 value = 5; } message CreateResponse { - bytes ret = 1; + // ret returns the result bytes of the contract creation. + bytes ret = 1; // Original data type: common.Address - bytes contract_addr = 2; - uint64 left_over_gas = 3; + bytes contract_addr = 2; + uint64 left_over_gas = 3; } message CallRequest { // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; // Original data type: vm.AccountRef - bytes caller = 2; + bytes caller = 2; // Original data type: common.Address - bytes addr = 3; + bytes addr = 3; // Original data type: []byte - bytes input = 4; - uint64 gas = 5; + bytes input = 4; + uint64 gas = 5; // Original data type: *big.Int - uint64 value = 6; + uint64 value = 6; } message CallResponse { - bytes ret = 1; - uint64 left_over_gas = 2; + // ret returns the result bytes of the contract call. + bytes ret = 1; + uint64 left_over_gas = 2; } message CommitRequest { @@ -114,77 +135,48 @@ message CommitRequest { uint64 handler_id = 1; } -message CommitResponse { -} +message CommitResponse {} message StateDBAddBalanceRequest { // handler_id is the unique request ID that is given by the SGX binary. - uint64 handler_id = 1; + uint64 handler_id = 1; // caller is the account to add balance too. - bytes caller = 2; - // amount is the amount to add. - uint64 amount = 3; + bytes caller = 2; + // amount is the amount to add, as a big.Int. + string amount = 3; } -message StateDBAddBalanceResponse { -} +message StateDBAddBalanceResponse {} message StateDBSubBalanceRequest { // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; // caller is the account to substract balance from. - bytes caller = 2; - // amount is the amount to substract. - uint64 amount = 3; + bytes caller = 2; + // amount is the amount to substract, as a big.Int. + string amount = 3; } -message StateDBSubBalanceResponse { -} +message StateDBSubBalanceResponse {} message StateDBSetNonceRequest { // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; // Original data type: vm.AccountRef - bytes caller = 2; - uint64 nonce = 3; + bytes caller = 2; + uint64 nonce = 3; } -message StateDBSetNonceResponse { -} +message StateDBSetNonceResponse {} message StateDBIncreaseNonceRequest { // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; // Original data type: vm.AccountRef - bytes caller = 2; + bytes caller = 2; } -message StateDBIncreaseNonceResponse { -} - -// Rules wraps ChainConfig and is merely syntactic sugar or can be used for functions -// that do not have or require information about the block. -// -// It is taken from geth: -// https://github.com/ethereum/go-ethereum/blob/v1.13.5/params/config.go#L848 -message Rules { - uint64 chain_id = 1; - bool is_homestead = 2; - bool is_e_i_p150 = 3; - bool is_e_i_p155 = 4; - bool is_e_i_p158 = 5; - bool is_byzantium = 6; - bool is_constantinople = 7; - bool is_petersburg = 8; - bool is_istanbul = 9; - bool is_berlin = 10; - bool is_london = 11; - bool is_merge = 12; - bool is_shanghai = 13; - bool is_cancun = 14; - bool is_prague = 15; - bool is_verkle = 16; -} +message StateDBIncreaseNonceResponse {} // AccessTuple is the element type of an access list. // @@ -194,26 +186,33 @@ message AccessTuple { // Original data type: common.Address bytes address = 1; // Original data type: []common.Hash - repeated bytes storage_keys = 2; - + repeated bytes storage_keys = 2; } message StateDBPrepareRequest { // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; // Original data type: common.Address - bytes sender = 2; + bytes sender = 2; // Original data type: common.Address - bytes coinbase = 3; + bytes coinbase = 3; // Original data type: common.Address - bytes dest = 4; - // Original type: params.Rules - bytes rules = 5; + bytes dest = 4; + // rules_json represent the Rules that wrap ChainConfig and is merely + // syntactic sugar or can be used for functions that do not have or require + // information about the block. + // + // We chose to use JSON bytes instead of a separate Protobuf message because + // of nil pointers and the complexity of the original geth type. + // + // Original geth type: *params.Rules + bytes rules_json = 5; + // access_list is the list of storage keys that the transaction is allowed to + // access. repeated AccessTuple access_list = 6; } -message StateDBPrepareResponse { -} +message StateDBPrepareResponse {} message StateDBGetRefundRequest { // handler_id is the unique request ID that is given by the SGX binary. @@ -230,188 +229,17 @@ message StateDBGetLogsRequest { } message StateDBGetLogsResponse { - repeated EthLog log = 1; // []*ethtypes.Log -} - -message Message { - // Original type: *common.Address - bytes to = 1; - // Original type: common.Address - bytes from = 2; - // Original type: uint64 - uint64 nonce = 3; - // Original type: *big.Int - uint64 value = 4; - // Original type: uint64 - uint64 gas_limit = 5; - // Original type: *big.Int - uint64 gas_price = 6; - // Original type: *big.Int - uint64 gas_fee_cap = 7; - // Original type: *big.Int - uint64 gas_tip_cap = 8; - // Original type: []byte - bytes data = 9; - // Original types: AccessList - repeated AccessTuple access_list = 10 [(gogoproto.nullable) = false]; - // Original type: *big.Int - uint64 blob_gas_fee_cap = 11; - // Original type: []common.Hash - repeated bytes blob_hashes = 12; - // When SkipAccountChecks is true, the message nonce is not checked against the - // account nonce in state. It also disables checking that the sender is an EOA. - // This field will be set to true for operations like RPC eth_call. - // Original type: bool - bool skip_account_checks = 13; + // logs are the logs of the execution. We chose to use + // JSON bytes instead of a separate Protobuf message because of nil pointers + // and the complexity of the original geth type. + // + // Original geth type: []*ethtypes.Log + repeated bytes logs = 1; } -message PrepareTxEVMConfig { - // ChainConfig is the EVM chain configuration in JSON format. Since the - // underlying params.ChainConfig struct contains pointer fields, they are - // not serializable over RPC with gob. Instead, the JSON representation is - // used. - // Original type: params.ChainConfig - bytes chain_config_json = 1; - // Fields from EVMConfig - // Original type: common.Address - bytes coin_base = 2; - // Original type: *big.Int - uint64 base_fee = 3; - // Original type: statedb.TxConfig - TxConfig tx_config = 4[(gogoproto.nullable) = false]; - // Original type: bool - bool debug_trace = 5; - // Fields from EVMConfig.FeeMarketParams struct - // Original type: bool - bool no_base_fee = 6; - // Fields from EVMConfig.Params struct - // Original type: string - string evm_denom = 7; - // Original type: []int64 - repeated int64 extra_eips = 8; - // type StateOverride map[common.Address]OverrideAccount - // Original type: *rpctypes.StateOverride - bytes overrides = 9; -} - -message ChainConfig { - // Original type:*big.Int - uint64 chain_i_d = 1; // chainId identifies the current chain and is used for replay protection - // Original type: *big.Int - uint64 homestead_block = 2; // Homestead switch block (nil = no fork, 0 = already homestead) - - // Original type: *big.Int - uint64 d_a_o_fork_block = 3; // TheDAO hard-fork switch block (nil = no fork) - // Original type: bool - bool d_a_o_fork_support = 4; // Whether the nodes supports or opposes the DAO hard-fork - - // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) - // Original type: *big.Int - uint64 e_i_p_150_block = 5; // EIP150 HF block (nil = no fork) - // Original type: *big.Int - uint64 e_i_p155_block = 6; // EIP155 HF block - // Original type: *big.Int - uint64 e_i_p158_block = 7; // EIP158 HF block - - // Original type: *big.Int - uint64 byzantium_block = 8; // Byzantium switch block (nil = no fork, 0 = already on byzantium) - // Original type: *big.Int - uint64 constantinople_block = 9; // Constantinople switch block (nil = no fork, 0 = already activated) - // Original type: *big.Int - uint64 petersburg_block = 10; // Petersburg switch block (nil = same as Constantinople) - // Original type: *big.Int - uint64 istanbul_block = 11; // Istanbul switch block (nil = no fork, 0 = already on istanbul) - // Original type: *big.Int - uint64 muir_glacier_block = 12; // Eip-2384 (bomb delay) switch block (nil = no fork, 0 = already activated) - // Original type: *big.Int - uint64 berlin_block = 13; // Berlin switch block (nil = no fork, 0 = already on berlin) - // Original type: *big.Int - uint64 london_block = 14; // London switch block (nil = no fork, 0 = already on london) - // Original type: *big.Int - uint64 arrow_glacier_block = 15; // Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated) - // Original type: *big.Int - uint64 gray_glacier_block = 16; // Eip-5133 (bomb delay) switch block (nil = no fork, 0 = already activated) - // Original type: *big.Int - uint64 merge_netsplit_block = 17; // Virtual fork after The Merge to use as a network splitter - - // Fork scheduling was switched from blocks to timestamps here - - // Original type: *uint64 - uint64 shanghai_time = 18[(gogoproto.nullable) = true]; // Shanghai switch time (nil = no fork, 0 = already on shanghai) - // Original type: *uint64 - uint64 cancun_time = 19[(gogoproto.nullable) = true]; // Cancun switch time (nil = no fork, 0 = already on cancun) - // Original type: *uint64 - uint64 prague_time = 20[(gogoproto.nullable) = true]; // Prague switch time (nil = no fork, 0 = already on prague) - // Original type: *uint64 - uint64 verkle_time = 21[(gogoproto.nullable) = true]; // Verkle switch time (nil = no fork, 0 = already on verkle) - - // TerminalTotalDifficulty is the amount of total difficulty reached by - // the network that triggers the consensus upgrade. - // Original type: *big.Int - uint64 terminal_total_difficulty = 22; - - // TerminalTotalDifficultyPassed is a flag specifying that the network already - // passed the terminal total difficulty. Its purpose is to disable legacy sync - // even without having seen the TTD locally (safer long term). - // Original type: bool - bool terminal_total_difficulty_passed = 23; - - // Various consensus engines - // Original type: params.EthashConfig - EthashConfig ethash = 24; - // Original type: params.CliqueConfig - CliqueConfig clique = 25; - // Original type: bool - bool is_dev_mode = 26; -} - -message EthashConfig {} - -// CliqueConfig is the consensus engine configs for proof-of-authority based sealing. -message CliqueConfig { - // Original type: uint64 - uint64 Period = 1; // Number of seconds between blocks to enforce - // Original type: uint64 - uint64 Epoch = 2; // Epoch length to reset votes and checkpoint -} - -// TxConfig encapulates the readonly information of current tx for `StateDB`. -message TxConfig { - // Original type: common.Hash - bytes block_hash = 1; // hash of current block - // Original type: common.Hash - bytes tx_hash = 2; // hash of current tx - // Original type: int64 - uint64 tx_index = 3; // the index of current transaction - // Original type: int64 - uint64 log_index = 4; // the index of next log within current block +message StopEVMRequest { + // handler_id is the unique request ID that is given by the SGX binary. + uint64 handler_id = 1; } -message EthLog { - // Consensus fields: - // address of the contract that generated the event - // Original type: common.Address - bytes address = 1; - // list of topics provided by the contract. - // Original type: []common.Hash - repeated bytes topics = 2; - // supplied by the contract, usually ABI-encoded - bytes data = 3; - // Derived fields. These fields are filled in by the node - // but not secured by consensus. - // block in which the transaction was included - uint64 block_number = 4; - // hash of the transaction - bytes tx_hash = 5; - // index of the transaction in the block - uint64 tx_index = 6; - // hash of the block in which the transaction was included - // Original type: common.Hash - bytes block_hash = 7; - // index of the log in the block - uint64 index = 8; - - // The Removed field is true if this log was reverted due to a chain reorganisation. - // You must pay attention to this field if you receive logs through a filter query. - bool removed = 9; -} \ No newline at end of file +message StopEVMResponse {} \ No newline at end of file diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index 6a2a77a6c0..a73958c117 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -41,7 +41,6 @@ import ( rpctypes "github.com/evmos/ethermint/rpc/types" ethermint "github.com/evmos/ethermint/types" - "github.com/evmos/ethermint/x/evm/statedb" "github.com/evmos/ethermint/x/evm/types" ) @@ -753,197 +752,3 @@ func getChainID(ctx sdk.Context, chainID int64) (*big.Int, error) { } return big.NewInt(chainID), nil } - -// ------------------------------ -// StateDB queries for SGX party -// ------------------------------ - -// QueryGetHashStateDB queries hash in statedb for sgx -func (k Keeper) QueryGetHashStateDB(_ context.Context, req *types.GetHashRequest) (*types.GetHashResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - hash := k.GetHashFn(*ctx)(req.Height) - - res := &types.GetHashResponse{ - Hash: hash.Hex(), - } - - return res, nil -} - -// PostAddBalanceStateDB add balance in statedb for sgx -func (k Keeper) PostAddBalanceStateDB(_ context.Context, req *types.AddBalanceRequest) (*types.AddBalanceResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - addr, err := sdk.AccAddressFromBech32(req.Addr) - if err != nil { - return nil, err - } - - err = k.AddBalance(*ctx, addr, req.Amount) - if err != nil { - return nil, err - } - - return &types.AddBalanceResponse{}, nil -} - -// PostSubBalanceStateDB sub balance in statedb for sgx -func (k Keeper) PostSubBalanceStateDB(_ context.Context, req *types.SubBalanceRequest) (*types.SubBalanceResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - addr, err := sdk.AccAddressFromBech32(req.Addr) - if err != nil { - return nil, err - } - - err = k.SubBalance(*ctx, addr, req.Amount) - if err != nil { - return nil, err - } - - return &types.SubBalanceResponse{}, nil -} - -// QueryGetBalanceStateDB queries balance in statedb for sgx -func (k Keeper) QueryGetBalanceStateDB(_ context.Context, req *types.GetBalanceRequest) (*types.GetBalanceResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - addr, err := sdk.AccAddressFromBech32(req.Addr) - if err != nil { - return nil, err - } - - balance := k.GetBalance(*ctx, addr, req.Denom) - - return &types.GetBalanceResponse{ - Balance: sdkmath.NewIntFromBigInt(balance), - }, nil -} - -// QueryGetAccountStateDB queries account in statedb for sgx -func (k Keeper) QueryGetAccountStateDB(_ context.Context, req *types.GetAccountRequest) (*types.GetAccountResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - addr := common.HexToAddress(req.Addr) - account := k.GetAccount(*ctx, addr) - if account == nil { - panic("account doesn't exist") - } - - res, err := json.Marshal(account) - if err != nil { - return nil, err - } - - return &types.GetAccountResponse{ - Account: res, - }, nil -} - -// QueryGetStateStateDB queries state in statedb for sgx -func (k Keeper) QueryGetStateStateDB(_ context.Context, req *types.GetStateRequest) (*types.GetStateResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - addr := common.HexToAddress(req.Addr) - key := common.HexToHash(req.Key) - - hash := k.GetState(*ctx, addr, key) - return &types.GetStateResponse{ - Hash: hash.Hex(), - }, nil -} - -// QueryGetCodeStateDB queries code in statedb for sgx -func (k Keeper) QueryGetCodeStateDB(_ context.Context, req *types.GetCodeRequest) (*types.GetCodeResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - codeHash := common.HexToHash(req.CodeHash) - - code := k.GetCode(*ctx, codeHash) - return &types.GetCodeResponse{ - Code: code, - }, nil -} - -// PostSetAccountStateDB sets account in statedb for sgx -func (k Keeper) PostSetAccountStateDB(_ context.Context, req *types.SetAccountRequest) (*types.SetAccountResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - addr := common.HexToAddress(req.Addr) - - var account statedb.Account - err := json.Unmarshal(req.Account, &account) - if err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - err = k.SetAccount(*ctx, addr, account) - if err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - - return &types.SetAccountResponse{Nonce: account.Nonce, CodeHash: account.CodeHash}, nil -} - -// PostSetStateStateDB sets state in statedb for sgx -func (k Keeper) PostSetStateStateDB(_ context.Context, req *types.SetStateRequest) (*types.SetStateResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - addr := common.HexToAddress(req.Addr) - key := common.HexToHash(req.Key) - - k.SetState(*ctx, addr, key, req.Value) - return &types.SetStateResponse{}, nil -} - -// PostSetCodeStateDB sets code in statedb for sgx -func (k Keeper) PostSetCodeStateDB(_ context.Context, req *types.SetCodeRequest) (*types.SetCodeResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - k.SetCode(*ctx, req.CodeHash, req.Code) - return &types.SetCodeResponse{}, nil -} - -// PostDeleteAccountStateDB delete account in statedb for sgx -func (k Keeper) PostDeleteAccountStateDB(_ context.Context, req *types.DeleteAccountRequest) (*types.DeleteAccountResponse, error) { - ctx := k.sdkCtxs[req.HandlerId] - if ctx == nil { - panic("context invalid") - } - - addr := common.HexToAddress(req.Addr) - - err := k.DeleteAccount(*ctx, addr) - return &types.DeleteAccountResponse{}, err -} diff --git a/x/evm/keeper/grpc_query_tee.go b/x/evm/keeper/grpc_query_tee.go new file mode 100644 index 0000000000..f80dc9cbfa --- /dev/null +++ b/x/evm/keeper/grpc_query_tee.go @@ -0,0 +1,205 @@ +package keeper + +import ( + "context" + "math/big" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ethereum/go-ethereum/common" + "github.com/evmos/ethermint/x/evm/statedb" + "github.com/evmos/ethermint/x/evm/types" + "github.com/pkg/errors" +) + +// ------------------------------ +// StateDB queries for TEE party +// ------------------------------ + +// GetHashStateDB queries hash in statedb for sgx +func (k Keeper) StateDBGetHash(_ context.Context, req *types.GetHashRequest) (*types.GetHashResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + hash := k.GetHashFn(*ctx)(req.Height) + + res := &types.GetHashResponse{ + Hash: hash.Bytes(), + } + + return res, nil +} + +// AddBalanceStateDB add balance in statedb for sgx +func (k Keeper) StateDBAddBalance(_ context.Context, req *types.AddBalanceRequest) (*types.AddBalanceResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + addr := sdk.AccAddress(req.Address) + err := k.AddBalance(*ctx, addr, req.Amount) + if err != nil { + return nil, err + } + + return &types.AddBalanceResponse{}, nil +} + +// SubBalanceStateDB sub balance in statedb for sgx +func (k Keeper) StateDBSubBalance(_ context.Context, req *types.SubBalanceRequest) (*types.SubBalanceResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + addr := sdk.AccAddress(req.Address) + err := k.SubBalance(*ctx, addr, req.Amount) + if err != nil { + return nil, err + } + + return &types.SubBalanceResponse{}, nil +} + +// SubBalanceStateDB sets the balances in statedb for sgx +func (k Keeper) StateDBSetBalance(_ context.Context, req *types.SetBalanceRequest) (*types.SetBalanceResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + addr := common.BytesToAddress(req.Address) + amount, ok := new(big.Int).SetString(req.Amount, 10) + if !ok { + return nil, errors.Wrapf(types.ErrInvalidAmount, "invalid set balance amount: %s", req.Amount) + } + err := k.SetBalance(*ctx, addr, amount, req.Denom) + if err != nil { + return nil, err + } + + return &types.SetBalanceResponse{}, nil +} + +// GetBalanceStateDB queries balance in statedb for sgx +func (k Keeper) StateDBGetBalance(_ context.Context, req *types.GetBalanceRequest) (*types.GetBalanceResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + addr := sdk.AccAddress(req.Address) + balance := k.GetBalance(*ctx, addr, req.Denom) + + return &types.GetBalanceResponse{ + Balance: balance.String(), + }, nil +} + +// GetAccountStateDB queries account in statedb for sgx +func (k Keeper) StateDBGetAccount(_ context.Context, req *types.GetAccountRequest) (*types.GetAccountResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + addr := common.BytesToAddress(req.Address) + account := k.GetAccount(*ctx, addr) + var protoAccount *types.Account + if account != nil { + protoAccount = &types.Account{ + Nonce: account.Nonce, + CodeHash: account.CodeHash, + } + } + + return &types.GetAccountResponse{ + Account: protoAccount, + }, nil +} + +// GetStateStateDB queries state in statedb for sgx +func (k Keeper) StateDBGetState(_ context.Context, req *types.GetStateRequest) (*types.GetStateResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + addr := common.BytesToAddress(req.Address) + key := common.BytesToHash(req.Key) + + hash := k.GetState(*ctx, addr, key) + return &types.GetStateResponse{ + Hash: hash.Bytes(), + }, nil +} + +// GetCodeStateDB queries code in statedb for sgx +func (k Keeper) StateDBGetCode(_ context.Context, req *types.GetCodeRequest) (*types.GetCodeResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + codeHash := common.BytesToHash(req.CodeHash) + + code := k.GetCode(*ctx, codeHash) + return &types.GetCodeResponse{ + Code: code, + }, nil +} + +// SetAccountStateDB sets account in statedb for sgx +func (k Keeper) StateDBSetAccount(_ context.Context, req *types.SetAccountRequest) (*types.SetAccountResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + addr := common.BytesToAddress(req.Address) + + err := k.SetAccount(*ctx, addr, statedb.Account{ + Nonce: req.Account.Nonce, + CodeHash: req.Account.CodeHash, + }) + if err != nil { + return nil, err + } + + return &types.SetAccountResponse{}, nil +} + +// SetStateStateDB sets state in statedb for sgx +func (k Keeper) StateDBSetState(_ context.Context, req *types.SetStateRequest) (*types.SetStateResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + k.SetState(*ctx, common.BytesToAddress(req.Address), common.BytesToHash(req.Key), req.Value) + return &types.SetStateResponse{}, nil +} + +// SetCodeStateDB sets code in statedb for sgx +func (k Keeper) StateDBSetCode(_ context.Context, req *types.SetCodeRequest) (*types.SetCodeResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + k.SetCode(*ctx, req.CodeHash, req.Code) + return &types.SetCodeResponse{}, nil +} + +// DeleteAccountStateDB delete account in statedb for sgx +func (k Keeper) StateDBDeleteAccount(_ context.Context, req *types.DeleteAccountRequest) (*types.DeleteAccountResponse, error) { + ctx := k.sdkCtxs[req.HandlerId] + if ctx == nil { + panic("context invalid") + } + + err := k.DeleteAccount(*ctx, common.BytesToAddress(req.Address)) + return &types.DeleteAccountResponse{}, err +} diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index b56ed9ef71..0e9cfacf88 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -39,7 +39,7 @@ import ( "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/params" - sgxtypes "github.com/evmos/ethermint/x/sgx/types" + "github.com/evmos/ethermint/x/evm/sgx" ) // GetHashFn implements vm.GetHashFunc for Ethermint. It handles 3 cases: @@ -313,9 +313,9 @@ func (k *Keeper) ApplyMessageWithConfig( return nil, errorsmod.Wrap(err, "failed to connect to localhost:9092") } - sgxGrpcClient := sgxtypes.NewQueryServiceClient(rpcConn) + sgxGrpcClient := sgx.NewQueryServiceClient(rpcConn) - handlerId, err := k.prepareTxForSgx(ctx, msg, cfg, sgxGrpcClient) + handlerId, err := k.startEVM(ctx, msg, cfg, sgxGrpcClient) if err != nil { return nil, errorsmod.Wrap(err, "failed to create new RPC server") } @@ -330,14 +330,14 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SubBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit))) - _, err := sgxGrpcClient.StateDBSubBalance(ctx, &sgxtypes.StateDBSubBalanceRequest{ + _, err := sgxGrpcClient.StateDBSubBalance(ctx, &sgx.StateDBSubBalanceRequest{ HandlerId: handlerId, Caller: sender.Address().Bytes(), - Amount: new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit)).Uint64(), + Amount: new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(msg.GasLimit)).String(), }) if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(err) { + if isSgxDownError(err) { panic("sgx rpc server is down") } return nil, err @@ -345,13 +345,13 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), stateDB.GetNonce(sender.Address())+1) - _, err = sgxGrpcClient.StateDBIncreaseNonce(ctx, &sgxtypes.StateDBIncreaseNonceRequest{ + _, err = sgxGrpcClient.StateDBIncreaseNonce(ctx, &sgx.StateDBIncreaseNonceRequest{ HandlerId: handlerId, Caller: sender.Address().Bytes(), }) if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(err) { + if isSgxDownError(err) { panic("sgx rpc server is down") } return nil, err @@ -362,14 +362,14 @@ func (k *Keeper) ApplyMessageWithConfig( if cfg.DebugTrace { // Ethermint original code: // stateDB.AddBalance(sender.Address(), new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas))) - _, err := sgxGrpcClient.StateDBAddBalance(ctx, &sgxtypes.StateDBAddBalanceRequest{ + _, err := sgxGrpcClient.StateDBAddBalance(ctx, &sgx.StateDBAddBalanceRequest{ HandlerId: handlerId, Caller: sender.Address().Bytes(), - Amount: new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas)).Uint64(), + Amount: new(big.Int).Mul(msg.GasPrice, new(big.Int).SetUint64(leftoverGas)).String(), }) if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(err) { + if isSgxDownError(err) { panic("sgx rpc server is down") } @@ -410,17 +410,17 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.Prepare(rules, msg.From, cfg.CoinBase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList) - sgxRules, err := json.Marshal(rules) + rulesJSON, err := json.Marshal(rules) if err != nil { return nil, errorsmod.Wrap(err, "rule marshall failure") } - dbPrepareReq := &sgxtypes.StateDBPrepareRequest{ + dbPrepareReq := &sgx.StateDBPrepareRequest{ HandlerId: handlerId, Sender: msg.From.Bytes(), Coinbase: cfg.CoinBase.Bytes(), - Dest: k.SafeAddress2Bytes(msg.To), - Rules: sgxRules, - AccessList: make([]*sgxtypes.AccessTuple, 0), + Dest: safeAddress2Bytes(msg.To), + RulesJson: rulesJSON, + AccessList: make([]*sgx.AccessTuple, 0), } for _, accList := range msg.AccessList { @@ -431,7 +431,7 @@ func (k *Keeper) ApplyMessageWithConfig( } } - dbPrepareReq.AccessList = append(dbPrepareReq.AccessList, &sgxtypes.AccessTuple{ + dbPrepareReq.AccessList = append(dbPrepareReq.AccessList, &sgx.AccessTuple{ Address: accList.Address.Bytes(), StorageKeys: storageKeys, }) @@ -440,7 +440,7 @@ func (k *Keeper) ApplyMessageWithConfig( _, err = sgxGrpcClient.StateDBPrepare(ctx, dbPrepareReq) if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(err) { + if isSgxDownError(err) { panic("sgx rpc server is down") } @@ -454,14 +454,14 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce) - _, err := sgxGrpcClient.StateDBSetNonce(ctx, &sgxtypes.StateDBSetNonceRequest{ + _, err := sgxGrpcClient.StateDBSetNonce(ctx, &sgx.StateDBSetNonceRequest{ HandlerId: handlerId, Caller: msg.From.Bytes(), Nonce: msg.Nonce, }) if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(err) { + if isSgxDownError(err) { panic("sgx rpc server is down") } @@ -470,7 +470,8 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // ret, _, leftoverGas, vmErr = evm.Create(sender, msg.Data, leftoverGas, msg.Value) - resp, vmErr := sgxGrpcClient.Create(ctx, &sgxtypes.CreateRequest{ + var resp *sgx.CreateResponse + resp, vmErr = sgxGrpcClient.Create(ctx, &sgx.CreateRequest{ HandlerId: handlerId, Caller: msg.From.Bytes(), Code: msg.Data, @@ -479,52 +480,51 @@ func (k *Keeper) ApplyMessageWithConfig( }) if vmErr != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(vmErr) { + if isSgxDownError(vmErr) { panic("sgx rpc server is down") } - - return nil, vmErr + } else { + ret = resp.Ret + leftoverGas = resp.LeftOverGas } - ret = resp.Ret - leftoverGas = resp.LeftOverGas - // Ethermint original code: // stateDB.SetNonce(sender.Address(), msg.Nonce+1) - _, vmErr = sgxGrpcClient.StateDBSetNonce(ctx, &sgxtypes.StateDBSetNonceRequest{ + _, err = sgxGrpcClient.StateDBSetNonce(ctx, &sgx.StateDBSetNonceRequest{ HandlerId: handlerId, Caller: msg.From.Bytes(), Nonce: msg.Nonce + 1, }) - if vmErr != nil { + if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(vmErr) { + if isSgxDownError(err) { panic("sgx rpc server is down") } - return nil, vmErr + return nil, err } } else { // Ethermint original code: // ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, msg.Value) - resp, vmErr := sgxGrpcClient.Call(ctx, &sgxtypes.CallRequest{ + var resp *sgx.CallResponse + resp, vmErr = sgxGrpcClient.Call(ctx, &sgx.CallRequest{ HandlerId: handlerId, Caller: msg.From.Bytes(), - Addr: k.SafeAddress2Bytes(msg.To), + Addr: safeAddress2Bytes(msg.To), Input: msg.Data, Gas: leftoverGas, Value: msg.Value.Uint64(), }) if vmErr != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(vmErr) { + if isSgxDownError(vmErr) { panic("sgx rpc server is down") } - - return nil, vmErr + } else { + ret = resp.Ret + leftoverGas = resp.LeftOverGas } - ret = resp.Ret - leftoverGas = resp.LeftOverGas + } refundQuotient := params.RefundQuotient @@ -544,12 +544,12 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // leftoverGas += GasToRefund(stateDB.GetRefund(), temporaryGasUsed, refundQuotient) - resp, err := sgxGrpcClient.StateDBGetRefund(ctx, &sgxtypes.StateDBGetRefundRequest{ + resp, err := sgxGrpcClient.StateDBGetRefund(ctx, &sgx.StateDBGetRefundRequest{ HandlerId: handlerId, }) if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(err) { + if isSgxDownError(err) { panic("sgx rpc server is down") } @@ -571,10 +571,10 @@ func (k *Keeper) ApplyMessageWithConfig( // if err := stateDB.Commit(); err != nil { // return nil, errorsmod.Wrap(err, "failed to commit stateDB") // } - _, err := sgxGrpcClient.Commit(ctx, &sgxtypes.CommitRequest{HandlerId: handlerId}) + _, err := sgxGrpcClient.Commit(ctx, &sgx.CommitRequest{HandlerId: handlerId}) if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(err) { + if isSgxDownError(err) { panic("sgx rpc server is down") } return nil, errorsmod.Wrap(err, "failed to commit sgx stateDB") @@ -602,48 +602,29 @@ func (k *Keeper) ApplyMessageWithConfig( // Ethermint original code: // Logs: types.NewLogsFromEth(stateDB.Logs()), - respLogs, err := sgxGrpcClient.StateDBGetLogs(ctx, &sgxtypes.StateDBGetLogsRequest{HandlerId: handlerId}) + logsResp, err := sgxGrpcClient.StateDBGetLogs(ctx, &sgx.StateDBGetLogsRequest{HandlerId: handlerId}) if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(err) { + if isSgxDownError(err) { panic("sgx rpc server is down") } return nil, err } - ethlogs := make([]*ethtypes.Log, 0) - for _, log := range respLogs.Log { - ethLog := ðtypes.Log{ - Address: common.BytesToAddress(log.Address), - // list of topics provided by the contract. - // supplied by the contract, usually ABI-encoded - Data: log.Data, - - // Derived fields. These fields are filled in by the node - // but not secured by consensus. - // block in which the transaction was included - BlockNumber: log.BlockNumber, - // hash of the transaction - TxHash: common.BytesToHash(log.TxHash), - // index of the transaction in the block - TxIndex: uint(log.TxIndex), - // hash of the block in which the transaction was included - BlockHash: common.BytesToHash(log.BlockHash), - // index of the log in the block - Index: uint(log.Index), - - // The Removed field is true if this log was reverted due to a chain reorganisation. - // You must pay attention to this field if you receive logs through a filter query. - Removed: log.Removed, + ethlogs := make([]*ethtypes.Log, len(logsResp.Logs)) + for i, log := range logsResp.Logs { + var l ethtypes.Log + err := json.Unmarshal(log, &l) + if err != nil { + return nil, errorsmod.Wrap(err, "failed to unmarshal log") } - topics := make([]common.Hash, 0) - for _, topic := range log.Topics { - topics = append(topics, common.BytesToHash(topic)) - } + ethlogs[i] = &l + } - ethLog.Topics = topics - ethlogs = append(ethlogs, ethLog) + err = k.stopEVM(ctx, handlerId, sgxGrpcClient) + if err != nil { + return nil, err } return &types.MsgEthereumTxResponse{ @@ -656,51 +637,30 @@ func (k *Keeper) ApplyMessageWithConfig( }, nil } -func (k *Keeper) SafeBigInt2Uint64Convert(val *big.Int) uint64 { - if val == nil { - return 0 - } - return val.Uint64() -} - -func (k *Keeper) SafeAddress2Bytes(addr *common.Address) []byte { - if addr == nil { - return nil - } - return addr.Bytes() -} - -// prepareTxForSgx prepares the transaction for the SGX enclave. It: -// - creates an RPC server around the keeper to receive requests sent by the -// SGX -// - sends a "PrepareTx" request to the SGX enclave with the relevant tx and -// block info -func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxGrpcClient sgxtypes.QueryServiceClient) (uint64, error) { - // Step 1. Send a "PrepareTx" request to the SGX enclave. - chainConfig, err := json.Marshal(cfg.ChainConfig) +// startEVM notifies the TEE enclave to create a new EVM. It returns the +// unique handler id for the EVM. +func (k *Keeper) startEVM(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxGrpcClient sgx.QueryServiceClient) (uint64, error) { + // Step 1. Send a "StartEVM" request to the SGX enclave. + chainConfigJSON, err := json.Marshal(cfg.ChainConfig) if err != nil { return 0, err } - var overrides []byte + var overridesJSON []byte if cfg.Overrides != nil { - overrides, err = json.Marshal(cfg.Overrides) + overridesJSON, err = json.Marshal(cfg.Overrides) if err != nil { return 0, err } } - // Prepare EvmConfig - evmConfig := sgxtypes.PrepareTxEVMConfig{ - ChainConfigJson: chainConfig, - CoinBase: cfg.CoinBase.Bytes(), - BaseFee: k.SafeBigInt2Uint64Convert(cfg.BaseFee), - DebugTrace: cfg.DebugTrace, - NoBaseFee: cfg.FeeMarketParams.NoBaseFee, - EvmDenom: cfg.Params.EvmDenom, - Overrides: overrides, + msgJSON, err := json.Marshal(msg) + if err != nil { + return 0, err } - txConfig := sgxtypes.TxConfig{ + + // Prepare EvmConfig + txConfig := &sgx.TxConfig{ // Original type: common.Hash BlockHash: cfg.TxConfig.BlockHash.Bytes(), // Original type: common.Hash @@ -708,33 +668,63 @@ func (k *Keeper) prepareTxForSgx(ctx sdk.Context, msg core.Message, cfg *EVMConf TxIndex: uint64(cfg.TxConfig.TxIndex), LogIndex: uint64(cfg.TxConfig.LogIndex), } + evmConfig := sgx.StartEVMConfig{ + ChainConfigJson: chainConfigJSON, + CoinBase: cfg.CoinBase.Bytes(), + DebugTrace: cfg.DebugTrace, + NoBaseFee: cfg.FeeMarketParams.NoBaseFee, + TxConfig: txConfig, + EvmDenom: cfg.Params.EvmDenom, + ExtraEips: cfg.Params.ExtraEIPs, + OverridesJson: overridesJSON, + } + if cfg.BaseFee != nil { + evmConfig.BaseFee = cfg.BaseFee.String() + } - evmConfig.TxConfig = txConfig - - sgxMsg, err := json.Marshal(msg) + header := ctx.BlockHeader() + resp, err := sgxGrpcClient.StartEVM(ctx, &sgx.StartEVMRequest{ + Header: &header, + MsgJson: msgJSON, + EvmConfig: &evmConfig, + }) if err != nil { + // panic cosmos if sgx isn't available. + if isSgxDownError(err) { + panic("sgx rpc server is down") + } + return 0, err } - resp, err := sgxGrpcClient.PrepareTx(ctx, &sgxtypes.PrepareTxRequest{TxHash: cfg.TxConfig.TxHash.Bytes(), Header: ctx.BlockHeader(), Msg: sgxMsg, EvmConfig: evmConfig}) + // Snapshot the sdk ctx with this handlerId + k.sdkCtxs[resp.HandlerId] = &ctx + + return resp.HandlerId, err +} + +func (k *Keeper) stopEVM(ctx sdk.Context, handlerId uint64, sgxGrpcClient sgx.QueryServiceClient) error { + _, err := sgxGrpcClient.StopEVM(ctx, &sgx.StopEVMRequest{HandlerId: handlerId}) if err != nil { // panic cosmos if sgx isn't available. - if k.IsSgxDownError(err) { + if isSgxDownError(err) { panic("sgx rpc server is down") } - - return 0, err } - // Store handler id - handlerId := resp.HandlerId - // Snapshot the ctx - k.sdkCtxs[handlerId] = &ctx + delete(k.sdkCtxs, handlerId) - return handlerId, err + return err } -// IsSgxDownError checks if the error is related with RPC server down -func (k *Keeper) IsSgxDownError(err error) bool { - return strings.Contains(err.Error(), types.ErrRPCConnectionDown.Error()) +// isSgxDownError checks if the error is related with RPC server down +func isSgxDownError(err error) bool { + return strings.Contains(err.Error(), types.ErrTeeConnDown.Error()) +} + +func safeAddress2Bytes(addr *common.Address) []byte { + if addr == nil { + return nil + } + return addr.Bytes() } diff --git a/x/sgx/types/query.pb.go b/x/evm/sgx/query.pb.go similarity index 59% rename from x/sgx/types/query.pb.go rename to x/evm/sgx/query.pb.go index 8336fed5ec..4a7fead886 100644 --- a/x/sgx/types/query.pb.go +++ b/x/evm/sgx/query.pb.go @@ -1,15 +1,14 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: ethermint/sgx/v1/query.proto -package types +package sgx import ( context "context" fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" + types "github.com/cometbft/cometbft/proto/tendermint/types" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - types "github.com/cometbft/cometbft/proto/tendermint/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -29,30 +28,32 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type PrepareTxRequest struct { - TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` - // Header is the Tendermint header of the block in which the transaction +type StartEVMRequest struct { + // header is the Tendermint header of the block in which the transaction // will be executed. - Header types.Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header"` - // Msg is the EVM transaction message to run on the EVM. - // Original type: core.Message - Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + Header *types.Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` + // msg is the EVM transaction message to run on the EVM. + // Because of nil pointers in Golang, we chose to use JSON bytes here instead + // of a separate Protobuf message. + // + // Original geth type: core.Message + MsgJson []byte `protobuf:"bytes,3,opt,name=msg_json,json=msgJson,proto3" json:"msg_json,omitempty"` // EvmConfig is the EVM configuration to set. - EvmConfig PrepareTxEVMConfig `protobuf:"bytes,4,opt,name=evm_config,json=evmConfig,proto3" json:"evm_config"` + EvmConfig *StartEVMConfig `protobuf:"bytes,4,opt,name=evm_config,json=evmConfig,proto3" json:"evm_config,omitempty"` } -func (m *PrepareTxRequest) Reset() { *m = PrepareTxRequest{} } -func (m *PrepareTxRequest) String() string { return proto.CompactTextString(m) } -func (*PrepareTxRequest) ProtoMessage() {} -func (*PrepareTxRequest) Descriptor() ([]byte, []int) { +func (m *StartEVMRequest) Reset() { *m = StartEVMRequest{} } +func (m *StartEVMRequest) String() string { return proto.CompactTextString(m) } +func (*StartEVMRequest) ProtoMessage() {} +func (*StartEVMRequest) Descriptor() ([]byte, []int) { return fileDescriptor_1d9fb6e76534f03e, []int{0} } -func (m *PrepareTxRequest) XXX_Unmarshal(b []byte) error { +func (m *StartEVMRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *PrepareTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *StartEVMRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_PrepareTxRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_StartEVMRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -62,63 +63,262 @@ func (m *PrepareTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *PrepareTxRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareTxRequest.Merge(m, src) +func (m *StartEVMRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartEVMRequest.Merge(m, src) } -func (m *PrepareTxRequest) XXX_Size() int { +func (m *StartEVMRequest) XXX_Size() int { return m.Size() } -func (m *PrepareTxRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareTxRequest.DiscardUnknown(m) +func (m *StartEVMRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartEVMRequest.DiscardUnknown(m) } -var xxx_messageInfo_PrepareTxRequest proto.InternalMessageInfo +var xxx_messageInfo_StartEVMRequest proto.InternalMessageInfo -func (m *PrepareTxRequest) GetTxHash() []byte { +func (m *StartEVMRequest) GetHeader() *types.Header { if m != nil { - return m.TxHash + return m.Header } return nil } -func (m *PrepareTxRequest) GetHeader() types.Header { +func (m *StartEVMRequest) GetMsgJson() []byte { if m != nil { - return m.Header + return m.MsgJson + } + return nil +} + +func (m *StartEVMRequest) GetEvmConfig() *StartEVMConfig { + if m != nil { + return m.EvmConfig + } + return nil +} + +// StartEVMConfig is the EVM config that is passed to the SGX during the +// StartEVM request. +type StartEVMConfig struct { + // ChainConfig is the EVM chain configuration in JSON format. Since the + // underlying params.ChainConfig struct contains pointer fields, they are + // not serializable over RPC with gob. Instead, the JSON representation is + // used. + // + // Original type: params.ChainConfig + ChainConfigJson []byte `protobuf:"bytes,1,opt,name=chain_config_json,json=chainConfigJson,proto3" json:"chain_config_json,omitempty"` + // Original type: common.Address + CoinBase []byte `protobuf:"bytes,2,opt,name=coin_base,json=coinBase,proto3" json:"coin_base,omitempty"` + // Original type: *big.Int + BaseFee string `protobuf:"bytes,3,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` + // Original type: statedb.TxConfig + TxConfig *TxConfig `protobuf:"bytes,4,opt,name=tx_config,json=txConfig,proto3" json:"tx_config,omitempty"` + // Original type: bool + DebugTrace bool `protobuf:"varint,5,opt,name=debug_trace,json=debugTrace,proto3" json:"debug_trace,omitempty"` + // Fields from EVMConfig.FeeMarketParams struct + // Original type: bool + NoBaseFee bool `protobuf:"varint,6,opt,name=no_base_fee,json=noBaseFee,proto3" json:"no_base_fee,omitempty"` + // Fields from EVMConfig.Params struct + // Original type: string + EvmDenom string `protobuf:"bytes,7,opt,name=evm_denom,json=evmDenom,proto3" json:"evm_denom,omitempty"` + // Original type: []int64 + ExtraEips []int64 `protobuf:"varint,8,rep,packed,name=extra_eips,json=extraEips,proto3" json:"extra_eips,omitempty"` + // overrides_json is the collection of overridden accounts. We chose to use + // JSON bytes instead of a separate Protobuf message because of nil pointers + // and the complexity of the original geth type. + // + // Original geth type: *rpctypes.StateOverride + OverridesJson []byte `protobuf:"bytes,9,opt,name=overrides_json,json=overridesJson,proto3" json:"overrides_json,omitempty"` +} + +func (m *StartEVMConfig) Reset() { *m = StartEVMConfig{} } +func (m *StartEVMConfig) String() string { return proto.CompactTextString(m) } +func (*StartEVMConfig) ProtoMessage() {} +func (*StartEVMConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{1} +} +func (m *StartEVMConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StartEVMConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StartEVMConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StartEVMConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartEVMConfig.Merge(m, src) +} +func (m *StartEVMConfig) XXX_Size() int { + return m.Size() +} +func (m *StartEVMConfig) XXX_DiscardUnknown() { + xxx_messageInfo_StartEVMConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_StartEVMConfig proto.InternalMessageInfo + +func (m *StartEVMConfig) GetChainConfigJson() []byte { + if m != nil { + return m.ChainConfigJson } - return types.Header{} + return nil } -func (m *PrepareTxRequest) GetMsg() []byte { +func (m *StartEVMConfig) GetCoinBase() []byte { if m != nil { - return m.Msg + return m.CoinBase } return nil } -func (m *PrepareTxRequest) GetEvmConfig() PrepareTxEVMConfig { +func (m *StartEVMConfig) GetBaseFee() string { if m != nil { - return m.EvmConfig + return m.BaseFee + } + return "" +} + +func (m *StartEVMConfig) GetTxConfig() *TxConfig { + if m != nil { + return m.TxConfig + } + return nil +} + +func (m *StartEVMConfig) GetDebugTrace() bool { + if m != nil { + return m.DebugTrace + } + return false +} + +func (m *StartEVMConfig) GetNoBaseFee() bool { + if m != nil { + return m.NoBaseFee + } + return false +} + +func (m *StartEVMConfig) GetEvmDenom() string { + if m != nil { + return m.EvmDenom + } + return "" +} + +func (m *StartEVMConfig) GetExtraEips() []int64 { + if m != nil { + return m.ExtraEips + } + return nil +} + +func (m *StartEVMConfig) GetOverridesJson() []byte { + if m != nil { + return m.OverridesJson + } + return nil +} + +// TxConfig encapulates the readonly information of current tx for `StateDB`. +type TxConfig struct { + // Original type: common.Hash + BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` + // tx_hash is the hash of current tx. + // Original type: common.Hash + TxHash []byte `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + // tx_index is the index of current transaction + // Original type: int64 + TxIndex uint64 `protobuf:"varint,3,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` + // log_index is the index of next log within current block + // Original type: int64 + LogIndex uint64 `protobuf:"varint,4,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` +} + +func (m *TxConfig) Reset() { *m = TxConfig{} } +func (m *TxConfig) String() string { return proto.CompactTextString(m) } +func (*TxConfig) ProtoMessage() {} +func (*TxConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{2} +} +func (m *TxConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TxConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxConfig.Merge(m, src) +} +func (m *TxConfig) XXX_Size() int { + return m.Size() +} +func (m *TxConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TxConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TxConfig proto.InternalMessageInfo + +func (m *TxConfig) GetBlockHash() []byte { + if m != nil { + return m.BlockHash + } + return nil +} + +func (m *TxConfig) GetTxHash() []byte { + if m != nil { + return m.TxHash + } + return nil +} + +func (m *TxConfig) GetTxIndex() uint64 { + if m != nil { + return m.TxIndex + } + return 0 +} + +func (m *TxConfig) GetLogIndex() uint64 { + if m != nil { + return m.LogIndex } - return PrepareTxEVMConfig{} + return 0 } -type PrepareTxResponse struct { +type StartEVMResponse struct { // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` } -func (m *PrepareTxResponse) Reset() { *m = PrepareTxResponse{} } -func (m *PrepareTxResponse) String() string { return proto.CompactTextString(m) } -func (*PrepareTxResponse) ProtoMessage() {} -func (*PrepareTxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{1} +func (m *StartEVMResponse) Reset() { *m = StartEVMResponse{} } +func (m *StartEVMResponse) String() string { return proto.CompactTextString(m) } +func (*StartEVMResponse) ProtoMessage() {} +func (*StartEVMResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{3} } -func (m *PrepareTxResponse) XXX_Unmarshal(b []byte) error { +func (m *StartEVMResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *PrepareTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *StartEVMResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_PrepareTxResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_StartEVMResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -128,19 +328,19 @@ func (m *PrepareTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *PrepareTxResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareTxResponse.Merge(m, src) +func (m *StartEVMResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartEVMResponse.Merge(m, src) } -func (m *PrepareTxResponse) XXX_Size() int { +func (m *StartEVMResponse) XXX_Size() int { return m.Size() } -func (m *PrepareTxResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareTxResponse.DiscardUnknown(m) +func (m *StartEVMResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StartEVMResponse.DiscardUnknown(m) } -var xxx_messageInfo_PrepareTxResponse proto.InternalMessageInfo +var xxx_messageInfo_StartEVMResponse proto.InternalMessageInfo -func (m *PrepareTxResponse) GetHandlerId() uint64 { +func (m *StartEVMResponse) GetHandlerId() uint64 { if m != nil { return m.HandlerId } @@ -163,7 +363,7 @@ func (m *CreateRequest) Reset() { *m = CreateRequest{} } func (m *CreateRequest) String() string { return proto.CompactTextString(m) } func (*CreateRequest) ProtoMessage() {} func (*CreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{2} + return fileDescriptor_1d9fb6e76534f03e, []int{4} } func (m *CreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -228,6 +428,7 @@ func (m *CreateRequest) GetValue() uint64 { } type CreateResponse struct { + // ret returns the result bytes of the contract creation. Ret []byte `protobuf:"bytes,1,opt,name=ret,proto3" json:"ret,omitempty"` // Original data type: common.Address ContractAddr []byte `protobuf:"bytes,2,opt,name=contract_addr,json=contractAddr,proto3" json:"contract_addr,omitempty"` @@ -238,7 +439,7 @@ func (m *CreateResponse) Reset() { *m = CreateResponse{} } func (m *CreateResponse) String() string { return proto.CompactTextString(m) } func (*CreateResponse) ProtoMessage() {} func (*CreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{3} + return fileDescriptor_1d9fb6e76534f03e, []int{5} } func (m *CreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -306,7 +507,7 @@ func (m *CallRequest) Reset() { *m = CallRequest{} } func (m *CallRequest) String() string { return proto.CompactTextString(m) } func (*CallRequest) ProtoMessage() {} func (*CallRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{4} + return fileDescriptor_1d9fb6e76534f03e, []int{6} } func (m *CallRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -378,6 +579,7 @@ func (m *CallRequest) GetValue() uint64 { } type CallResponse struct { + // ret returns the result bytes of the contract call. Ret []byte `protobuf:"bytes,1,opt,name=ret,proto3" json:"ret,omitempty"` LeftOverGas uint64 `protobuf:"varint,2,opt,name=left_over_gas,json=leftOverGas,proto3" json:"left_over_gas,omitempty"` } @@ -386,7 +588,7 @@ func (m *CallResponse) Reset() { *m = CallResponse{} } func (m *CallResponse) String() string { return proto.CompactTextString(m) } func (*CallResponse) ProtoMessage() {} func (*CallResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{5} + return fileDescriptor_1d9fb6e76534f03e, []int{7} } func (m *CallResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -438,7 +640,7 @@ func (m *CommitRequest) Reset() { *m = CommitRequest{} } func (m *CommitRequest) String() string { return proto.CompactTextString(m) } func (*CommitRequest) ProtoMessage() {} func (*CommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{6} + return fileDescriptor_1d9fb6e76534f03e, []int{8} } func (m *CommitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -481,7 +683,7 @@ func (m *CommitResponse) Reset() { *m = CommitResponse{} } func (m *CommitResponse) String() string { return proto.CompactTextString(m) } func (*CommitResponse) ProtoMessage() {} func (*CommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{7} + return fileDescriptor_1d9fb6e76534f03e, []int{9} } func (m *CommitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -515,15 +717,15 @@ type StateDBAddBalanceRequest struct { HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // caller is the account to add balance too. Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` - // amount is the amount to add. - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + // amount is the amount to add, as a big.Int. + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` } func (m *StateDBAddBalanceRequest) Reset() { *m = StateDBAddBalanceRequest{} } func (m *StateDBAddBalanceRequest) String() string { return proto.CompactTextString(m) } func (*StateDBAddBalanceRequest) ProtoMessage() {} func (*StateDBAddBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{8} + return fileDescriptor_1d9fb6e76534f03e, []int{10} } func (m *StateDBAddBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -566,11 +768,11 @@ func (m *StateDBAddBalanceRequest) GetCaller() []byte { return nil } -func (m *StateDBAddBalanceRequest) GetAmount() uint64 { +func (m *StateDBAddBalanceRequest) GetAmount() string { if m != nil { return m.Amount } - return 0 + return "" } type StateDBAddBalanceResponse struct { @@ -580,7 +782,7 @@ func (m *StateDBAddBalanceResponse) Reset() { *m = StateDBAddBalanceResp func (m *StateDBAddBalanceResponse) String() string { return proto.CompactTextString(m) } func (*StateDBAddBalanceResponse) ProtoMessage() {} func (*StateDBAddBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{9} + return fileDescriptor_1d9fb6e76534f03e, []int{11} } func (m *StateDBAddBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -614,15 +816,15 @@ type StateDBSubBalanceRequest struct { HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` // caller is the account to substract balance from. Caller []byte `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"` - // amount is the amount to substract. - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + // amount is the amount to substract, as a big.Int. + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` } func (m *StateDBSubBalanceRequest) Reset() { *m = StateDBSubBalanceRequest{} } func (m *StateDBSubBalanceRequest) String() string { return proto.CompactTextString(m) } func (*StateDBSubBalanceRequest) ProtoMessage() {} func (*StateDBSubBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{10} + return fileDescriptor_1d9fb6e76534f03e, []int{12} } func (m *StateDBSubBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -665,11 +867,11 @@ func (m *StateDBSubBalanceRequest) GetCaller() []byte { return nil } -func (m *StateDBSubBalanceRequest) GetAmount() uint64 { +func (m *StateDBSubBalanceRequest) GetAmount() string { if m != nil { return m.Amount } - return 0 + return "" } type StateDBSubBalanceResponse struct { @@ -679,7 +881,7 @@ func (m *StateDBSubBalanceResponse) Reset() { *m = StateDBSubBalanceResp func (m *StateDBSubBalanceResponse) String() string { return proto.CompactTextString(m) } func (*StateDBSubBalanceResponse) ProtoMessage() {} func (*StateDBSubBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{11} + return fileDescriptor_1d9fb6e76534f03e, []int{13} } func (m *StateDBSubBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -720,7 +922,7 @@ func (m *StateDBSetNonceRequest) Reset() { *m = StateDBSetNonceRequest{} func (m *StateDBSetNonceRequest) String() string { return proto.CompactTextString(m) } func (*StateDBSetNonceRequest) ProtoMessage() {} func (*StateDBSetNonceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{12} + return fileDescriptor_1d9fb6e76534f03e, []int{14} } func (m *StateDBSetNonceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -777,7 +979,7 @@ func (m *StateDBSetNonceResponse) Reset() { *m = StateDBSetNonceResponse func (m *StateDBSetNonceResponse) String() string { return proto.CompactTextString(m) } func (*StateDBSetNonceResponse) ProtoMessage() {} func (*StateDBSetNonceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{13} + return fileDescriptor_1d9fb6e76534f03e, []int{15} } func (m *StateDBSetNonceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -817,7 +1019,7 @@ func (m *StateDBIncreaseNonceRequest) Reset() { *m = StateDBIncreaseNonc func (m *StateDBIncreaseNonceRequest) String() string { return proto.CompactTextString(m) } func (*StateDBIncreaseNonceRequest) ProtoMessage() {} func (*StateDBIncreaseNonceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{14} + return fileDescriptor_1d9fb6e76534f03e, []int{16} } func (m *StateDBIncreaseNonceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -867,7 +1069,7 @@ func (m *StateDBIncreaseNonceResponse) Reset() { *m = StateDBIncreaseNon func (m *StateDBIncreaseNonceResponse) String() string { return proto.CompactTextString(m) } func (*StateDBIncreaseNonceResponse) ProtoMessage() {} func (*StateDBIncreaseNonceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{15} + return fileDescriptor_1d9fb6e76534f03e, []int{17} } func (m *StateDBIncreaseNonceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -896,42 +1098,29 @@ func (m *StateDBIncreaseNonceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_StateDBIncreaseNonceResponse proto.InternalMessageInfo -// Rules wraps ChainConfig and is merely syntactic sugar or can be used for functions -// that do not have or require information about the block. +// AccessTuple is the element type of an access list. // // It is taken from geth: -// https://github.com/ethereum/go-ethereum/blob/v1.13.5/params/config.go#L848 -type Rules struct { - ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - IsHomestead bool `protobuf:"varint,2,opt,name=is_homestead,json=isHomestead,proto3" json:"is_homestead,omitempty"` - IsEIP150 bool `protobuf:"varint,3,opt,name=is_e_i_p150,json=isEIP150,proto3" json:"is_e_i_p150,omitempty"` - IsEIP155 bool `protobuf:"varint,4,opt,name=is_e_i_p155,json=isEIP155,proto3" json:"is_e_i_p155,omitempty"` - IsEIP158 bool `protobuf:"varint,5,opt,name=is_e_i_p158,json=isEIP158,proto3" json:"is_e_i_p158,omitempty"` - IsByzantium bool `protobuf:"varint,6,opt,name=is_byzantium,json=isByzantium,proto3" json:"is_byzantium,omitempty"` - IsConstantinople bool `protobuf:"varint,7,opt,name=is_constantinople,json=isConstantinople,proto3" json:"is_constantinople,omitempty"` - IsPetersburg bool `protobuf:"varint,8,opt,name=is_petersburg,json=isPetersburg,proto3" json:"is_petersburg,omitempty"` - IsIstanbul bool `protobuf:"varint,9,opt,name=is_istanbul,json=isIstanbul,proto3" json:"is_istanbul,omitempty"` - IsBerlin bool `protobuf:"varint,10,opt,name=is_berlin,json=isBerlin,proto3" json:"is_berlin,omitempty"` - IsLondon bool `protobuf:"varint,11,opt,name=is_london,json=isLondon,proto3" json:"is_london,omitempty"` - IsMerge bool `protobuf:"varint,12,opt,name=is_merge,json=isMerge,proto3" json:"is_merge,omitempty"` - IsShanghai bool `protobuf:"varint,13,opt,name=is_shanghai,json=isShanghai,proto3" json:"is_shanghai,omitempty"` - IsCancun bool `protobuf:"varint,14,opt,name=is_cancun,json=isCancun,proto3" json:"is_cancun,omitempty"` - IsPrague bool `protobuf:"varint,15,opt,name=is_prague,json=isPrague,proto3" json:"is_prague,omitempty"` - IsVerkle bool `protobuf:"varint,16,opt,name=is_verkle,json=isVerkle,proto3" json:"is_verkle,omitempty"` -} - -func (m *Rules) Reset() { *m = Rules{} } -func (m *Rules) String() string { return proto.CompactTextString(m) } -func (*Rules) ProtoMessage() {} -func (*Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{16} +// https://github.com/ethereum/go-ethereum/blob/v1.13.5/core/types/tx_access_list.go#L33 +type AccessTuple struct { + // Original data type: common.Address + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Original data type: []common.Hash + StorageKeys [][]byte `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys,proto3" json:"storage_keys,omitempty"` +} + +func (m *AccessTuple) Reset() { *m = AccessTuple{} } +func (m *AccessTuple) String() string { return proto.CompactTextString(m) } +func (*AccessTuple) ProtoMessage() {} +func (*AccessTuple) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{18} } -func (m *Rules) XXX_Unmarshal(b []byte) error { +func (m *AccessTuple) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *AccessTuple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rules.Marshal(b, m, deterministic) + return xxx_messageInfo_AccessTuple.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -941,207 +1130,60 @@ func (m *Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Rules) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rules.Merge(m, src) +func (m *AccessTuple) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccessTuple.Merge(m, src) } -func (m *Rules) XXX_Size() int { +func (m *AccessTuple) XXX_Size() int { return m.Size() } -func (m *Rules) XXX_DiscardUnknown() { - xxx_messageInfo_Rules.DiscardUnknown(m) +func (m *AccessTuple) XXX_DiscardUnknown() { + xxx_messageInfo_AccessTuple.DiscardUnknown(m) } -var xxx_messageInfo_Rules proto.InternalMessageInfo - -func (m *Rules) GetChainId() uint64 { - if m != nil { - return m.ChainId - } - return 0 -} +var xxx_messageInfo_AccessTuple proto.InternalMessageInfo -func (m *Rules) GetIsHomestead() bool { +func (m *AccessTuple) GetAddress() []byte { if m != nil { - return m.IsHomestead + return m.Address } - return false + return nil } -func (m *Rules) GetIsEIP150() bool { +func (m *AccessTuple) GetStorageKeys() [][]byte { if m != nil { - return m.IsEIP150 + return m.StorageKeys } - return false + return nil } -func (m *Rules) GetIsEIP155() bool { - if m != nil { - return m.IsEIP155 - } - return false -} - -func (m *Rules) GetIsEIP158() bool { - if m != nil { - return m.IsEIP158 - } - return false -} - -func (m *Rules) GetIsByzantium() bool { - if m != nil { - return m.IsByzantium - } - return false -} - -func (m *Rules) GetIsConstantinople() bool { - if m != nil { - return m.IsConstantinople - } - return false -} - -func (m *Rules) GetIsPetersburg() bool { - if m != nil { - return m.IsPetersburg - } - return false -} - -func (m *Rules) GetIsIstanbul() bool { - if m != nil { - return m.IsIstanbul - } - return false -} - -func (m *Rules) GetIsBerlin() bool { - if m != nil { - return m.IsBerlin - } - return false -} - -func (m *Rules) GetIsLondon() bool { - if m != nil { - return m.IsLondon - } - return false -} - -func (m *Rules) GetIsMerge() bool { - if m != nil { - return m.IsMerge - } - return false -} - -func (m *Rules) GetIsShanghai() bool { - if m != nil { - return m.IsShanghai - } - return false -} - -func (m *Rules) GetIsCancun() bool { - if m != nil { - return m.IsCancun - } - return false -} - -func (m *Rules) GetIsPrague() bool { - if m != nil { - return m.IsPrague - } - return false -} - -func (m *Rules) GetIsVerkle() bool { - if m != nil { - return m.IsVerkle - } - return false -} - -// AccessTuple is the element type of an access list. -// -// It is taken from geth: -// https://github.com/ethereum/go-ethereum/blob/v1.13.5/core/types/tx_access_list.go#L33 -type AccessTuple struct { - // Original data type: common.Address - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // Original data type: []common.Hash - StorageKeys [][]byte `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys,proto3" json:"storage_keys,omitempty"` -} - -func (m *AccessTuple) Reset() { *m = AccessTuple{} } -func (m *AccessTuple) String() string { return proto.CompactTextString(m) } -func (*AccessTuple) ProtoMessage() {} -func (*AccessTuple) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{17} -} -func (m *AccessTuple) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccessTuple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccessTuple.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccessTuple) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccessTuple.Merge(m, src) -} -func (m *AccessTuple) XXX_Size() int { - return m.Size() -} -func (m *AccessTuple) XXX_DiscardUnknown() { - xxx_messageInfo_AccessTuple.DiscardUnknown(m) -} - -var xxx_messageInfo_AccessTuple proto.InternalMessageInfo - -func (m *AccessTuple) GetAddress() []byte { - if m != nil { - return m.Address - } - return nil -} - -func (m *AccessTuple) GetStorageKeys() [][]byte { - if m != nil { - return m.StorageKeys - } - return nil -} - -type StateDBPrepareRequest struct { - // handler_id is the unique request ID that is given by the SGX binary. - HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Original data type: common.Address - Sender []byte `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` - // Original data type: common.Address - Coinbase []byte `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` - // Original data type: common.Address - Dest []byte `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"` - // Original type: params.Rules - Rules []byte `protobuf:"bytes,5,opt,name=rules,proto3" json:"rules,omitempty"` - AccessList []*AccessTuple `protobuf:"bytes,6,rep,name=access_list,json=accessList,proto3" json:"access_list,omitempty"` +type StateDBPrepareRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + // Original data type: common.Address + Sender []byte `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` + // Original data type: common.Address + Coinbase []byte `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + // Original data type: common.Address + Dest []byte `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"` + // rules_json represent the Rules that wrap ChainConfig and is merely + // syntactic sugar or can be used for functions that do not have or require + // information about the block. + // + // We chose to use JSON bytes instead of a separate Protobuf message because + // of nil pointers and the complexity of the original geth type. + // + // Original geth type: *params.Rules + RulesJson []byte `protobuf:"bytes,5,opt,name=rules_json,json=rulesJson,proto3" json:"rules_json,omitempty"` + // access_list is the list of storage keys that the transaction is allowed to + // access. + AccessList []*AccessTuple `protobuf:"bytes,6,rep,name=access_list,json=accessList,proto3" json:"access_list,omitempty"` } func (m *StateDBPrepareRequest) Reset() { *m = StateDBPrepareRequest{} } func (m *StateDBPrepareRequest) String() string { return proto.CompactTextString(m) } func (*StateDBPrepareRequest) ProtoMessage() {} func (*StateDBPrepareRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{18} + return fileDescriptor_1d9fb6e76534f03e, []int{19} } func (m *StateDBPrepareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1198,9 +1240,9 @@ func (m *StateDBPrepareRequest) GetDest() []byte { return nil } -func (m *StateDBPrepareRequest) GetRules() []byte { +func (m *StateDBPrepareRequest) GetRulesJson() []byte { if m != nil { - return m.Rules + return m.RulesJson } return nil } @@ -1219,7 +1261,7 @@ func (m *StateDBPrepareResponse) Reset() { *m = StateDBPrepareResponse{} func (m *StateDBPrepareResponse) String() string { return proto.CompactTextString(m) } func (*StateDBPrepareResponse) ProtoMessage() {} func (*StateDBPrepareResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{19} + return fileDescriptor_1d9fb6e76534f03e, []int{20} } func (m *StateDBPrepareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1257,7 +1299,7 @@ func (m *StateDBGetRefundRequest) Reset() { *m = StateDBGetRefundRequest func (m *StateDBGetRefundRequest) String() string { return proto.CompactTextString(m) } func (*StateDBGetRefundRequest) ProtoMessage() {} func (*StateDBGetRefundRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{20} + return fileDescriptor_1d9fb6e76534f03e, []int{21} } func (m *StateDBGetRefundRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1301,7 +1343,7 @@ func (m *StateDBGetRefundResponse) Reset() { *m = StateDBGetRefundRespon func (m *StateDBGetRefundResponse) String() string { return proto.CompactTextString(m) } func (*StateDBGetRefundResponse) ProtoMessage() {} func (*StateDBGetRefundResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{21} + return fileDescriptor_1d9fb6e76534f03e, []int{22} } func (m *StateDBGetRefundResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1346,7 +1388,7 @@ func (m *StateDBGetLogsRequest) Reset() { *m = StateDBGetLogsRequest{} } func (m *StateDBGetLogsRequest) String() string { return proto.CompactTextString(m) } func (*StateDBGetLogsRequest) ProtoMessage() {} func (*StateDBGetLogsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{22} + return fileDescriptor_1d9fb6e76534f03e, []int{23} } func (m *StateDBGetLogsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1383,14 +1425,19 @@ func (m *StateDBGetLogsRequest) GetHandlerId() uint64 { } type StateDBGetLogsResponse struct { - Log []*EthLog `protobuf:"bytes,1,rep,name=log,proto3" json:"log,omitempty"` + // logs are the logs of the execution. We chose to use + // JSON bytes instead of a separate Protobuf message because of nil pointers + // and the complexity of the original geth type. + // + // Original geth type: []*ethtypes.Log + Logs [][]byte `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` } func (m *StateDBGetLogsResponse) Reset() { *m = StateDBGetLogsResponse{} } func (m *StateDBGetLogsResponse) String() string { return proto.CompactTextString(m) } func (*StateDBGetLogsResponse) ProtoMessage() {} func (*StateDBGetLogsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{23} + return fileDescriptor_1d9fb6e76534f03e, []int{24} } func (m *StateDBGetLogsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1419,57 +1466,30 @@ func (m *StateDBGetLogsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_StateDBGetLogsResponse proto.InternalMessageInfo -func (m *StateDBGetLogsResponse) GetLog() []*EthLog { +func (m *StateDBGetLogsResponse) GetLogs() [][]byte { if m != nil { - return m.Log + return m.Logs } return nil } -type Message struct { - // Original type: *common.Address - To []byte `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` - // Original type: common.Address - From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - // Original type: uint64 - Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` - // Original type: *big.Int - Value uint64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` - // Original type: uint64 - GasLimit uint64 `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` - // Original type: *big.Int - GasPrice uint64 `protobuf:"varint,6,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` - // Original type: *big.Int - GasFeeCap uint64 `protobuf:"varint,7,opt,name=gas_fee_cap,json=gasFeeCap,proto3" json:"gas_fee_cap,omitempty"` - // Original type: *big.Int - GasTipCap uint64 `protobuf:"varint,8,opt,name=gas_tip_cap,json=gasTipCap,proto3" json:"gas_tip_cap,omitempty"` - // Original type: []byte - Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` - // Original types: AccessList - AccessList []AccessTuple `protobuf:"bytes,10,rep,name=access_list,json=accessList,proto3" json:"access_list"` - // Original type: *big.Int - BlobGasFeeCap uint64 `protobuf:"varint,11,opt,name=blob_gas_fee_cap,json=blobGasFeeCap,proto3" json:"blob_gas_fee_cap,omitempty"` - // Original type: []common.Hash - BlobHashes [][]byte `protobuf:"bytes,12,rep,name=blob_hashes,json=blobHashes,proto3" json:"blob_hashes,omitempty"` - // When SkipAccountChecks is true, the message nonce is not checked against the - // account nonce in state. It also disables checking that the sender is an EOA. - // This field will be set to true for operations like RPC eth_call. - // Original type: bool - SkipAccountChecks bool `protobuf:"varint,13,opt,name=skip_account_checks,json=skipAccountChecks,proto3" json:"skip_account_checks,omitempty"` +type StopEVMRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` } -func (m *Message) Reset() { *m = Message{} } -func (m *Message) String() string { return proto.CompactTextString(m) } -func (*Message) ProtoMessage() {} -func (*Message) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{24} +func (m *StopEVMRequest) Reset() { *m = StopEVMRequest{} } +func (m *StopEVMRequest) String() string { return proto.CompactTextString(m) } +func (*StopEVMRequest) ProtoMessage() {} +func (*StopEVMRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{25} } -func (m *Message) XXX_Unmarshal(b []byte) error { +func (m *StopEVMRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *StopEVMRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Message.Marshal(b, m, deterministic) + return xxx_messageInfo_StopEVMRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1479,150 +1499,40 @@ func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Message) XXX_Merge(src proto.Message) { - xxx_messageInfo_Message.Merge(m, src) +func (m *StopEVMRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopEVMRequest.Merge(m, src) } -func (m *Message) XXX_Size() int { +func (m *StopEVMRequest) XXX_Size() int { return m.Size() } -func (m *Message) XXX_DiscardUnknown() { - xxx_messageInfo_Message.DiscardUnknown(m) -} - -var xxx_messageInfo_Message proto.InternalMessageInfo - -func (m *Message) GetTo() []byte { - if m != nil { - return m.To - } - return nil -} - -func (m *Message) GetFrom() []byte { - if m != nil { - return m.From - } - return nil -} - -func (m *Message) GetNonce() uint64 { - if m != nil { - return m.Nonce - } - return 0 -} - -func (m *Message) GetValue() uint64 { - if m != nil { - return m.Value - } - return 0 -} - -func (m *Message) GetGasLimit() uint64 { - if m != nil { - return m.GasLimit - } - return 0 -} - -func (m *Message) GetGasPrice() uint64 { - if m != nil { - return m.GasPrice - } - return 0 -} - -func (m *Message) GetGasFeeCap() uint64 { - if m != nil { - return m.GasFeeCap - } - return 0 -} - -func (m *Message) GetGasTipCap() uint64 { - if m != nil { - return m.GasTipCap - } - return 0 -} - -func (m *Message) GetData() []byte { - if m != nil { - return m.Data - } - return nil +func (m *StopEVMRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StopEVMRequest.DiscardUnknown(m) } -func (m *Message) GetAccessList() []AccessTuple { - if m != nil { - return m.AccessList - } - return nil -} +var xxx_messageInfo_StopEVMRequest proto.InternalMessageInfo -func (m *Message) GetBlobGasFeeCap() uint64 { +func (m *StopEVMRequest) GetHandlerId() uint64 { if m != nil { - return m.BlobGasFeeCap + return m.HandlerId } return 0 } -func (m *Message) GetBlobHashes() [][]byte { - if m != nil { - return m.BlobHashes - } - return nil -} - -func (m *Message) GetSkipAccountChecks() bool { - if m != nil { - return m.SkipAccountChecks - } - return false -} - -type PrepareTxEVMConfig struct { - // ChainConfig is the EVM chain configuration in JSON format. Since the - // underlying params.ChainConfig struct contains pointer fields, they are - // not serializable over RPC with gob. Instead, the JSON representation is - // used. - // Original type: params.ChainConfig - ChainConfigJson []byte `protobuf:"bytes,1,opt,name=chain_config_json,json=chainConfigJson,proto3" json:"chain_config_json,omitempty"` - // Fields from EVMConfig - // Original type: common.Address - CoinBase []byte `protobuf:"bytes,2,opt,name=coin_base,json=coinBase,proto3" json:"coin_base,omitempty"` - // Original type: *big.Int - BaseFee uint64 `protobuf:"varint,3,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` - // Original type: statedb.TxConfig - TxConfig TxConfig `protobuf:"bytes,4,opt,name=tx_config,json=txConfig,proto3" json:"tx_config"` - // Original type: bool - DebugTrace bool `protobuf:"varint,5,opt,name=debug_trace,json=debugTrace,proto3" json:"debug_trace,omitempty"` - // Fields from EVMConfig.FeeMarketParams struct - // Original type: bool - NoBaseFee bool `protobuf:"varint,6,opt,name=no_base_fee,json=noBaseFee,proto3" json:"no_base_fee,omitempty"` - // Fields from EVMConfig.Params struct - // Original type: string - EvmDenom string `protobuf:"bytes,7,opt,name=evm_denom,json=evmDenom,proto3" json:"evm_denom,omitempty"` - // Original type: []int64 - ExtraEips []int64 `protobuf:"varint,8,rep,packed,name=extra_eips,json=extraEips,proto3" json:"extra_eips,omitempty"` - // type StateOverride map[common.Address]OverrideAccount - // Original type: *rpctypes.StateOverride - Overrides []byte `protobuf:"bytes,9,opt,name=overrides,proto3" json:"overrides,omitempty"` +type StopEVMResponse struct { } -func (m *PrepareTxEVMConfig) Reset() { *m = PrepareTxEVMConfig{} } -func (m *PrepareTxEVMConfig) String() string { return proto.CompactTextString(m) } -func (*PrepareTxEVMConfig) ProtoMessage() {} -func (*PrepareTxEVMConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{25} +func (m *StopEVMResponse) Reset() { *m = StopEVMResponse{} } +func (m *StopEVMResponse) String() string { return proto.CompactTextString(m) } +func (*StopEVMResponse) ProtoMessage() {} +func (*StopEVMResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{26} } -func (m *PrepareTxEVMConfig) XXX_Unmarshal(b []byte) error { +func (m *StopEVMResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *PrepareTxEVMConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *StopEVMResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_PrepareTxEVMConfig.Marshal(b, m, deterministic) + return xxx_messageInfo_StopEVMResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1632,1229 +1542,547 @@ func (m *PrepareTxEVMConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *PrepareTxEVMConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareTxEVMConfig.Merge(m, src) +func (m *StopEVMResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopEVMResponse.Merge(m, src) } -func (m *PrepareTxEVMConfig) XXX_Size() int { +func (m *StopEVMResponse) XXX_Size() int { return m.Size() } -func (m *PrepareTxEVMConfig) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareTxEVMConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_PrepareTxEVMConfig proto.InternalMessageInfo - -func (m *PrepareTxEVMConfig) GetChainConfigJson() []byte { - if m != nil { - return m.ChainConfigJson - } - return nil -} - -func (m *PrepareTxEVMConfig) GetCoinBase() []byte { - if m != nil { - return m.CoinBase - } - return nil +func (m *StopEVMResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StopEVMResponse.DiscardUnknown(m) } -func (m *PrepareTxEVMConfig) GetBaseFee() uint64 { - if m != nil { - return m.BaseFee - } - return 0 -} +var xxx_messageInfo_StopEVMResponse proto.InternalMessageInfo -func (m *PrepareTxEVMConfig) GetTxConfig() TxConfig { - if m != nil { - return m.TxConfig - } - return TxConfig{} +func init() { + proto.RegisterType((*StartEVMRequest)(nil), "ethermint.sgx.v1.StartEVMRequest") + proto.RegisterType((*StartEVMConfig)(nil), "ethermint.sgx.v1.StartEVMConfig") + proto.RegisterType((*TxConfig)(nil), "ethermint.sgx.v1.TxConfig") + proto.RegisterType((*StartEVMResponse)(nil), "ethermint.sgx.v1.StartEVMResponse") + proto.RegisterType((*CreateRequest)(nil), "ethermint.sgx.v1.CreateRequest") + proto.RegisterType((*CreateResponse)(nil), "ethermint.sgx.v1.CreateResponse") + proto.RegisterType((*CallRequest)(nil), "ethermint.sgx.v1.CallRequest") + proto.RegisterType((*CallResponse)(nil), "ethermint.sgx.v1.CallResponse") + proto.RegisterType((*CommitRequest)(nil), "ethermint.sgx.v1.CommitRequest") + proto.RegisterType((*CommitResponse)(nil), "ethermint.sgx.v1.CommitResponse") + proto.RegisterType((*StateDBAddBalanceRequest)(nil), "ethermint.sgx.v1.StateDBAddBalanceRequest") + proto.RegisterType((*StateDBAddBalanceResponse)(nil), "ethermint.sgx.v1.StateDBAddBalanceResponse") + proto.RegisterType((*StateDBSubBalanceRequest)(nil), "ethermint.sgx.v1.StateDBSubBalanceRequest") + proto.RegisterType((*StateDBSubBalanceResponse)(nil), "ethermint.sgx.v1.StateDBSubBalanceResponse") + proto.RegisterType((*StateDBSetNonceRequest)(nil), "ethermint.sgx.v1.StateDBSetNonceRequest") + proto.RegisterType((*StateDBSetNonceResponse)(nil), "ethermint.sgx.v1.StateDBSetNonceResponse") + proto.RegisterType((*StateDBIncreaseNonceRequest)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceRequest") + proto.RegisterType((*StateDBIncreaseNonceResponse)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceResponse") + proto.RegisterType((*AccessTuple)(nil), "ethermint.sgx.v1.AccessTuple") + proto.RegisterType((*StateDBPrepareRequest)(nil), "ethermint.sgx.v1.StateDBPrepareRequest") + proto.RegisterType((*StateDBPrepareResponse)(nil), "ethermint.sgx.v1.StateDBPrepareResponse") + proto.RegisterType((*StateDBGetRefundRequest)(nil), "ethermint.sgx.v1.StateDBGetRefundRequest") + proto.RegisterType((*StateDBGetRefundResponse)(nil), "ethermint.sgx.v1.StateDBGetRefundResponse") + proto.RegisterType((*StateDBGetLogsRequest)(nil), "ethermint.sgx.v1.StateDBGetLogsRequest") + proto.RegisterType((*StateDBGetLogsResponse)(nil), "ethermint.sgx.v1.StateDBGetLogsResponse") + proto.RegisterType((*StopEVMRequest)(nil), "ethermint.sgx.v1.StopEVMRequest") + proto.RegisterType((*StopEVMResponse)(nil), "ethermint.sgx.v1.StopEVMResponse") } -func (m *PrepareTxEVMConfig) GetDebugTrace() bool { - if m != nil { - return m.DebugTrace - } - return false -} +func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } -func (m *PrepareTxEVMConfig) GetNoBaseFee() bool { - if m != nil { - return m.NoBaseFee - } - return false +var fileDescriptor_1d9fb6e76534f03e = []byte{ + // 1246 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x73, 0xdb, 0xc4, + 0x17, 0xb7, 0x6b, 0xc7, 0x3f, 0x9e, 0x9d, 0x34, 0xdd, 0xe9, 0x37, 0x75, 0x94, 0xd6, 0x75, 0xf5, + 0x85, 0xc1, 0x14, 0x70, 0x68, 0x98, 0x01, 0x4e, 0x65, 0x9a, 0xb4, 0xa4, 0x2d, 0x2d, 0x14, 0x25, + 0xc3, 0x81, 0x8b, 0x66, 0x2d, 0xbd, 0xc8, 0x22, 0x92, 0xd6, 0xd5, 0xae, 0x8d, 0xc3, 0x91, 0xbf, + 0x80, 0x13, 0x07, 0x2e, 0xfc, 0x3b, 0x1c, 0xcb, 0x8d, 0x0b, 0x33, 0x4c, 0xfb, 0x8f, 0x30, 0xbb, + 0x5a, 0x29, 0x76, 0x2d, 0xbb, 0x66, 0xc2, 0x70, 0xf1, 0xec, 0xfb, 0xb1, 0xef, 0x7d, 0xde, 0xdb, + 0xe7, 0xcf, 0xae, 0xe0, 0x3a, 0x8a, 0x01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1, 0x8f, + 0x57, 0xed, 0xc2, 0xb7, 0x6f, 0x79, 0xbe, 0x18, 0x8c, 0xfa, 0x3d, 0x87, 0x85, 0xbb, 0x38, 0x0e, + 0x19, 0xdf, 0x3d, 0xff, 0x66, 0x9c, 0x48, 0x8d, 0xfc, 0x72, 0xec, 0x57, 0xd4, 0x17, 0xe0, 0x47, + 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xe0, 0x06, 0x65, 0x51, 0x0e, 0x00, 0x00, } -func (m *PrepareTxEVMConfig) GetEvmDenom() string { - if m != nil { - return m.EvmDenom - } - return "" -} +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn -func (m *PrepareTxEVMConfig) GetExtraEips() []int64 { - if m != nil { - return m.ExtraEips - } - return nil -} +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 -func (m *PrepareTxEVMConfig) GetOverrides() []byte { - if m != nil { - return m.Overrides - } - return nil +// QueryServiceClient is the client API for QueryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryServiceClient interface { + StartEVM(ctx context.Context, in *StartEVMRequest, opts ...grpc.CallOption) (*StartEVMResponse, error) + Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) + Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) + StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) + StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) + StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) + StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) + StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) + StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) + StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) + StopEVM(ctx context.Context, in *StopEVMRequest, opts ...grpc.CallOption) (*StopEVMResponse, error) } -type ChainConfig struct { - // Original type:*big.Int - ChainID uint64 `protobuf:"varint,1,opt,name=chain_i_d,json=chainID,proto3" json:"chain_i_d,omitempty"` - // Original type: *big.Int - HomesteadBlock uint64 `protobuf:"varint,2,opt,name=homestead_block,json=homesteadBlock,proto3" json:"homestead_block,omitempty"` - // Original type: *big.Int - DAOForkBlock uint64 `protobuf:"varint,3,opt,name=d_a_o_fork_block,json=dAOForkBlock,proto3" json:"d_a_o_fork_block,omitempty"` - // Original type: bool - DAOForkSupport bool `protobuf:"varint,4,opt,name=d_a_o_fork_support,json=dAOForkSupport,proto3" json:"d_a_o_fork_support,omitempty"` - // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) - // Original type: *big.Int - EIP_150Block uint64 `protobuf:"varint,5,opt,name=e_i_p_150_block,json=eIP150Block,proto3" json:"e_i_p_150_block,omitempty"` - // Original type: *big.Int - EIP155Block uint64 `protobuf:"varint,6,opt,name=e_i_p155_block,json=eIP155Block,proto3" json:"e_i_p155_block,omitempty"` - // Original type: *big.Int - EIP158Block uint64 `protobuf:"varint,7,opt,name=e_i_p158_block,json=eIP158Block,proto3" json:"e_i_p158_block,omitempty"` - // Original type: *big.Int - ByzantiumBlock uint64 `protobuf:"varint,8,opt,name=byzantium_block,json=byzantiumBlock,proto3" json:"byzantium_block,omitempty"` - // Original type: *big.Int - ConstantinopleBlock uint64 `protobuf:"varint,9,opt,name=constantinople_block,json=constantinopleBlock,proto3" json:"constantinople_block,omitempty"` - // Original type: *big.Int - PetersburgBlock uint64 `protobuf:"varint,10,opt,name=petersburg_block,json=petersburgBlock,proto3" json:"petersburg_block,omitempty"` - // Original type: *big.Int - IstanbulBlock uint64 `protobuf:"varint,11,opt,name=istanbul_block,json=istanbulBlock,proto3" json:"istanbul_block,omitempty"` - // Original type: *big.Int - MuirGlacierBlock uint64 `protobuf:"varint,12,opt,name=muir_glacier_block,json=muirGlacierBlock,proto3" json:"muir_glacier_block,omitempty"` - // Original type: *big.Int - BerlinBlock uint64 `protobuf:"varint,13,opt,name=berlin_block,json=berlinBlock,proto3" json:"berlin_block,omitempty"` - // Original type: *big.Int - LondonBlock uint64 `protobuf:"varint,14,opt,name=london_block,json=londonBlock,proto3" json:"london_block,omitempty"` - // Original type: *big.Int - ArrowGlacierBlock uint64 `protobuf:"varint,15,opt,name=arrow_glacier_block,json=arrowGlacierBlock,proto3" json:"arrow_glacier_block,omitempty"` - // Original type: *big.Int - GrayGlacierBlock uint64 `protobuf:"varint,16,opt,name=gray_glacier_block,json=grayGlacierBlock,proto3" json:"gray_glacier_block,omitempty"` - // Original type: *big.Int - MergeNetsplitBlock uint64 `protobuf:"varint,17,opt,name=merge_netsplit_block,json=mergeNetsplitBlock,proto3" json:"merge_netsplit_block,omitempty"` - // Original type: *uint64 - ShanghaiTime uint64 `protobuf:"varint,18,opt,name=shanghai_time,json=shanghaiTime,proto3" json:"shanghai_time,omitempty"` - // Original type: *uint64 - CancunTime uint64 `protobuf:"varint,19,opt,name=cancun_time,json=cancunTime,proto3" json:"cancun_time,omitempty"` - // Original type: *uint64 - PragueTime uint64 `protobuf:"varint,20,opt,name=prague_time,json=pragueTime,proto3" json:"prague_time,omitempty"` - // Original type: *uint64 - VerkleTime uint64 `protobuf:"varint,21,opt,name=verkle_time,json=verkleTime,proto3" json:"verkle_time,omitempty"` - // TerminalTotalDifficulty is the amount of total difficulty reached by - // the network that triggers the consensus upgrade. - // Original type: *big.Int - TerminalTotalDifficulty uint64 `protobuf:"varint,22,opt,name=terminal_total_difficulty,json=terminalTotalDifficulty,proto3" json:"terminal_total_difficulty,omitempty"` - // TerminalTotalDifficultyPassed is a flag specifying that the network already - // passed the terminal total difficulty. Its purpose is to disable legacy sync - // even without having seen the TTD locally (safer long term). - // Original type: bool - TerminalTotalDifficultyPassed bool `protobuf:"varint,23,opt,name=terminal_total_difficulty_passed,json=terminalTotalDifficultyPassed,proto3" json:"terminal_total_difficulty_passed,omitempty"` - // Various consensus engines - // Original type: params.EthashConfig - Ethash *EthashConfig `protobuf:"bytes,24,opt,name=ethash,proto3" json:"ethash,omitempty"` - // Original type: params.CliqueConfig - Clique *CliqueConfig `protobuf:"bytes,25,opt,name=clique,proto3" json:"clique,omitempty"` - // Original type: bool - IsDevMode bool `protobuf:"varint,26,opt,name=is_dev_mode,json=isDevMode,proto3" json:"is_dev_mode,omitempty"` +type queryServiceClient struct { + cc grpc1.ClientConn } -func (m *ChainConfig) Reset() { *m = ChainConfig{} } -func (m *ChainConfig) String() string { return proto.CompactTextString(m) } -func (*ChainConfig) ProtoMessage() {} -func (*ChainConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{26} -} -func (m *ChainConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChainConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ChainConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChainConfig.Merge(m, src) -} -func (m *ChainConfig) XXX_Size() int { - return m.Size() -} -func (m *ChainConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ChainConfig.DiscardUnknown(m) +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} } -var xxx_messageInfo_ChainConfig proto.InternalMessageInfo - -func (m *ChainConfig) GetChainID() uint64 { - if m != nil { - return m.ChainID +func (c *queryServiceClient) StartEVM(ctx context.Context, in *StartEVMRequest, opts ...grpc.CallOption) (*StartEVMResponse, error) { + out := new(StartEVMResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StartEVM", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetHomesteadBlock() uint64 { - if m != nil { - return m.HomesteadBlock +func (c *queryServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { + out := new(CreateResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Create", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetDAOForkBlock() uint64 { - if m != nil { - return m.DAOForkBlock +func (c *queryServiceClient) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) { + out := new(CallResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Call", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetDAOForkSupport() bool { - if m != nil { - return m.DAOForkSupport +func (c *queryServiceClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) { + out := new(CommitResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Commit", in, out, opts...) + if err != nil { + return nil, err } - return false + return out, nil } -func (m *ChainConfig) GetEIP_150Block() uint64 { - if m != nil { - return m.EIP_150Block +func (c *queryServiceClient) StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) { + out := new(StateDBAddBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBAddBalance", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetEIP155Block() uint64 { - if m != nil { - return m.EIP155Block +func (c *queryServiceClient) StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) { + out := new(StateDBSubBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSubBalance", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetEIP158Block() uint64 { - if m != nil { - return m.EIP158Block +func (c *queryServiceClient) StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) { + out := new(StateDBSetNonceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSetNonce", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetByzantiumBlock() uint64 { - if m != nil { - return m.ByzantiumBlock +func (c *queryServiceClient) StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) { + out := new(StateDBIncreaseNonceResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetConstantinopleBlock() uint64 { - if m != nil { - return m.ConstantinopleBlock +func (c *queryServiceClient) StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) { + out := new(StateDBPrepareResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBPrepare", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetPetersburgBlock() uint64 { - if m != nil { - return m.PetersburgBlock +func (c *queryServiceClient) StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) { + out := new(StateDBGetRefundResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetRefund", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetIstanbulBlock() uint64 { - if m != nil { - return m.IstanbulBlock +func (c *queryServiceClient) StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) { + out := new(StateDBGetLogsResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetLogs", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetMuirGlacierBlock() uint64 { - if m != nil { - return m.MuirGlacierBlock +func (c *queryServiceClient) StopEVM(ctx context.Context, in *StopEVMRequest, opts ...grpc.CallOption) (*StopEVMResponse, error) { + out := new(StopEVMResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StopEVM", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -func (m *ChainConfig) GetBerlinBlock() uint64 { - if m != nil { - return m.BerlinBlock - } - return 0 +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + StartEVM(context.Context, *StartEVMRequest) (*StartEVMResponse, error) + Create(context.Context, *CreateRequest) (*CreateResponse, error) + Call(context.Context, *CallRequest) (*CallResponse, error) + Commit(context.Context, *CommitRequest) (*CommitResponse, error) + StateDBAddBalance(context.Context, *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) + StateDBSubBalance(context.Context, *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) + StateDBSetNonce(context.Context, *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) + StateDBIncreaseNonce(context.Context, *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) + StateDBPrepare(context.Context, *StateDBPrepareRequest) (*StateDBPrepareResponse, error) + StateDBGetRefund(context.Context, *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) + StateDBGetLogs(context.Context, *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) + StopEVM(context.Context, *StopEVMRequest) (*StopEVMResponse, error) } -func (m *ChainConfig) GetLondonBlock() uint64 { - if m != nil { - return m.LondonBlock - } - return 0 +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { } -func (m *ChainConfig) GetArrowGlacierBlock() uint64 { - if m != nil { - return m.ArrowGlacierBlock - } - return 0 +func (*UnimplementedQueryServiceServer) StartEVM(ctx context.Context, req *StartEVMRequest) (*StartEVMResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StartEVM not implemented") } - -func (m *ChainConfig) GetGrayGlacierBlock() uint64 { - if m != nil { - return m.GrayGlacierBlock - } - return 0 +func (*UnimplementedQueryServiceServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } - -func (m *ChainConfig) GetMergeNetsplitBlock() uint64 { - if m != nil { - return m.MergeNetsplitBlock - } - return 0 +func (*UnimplementedQueryServiceServer) Call(ctx context.Context, req *CallRequest) (*CallResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Call not implemented") } - -func (m *ChainConfig) GetShanghaiTime() uint64 { - if m != nil { - return m.ShanghaiTime - } - return 0 +func (*UnimplementedQueryServiceServer) Commit(ctx context.Context, req *CommitRequest) (*CommitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") } - -func (m *ChainConfig) GetCancunTime() uint64 { - if m != nil { - return m.CancunTime - } - return 0 +func (*UnimplementedQueryServiceServer) StateDBAddBalance(ctx context.Context, req *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBAddBalance not implemented") } - -func (m *ChainConfig) GetPragueTime() uint64 { - if m != nil { - return m.PragueTime - } - return 0 +func (*UnimplementedQueryServiceServer) StateDBSubBalance(ctx context.Context, req *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSubBalance not implemented") } - -func (m *ChainConfig) GetVerkleTime() uint64 { - if m != nil { - return m.VerkleTime - } - return 0 +func (*UnimplementedQueryServiceServer) StateDBSetNonce(ctx context.Context, req *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSetNonce not implemented") } - -func (m *ChainConfig) GetTerminalTotalDifficulty() uint64 { - if m != nil { - return m.TerminalTotalDifficulty - } - return 0 +func (*UnimplementedQueryServiceServer) StateDBIncreaseNonce(ctx context.Context, req *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBIncreaseNonce not implemented") } - -func (m *ChainConfig) GetTerminalTotalDifficultyPassed() bool { - if m != nil { - return m.TerminalTotalDifficultyPassed - } - return false +func (*UnimplementedQueryServiceServer) StateDBPrepare(ctx context.Context, req *StateDBPrepareRequest) (*StateDBPrepareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBPrepare not implemented") } - -func (m *ChainConfig) GetEthash() *EthashConfig { - if m != nil { - return m.Ethash - } - return nil +func (*UnimplementedQueryServiceServer) StateDBGetRefund(ctx context.Context, req *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetRefund not implemented") } - -func (m *ChainConfig) GetClique() *CliqueConfig { - if m != nil { - return m.Clique - } - return nil +func (*UnimplementedQueryServiceServer) StateDBGetLogs(ctx context.Context, req *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetLogs not implemented") } - -func (m *ChainConfig) GetIsDevMode() bool { - if m != nil { - return m.IsDevMode - } - return false +func (*UnimplementedQueryServiceServer) StopEVM(ctx context.Context, req *StopEVMRequest) (*StopEVMResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StopEVM not implemented") } -type EthashConfig struct { +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) } -func (m *EthashConfig) Reset() { *m = EthashConfig{} } -func (m *EthashConfig) String() string { return proto.CompactTextString(m) } -func (*EthashConfig) ProtoMessage() {} -func (*EthashConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{27} -} -func (m *EthashConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EthashConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EthashConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func _QueryService_StartEVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartEVMRequest) + if err := dec(in); err != nil { + return nil, err } -} -func (m *EthashConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_EthashConfig.Merge(m, src) -} -func (m *EthashConfig) XXX_Size() int { - return m.Size() -} -func (m *EthashConfig) XXX_DiscardUnknown() { - xxx_messageInfo_EthashConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_EthashConfig proto.InternalMessageInfo - -// CliqueConfig is the consensus engine configs for proof-of-authority based sealing. -type CliqueConfig struct { - // Original type: uint64 - Period uint64 `protobuf:"varint,1,opt,name=Period,proto3" json:"Period,omitempty"` - // Original type: uint64 - Epoch uint64 `protobuf:"varint,2,opt,name=Epoch,proto3" json:"Epoch,omitempty"` -} - -func (m *CliqueConfig) Reset() { *m = CliqueConfig{} } -func (m *CliqueConfig) String() string { return proto.CompactTextString(m) } -func (*CliqueConfig) ProtoMessage() {} -func (*CliqueConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{28} -} -func (m *CliqueConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CliqueConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CliqueConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + if interceptor == nil { + return srv.(QueryServiceServer).StartEVM(ctx, in) } -} -func (m *CliqueConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_CliqueConfig.Merge(m, src) -} -func (m *CliqueConfig) XXX_Size() int { - return m.Size() -} -func (m *CliqueConfig) XXX_DiscardUnknown() { - xxx_messageInfo_CliqueConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_CliqueConfig proto.InternalMessageInfo - -func (m *CliqueConfig) GetPeriod() uint64 { - if m != nil { - return m.Period + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StartEVM", } - return 0 -} - -func (m *CliqueConfig) GetEpoch() uint64 { - if m != nil { - return m.Epoch + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StartEVM(ctx, req.(*StartEVMRequest)) } - return 0 -} - -// TxConfig encapulates the readonly information of current tx for `StateDB`. -type TxConfig struct { - // Original type: common.Hash - BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` - // Original type: common.Hash - TxHash []byte `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` - // Original type: int64 - TxIndex uint64 `protobuf:"varint,3,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` - // Original type: int64 - LogIndex uint64 `protobuf:"varint,4,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` + return interceptor(ctx, in, info, handler) } -func (m *TxConfig) Reset() { *m = TxConfig{} } -func (m *TxConfig) String() string { return proto.CompactTextString(m) } -func (*TxConfig) ProtoMessage() {} -func (*TxConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{29} -} -func (m *TxConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func _QueryService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRequest) + if err := dec(in); err != nil { + return nil, err } -} -func (m *TxConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxConfig.Merge(m, src) -} -func (m *TxConfig) XXX_Size() int { - return m.Size() -} -func (m *TxConfig) XXX_DiscardUnknown() { - xxx_messageInfo_TxConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_TxConfig proto.InternalMessageInfo - -func (m *TxConfig) GetBlockHash() []byte { - if m != nil { - return m.BlockHash + if interceptor == nil { + return srv.(QueryServiceServer).Create(ctx, in) } - return nil -} - -func (m *TxConfig) GetTxHash() []byte { - if m != nil { - return m.TxHash + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/Create", } - return nil -} - -func (m *TxConfig) GetTxIndex() uint64 { - if m != nil { - return m.TxIndex + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Create(ctx, req.(*CreateRequest)) } - return 0 + return interceptor(ctx, in, info, handler) } -func (m *TxConfig) GetLogIndex() uint64 { - if m != nil { - return m.LogIndex +func _QueryService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CallRequest) + if err := dec(in); err != nil { + return nil, err } - return 0 -} - -type EthLog struct { - // Consensus fields: - // address of the contract that generated the event - // Original type: common.Address - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // list of topics provided by the contract. - // Original type: []common.Hash - Topics [][]byte `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"` - // supplied by the contract, usually ABI-encoded - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - // Derived fields. These fields are filled in by the node - // but not secured by consensus. - // block in which the transaction was included - BlockNumber uint64 `protobuf:"varint,4,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` - // hash of the transaction - TxHash []byte `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` - // index of the transaction in the block - TxIndex uint64 `protobuf:"varint,6,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` - // hash of the block in which the transaction was included - // Original type: common.Hash - BlockHash []byte `protobuf:"bytes,7,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` - // index of the log in the block - Index uint64 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"` - // The Removed field is true if this log was reverted due to a chain reorganisation. - // You must pay attention to this field if you receive logs through a filter query. - Removed bool `protobuf:"varint,9,opt,name=removed,proto3" json:"removed,omitempty"` -} - -func (m *EthLog) Reset() { *m = EthLog{} } -func (m *EthLog) String() string { return proto.CompactTextString(m) } -func (*EthLog) ProtoMessage() {} -func (*EthLog) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{30} -} -func (m *EthLog) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EthLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EthLog.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + if interceptor == nil { + return srv.(QueryServiceServer).Call(ctx, in) } -} -func (m *EthLog) XXX_Merge(src proto.Message) { - xxx_messageInfo_EthLog.Merge(m, src) -} -func (m *EthLog) XXX_Size() int { - return m.Size() -} -func (m *EthLog) XXX_DiscardUnknown() { - xxx_messageInfo_EthLog.DiscardUnknown(m) -} - -var xxx_messageInfo_EthLog proto.InternalMessageInfo - -func (m *EthLog) GetAddress() []byte { - if m != nil { - return m.Address + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/Call", } - return nil -} - -func (m *EthLog) GetTopics() [][]byte { - if m != nil { - return m.Topics + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Call(ctx, req.(*CallRequest)) } - return nil + return interceptor(ctx, in, info, handler) } -func (m *EthLog) GetData() []byte { - if m != nil { - return m.Data +func _QueryService_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitRequest) + if err := dec(in); err != nil { + return nil, err } - return nil -} - -func (m *EthLog) GetBlockNumber() uint64 { - if m != nil { - return m.BlockNumber + if interceptor == nil { + return srv.(QueryServiceServer).Commit(ctx, in) } - return 0 -} - -func (m *EthLog) GetTxHash() []byte { - if m != nil { - return m.TxHash + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/Commit", } - return nil -} - -func (m *EthLog) GetTxIndex() uint64 { - if m != nil { - return m.TxIndex + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Commit(ctx, req.(*CommitRequest)) } - return 0 + return interceptor(ctx, in, info, handler) } -func (m *EthLog) GetBlockHash() []byte { - if m != nil { - return m.BlockHash +func _QueryService_StateDBAddBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBAddBalanceRequest) + if err := dec(in); err != nil { + return nil, err } - return nil -} - -func (m *EthLog) GetIndex() uint64 { - if m != nil { - return m.Index + if interceptor == nil { + return srv.(QueryServiceServer).StateDBAddBalance(ctx, in) } - return 0 -} - -func (m *EthLog) GetRemoved() bool { - if m != nil { - return m.Removed + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBAddBalance", } - return false + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBAddBalance(ctx, req.(*StateDBAddBalanceRequest)) + } + return interceptor(ctx, in, info, handler) } -func init() { - proto.RegisterType((*PrepareTxRequest)(nil), "ethermint.sgx.v1.PrepareTxRequest") - proto.RegisterType((*PrepareTxResponse)(nil), "ethermint.sgx.v1.PrepareTxResponse") - proto.RegisterType((*CreateRequest)(nil), "ethermint.sgx.v1.CreateRequest") - proto.RegisterType((*CreateResponse)(nil), "ethermint.sgx.v1.CreateResponse") - proto.RegisterType((*CallRequest)(nil), "ethermint.sgx.v1.CallRequest") - proto.RegisterType((*CallResponse)(nil), "ethermint.sgx.v1.CallResponse") - proto.RegisterType((*CommitRequest)(nil), "ethermint.sgx.v1.CommitRequest") - proto.RegisterType((*CommitResponse)(nil), "ethermint.sgx.v1.CommitResponse") - proto.RegisterType((*StateDBAddBalanceRequest)(nil), "ethermint.sgx.v1.StateDBAddBalanceRequest") - proto.RegisterType((*StateDBAddBalanceResponse)(nil), "ethermint.sgx.v1.StateDBAddBalanceResponse") - proto.RegisterType((*StateDBSubBalanceRequest)(nil), "ethermint.sgx.v1.StateDBSubBalanceRequest") - proto.RegisterType((*StateDBSubBalanceResponse)(nil), "ethermint.sgx.v1.StateDBSubBalanceResponse") - proto.RegisterType((*StateDBSetNonceRequest)(nil), "ethermint.sgx.v1.StateDBSetNonceRequest") - proto.RegisterType((*StateDBSetNonceResponse)(nil), "ethermint.sgx.v1.StateDBSetNonceResponse") - proto.RegisterType((*StateDBIncreaseNonceRequest)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceRequest") - proto.RegisterType((*StateDBIncreaseNonceResponse)(nil), "ethermint.sgx.v1.StateDBIncreaseNonceResponse") - proto.RegisterType((*Rules)(nil), "ethermint.sgx.v1.Rules") - proto.RegisterType((*AccessTuple)(nil), "ethermint.sgx.v1.AccessTuple") - proto.RegisterType((*StateDBPrepareRequest)(nil), "ethermint.sgx.v1.StateDBPrepareRequest") - proto.RegisterType((*StateDBPrepareResponse)(nil), "ethermint.sgx.v1.StateDBPrepareResponse") - proto.RegisterType((*StateDBGetRefundRequest)(nil), "ethermint.sgx.v1.StateDBGetRefundRequest") - proto.RegisterType((*StateDBGetRefundResponse)(nil), "ethermint.sgx.v1.StateDBGetRefundResponse") - proto.RegisterType((*StateDBGetLogsRequest)(nil), "ethermint.sgx.v1.StateDBGetLogsRequest") - proto.RegisterType((*StateDBGetLogsResponse)(nil), "ethermint.sgx.v1.StateDBGetLogsResponse") - proto.RegisterType((*Message)(nil), "ethermint.sgx.v1.Message") - proto.RegisterType((*PrepareTxEVMConfig)(nil), "ethermint.sgx.v1.PrepareTxEVMConfig") - proto.RegisterType((*ChainConfig)(nil), "ethermint.sgx.v1.ChainConfig") - proto.RegisterType((*EthashConfig)(nil), "ethermint.sgx.v1.EthashConfig") - proto.RegisterType((*CliqueConfig)(nil), "ethermint.sgx.v1.CliqueConfig") - proto.RegisterType((*TxConfig)(nil), "ethermint.sgx.v1.TxConfig") - proto.RegisterType((*EthLog)(nil), "ethermint.sgx.v1.EthLog") -} - -func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } - -var fileDescriptor_1d9fb6e76534f03e = []byte{ - // 2200 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4d, 0x6f, 0x1b, 0xc9, - 0xd1, 0x16, 0xf5, 0x41, 0x91, 0x45, 0x8a, 0xa2, 0xda, 0x5a, 0x79, 0x44, 0xdb, 0xb2, 0x76, 0xbc, - 0xbb, 0xd6, 0x7a, 0xf7, 0xa5, 0x2c, 0xbf, 0x90, 0x61, 0x04, 0x49, 0x10, 0x8b, 0xb2, 0x65, 0x6d, - 0x6c, 0xaf, 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0x9d, 0x72, 0xa7, 0xcf, 0x42, 0xc2, 0x05, 0xc1, 0x9e, 0x32, 0x51, - 0xe9, 0xd6, 0x28, 0x7f, 0x91, 0xa9, 0xd0, 0x1d, 0xa8, 0x51, 0xee, 0x10, 0x87, 0x3a, 0xf1, 0xde, - 0xfe, 0x43, 0xe5, 0x74, 0xa5, 0x5b, 0xa1, 0xfc, 0xd9, 0xf1, 0xc9, 0xde, 0xfe, 0xc3, 0x71, 0x78, - 0x5f, 0x5d, 0x9d, 0x11, 0xbc, 0x3f, 0x0e, 0x3f, 0x51, 0xb7, 0x68, 0x04, 0x3f, 0x31, 0xf6, 0x7b, - 0x17, 0xdf, 0xe3, 0x48, 0xd0, 0x34, 0x54, 0x37, 0x4a, 0xd9, 0x3f, 0xc8, 0x54, 0xe8, 0x2b, 0x58, - 0xa3, 0x5c, 0x06, 0x58, 0x2e, 0xa4, 0x26, 0x62, 0x71, 0x40, 0xac, 0x65, 0xc5, 0x6b, 0x52, 0xde, - 0x19, 0xd3, 0xcb, 0x30, 0x43, 0xb9, 0x13, 0x13, 0x41, 0x12, 0xde, 0x4b, 0x13, 0xdf, 0xaa, 0x28, - 0x62, 0x9d, 0xf2, 0x93, 0x5c, 0x87, 0xee, 0xaa, 0x35, 0x51, 0x39, 0xae, 0x97, 0x06, 0x56, 0x55, - 0x51, 0x80, 0xf2, 0x63, 0xa3, 0x41, 0xb7, 0xa0, 0x2a, 0x57, 0x45, 0x92, 0x80, 0x46, 0x16, 0x64, - 0x4b, 0x3e, 0x50, 0xb2, 0x01, 0x03, 0x16, 0x79, 0x2c, 0xb2, 0x6a, 0x19, 0xf8, 0x52, 0xc9, 0x72, - 0xab, 0x29, 0x77, 0x42, 0x92, 0xf8, 0xc4, 0xaa, 0x2b, 0x6c, 0x99, 0xf2, 0x57, 0x52, 0x34, 0x56, - 0x79, 0x1f, 0x47, 0x7e, 0x1f, 0x53, 0x6b, 0x25, 0xb3, 0xfa, 0xc6, 0x68, 0xcc, 0xc4, 0x2e, 0x8e, - 0xdc, 0x34, 0xb2, 0x1a, 0xd9, 0xc4, 0x1d, 0x25, 0x1b, 0x30, 0x4e, 0xb0, 0x9f, 0x12, 0x6b, 0x35, - 0x03, 0x4f, 0x94, 0x6c, 0xc0, 0x01, 0x49, 0xce, 0x03, 0x62, 0x35, 0x33, 0xf0, 0xad, 0x92, 0xed, - 0x6f, 0xa0, 0xf6, 0xd4, 0x75, 0x09, 0xe7, 0xa7, 0xa9, 0xdc, 0x21, 0x0b, 0x96, 0x65, 0xb0, 0x23, - 0x9c, 0x9b, 0xd0, 0x94, 0x89, 0xf2, 0xbf, 0xe0, 0x82, 0x25, 0xd8, 0x27, 0xce, 0x39, 0xb9, 0x90, - 0xd1, 0x69, 0x61, 0xa7, 0xde, 0xad, 0x19, 0xdd, 0x2f, 0xc9, 0x05, 0xb7, 0xff, 0x5a, 0x82, 0x4f, - 0xcc, 0xa1, 0x33, 0xa9, 0xea, 0xfa, 0x87, 0x98, 0xab, 0x0c, 0x9b, 0x1d, 0x62, 0x2d, 0xa1, 0x16, - 0x54, 0x5c, 0x46, 0xa3, 0x1e, 0xe6, 0x59, 0xea, 0xc9, 0x65, 0x19, 0xa2, 0x3d, 0xc2, 0xb3, 0x68, - 0xac, 0xbe, 0xe5, 0xdd, 0x4b, 0xe4, 0x99, 0x56, 0x07, 0xa9, 0xde, 0xd5, 0x02, 0xfa, 0x39, 0xd4, - 0xb0, 0x72, 0xd1, 0x09, 0x28, 0x17, 0x56, 0x79, 0x7b, 0x61, 0xa7, 0xf6, 0xe8, 0xce, 0x64, 0x16, - 0x2e, 0xec, 0x43, 0x17, 0xf4, 0x88, 0x97, 0x94, 0x0b, 0xdb, 0xca, 0x43, 0x44, 0xee, 0x95, 0xb9, - 0x44, 0x4f, 0xf2, 0x5b, 0x7d, 0x44, 0x44, 0x97, 0x9c, 0xa5, 0x91, 0x77, 0xcd, 0xc0, 0xfc, 0x28, - 0x0f, 0x7f, 0x85, 0x91, 0x26, 0x35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x4d, 0x11, 0x65, 0x21, - 0x4a, 0xb8, 0x55, 0x57, 0xf7, 0x0a, 0xa4, 0xea, 0x85, 0xd2, 0xa0, 0x36, 0xdc, 0xe0, 0xe7, 0x34, - 0x76, 0xb0, 0xeb, 0xca, 0x7c, 0xe6, 0xb8, 0x7d, 0xe2, 0x9e, 0x73, 0x13, 0x22, 0xd6, 0x24, 0xf4, - 0x54, 0x23, 0x1d, 0x05, 0xd8, 0x7f, 0x99, 0x07, 0x34, 0x59, 0x51, 0xa2, 0x07, 0xb0, 0xa6, 0xe3, - 0xbc, 0xae, 0x46, 0x9d, 0xdf, 0x70, 0x16, 0x99, 0xff, 0x70, 0x55, 0x01, 0x9a, 0xf7, 0x0d, 0x67, - 0x2a, 0x9e, 0xc8, 0x8b, 0xe6, 0xa8, 0x9b, 0x37, 0x3f, 0xba, 0x79, 0x07, 0xf2, 0xe6, 0x6d, 0x42, - 0x45, 0xea, 0xa5, 0x57, 0xe6, 0xcf, 0x5d, 0x96, 0xf2, 0x73, 0x42, 0xd0, 0xcf, 0xa0, 0x2a, 0x86, - 0xe3, 0xe5, 0x6e, 0x6b, 0x72, 0xe3, 0x4e, 0x87, 0x63, 0x45, 0x6e, 0x45, 0x18, 0x59, 0x6e, 0x85, - 0x47, 0x7a, 0xa9, 0xef, 0xc8, 0xa2, 0x8f, 0x98, 0x74, 0x00, 0x4a, 0x75, 0x2a, 0x35, 0xf2, 0xef, - 0x8c, 0x98, 0x93, 0x5b, 0xd7, 0xf9, 0xa0, 0x1a, 0xb1, 0x03, 0x63, 0xff, 0x16, 0xc8, 0x8a, 0xd9, - 0xf1, 0x48, 0xc4, 0x42, 0x75, 0x18, 0xaa, 0xdd, 0x0a, 0x19, 0x84, 0x87, 0x52, 0x96, 0xd7, 0x84, - 0x0c, 0x45, 0x82, 0x1d, 0x42, 0x63, 0x6e, 0x55, 0xb6, 0x17, 0x76, 0x16, 0xba, 0x55, 0xa5, 0x79, - 0x46, 0x63, 0x8e, 0x6e, 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0x31, 0x58, 0x53, 0xba, 0xd7, 0x4a, 0x55, 0x74, 0x62, - 0x69, 0xa6, 0x13, 0xe5, 0x71, 0x27, 0xc6, 0xf7, 0x65, 0xf9, 0xf2, 0xbe, 0xa8, 0x76, 0x80, 0x1c, - 0xa6, 0xa3, 0x9d, 0x16, 0xa4, 0x47, 0x09, 0x09, 0xd9, 0x80, 0x78, 0xe6, 0xe1, 0x90, 0x89, 0x8f, - 0xfe, 0x5c, 0x81, 0xfa, 0xaf, 0x52, 0x92, 0x5c, 0xbc, 0x21, 0xc9, 0x40, 0x96, 0x2e, 0x6f, 0xa1, - 0x9a, 0x67, 0x69, 0x64, 0x5f, 0xd1, 0x14, 0x32, 0x65, 0x5e, 0xeb, 0xde, 0x95, 0x1c, 0x53, 0x92, - 0xce, 0xa1, 0x57, 0x50, 0xd6, 0xfd, 0x16, 0x74, 0x77, 0xca, 0xd9, 0x2b, 0x76, 0x83, 0x5a, 0xdb, - 0xb3, 0x09, 0xf9, 0x74, 0x47, 0xb0, 0xd8, 0xc1, 0x41, 0x80, 0xa6, 0x14, 0x40, 0x85, 0x46, 0x4b, - 0x6b, 0x6b, 0x16, 0x3c, 0xb6, 0x2e, 0xd5, 0x8b, 0x98, 0xba, 0xae, 0x62, 0x57, 0x63, 0xea, 0xba, - 0xc6, 0xdb, 0x18, 0x73, 0x28, 0x82, 0xb5, 0x89, 0xee, 0x02, 0x7a, 0x30, 0x39, 0x70, 0x56, 0xb7, - 0xa3, 0xf5, 0xd5, 0xb5, 0xb8, 0x53, 0xec, 0x8d, 0xba, 0x08, 0x57, 0xd8, 0x9b, 0xe8, 0x6a, 0x5c, - 0x61, 0x6f, 0x4a, 0x5b, 0x62, 0x0e, 0xf5, 0x61, 0xf5, 0x52, 0xc7, 0x00, 0xed, 0xcc, 0x9e, 0x61, - 0xbc, 0x77, 0xd1, 0xfa, 0xf2, 0x1a, 0xcc, 0xdc, 0xd2, 0x77, 0xb0, 0x3e, 0xad, 0x55, 0x80, 0xfe, - 0x6f, 0xe6, 0x24, 0xd3, 0x1a, 0x15, 0xad, 0xf6, 0x75, 0xe9, 0xb9, 0x61, 0x02, 0x8d, 0xf1, 0x87, - 0x15, 0xba, 0x3f, 0x73, 0x8e, 0xf1, 0x07, 0x65, 0x6b, 0xe7, 0x3f, 0x13, 0x73, 0x33, 0xe7, 0xd0, - 0xbc, 0xfc, 0xd6, 0x42, 0xb3, 0x37, 0xe8, 0xf2, 0x4b, 0xae, 0xf5, 0xe0, 0x3a, 0xd4, 0x29, 0x3e, - 0x99, 0xc7, 0xd6, 0x15, 0x3e, 0x8d, 0x3f, 0xe3, 0xae, 0xf0, 0xe9, 0xd2, 0xbb, 0xcd, 0x9e, 0x3b, - 0xf8, 0xc5, 0x0f, 0xef, 0xb7, 0x4a, 0x3f, 0xbe, 0xdf, 0x2a, 0xfd, 0xe3, 0xfd, 0x56, 0xe9, 0xf7, - 0x1f, 0xb6, 0xe6, 0x7e, 0xfc, 0xb0, 0x35, 0xf7, 0xb7, 0x0f, 0x5b, 0x73, 0xbf, 0xfe, 0xc2, 0xa7, - 0xa2, 0x9f, 0xf6, 0xda, 0x2e, 0x0b, 0x77, 0xc9, 0x20, 0x64, 0x7c, 0x77, 0xd4, 0x5f, 0x1f, 0xaa, - 0x0e, 0xbb, 0xea, 0x60, 0xf7, 0xca, 0xaa, 0x33, 0xfe, 0xff, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, - 0x66, 0xcf, 0xc6, 0xb1, 0x7f, 0x17, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { - PrepareTx(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) - // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { - Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) - // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { - Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) - // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { - Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) - // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { - StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) - // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { - StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) - // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { - StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) - // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { - StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) - // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { - StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) - // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { - StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) - // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { - StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) -} - -type queryServiceClient struct { - cc grpc1.ClientConn -} - -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} -} - -func (c *queryServiceClient) PrepareTx(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) { - out := new(PrepareTxResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/PrepareTx", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { - out := new(CreateResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Create", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryServiceClient) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) { - out := new(CallResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Call", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryServiceClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) { - out := new(CommitResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Commit", in, out, opts...) - if err != nil { +func _QueryService_StateDBSubBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBSubBalanceRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *queryServiceClient) StateDBAddBalance(ctx context.Context, in *StateDBAddBalanceRequest, opts ...grpc.CallOption) (*StateDBAddBalanceResponse, error) { - out := new(StateDBAddBalanceResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBAddBalance", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(QueryServiceServer).StateDBSubBalance(ctx, in) } - return out, nil -} - -func (c *queryServiceClient) StateDBSubBalance(ctx context.Context, in *StateDBSubBalanceRequest, opts ...grpc.CallOption) (*StateDBSubBalanceResponse, error) { - out := new(StateDBSubBalanceResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSubBalance", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSubBalance", } - return out, nil -} - -func (c *queryServiceClient) StateDBSetNonce(ctx context.Context, in *StateDBSetNonceRequest, opts ...grpc.CallOption) (*StateDBSetNonceResponse, error) { - out := new(StateDBSetNonceResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBSetNonce", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBSubBalance(ctx, req.(*StateDBSubBalanceRequest)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *queryServiceClient) StateDBIncreaseNonce(ctx context.Context, in *StateDBIncreaseNonceRequest, opts ...grpc.CallOption) (*StateDBIncreaseNonceResponse, error) { - out := new(StateDBIncreaseNonceResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", in, out, opts...) - if err != nil { +func _QueryService_StateDBSetNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBSetNonceRequest) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *queryServiceClient) StateDBPrepare(ctx context.Context, in *StateDBPrepareRequest, opts ...grpc.CallOption) (*StateDBPrepareResponse, error) { - out := new(StateDBPrepareResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBPrepare", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(QueryServiceServer).StateDBSetNonce(ctx, in) } - return out, nil -} - -func (c *queryServiceClient) StateDBGetRefund(ctx context.Context, in *StateDBGetRefundRequest, opts ...grpc.CallOption) (*StateDBGetRefundResponse, error) { - out := new(StateDBGetRefundResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetRefund", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSetNonce", } - return out, nil -} - -func (c *queryServiceClient) StateDBGetLogs(ctx context.Context, in *StateDBGetLogsRequest, opts ...grpc.CallOption) (*StateDBGetLogsResponse, error) { - out := new(StateDBGetLogsResponse) - err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/StateDBGetLogs", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).StateDBSetNonce(ctx, req.(*StateDBSetNonceRequest)) } - return out, nil -} - -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - // func (s *SgxRpcServer) PrepareTx(args *keeper.PrepareTxArgs, reply *keeper.PrepareTxReply) error { - PrepareTx(context.Context, *PrepareTxRequest) (*PrepareTxResponse, error) - // func (s *SgxRpcServer) Create(args *keeper.CreateArgs, reply *keeper.CreateReply) error { - Create(context.Context, *CreateRequest) (*CreateResponse, error) - // func (s *SgxRpcServer) Call(args *keeper.CallArgs, reply *keeper.CallReply) error { - Call(context.Context, *CallRequest) (*CallResponse, error) - // func (s *SgxRpcServer) Commit(args *keeper.CommitArgs, reply *keeper.CommitReply) error { - Commit(context.Context, *CommitRequest) (*CommitResponse, error) - // func (s *SgxRpcServer) StateDBAddBalance(args *keeper.StateDBAddBalanceArgs, reply *keeper.StateDBAddBalanceReply) error { - StateDBAddBalance(context.Context, *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) - // func (s *SgxRpcServer) StateDBSubBalance(args *keeper.StateDBSubBalanceArgs, reply *keeper.StateDBSubBalanceReply) error { - StateDBSubBalance(context.Context, *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) - // func (s *SgxRpcServer) StateDBSetNonce(args *keeper.StateDBSetNonceArgs, reply *keeper.StateDBSetNonceReply) error { - StateDBSetNonce(context.Context, *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) - // func (s *SgxRpcServer) StateDBIncreaseNonce(args *keeper.StateDBIncreaseNonceArgs, reply *keeper.StateDBIncreaseNonceReply) error { - StateDBIncreaseNonce(context.Context, *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) - // func (s *SgxRpcServer) StateDBPrepare(args *keeper.StateDBPrepareArgs, reply *keeper.StateDBPrepareReply) error { - StateDBPrepare(context.Context, *StateDBPrepareRequest) (*StateDBPrepareResponse, error) - // func (s *SgxRpcServer) StateDBGetRefund(args *keeper.StateDBGetRefundArgs, reply *keeper.StateDBGetRefundReply) error { - StateDBGetRefund(context.Context, *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) - // func (s *SgxRpcServer) StateDBGetLogs(args *keeper.StateDBGetLogsArgs, reply *keeper.StateDBGetLogsReply) error { - StateDBGetLogs(context.Context, *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) -} - -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { -} - -func (*UnimplementedQueryServiceServer) PrepareTx(ctx context.Context, req *PrepareTxRequest) (*PrepareTxResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareTx not implemented") -} -func (*UnimplementedQueryServiceServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") -} -func (*UnimplementedQueryServiceServer) Call(ctx context.Context, req *CallRequest) (*CallResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Call not implemented") -} -func (*UnimplementedQueryServiceServer) Commit(ctx context.Context, req *CommitRequest) (*CommitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") -} -func (*UnimplementedQueryServiceServer) StateDBAddBalance(ctx context.Context, req *StateDBAddBalanceRequest) (*StateDBAddBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBAddBalance not implemented") -} -func (*UnimplementedQueryServiceServer) StateDBSubBalance(ctx context.Context, req *StateDBSubBalanceRequest) (*StateDBSubBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBSubBalance not implemented") -} -func (*UnimplementedQueryServiceServer) StateDBSetNonce(ctx context.Context, req *StateDBSetNonceRequest) (*StateDBSetNonceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBSetNonce not implemented") -} -func (*UnimplementedQueryServiceServer) StateDBIncreaseNonce(ctx context.Context, req *StateDBIncreaseNonceRequest) (*StateDBIncreaseNonceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBIncreaseNonce not implemented") -} -func (*UnimplementedQueryServiceServer) StateDBPrepare(ctx context.Context, req *StateDBPrepareRequest) (*StateDBPrepareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBPrepare not implemented") -} -func (*UnimplementedQueryServiceServer) StateDBGetRefund(ctx context.Context, req *StateDBGetRefundRequest) (*StateDBGetRefundResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBGetRefund not implemented") -} -func (*UnimplementedQueryServiceServer) StateDBGetLogs(ctx context.Context, req *StateDBGetLogsRequest) (*StateDBGetLogsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StateDBGetLogs not implemented") -} - -func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) + return interceptor(ctx, in, info, handler) } -func _QueryService_PrepareTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareTxRequest) +func _QueryService_StateDBIncreaseNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBIncreaseNonceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServiceServer).PrepareTx(ctx, in) + return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/PrepareTx", + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).PrepareTx(ctx, req.(*PrepareTxRequest)) + return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, req.(*StateDBIncreaseNonceRequest)) } return interceptor(ctx, in, info, handler) } -func _QueryService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRequest) +func _QueryService_StateDBPrepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBPrepareRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServiceServer).Create(ctx, in) + return srv.(QueryServiceServer).StateDBPrepare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/Create", + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBPrepare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).Create(ctx, req.(*CreateRequest)) + return srv.(QueryServiceServer).StateDBPrepare(ctx, req.(*StateDBPrepareRequest)) } return interceptor(ctx, in, info, handler) } -func _QueryService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CallRequest) +func _QueryService_StateDBGetRefund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBGetRefundRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServiceServer).Call(ctx, in) + return srv.(QueryServiceServer).StateDBGetRefund(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/Call", + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetRefund", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).Call(ctx, req.(*CallRequest)) + return srv.(QueryServiceServer).StateDBGetRefund(ctx, req.(*StateDBGetRefundRequest)) } return interceptor(ctx, in, info, handler) } -func _QueryService_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitRequest) +func _QueryService_StateDBGetLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateDBGetLogsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServiceServer).Commit(ctx, in) + return srv.(QueryServiceServer).StateDBGetLogs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/Commit", + FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetLogs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).Commit(ctx, req.(*CommitRequest)) + return srv.(QueryServiceServer).StateDBGetLogs(ctx, req.(*StateDBGetLogsRequest)) } return interceptor(ctx, in, info, handler) } -func _QueryService_StateDBAddBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBAddBalanceRequest) +func _QueryService_StopEVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StopEVMRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServiceServer).StateDBAddBalance(ctx, in) + return srv.(QueryServiceServer).StopEVM(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBAddBalance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBAddBalance(ctx, req.(*StateDBAddBalanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueryService_StateDBSubBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBSubBalanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBSubBalance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSubBalance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBSubBalance(ctx, req.(*StateDBSubBalanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueryService_StateDBSetNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBSetNonceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBSetNonce(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBSetNonce", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBSetNonce(ctx, req.(*StateDBSetNonceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueryService_StateDBIncreaseNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBIncreaseNonceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBIncreaseNonce", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBIncreaseNonce(ctx, req.(*StateDBIncreaseNonceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueryService_StateDBPrepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBPrepareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBPrepare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBPrepare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBPrepare(ctx, req.(*StateDBPrepareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueryService_StateDBGetRefund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBGetRefundRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBGetRefund(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetRefund", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBGetRefund(ctx, req.(*StateDBGetRefundRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueryService_StateDBGetLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StateDBGetLogsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).StateDBGetLogs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethermint.sgx.v1.QueryService/StateDBGetLogs", + FullMethod: "/ethermint.sgx.v1.QueryService/StopEVM", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).StateDBGetLogs(ctx, req.(*StateDBGetLogsRequest)) + return srv.(QueryServiceServer).StopEVM(ctx, req.(*StopEVMRequest)) } return interceptor(ctx, in, info, handler) } @@ -2864,8 +2092,8 @@ var _QueryService_serviceDesc = grpc.ServiceDesc{ HandlerType: (*QueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "PrepareTx", - Handler: _QueryService_PrepareTx_Handler, + MethodName: "StartEVM", + Handler: _QueryService_StartEVM_Handler, }, { MethodName: "Create", @@ -2907,12 +2135,16 @@ var _QueryService_serviceDesc = grpc.ServiceDesc{ MethodName: "StateDBGetLogs", Handler: _QueryService_StateDBGetLogs_Handler, }, + { + MethodName: "StopEVM", + Handler: _QueryService_StopEVM_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "ethermint/sgx/v1/query.proto", } -func (m *PrepareTxRequest) Marshal() (dAtA []byte, err error) { +func (m *StartEVMRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2922,54 +2154,51 @@ func (m *PrepareTxRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PrepareTxRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StartEVMRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PrepareTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StartEVMRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.EvmConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.EvmConfig != nil { + { + size, err := m.EvmConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 } - i-- - dAtA[i] = 0x22 - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Msg))) + if len(m.MsgJson) > 0 { + i -= len(m.MsgJson) + copy(dAtA[i:], m.MsgJson) + i = encodeVarintQuery(dAtA, i, uint64(len(m.MsgJson))) i-- dAtA[i] = 0x1a } - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.TxHash) > 0 { - i -= len(m.TxHash) - copy(dAtA[i:], m.TxHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 } return len(dAtA) - i, nil } -func (m *PrepareTxResponse) Marshal() (dAtA []byte, err error) { +func (m *StartEVMConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2979,25 +2208,106 @@ func (m *PrepareTxResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PrepareTxResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *StartEVMConfig) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PrepareTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StartEVMConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + if len(m.OverridesJson) > 0 { + i -= len(m.OverridesJson) + copy(dAtA[i:], m.OverridesJson) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OverridesJson))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x4a + } + if len(m.ExtraEips) > 0 { + dAtA4 := make([]byte, len(m.ExtraEips)*10) + var j3 int + for _, num1 := range m.ExtraEips { + num := uint64(num1) + for num >= 1<<7 { + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA4[j3] = uint8(num) + j3++ + } + i -= j3 + copy(dAtA[i:], dAtA4[:j3]) + i = encodeVarintQuery(dAtA, i, uint64(j3)) + i-- + dAtA[i] = 0x42 + } + if len(m.EvmDenom) > 0 { + i -= len(m.EvmDenom) + copy(dAtA[i:], m.EvmDenom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.EvmDenom))) + i-- + dAtA[i] = 0x3a + } + if m.NoBaseFee { + i-- + if m.NoBaseFee { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.DebugTrace { + i-- + if m.DebugTrace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.TxConfig != nil { + { + size, err := m.TxConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.BaseFee) > 0 { + i -= len(m.BaseFee) + copy(dAtA[i:], m.BaseFee) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BaseFee))) + i-- + dAtA[i] = 0x1a + } + if len(m.CoinBase) > 0 { + i -= len(m.CoinBase) + copy(dAtA[i:], m.CoinBase) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CoinBase))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChainConfigJson) > 0 { + i -= len(m.ChainConfigJson) + copy(dAtA[i:], m.ChainConfigJson) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainConfigJson))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *CreateRequest) Marshal() (dAtA []byte, err error) { +func (m *TxConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3007,49 +2317,44 @@ func (m *CreateRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *TxConfig) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TxConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Value != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Value)) - i-- - dAtA[i] = 0x28 - } - if m.Gas != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) + if m.LogIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LogIndex)) i-- dAtA[i] = 0x20 } - if len(m.Code) > 0 { - i -= len(m.Code) - copy(dAtA[i:], m.Code) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) + if m.TxIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TxIndex)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } - if len(m.Caller) > 0 { - i -= len(m.Caller) - copy(dAtA[i:], m.Caller) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + if len(m.TxHash) > 0 { + i -= len(m.TxHash) + copy(dAtA[i:], m.TxHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) i-- dAtA[i] = 0x12 } - if m.HandlerId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + if len(m.BlockHash) > 0 { + i -= len(m.BlockHash) + copy(dAtA[i:], m.BlockHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *CreateResponse) Marshal() (dAtA []byte, err error) { +func (m *StartEVMResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3059,18 +2364,98 @@ func (m *CreateResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *StartEVMResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StartEVMResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.LeftOverGas != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CreateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x28 + } + if m.Gas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Gas)) + i-- + dAtA[i] = 0x20 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0x1a + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CreateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LeftOverGas != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LeftOverGas)) i-- dAtA[i] = 0x18 } @@ -3256,10 +2641,12 @@ func (m *StateDBAddBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l - if m.Amount != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Amount)) + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x1a } if len(m.Caller) > 0 { i -= len(m.Caller) @@ -3319,10 +2706,12 @@ func (m *StateDBSubBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l - if m.Amount != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Amount)) + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x1a } if len(m.Caller) > 0 { i -= len(m.Caller) @@ -3483,186 +2872,6 @@ func (m *StateDBIncreaseNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *Rules) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Rules) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Rules) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsVerkle { - i-- - if m.IsVerkle { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.IsPrague { - i-- - if m.IsPrague { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x78 - } - if m.IsCancun { - i-- - if m.IsCancun { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x70 - } - if m.IsShanghai { - i-- - if m.IsShanghai { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 - } - if m.IsMerge { - i-- - if m.IsMerge { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 - } - if m.IsLondon { - i-- - if m.IsLondon { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - } - if m.IsBerlin { - i-- - if m.IsBerlin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if m.IsIstanbul { - i-- - if m.IsIstanbul { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.IsPetersburg { - i-- - if m.IsPetersburg { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.IsConstantinople { - i-- - if m.IsConstantinople { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.IsByzantium { - i-- - if m.IsByzantium { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.IsEIP158 { - i-- - if m.IsEIP158 { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.IsEIP155 { - i-- - if m.IsEIP155 { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.IsEIP150 { - i-- - if m.IsEIP150 { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.IsHomestead { - i-- - if m.IsHomestead { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.ChainId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func (m *AccessTuple) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3736,10 +2945,10 @@ func (m *StateDBPrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x32 } } - if len(m.Rules) > 0 { - i -= len(m.Rules) - copy(dAtA[i:], m.Rules) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Rules))) + if len(m.RulesJson) > 0 { + i -= len(m.RulesJson) + copy(dAtA[i:], m.RulesJson) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RulesJson))) i-- dAtA[i] = 0x2a } @@ -3899,16 +3108,11 @@ func (m *StateDBGetLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l - if len(m.Log) > 0 { - for iNdEx := len(m.Log) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Log[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if len(m.Logs) > 0 { + for iNdEx := len(m.Logs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Logs[iNdEx]) + copy(dAtA[i:], m.Logs[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Logs[iNdEx]))) i-- dAtA[i] = 0xa } @@ -3916,7 +3120,7 @@ func (m *StateDBGetLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Message) Marshal() (dAtA []byte, err error) { +func (m *StopEVMRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3926,645 +3130,156 @@ func (m *Message) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Message) MarshalTo(dAtA []byte) (int, error) { +func (m *StopEVMRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StopEVMRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SkipAccountChecks { - i-- - if m.SkipAccountChecks { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) i-- - dAtA[i] = 0x68 - } - if len(m.BlobHashes) > 0 { - for iNdEx := len(m.BlobHashes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlobHashes[iNdEx]) - copy(dAtA[i:], m.BlobHashes[iNdEx]) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BlobHashes[iNdEx]))) - i-- - dAtA[i] = 0x62 - } + dAtA[i] = 0x8 } - if m.BlobGasFeeCap != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlobGasFeeCap)) - i-- - dAtA[i] = 0x58 - } - if len(m.AccessList) > 0 { - for iNdEx := len(m.AccessList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AccessList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x4a - } - if m.GasTipCap != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GasTipCap)) - i-- - dAtA[i] = 0x40 - } - if m.GasFeeCap != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GasFeeCap)) - i-- - dAtA[i] = 0x38 - } - if m.GasPrice != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GasPrice)) - i-- - dAtA[i] = 0x30 - } - if m.GasLimit != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GasLimit)) - i-- - dAtA[i] = 0x28 - } - if m.Value != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Value)) - i-- - dAtA[i] = 0x20 - } - if m.Nonce != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) - i-- - dAtA[i] = 0x18 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintQuery(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x12 - } - if len(m.To) > 0 { - i -= len(m.To) - copy(dAtA[i:], m.To) - i = encodeVarintQuery(dAtA, i, uint64(len(m.To))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PrepareTxEVMConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return len(dAtA) - i, nil +} + +func (m *StopEVMResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } return dAtA[:n], nil } -func (m *PrepareTxEVMConfig) MarshalTo(dAtA []byte) (int, error) { +func (m *StopEVMResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PrepareTxEVMConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StopEVMResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Overrides) > 0 { - i -= len(m.Overrides) - copy(dAtA[i:], m.Overrides) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Overrides))) - i-- - dAtA[i] = 0x4a - } - if len(m.ExtraEips) > 0 { - dAtA4 := make([]byte, len(m.ExtraEips)*10) - var j3 int - for _, num1 := range m.ExtraEips { - num := uint64(num1) - for num >= 1<<7 { - dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA4[j3] = uint8(num) - j3++ - } - i -= j3 - copy(dAtA[i:], dAtA4[:j3]) - i = encodeVarintQuery(dAtA, i, uint64(j3)) - i-- - dAtA[i] = 0x42 - } - if len(m.EvmDenom) > 0 { - i -= len(m.EvmDenom) - copy(dAtA[i:], m.EvmDenom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.EvmDenom))) - i-- - dAtA[i] = 0x3a - } - if m.NoBaseFee { - i-- - if m.NoBaseFee { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.DebugTrace { - i-- - if m.DebugTrace { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - { - size, err := m.TxConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - if m.BaseFee != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BaseFee)) - i-- - dAtA[i] = 0x18 - } - if len(m.CoinBase) > 0 { - i -= len(m.CoinBase) - copy(dAtA[i:], m.CoinBase) - i = encodeVarintQuery(dAtA, i, uint64(len(m.CoinBase))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChainConfigJson) > 0 { - i -= len(m.ChainConfigJson) - copy(dAtA[i:], m.ChainConfigJson) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainConfigJson))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *ChainConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return dAtA[:n], nil -} - -func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + dAtA[offset] = uint8(v) + return base } - -func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *StartEVMRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if m.IsDevMode { - i-- - if m.IsDevMode { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd0 - } - if m.Clique != nil { - { - size, err := m.Clique.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xca + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovQuery(uint64(l)) } - if m.Ethash != nil { - { - size, err := m.Ethash.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 + l = len(m.MsgJson) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.TerminalTotalDifficultyPassed { - i-- - if m.TerminalTotalDifficultyPassed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb8 + if m.EvmConfig != nil { + l = m.EvmConfig.Size() + n += 1 + l + sovQuery(uint64(l)) } - if m.TerminalTotalDifficulty != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TerminalTotalDifficulty)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb0 + return n +} + +func (m *StartEVMConfig) Size() (n int) { + if m == nil { + return 0 } - if m.VerkleTime != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.VerkleTime)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa8 + var l int + _ = l + l = len(m.ChainConfigJson) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.PragueTime != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.PragueTime)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa0 + l = len(m.CoinBase) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.CancunTime != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.CancunTime)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x98 + l = len(m.BaseFee) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.ShanghaiTime != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ShanghaiTime)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if m.TxConfig != nil { + l = m.TxConfig.Size() + n += 1 + l + sovQuery(uint64(l)) } - if m.MergeNetsplitBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.MergeNetsplitBlock)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + if m.DebugTrace { + n += 2 } - if m.GrayGlacierBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GrayGlacierBlock)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 + if m.NoBaseFee { + n += 2 } - if m.ArrowGlacierBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ArrowGlacierBlock)) - i-- - dAtA[i] = 0x78 + l = len(m.EvmDenom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.LondonBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.LondonBlock)) - i-- - dAtA[i] = 0x70 + if len(m.ExtraEips) > 0 { + l = 0 + for _, e := range m.ExtraEips { + l += sovQuery(uint64(e)) + } + n += 1 + sovQuery(uint64(l)) + l } - if m.BerlinBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BerlinBlock)) - i-- - dAtA[i] = 0x68 + l = len(m.OverridesJson) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.MuirGlacierBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.MuirGlacierBlock)) - i-- - dAtA[i] = 0x60 + return n +} + +func (m *TxConfig) Size() (n int) { + if m == nil { + return 0 } - if m.IstanbulBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.IstanbulBlock)) - i-- - dAtA[i] = 0x58 + var l int + _ = l + l = len(m.BlockHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.PetersburgBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.PetersburgBlock)) - i-- - dAtA[i] = 0x50 + l = len(m.TxHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.ConstantinopleBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ConstantinopleBlock)) - i-- - dAtA[i] = 0x48 + if m.TxIndex != 0 { + n += 1 + sovQuery(uint64(m.TxIndex)) } - if m.ByzantiumBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ByzantiumBlock)) - i-- - dAtA[i] = 0x40 + if m.LogIndex != 0 { + n += 1 + sovQuery(uint64(m.LogIndex)) } - if m.EIP158Block != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.EIP158Block)) - i-- - dAtA[i] = 0x38 + return n +} + +func (m *StartEVMResponse) Size() (n int) { + if m == nil { + return 0 } - if m.EIP155Block != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.EIP155Block)) - i-- - dAtA[i] = 0x30 - } - if m.EIP_150Block != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.EIP_150Block)) - i-- - dAtA[i] = 0x28 - } - if m.DAOForkSupport { - i-- - if m.DAOForkSupport { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.DAOForkBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.DAOForkBlock)) - i-- - dAtA[i] = 0x18 - } - if m.HomesteadBlock != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.HomesteadBlock)) - i-- - dAtA[i] = 0x10 - } - if m.ChainID != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ChainID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *EthashConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EthashConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EthashConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *CliqueConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CliqueConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CliqueConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Epoch != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Epoch)) - i-- - dAtA[i] = 0x10 - } - if m.Period != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Period)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *TxConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TxConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LogIndex != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.LogIndex)) - i-- - dAtA[i] = 0x20 - } - if m.TxIndex != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TxIndex)) - i-- - dAtA[i] = 0x18 - } - if len(m.TxHash) > 0 { - i -= len(m.TxHash) - copy(dAtA[i:], m.TxHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) - i-- - dAtA[i] = 0x12 - } - if len(m.BlockHash) > 0 { - i -= len(m.BlockHash) - copy(dAtA[i:], m.BlockHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EthLog) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EthLog) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EthLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Removed { - i-- - if m.Removed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.Index != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x40 - } - if len(m.BlockHash) > 0 { - i -= len(m.BlockHash) - copy(dAtA[i:], m.BlockHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BlockHash))) - i-- - dAtA[i] = 0x3a - } - if m.TxIndex != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TxIndex)) - i-- - dAtA[i] = 0x30 - } - if len(m.TxHash) > 0 { - i -= len(m.TxHash) - copy(dAtA[i:], m.TxHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) - i-- - dAtA[i] = 0x2a - } - if m.BlockNumber != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockNumber)) - i-- - dAtA[i] = 0x20 - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x1a - } - if len(m.Topics) > 0 { - for iNdEx := len(m.Topics) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Topics[iNdEx]) - copy(dAtA[i:], m.Topics[iNdEx]) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Topics[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PrepareTxRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TxHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = m.Header.Size() - n += 1 + l + sovQuery(uint64(l)) - l = len(m.Msg) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = m.EvmConfig.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *PrepareTxResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) } return n } @@ -4695,8 +3410,9 @@ func (m *StateDBAddBalanceRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if m.Amount != 0 { - n += 1 + sovQuery(uint64(m.Amount)) + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } return n } @@ -4723,8 +3439,9 @@ func (m *StateDBSubBalanceRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if m.Amount != 0 { - n += 1 + sovQuery(uint64(m.Amount)) + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } return n } @@ -4791,106 +3508,49 @@ func (m *StateDBIncreaseNonceResponse) Size() (n int) { return n } -func (m *Rules) Size() (n int) { +func (m *AccessTuple) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ChainId != 0 { - n += 1 + sovQuery(uint64(m.ChainId)) + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.IsHomestead { - n += 2 + if len(m.StorageKeys) > 0 { + for _, b := range m.StorageKeys { + l = len(b) + n += 1 + l + sovQuery(uint64(l)) + } } - if m.IsEIP150 { - n += 2 + return n +} + +func (m *StateDBPrepareRequest) Size() (n int) { + if m == nil { + return 0 } - if m.IsEIP155 { - n += 2 + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) } - if m.IsEIP158 { - n += 2 + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.IsByzantium { - n += 2 + l = len(m.Coinbase) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.IsConstantinople { - n += 2 + l = len(m.Dest) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.IsPetersburg { - n += 2 - } - if m.IsIstanbul { - n += 2 - } - if m.IsBerlin { - n += 2 - } - if m.IsLondon { - n += 2 - } - if m.IsMerge { - n += 2 - } - if m.IsShanghai { - n += 2 - } - if m.IsCancun { - n += 2 - } - if m.IsPrague { - n += 2 - } - if m.IsVerkle { - n += 3 - } - return n -} - -func (m *AccessTuple) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if len(m.StorageKeys) > 0 { - for _, b := range m.StorageKeys { - l = len(b) - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *StateDBPrepareRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HandlerId != 0 { - n += 1 + sovQuery(uint64(m.HandlerId)) - } - l = len(m.Sender) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Coinbase) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Dest) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Rules) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + l = len(m.RulesJson) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } if len(m.AccessList) > 0 { for _, e := range m.AccessList { @@ -4942,1651 +3602,53 @@ func (m *StateDBGetLogsRequest) Size() (n int) { _ = l if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) - } - return n -} - -func (m *StateDBGetLogsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Log) > 0 { - for _, e := range m.Log { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *Message) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.To) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Nonce != 0 { - n += 1 + sovQuery(uint64(m.Nonce)) - } - if m.Value != 0 { - n += 1 + sovQuery(uint64(m.Value)) - } - if m.GasLimit != 0 { - n += 1 + sovQuery(uint64(m.GasLimit)) - } - if m.GasPrice != 0 { - n += 1 + sovQuery(uint64(m.GasPrice)) - } - if m.GasFeeCap != 0 { - n += 1 + sovQuery(uint64(m.GasFeeCap)) - } - if m.GasTipCap != 0 { - n += 1 + sovQuery(uint64(m.GasTipCap)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if len(m.AccessList) > 0 { - for _, e := range m.AccessList { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.BlobGasFeeCap != 0 { - n += 1 + sovQuery(uint64(m.BlobGasFeeCap)) - } - if len(m.BlobHashes) > 0 { - for _, b := range m.BlobHashes { - l = len(b) - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.SkipAccountChecks { - n += 2 - } - return n -} - -func (m *PrepareTxEVMConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainConfigJson) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.CoinBase) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.BaseFee != 0 { - n += 1 + sovQuery(uint64(m.BaseFee)) - } - l = m.TxConfig.Size() - n += 1 + l + sovQuery(uint64(l)) - if m.DebugTrace { - n += 2 - } - if m.NoBaseFee { - n += 2 - } - l = len(m.EvmDenom) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if len(m.ExtraEips) > 0 { - l = 0 - for _, e := range m.ExtraEips { - l += sovQuery(uint64(e)) - } - n += 1 + sovQuery(uint64(l)) + l - } - l = len(m.Overrides) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *ChainConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ChainID != 0 { - n += 1 + sovQuery(uint64(m.ChainID)) - } - if m.HomesteadBlock != 0 { - n += 1 + sovQuery(uint64(m.HomesteadBlock)) - } - if m.DAOForkBlock != 0 { - n += 1 + sovQuery(uint64(m.DAOForkBlock)) - } - if m.DAOForkSupport { - n += 2 - } - if m.EIP_150Block != 0 { - n += 1 + sovQuery(uint64(m.EIP_150Block)) - } - if m.EIP155Block != 0 { - n += 1 + sovQuery(uint64(m.EIP155Block)) - } - if m.EIP158Block != 0 { - n += 1 + sovQuery(uint64(m.EIP158Block)) - } - if m.ByzantiumBlock != 0 { - n += 1 + sovQuery(uint64(m.ByzantiumBlock)) - } - if m.ConstantinopleBlock != 0 { - n += 1 + sovQuery(uint64(m.ConstantinopleBlock)) - } - if m.PetersburgBlock != 0 { - n += 1 + sovQuery(uint64(m.PetersburgBlock)) - } - if m.IstanbulBlock != 0 { - n += 1 + sovQuery(uint64(m.IstanbulBlock)) - } - if m.MuirGlacierBlock != 0 { - n += 1 + sovQuery(uint64(m.MuirGlacierBlock)) - } - if m.BerlinBlock != 0 { - n += 1 + sovQuery(uint64(m.BerlinBlock)) - } - if m.LondonBlock != 0 { - n += 1 + sovQuery(uint64(m.LondonBlock)) - } - if m.ArrowGlacierBlock != 0 { - n += 1 + sovQuery(uint64(m.ArrowGlacierBlock)) - } - if m.GrayGlacierBlock != 0 { - n += 2 + sovQuery(uint64(m.GrayGlacierBlock)) - } - if m.MergeNetsplitBlock != 0 { - n += 2 + sovQuery(uint64(m.MergeNetsplitBlock)) - } - if m.ShanghaiTime != 0 { - n += 2 + sovQuery(uint64(m.ShanghaiTime)) - } - if m.CancunTime != 0 { - n += 2 + sovQuery(uint64(m.CancunTime)) - } - if m.PragueTime != 0 { - n += 2 + sovQuery(uint64(m.PragueTime)) - } - if m.VerkleTime != 0 { - n += 2 + sovQuery(uint64(m.VerkleTime)) - } - if m.TerminalTotalDifficulty != 0 { - n += 2 + sovQuery(uint64(m.TerminalTotalDifficulty)) - } - if m.TerminalTotalDifficultyPassed { - n += 3 - } - if m.Ethash != nil { - l = m.Ethash.Size() - n += 2 + l + sovQuery(uint64(l)) - } - if m.Clique != nil { - l = m.Clique.Size() - n += 2 + l + sovQuery(uint64(l)) - } - if m.IsDevMode { - n += 3 - } - return n -} - -func (m *EthashConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *CliqueConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Period != 0 { - n += 1 + sovQuery(uint64(m.Period)) - } - if m.Epoch != 0 { - n += 1 + sovQuery(uint64(m.Epoch)) - } - return n -} - -func (m *TxConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BlockHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.TxHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.TxIndex != 0 { - n += 1 + sovQuery(uint64(m.TxIndex)) - } - if m.LogIndex != 0 { - n += 1 + sovQuery(uint64(m.LogIndex)) - } - return n -} - -func (m *EthLog) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if len(m.Topics) > 0 { - for _, b := range m.Topics { - l = len(b) - n += 1 + l + sovQuery(uint64(l)) - } - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.BlockNumber != 0 { - n += 1 + sovQuery(uint64(m.BlockNumber)) - } - l = len(m.TxHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.TxIndex != 0 { - n += 1 + sovQuery(uint64(m.TxIndex)) - } - l = len(m.BlockHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Index != 0 { - n += 1 + sovQuery(uint64(m.Index)) - } - if m.Removed { - n += 2 - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PrepareTxRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PrepareTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) - if m.TxHash == nil { - m.TxHash = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) - if m.Msg == nil { - m.Msg = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvmConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.EvmConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PrepareTxResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PrepareTxResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PrepareTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) - } - m.HandlerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CreateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) - } - m.HandlerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) - if m.Code == nil { - m.Code = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) - } - m.Gas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Gas |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - m.Value = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Value |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CreateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) - if m.Ret == nil { - m.Ret = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractAddr", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContractAddr = append(m.ContractAddr[:0], dAtA[iNdEx:postIndex]...) - if m.ContractAddr == nil { - m.ContractAddr = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) - } - m.LeftOverGas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LeftOverGas |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CallRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CallRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CallRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) - } - m.HandlerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addr = append(m.Addr[:0], dAtA[iNdEx:postIndex]...) - if m.Addr == nil { - m.Addr = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Input = append(m.Input[:0], dAtA[iNdEx:postIndex]...) - if m.Input == nil { - m.Input = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) - } - m.Gas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Gas |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - m.Value = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Value |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CallResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CallResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CallResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) - if m.Ret == nil { - m.Ret = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) - } - m.LeftOverGas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LeftOverGas |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CommitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CommitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CommitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) - } - m.HandlerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CommitResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CommitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBAddBalanceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBAddBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) - } - m.HandlerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - m.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Amount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBAddBalanceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBAddBalanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBAddBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBSubBalanceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBSubBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) - } - m.HandlerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - m.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Amount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBSubBalanceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBSubBalanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBSubBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + } + return n +} + +func (m *StateDBGetLogsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Logs) > 0 { + for _, b := range m.Logs { + l = len(b) + n += 1 + l + sovQuery(uint64(l)) } } + return n +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (m *StopEVMRequest) Size() (n int) { + if m == nil { + return 0 } - return nil + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + return n } -func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { + +func (m *StopEVMResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *StartEVMRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6609,17 +3671,17 @@ func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBSetNonceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StartEVMRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBSetNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StartEVMRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - m.HandlerId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6629,14 +3691,31 @@ func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &types.Header{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MsgJson", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6663,16 +3742,16 @@ func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} + m.MsgJson = append(m.MsgJson[:0], dAtA[iNdEx:postIndex]...) + if m.MsgJson == nil { + m.MsgJson = []byte{} } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvmConfig", wireType) } - m.Nonce = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6682,61 +3761,28 @@ func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Nonce |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthQuery } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBSetNonceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.EvmConfig == nil { + m.EvmConfig = &StartEVMConfig{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.EvmConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBSetNonceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBSetNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6758,7 +3804,7 @@ func (m *StateDBSetNonceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { +func (m *StartEVMConfig) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6781,34 +3827,15 @@ func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBIncreaseNonceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StartEVMConfig: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBIncreaseNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StartEVMConfig: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) - } - m.HandlerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChainConfigJson", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6835,116 +3862,50 @@ func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) - if m.Caller == nil { - m.Caller = []byte{} + m.ChainConfigJson = append(m.ChainConfigJson[:0], dAtA[iNdEx:postIndex]...) + if m.ChainConfigJson == nil { + m.ChainConfigJson = []byte{} } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBIncreaseNonceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBIncreaseNonceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBIncreaseNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoinBase", wireType) } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Rules) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.CoinBase = append(m.CoinBase[:0], dAtA[iNdEx:postIndex]...) + if m.CoinBase == nil { + m.CoinBase = []byte{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Rules: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Rules: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) } - m.ChainId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6954,16 +3915,29 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChainId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsHomestead", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery } - var v int + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseFee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxConfig", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6973,15 +3947,31 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsHomestead = bool(v != 0) - case 3: + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TxConfig == nil { + m.TxConfig = &TxConfig{} + } + if err := m.TxConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEIP150", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DebugTrace", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -6998,10 +3988,10 @@ func (m *Rules) Unmarshal(dAtA []byte) error { break } } - m.IsEIP150 = bool(v != 0) - case 4: + m.DebugTrace = bool(v != 0) + case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEIP155", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NoBaseFee", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -7018,12 +4008,12 @@ func (m *Rules) Unmarshal(dAtA []byte) error { break } } - m.IsEIP155 = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEIP158", wireType) + m.NoBaseFee = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvmDenom", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7033,17 +4023,105 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsEIP158 = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsByzantium", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery } - var v int + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EvmDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExtraEips = append(m.ExtraEips, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.ExtraEips) == 0 { + m.ExtraEips = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExtraEips = append(m.ExtraEips, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ExtraEips", wireType) + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OverridesJson", wireType) + } + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7053,17 +4131,81 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsByzantium = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsConstantinople", wireType) + if byteLen < 0 { + return ErrInvalidLengthQuery } - var v int + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OverridesJson = append(m.OverridesJson[:0], dAtA[iNdEx:postIndex]...) + if m.OverridesJson == nil { + m.OverridesJson = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TxConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TxConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TxConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) + } + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7073,17 +4215,31 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsConstantinople = bool(v != 0) - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPetersburg", wireType) + if byteLen < 0 { + return ErrInvalidLengthQuery } - var v int + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) + if m.BlockHash == nil { + m.BlockHash = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + } + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7093,17 +4249,31 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsPetersburg = bool(v != 0) - case 9: + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) + if m.TxHash == nil { + m.TxHash = []byte{} + } + iNdEx = postIndex + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsIstanbul", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) } - var v int + m.TxIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7113,17 +4283,16 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.TxIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsIstanbul = bool(v != 0) - case 10: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsBerlin", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LogIndex", wireType) } - var v int + m.LogIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7133,17 +4302,66 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.LogIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsBerlin = bool(v != 0) - case 11: + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StartEVMResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StartEVMResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StartEVMResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsLondon", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - var v int + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7153,17 +4371,66 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsLondon = bool(v != 0) - case 12: + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsMerge", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - var v int + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7173,17 +4440,16 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsMerge = bool(v != 0) - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsShanghai", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) } - var v int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7193,17 +4459,31 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsShanghai = bool(v != 0) - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsCancun", wireType) + if byteLen < 0 { + return ErrInvalidLengthQuery } - var v int + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7213,17 +4493,31 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsCancun = bool(v != 0) - case 15: + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...) + if m.Code == nil { + m.Code = []byte{} + } + iNdEx = postIndex + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPrague", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) } - var v int + m.Gas = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7233,17 +4527,16 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.Gas |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsPrague = bool(v != 0) - case 16: + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsVerkle", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var v int + m.Value = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7253,12 +4546,11 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.Value |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsVerkle = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7280,7 +4572,7 @@ func (m *Rules) Unmarshal(dAtA []byte) error { } return nil } -func (m *AccessTuple) Unmarshal(dAtA []byte) error { +func (m *CreateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7303,15 +4595,15 @@ func (m *AccessTuple) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AccessTuple: wiretype end group for non-group") + return fmt.Errorf("proto: CreateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AccessTuple: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -7338,14 +4630,14 @@ func (m *AccessTuple) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) - if m.Address == nil { - m.Address = []byte{} + m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) + if m.Ret == nil { + m.Ret = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageKeys", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractAddr", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -7372,9 +4664,30 @@ func (m *AccessTuple) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StorageKeys = append(m.StorageKeys, make([]byte, postIndex-iNdEx)) - copy(m.StorageKeys[len(m.StorageKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex + m.ContractAddr = append(m.ContractAddr[:0], dAtA[iNdEx:postIndex]...) + if m.ContractAddr == nil { + m.ContractAddr = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) + } + m.LeftOverGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LeftOverGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7396,7 +4709,7 @@ func (m *AccessTuple) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { +func (m *CallRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7419,10 +4732,10 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBPrepareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CallRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBPrepareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CallRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7446,7 +4759,7 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -7473,14 +4786,14 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Sender = append(m.Sender[:0], dAtA[iNdEx:postIndex]...) - if m.Sender == nil { - m.Sender = []byte{} + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coinbase", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -7507,14 +4820,14 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Coinbase = append(m.Coinbase[:0], dAtA[iNdEx:postIndex]...) - if m.Coinbase == nil { - m.Coinbase = []byte{} + m.Addr = append(m.Addr[:0], dAtA[iNdEx:postIndex]...) + if m.Addr == nil { + m.Addr = []byte{} } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -7541,16 +4854,16 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Dest = append(m.Dest[:0], dAtA[iNdEx:postIndex]...) - if m.Dest == nil { - m.Dest = []byte{} + m.Input = append(m.Input[:0], dAtA[iNdEx:postIndex]...) + if m.Input == nil { + m.Input = []byte{} } iNdEx = postIndex case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gas", wireType) } - var byteLen int + m.Gas = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7560,31 +4873,16 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.Gas |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules[:0], dAtA[iNdEx:postIndex]...) - if m.Rules == nil { - m.Rules = []byte{} - } - iNdEx = postIndex case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessList", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var msglen int + m.Value = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7594,76 +4892,11 @@ func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Value |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessList = append(m.AccessList, &AccessTuple{}) - if err := m.AccessList[len(m.AccessList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBPrepareResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBPrepareResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBPrepareResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7685,7 +4918,7 @@ func (m *StateDBPrepareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBGetRefundRequest) Unmarshal(dAtA []byte) error { +func (m *CallResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7708,17 +4941,17 @@ func (m *StateDBGetRefundRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBGetRefundRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CallResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBGetRefundRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CallResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) } - m.HandlerId = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7728,66 +4961,31 @@ func (m *StateDBGetRefundRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HandlerId |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateDBGetRefundResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) + if m.Ret == nil { + m.Ret = []byte{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBGetRefundResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBGetRefundResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Refund", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LeftOverGas", wireType) } - m.Refund = 0 + m.LeftOverGas = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7797,7 +4995,7 @@ func (m *StateDBGetRefundResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Refund |= uint64(b&0x7F) << shift + m.LeftOverGas |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7823,7 +5021,7 @@ func (m *StateDBGetRefundResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBGetLogsRequest) Unmarshal(dAtA []byte) error { +func (m *CommitRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7846,10 +5044,10 @@ func (m *StateDBGetLogsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StateDBGetLogsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CommitRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBGetLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CommitRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7892,7 +5090,7 @@ func (m *StateDBGetLogsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StateDBGetLogsResponse) Unmarshal(dAtA []byte) error { +func (m *CommitResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7907,54 +5105,20 @@ func (m *StateDBGetLogsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateDBGetLogsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateDBGetLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Log = append(m.Log, &EthLog{}) - if err := m.Log[len(m.Log)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommitResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -7976,7 +5140,7 @@ func (m *StateDBGetLogsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *Message) Unmarshal(dAtA []byte) error { +func (m *StateDBAddBalanceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7999,17 +5163,17 @@ func (m *Message) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Message: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBAddBalanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBAddBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - var byteLen int + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8019,29 +5183,14 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.To = append(m.To[:0], dAtA[iNdEx:postIndex]...) - if m.To == nil { - m.To = []byte{} - } - iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -8068,130 +5217,16 @@ func (m *Message) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.From = append(m.From[:0], dAtA[iNdEx:postIndex]...) - if m.From == nil { - m.From = []byte{} + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} } iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - m.Nonce = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Nonce |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - m.Value = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Value |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType) - } - m.GasLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GasLimit |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasPrice", wireType) - } - m.GasPrice = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GasPrice |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasFeeCap", wireType) - } - m.GasFeeCap = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GasFeeCap |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasTipCap", wireType) - } - m.GasTipCap = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GasTipCap |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8201,131 +5236,74 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } + m.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessList = append(m.AccessList, AccessTuple{}) - if err := m.AccessList[len(m.AccessList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlobGasFeeCap", wireType) - } - m.BlobGasFeeCap = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BlobGasFeeCap |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlobHashes", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.BlobHashes = append(m.BlobHashes, make([]byte, postIndex-iNdEx)) - copy(m.BlobHashes[len(m.BlobHashes)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipAccountChecks", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBAddBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - m.SkipAccountChecks = bool(v != 0) + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBAddBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBAddBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -8347,7 +5325,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } return nil } -func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { +func (m *StateDBSubBalanceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8370,17 +5348,17 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PrepareTxEVMConfig: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBSubBalanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PrepareTxEVMConfig: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBSubBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainConfigJson", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - var byteLen int + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8390,29 +5368,14 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainConfigJson = append(m.ChainConfigJson[:0], dAtA[iNdEx:postIndex]...) - if m.ChainConfigJson == nil { - m.ChainConfigJson = []byte{} - } - iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CoinBase", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -8439,106 +5402,14 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CoinBase = append(m.CoinBase[:0], dAtA[iNdEx:postIndex]...) - if m.CoinBase == nil { - m.CoinBase = []byte{} + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} } iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) - } - m.BaseFee = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BaseFee |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TxConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TxConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DebugTrace", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DebugTrace = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoBaseFee", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NoBaseFee = bool(v != 0) - case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvmDenom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8566,118 +5437,58 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EvmDenom = string(dAtA[iNdEx:postIndex]) + m.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: - if wireType == 0 { - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExtraEips = append(m.ExtraEips, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.ExtraEips) == 0 { - m.ExtraEips = make([]int64, 0, elementCount) - } - for iNdEx < postIndex { - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExtraEips = append(m.ExtraEips, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field ExtraEips", wireType) - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Overrides", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - if byteLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBSubBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Overrides = append(m.Overrides[:0], dAtA[iNdEx:postIndex]...) - if m.Overrides == nil { - m.Overrides = []byte{} + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBSubBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBSubBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -8699,7 +5510,7 @@ func (m *PrepareTxEVMConfig) Unmarshal(dAtA []byte) error { } return nil } -func (m *ChainConfig) Unmarshal(dAtA []byte) error { +func (m *StateDBSetNonceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8722,17 +5533,17 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChainConfig: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBSetNonceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChainConfig: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBSetNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - m.ChainID = 0 + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8742,16 +5553,16 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChainID |= uint64(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HomesteadBlock", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) } - m.HomesteadBlock = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8761,55 +5572,31 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HomesteadBlock |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DAOForkBlock", wireType) + if byteLen < 0 { + return ErrInvalidLengthQuery } - m.DAOForkBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DAOForkBlock |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DAOForkSupport", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} } - m.DAOForkSupport = bool(v != 0) - case 5: + iNdEx = postIndex + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EIP_150Block", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) } - m.EIP_150Block = 0 + m.Nonce = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8819,111 +5606,116 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EIP_150Block |= uint64(b&0x7F) << shift + m.Nonce |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EIP155Block", wireType) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - m.EIP155Block = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EIP155Block |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EIP158Block", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - m.EIP158Block = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EIP158Block |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBSetNonceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ByzantiumBlock", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.ByzantiumBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ByzantiumBlock |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConstantinopleBlock", wireType) + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBSetNonceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBSetNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - m.ConstantinopleBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ConstantinopleBlock |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PetersburgBlock", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - m.PetersburgBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PetersburgBlock |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBIncreaseNonceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 11: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBIncreaseNonceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBIncreaseNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IstanbulBlock", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - m.IstanbulBlock = 0 + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8933,16 +5725,16 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.IstanbulBlock |= uint64(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MuirGlacierBlock", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType) } - m.MuirGlacierBlock = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8952,92 +5744,131 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MuirGlacierBlock |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BerlinBlock", wireType) + if byteLen < 0 { + return ErrInvalidLengthQuery } - m.BerlinBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BerlinBlock |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LondonBlock", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - m.LondonBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LondonBlock |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + m.Caller = append(m.Caller[:0], dAtA[iNdEx:postIndex]...) + if m.Caller == nil { + m.Caller = []byte{} } - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ArrowGlacierBlock", wireType) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - m.ArrowGlacierBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ArrowGlacierBlock |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery } - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GrayGlacierBlock", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - m.GrayGlacierBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GrayGlacierBlock |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBIncreaseNonceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MergeNetsplitBlock", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBIncreaseNonceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBIncreaseNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AccessTuple) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AccessTuple: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AccessTuple: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - m.MergeNetsplitBlock = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9047,16 +5878,31 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MergeNetsplitBlock |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShanghaiTime", wireType) + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StorageKeys", wireType) } - m.ShanghaiTime = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9066,16 +5912,79 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ShanghaiTime |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 19: + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StorageKeys = append(m.StorageKeys, make([]byte, postIndex-iNdEx)) + copy(m.StorageKeys[len(m.StorageKeys)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBPrepareRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBPrepareRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBPrepareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CancunTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - m.CancunTime = 0 + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9085,16 +5994,16 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CancunTime |= uint64(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 20: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PragueTime", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) } - m.PragueTime = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9104,35 +6013,31 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PragueTime |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 21: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VerkleTime", wireType) + if byteLen < 0 { + return ErrInvalidLengthQuery } - m.VerkleTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.VerkleTime |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery } - case 22: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminalTotalDifficulty", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - m.TerminalTotalDifficulty = 0 + m.Sender = append(m.Sender[:0], dAtA[iNdEx:postIndex]...) + if m.Sender == nil { + m.Sender = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coinbase", wireType) + } + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9142,16 +6047,31 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TerminalTotalDifficulty |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 23: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminalTotalDifficultyPassed", wireType) + if byteLen < 0 { + return ErrInvalidLengthQuery } - var v int + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coinbase = append(m.Coinbase[:0], dAtA[iNdEx:postIndex]...) + if m.Coinbase == nil { + m.Coinbase = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType) + } + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9161,17 +6081,31 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.TerminalTotalDifficultyPassed = bool(v != 0) - case 24: + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Dest = append(m.Dest[:0], dAtA[iNdEx:postIndex]...) + if m.Dest == nil { + m.Dest = []byte{} + } + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ethash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9181,31 +6115,29 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Ethash == nil { - m.Ethash = &EthashConfig{} - } - if err := m.Ethash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.RulesJson = append(m.RulesJson[:0], dAtA[iNdEx:postIndex]...) + if m.RulesJson == nil { + m.RulesJson = []byte{} } iNdEx = postIndex - case 25: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Clique", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AccessList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9232,33 +6164,11 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Clique == nil { - m.Clique = &CliqueConfig{} - } - if err := m.Clique.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.AccessList = append(m.AccessList, &AccessTuple{}) + if err := m.AccessList[len(m.AccessList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 26: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsDevMode", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsDevMode = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -9280,7 +6190,7 @@ func (m *ChainConfig) Unmarshal(dAtA []byte) error { } return nil } -func (m *EthashConfig) Unmarshal(dAtA []byte) error { +func (m *StateDBPrepareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9303,10 +6213,10 @@ func (m *EthashConfig) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EthashConfig: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBPrepareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EthashConfig: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBPrepareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -9330,7 +6240,7 @@ func (m *EthashConfig) Unmarshal(dAtA []byte) error { } return nil } -func (m *CliqueConfig) Unmarshal(dAtA []byte) error { +func (m *StateDBGetRefundRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9353,36 +6263,17 @@ func (m *CliqueConfig) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CliqueConfig: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBGetRefundRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CliqueConfig: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBGetRefundRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Period", wireType) - } - m.Period = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Period |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - m.Epoch = 0 + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9392,7 +6283,7 @@ func (m *CliqueConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Epoch |= uint64(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9418,7 +6309,7 @@ func (m *CliqueConfig) Unmarshal(dAtA []byte) error { } return nil } -func (m *TxConfig) Unmarshal(dAtA []byte) error { +func (m *StateDBGetRefundResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9441,17 +6332,17 @@ func (m *TxConfig) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TxConfig: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBGetRefundResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TxConfig: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBGetRefundResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Refund", wireType) } - var byteLen int + m.Refund = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9461,84 +6352,66 @@ func (m *TxConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.Refund |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) - if m.BlockHash == nil { - m.BlockHash = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateDBGetLogsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) - if m.TxHash == nil { - m.TxHash = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) - } - m.TxIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TxIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 4: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StateDBGetLogsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateDBGetLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LogIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - m.LogIndex = 0 + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9548,7 +6421,7 @@ func (m *TxConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LogIndex |= uint64(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9574,7 +6447,7 @@ func (m *TxConfig) Unmarshal(dAtA []byte) error { } return nil } -func (m *EthLog) Unmarshal(dAtA []byte) error { +func (m *StateDBGetLogsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9597,15 +6470,15 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EthLog: wiretype end group for non-group") + return fmt.Errorf("proto: StateDBGetLogsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EthLog: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StateDBGetLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -9632,101 +6505,64 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) - if m.Address == nil { - m.Address = []byte{} - } + m.Logs = append(m.Logs, make([]byte, postIndex-iNdEx)) + copy(m.Logs[len(m.Logs)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Topics = append(m.Topics, make([]byte, postIndex-iNdEx)) - copy(m.Topics[len(m.Topics)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StopEVMRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 4: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StopEVMRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StopEVMRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) - } - m.BlockNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BlockNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) } - var byteLen int + m.HandlerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9736,118 +6572,61 @@ func (m *EthLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.HandlerId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthQuery + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.TxHash = append(m.TxHash[:0], dAtA[iNdEx:postIndex]...) - if m.TxHash == nil { - m.TxHash = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) - } - m.TxIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TxIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StopEVMResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) - if m.BlockHash == nil { - m.BlockHash = []byte{} - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Removed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - m.Removed = bool(v != 0) + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StopEVMResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StopEVMResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/evm/types/errors.go b/x/evm/types/errors.go index a93ebb19b0..6ac5405b0f 100644 --- a/x/evm/types/errors.go +++ b/x/evm/types/errors.go @@ -49,6 +49,7 @@ const ( codeErrGasOverflow codeErrInvalidAccount codeErrInvalidGasLimit + codeErrTeeConnDown ) var ErrPostTxProcessing = errors.New("failed to execute post processing") @@ -117,7 +118,7 @@ var ( // ErrInvalidGasLimit returns an error if gas limit value is invalid ErrInvalidGasLimit = errorsmod.Register(ModuleName, codeErrInvalidGasLimit, "invalid gas limit") - ErrRPCConnectionDown = errors.New("connection refused") + ErrTeeConnDown = errorsmod.Register(ModuleName, codeErrTeeConnDown, "tee connection down") ) // NewExecErrorWithReason unpacks the revert return bytes and returns a wrapped error diff --git a/x/evm/types/query.pb.go b/x/evm/types/query.pb.go index 381d06c0dd..7aba977bd8 100644 --- a/x/evm/types/query.pb.go +++ b/x/evm/types/query.pb.go @@ -1470,6 +1470,7 @@ func (m *QueryBaseFeeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryBaseFeeResponse proto.InternalMessageInfo type GetHashRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } @@ -1522,8 +1523,8 @@ func (m *GetHashRequest) GetHeight() uint64 { } type GetHashResponse struct { - // hash *common.Hash - Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + // Original type: hash *common.Hash + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } func (m *GetHashResponse) Reset() { *m = GetHashResponse{} } @@ -1559,19 +1560,20 @@ func (m *GetHashResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetHashResponse proto.InternalMessageInfo -func (m *GetHashResponse) GetHash() string { +func (m *GetHashResponse) GetHash() []byte { if m != nil { return m.Hash } - return "" + return nil } type AddBalanceRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Addr sdk.AccAddress - Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` - // Amount sdk.Coins - Amount []types1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` + // Original type: sdk.AccAddress + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Original type: sdk.Coins + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` } func (m *AddBalanceRequest) Reset() { *m = AddBalanceRequest{} } @@ -1614,14 +1616,14 @@ func (m *AddBalanceRequest) GetHandlerId() uint64 { return 0 } -func (m *AddBalanceRequest) GetAddr() string { +func (m *AddBalanceRequest) GetAddress() []byte { if m != nil { - return m.Addr + return m.Address } - return "" + return nil } -func (m *AddBalanceRequest) GetAmount() []types1.Coin { +func (m *AddBalanceRequest) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.Amount } @@ -1665,11 +1667,12 @@ func (m *AddBalanceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AddBalanceResponse proto.InternalMessageInfo type SubBalanceRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Addr sdk.AccAddress - Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` - // Amount sdk.Coins - Amount []types1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` + // Original type: sdk.AccAddress + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Original type: sdk.Coins + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` } func (m *SubBalanceRequest) Reset() { *m = SubBalanceRequest{} } @@ -1712,14 +1715,14 @@ func (m *SubBalanceRequest) GetHandlerId() uint64 { return 0 } -func (m *SubBalanceRequest) GetAddr() string { +func (m *SubBalanceRequest) GetAddress() []byte { if m != nil { - return m.Addr + return m.Address } - return "" + return nil } -func (m *SubBalanceRequest) GetAmount() []types1.Coin { +func (m *SubBalanceRequest) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.Amount } @@ -1762,19 +1765,126 @@ func (m *SubBalanceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_SubBalanceResponse proto.InternalMessageInfo +type SetBalanceRequest struct { + // handler_id is the unique identifier of the request. + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` + // Original type: common.Address + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Original type: *big.Int + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (m *SetBalanceRequest) Reset() { *m = SetBalanceRequest{} } +func (m *SetBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*SetBalanceRequest) ProtoMessage() {} +func (*SetBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{32} +} +func (m *SetBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetBalanceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SetBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetBalanceRequest.Merge(m, src) +} +func (m *SetBalanceRequest) XXX_Size() int { + return m.Size() +} +func (m *SetBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetBalanceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SetBalanceRequest proto.InternalMessageInfo + +func (m *SetBalanceRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +func (m *SetBalanceRequest) GetAddress() []byte { + if m != nil { + return m.Address + } + return nil +} + +func (m *SetBalanceRequest) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *SetBalanceRequest) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +type SetBalanceResponse struct { +} + +func (m *SetBalanceResponse) Reset() { *m = SetBalanceResponse{} } +func (m *SetBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*SetBalanceResponse) ProtoMessage() {} +func (*SetBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{33} +} +func (m *SetBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetBalanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SetBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetBalanceResponse.Merge(m, src) +} +func (m *SetBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *SetBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetBalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SetBalanceResponse proto.InternalMessageInfo + type GetBalanceRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Addr sdk.AccAddress - Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` - // Denom string - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` + // Original type: sdk.AccAddress + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` } func (m *GetBalanceRequest) Reset() { *m = GetBalanceRequest{} } func (m *GetBalanceRequest) String() string { return proto.CompactTextString(m) } func (*GetBalanceRequest) ProtoMessage() {} func (*GetBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{32} + return fileDescriptor_e15a877459347994, []int{34} } func (m *GetBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1810,11 +1920,11 @@ func (m *GetBalanceRequest) GetHandlerId() uint64 { return 0 } -func (m *GetBalanceRequest) GetAddr() string { +func (m *GetBalanceRequest) GetAddress() []byte { if m != nil { - return m.Addr + return m.Address } - return "" + return nil } func (m *GetBalanceRequest) GetDenom() string { @@ -1825,15 +1935,15 @@ func (m *GetBalanceRequest) GetDenom() string { } type GetBalanceResponse struct { - // Balance *big.Int - Balance cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=balance,proto3,customtype=cosmossdk.io/math.Int" json:"balance"` + // Original type: Balance *big.Int + Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` } func (m *GetBalanceResponse) Reset() { *m = GetBalanceResponse{} } func (m *GetBalanceResponse) String() string { return proto.CompactTextString(m) } func (*GetBalanceResponse) ProtoMessage() {} func (*GetBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{33} + return fileDescriptor_e15a877459347994, []int{35} } func (m *GetBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1862,17 +1972,25 @@ func (m *GetBalanceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetBalanceResponse proto.InternalMessageInfo +func (m *GetBalanceResponse) GetBalance() string { + if m != nil { + return m.Balance + } + return "" +} + type GetAccountRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Addr common.Address - Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` + // Original type: common.Address + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } func (m *GetAccountRequest) Reset() { *m = GetAccountRequest{} } func (m *GetAccountRequest) String() string { return proto.CompactTextString(m) } func (*GetAccountRequest) ProtoMessage() {} func (*GetAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{34} + return fileDescriptor_e15a877459347994, []int{36} } func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1908,24 +2026,23 @@ func (m *GetAccountRequest) GetHandlerId() uint64 { return 0 } -func (m *GetAccountRequest) GetAddr() string { +func (m *GetAccountRequest) GetAddress() []byte { if m != nil { - return m.Addr + return m.Address } - return "" + return nil } type GetAccountResponse struct { - // accutal type is *statedb.Account - // Account *statedb.Account - Account []byte `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // Original type: *statedb.Account + Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` } func (m *GetAccountResponse) Reset() { *m = GetAccountResponse{} } func (m *GetAccountResponse) String() string { return proto.CompactTextString(m) } func (*GetAccountResponse) ProtoMessage() {} func (*GetAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{35} + return fileDescriptor_e15a877459347994, []int{37} } func (m *GetAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1954,26 +2071,83 @@ func (m *GetAccountResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetAccountResponse proto.InternalMessageInfo -func (m *GetAccountResponse) GetAccount() []byte { +func (m *GetAccountResponse) GetAccount() *Account { if m != nil { return m.Account } return nil } +// Account is the Ethereum consensus representation of accounts. +// These objects are stored in the storage of auth module. +// +// Original type: statedb.Account +type Account struct { + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + CodeHash []byte `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` +} + +func (m *Account) Reset() { *m = Account{} } +func (m *Account) String() string { return proto.CompactTextString(m) } +func (*Account) ProtoMessage() {} +func (*Account) Descriptor() ([]byte, []int) { + return fileDescriptor_e15a877459347994, []int{38} +} +func (m *Account) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Account.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Account) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account.Merge(m, src) +} +func (m *Account) XXX_Size() int { + return m.Size() +} +func (m *Account) XXX_DiscardUnknown() { + xxx_messageInfo_Account.DiscardUnknown(m) +} + +var xxx_messageInfo_Account proto.InternalMessageInfo + +func (m *Account) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *Account) GetCodeHash() []byte { + if m != nil { + return m.CodeHash + } + return nil +} + type GetStateRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Addr common.Address - Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` - // Key common.Hash - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + // Original type: common.Address + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Original type: common.Hash + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` } func (m *GetStateRequest) Reset() { *m = GetStateRequest{} } func (m *GetStateRequest) String() string { return proto.CompactTextString(m) } func (*GetStateRequest) ProtoMessage() {} func (*GetStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{36} + return fileDescriptor_e15a877459347994, []int{39} } func (m *GetStateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2009,30 +2183,30 @@ func (m *GetStateRequest) GetHandlerId() uint64 { return 0 } -func (m *GetStateRequest) GetAddr() string { +func (m *GetStateRequest) GetAddress() []byte { if m != nil { - return m.Addr + return m.Address } - return "" + return nil } -func (m *GetStateRequest) GetKey() string { +func (m *GetStateRequest) GetKey() []byte { if m != nil { return m.Key } - return "" + return nil } type GetStateResponse struct { - // Hash common.Hash - Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + // Original type: common.Hash + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } func (m *GetStateResponse) Reset() { *m = GetStateResponse{} } func (m *GetStateResponse) String() string { return proto.CompactTextString(m) } func (*GetStateResponse) ProtoMessage() {} func (*GetStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{37} + return fileDescriptor_e15a877459347994, []int{40} } func (m *GetStateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2061,24 +2235,25 @@ func (m *GetStateResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetStateResponse proto.InternalMessageInfo -func (m *GetStateResponse) GetHash() string { +func (m *GetStateResponse) GetHash() []byte { if m != nil { return m.Hash } - return "" + return nil } type GetCodeRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // CodeHash common.Hash - CodeHash string `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` + // Original type: common.Hash + CodeHash []byte `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` } func (m *GetCodeRequest) Reset() { *m = GetCodeRequest{} } func (m *GetCodeRequest) String() string { return proto.CompactTextString(m) } func (*GetCodeRequest) ProtoMessage() {} func (*GetCodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{38} + return fileDescriptor_e15a877459347994, []int{41} } func (m *GetCodeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2114,11 +2289,11 @@ func (m *GetCodeRequest) GetHandlerId() uint64 { return 0 } -func (m *GetCodeRequest) GetCodeHash() string { +func (m *GetCodeRequest) GetCodeHash() []byte { if m != nil { return m.CodeHash } - return "" + return nil } type GetCodeResponse struct { @@ -2130,7 +2305,7 @@ func (m *GetCodeResponse) Reset() { *m = GetCodeResponse{} } func (m *GetCodeResponse) String() string { return proto.CompactTextString(m) } func (*GetCodeResponse) ProtoMessage() {} func (*GetCodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{39} + return fileDescriptor_e15a877459347994, []int{42} } func (m *GetCodeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2167,18 +2342,19 @@ func (m *GetCodeResponse) GetCode() []byte { } type SetAccountRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Addr common.Address - Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` - // Account statedb.Account - Account []byte `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` + // Original type: common.Address + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Original type: statedb.Account + Account *Account `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` } func (m *SetAccountRequest) Reset() { *m = SetAccountRequest{} } func (m *SetAccountRequest) String() string { return proto.CompactTextString(m) } func (*SetAccountRequest) ProtoMessage() {} func (*SetAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{40} + return fileDescriptor_e15a877459347994, []int{43} } func (m *SetAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2214,14 +2390,14 @@ func (m *SetAccountRequest) GetHandlerId() uint64 { return 0 } -func (m *SetAccountRequest) GetAddr() string { +func (m *SetAccountRequest) GetAddress() []byte { if m != nil { - return m.Addr + return m.Address } - return "" + return nil } -func (m *SetAccountRequest) GetAccount() []byte { +func (m *SetAccountRequest) GetAccount() *Account { if m != nil { return m.Account } @@ -2229,15 +2405,13 @@ func (m *SetAccountRequest) GetAccount() []byte { } type SetAccountResponse struct { - Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"` - CodeHash []byte `protobuf:"bytes,2,opt,name=CodeHash,proto3" json:"CodeHash,omitempty"` } func (m *SetAccountResponse) Reset() { *m = SetAccountResponse{} } func (m *SetAccountResponse) String() string { return proto.CompactTextString(m) } func (*SetAccountResponse) ProtoMessage() {} func (*SetAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{41} + return fileDescriptor_e15a877459347994, []int{44} } func (m *SetAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2266,27 +2440,14 @@ func (m *SetAccountResponse) XXX_DiscardUnknown() { var xxx_messageInfo_SetAccountResponse proto.InternalMessageInfo -func (m *SetAccountResponse) GetNonce() uint64 { - if m != nil { - return m.Nonce - } - return 0 -} - -func (m *SetAccountResponse) GetCodeHash() []byte { - if m != nil { - return m.CodeHash - } - return nil -} - type SetStateRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Addr common.Address - Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` - // Key common.Hash - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - // Value []byte + // Original type: common.Address + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Original type: common.Hash + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + // Original type: []byte Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` } @@ -2294,7 +2455,7 @@ func (m *SetStateRequest) Reset() { *m = SetStateRequest{} } func (m *SetStateRequest) String() string { return proto.CompactTextString(m) } func (*SetStateRequest) ProtoMessage() {} func (*SetStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{42} + return fileDescriptor_e15a877459347994, []int{45} } func (m *SetStateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2330,18 +2491,18 @@ func (m *SetStateRequest) GetHandlerId() uint64 { return 0 } -func (m *SetStateRequest) GetAddr() string { +func (m *SetStateRequest) GetAddress() []byte { if m != nil { - return m.Addr + return m.Address } - return "" + return nil } -func (m *SetStateRequest) GetKey() string { +func (m *SetStateRequest) GetKey() []byte { if m != nil { return m.Key } - return "" + return nil } func (m *SetStateRequest) GetValue() []byte { @@ -2358,7 +2519,7 @@ func (m *SetStateResponse) Reset() { *m = SetStateResponse{} } func (m *SetStateResponse) String() string { return proto.CompactTextString(m) } func (*SetStateResponse) ProtoMessage() {} func (*SetStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{43} + return fileDescriptor_e15a877459347994, []int{46} } func (m *SetStateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2388,10 +2549,11 @@ func (m *SetStateResponse) XXX_DiscardUnknown() { var xxx_messageInfo_SetStateResponse proto.InternalMessageInfo type SetCodeRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // CodeHash []byte + // Original type: []byte CodeHash []byte `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` - // Code []byte + // Original type: []byte Code []byte `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` } @@ -2399,7 +2561,7 @@ func (m *SetCodeRequest) Reset() { *m = SetCodeRequest{} } func (m *SetCodeRequest) String() string { return proto.CompactTextString(m) } func (*SetCodeRequest) ProtoMessage() {} func (*SetCodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{44} + return fileDescriptor_e15a877459347994, []int{47} } func (m *SetCodeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2456,7 +2618,7 @@ func (m *SetCodeResponse) Reset() { *m = SetCodeResponse{} } func (m *SetCodeResponse) String() string { return proto.CompactTextString(m) } func (*SetCodeResponse) ProtoMessage() {} func (*SetCodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{45} + return fileDescriptor_e15a877459347994, []int{48} } func (m *SetCodeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2486,16 +2648,17 @@ func (m *SetCodeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_SetCodeResponse proto.InternalMessageInfo type DeleteAccountRequest struct { + // handler_id is the unique identifier of the request. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` - // Addr common.Address - Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` + // Original type: common.Address + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } func (m *DeleteAccountRequest) Reset() { *m = DeleteAccountRequest{} } func (m *DeleteAccountRequest) String() string { return proto.CompactTextString(m) } func (*DeleteAccountRequest) ProtoMessage() {} func (*DeleteAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{46} + return fileDescriptor_e15a877459347994, []int{49} } func (m *DeleteAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2531,11 +2694,11 @@ func (m *DeleteAccountRequest) GetHandlerId() uint64 { return 0 } -func (m *DeleteAccountRequest) GetAddr() string { +func (m *DeleteAccountRequest) GetAddress() []byte { if m != nil { - return m.Addr + return m.Address } - return "" + return nil } type DeleteAccountResponse struct { @@ -2545,7 +2708,7 @@ func (m *DeleteAccountResponse) Reset() { *m = DeleteAccountResponse{} } func (m *DeleteAccountResponse) String() string { return proto.CompactTextString(m) } func (*DeleteAccountResponse) ProtoMessage() {} func (*DeleteAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e15a877459347994, []int{47} + return fileDescriptor_e15a877459347994, []int{50} } func (m *DeleteAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2607,10 +2770,13 @@ func init() { proto.RegisterType((*AddBalanceResponse)(nil), "ethermint.evm.v1.AddBalanceResponse") proto.RegisterType((*SubBalanceRequest)(nil), "ethermint.evm.v1.SubBalanceRequest") proto.RegisterType((*SubBalanceResponse)(nil), "ethermint.evm.v1.SubBalanceResponse") + proto.RegisterType((*SetBalanceRequest)(nil), "ethermint.evm.v1.SetBalanceRequest") + proto.RegisterType((*SetBalanceResponse)(nil), "ethermint.evm.v1.SetBalanceResponse") proto.RegisterType((*GetBalanceRequest)(nil), "ethermint.evm.v1.GetBalanceRequest") proto.RegisterType((*GetBalanceResponse)(nil), "ethermint.evm.v1.GetBalanceResponse") proto.RegisterType((*GetAccountRequest)(nil), "ethermint.evm.v1.GetAccountRequest") proto.RegisterType((*GetAccountResponse)(nil), "ethermint.evm.v1.GetAccountResponse") + proto.RegisterType((*Account)(nil), "ethermint.evm.v1.Account") proto.RegisterType((*GetStateRequest)(nil), "ethermint.evm.v1.GetStateRequest") proto.RegisterType((*GetStateResponse)(nil), "ethermint.evm.v1.GetStateResponse") proto.RegisterType((*GetCodeRequest)(nil), "ethermint.evm.v1.GetCodeRequest") @@ -2628,137 +2794,139 @@ func init() { func init() { proto.RegisterFile("ethermint/evm/v1/query.proto", fileDescriptor_e15a877459347994) } var fileDescriptor_e15a877459347994 = []byte{ - // 2078 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0xcf, 0x6f, 0x1b, 0xc7, - 0xf5, 0xd7, 0x9a, 0x94, 0x48, 0x3d, 0xc9, 0x36, 0x35, 0x96, 0x6c, 0x6a, 0xbf, 0x12, 0x29, 0xaf, - 0xf5, 0xcb, 0xb6, 0xb2, 0xfb, 0x95, 0x1a, 0x24, 0x68, 0x2e, 0x8d, 0xc9, 0xd8, 0xaa, 0x1b, 0x3b, - 0x70, 0x49, 0x21, 0x87, 0x36, 0x2d, 0x33, 0xe4, 0x8e, 0x97, 0x84, 0xb8, 0x3b, 0xcc, 0xee, 0x92, - 0xa5, 0x93, 0xb8, 0x05, 0x8a, 0x36, 0x4d, 0x11, 0xa0, 0x08, 0xd0, 0x7b, 0x91, 0xff, 0xa0, 0x7f, - 0x42, 0xaf, 0x39, 0x06, 0x28, 0x0a, 0x14, 0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, 0x63, 0xb5, 0x7d, 0xf9, 0xbc, 0x83, 0x95, 0xb6, 0x03, 0x17, - 0x47, 0x8c, 0xc6, 0x97, 0x9a, 0x2c, 0x66, 0xb4, 0x5f, 0xc0, 0xca, 0x2d, 0xd3, 0x9c, 0xa8, 0x1e, - 0x67, 0x88, 0x64, 0x61, 0xc6, 0x34, 0x5d, 0x51, 0xd6, 0xf1, 0xff, 0xe8, 0x75, 0x58, 0xc0, 0x36, - 0xab, 0x4b, 0x8b, 0x19, 0xee, 0xc4, 0xeb, 0x91, 0xda, 0x43, 0x56, 0x1d, 0x55, 0xda, 0x71, 0x64, - 0x29, 0x10, 0x90, 0xb3, 0x7a, 0x23, 0x0c, 0x20, 0x80, 0xca, 0x60, 0xd5, 0xfb, 0xcd, 0xff, 0x2e, - 0xac, 0x30, 0x00, 0x01, 0xeb, 0x3d, 0x58, 0x39, 0x26, 0xfe, 0x8b, 0xc3, 0x5a, 0x85, 0x79, 0x93, - 0x38, 0xd4, 0x16, 0x99, 0x3e, 0x58, 0x68, 0xf7, 0x01, 0x85, 0xb9, 0x0b, 0xab, 0xbd, 0x3e, 0x51, - 0x8e, 0x57, 0x36, 0x19, 0xd0, 0x54, 0x57, 0x0a, 0xaa, 0xf5, 0x3b, 0x1c, 0xec, 0x44, 0xab, 0xf3, - 0xfc, 0x60, 0x35, 0x9d, 0xc3, 0x4a, 0x68, 0x35, 0x45, 0x27, 0x22, 0x1e, 0x89, 0x5c, 0x6a, 0xef, - 0x72, 0xcf, 0xab, 0xfb, 0xd8, 0x7f, 0x11, 0x15, 0x89, 0xd6, 0x21, 0x33, 0x6a, 0x1d, 0xb4, 0x5d, - 0x28, 0x8c, 0xf9, 0xa6, 0xb8, 0xf4, 0x3d, 0xfe, 0x84, 0xc2, 0x8d, 0xc2, 0x0c, 0xf1, 0x69, 0xbd, - 0xb1, 0x78, 0x47, 0x33, 0xdb, 0x87, 0xf7, 0x61, 0xa5, 0xfe, 0x12, 0x94, 0x1d, 0x56, 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x1a, 0x49, 0x62, 0xe2, 0x2d, 0x43, 0x54, 0x8c, 0xc8, 0x7d, 0xe9, 0x62, 0x26, 0x12, 0xea, 0x76, - 0x3a, 0xd1, 0x48, 0x4c, 0x43, 0xf4, 0xbe, 0xb2, 0x2e, 0x97, 0x42, 0x92, 0xcd, 0x1a, 0xae, 0x39, - 0x55, 0x2d, 0x8d, 0x64, 0x24, 0x20, 0xe4, 0x58, 0x2c, 0x39, 0xa4, 0x3b, 0x56, 0x38, 0xc5, 0x5c, - 0x4d, 0xa1, 0x88, 0x99, 0xfc, 0x2c, 0x4a, 0xaa, 0x9f, 0x45, 0x49, 0xf5, 0x24, 0x25, 0xfd, 0x14, - 0x2e, 0x09, 0x29, 0xb3, 0x74, 0x54, 0x9f, 0xad, 0xa3, 0x7a, 0x5c, 0x47, 0x3f, 0x06, 0x24, 0xf8, - 0xcf, 0x50, 0x51, 0x7d, 0xa6, 0x8a, 0xea, 0x31, 0x15, 0xd9, 0x50, 0x64, 0xcc, 0x23, 0xf5, 0xae, - 0x14, 0x91, 0x10, 0x41, 0x92, 0x4a, 0xec, 0xa4, 0xc4, 0x97, 0x58, 0x3f, 0x6b, 0x73, 0x95, 0x37, - 0xbf, 0x7c, 0x5a, 0x52, 0xbe, 0x7a, 0x5a, 0x52, 0xbe, 0x7e, 0x5a, 0x52, 0x3e, 0x7f, 0x56, 0x9a, - 0xfb, 0xea, 0x59, 0x69, 0xee, 0xaf, 0xcf, 0x4a, 0x73, 0x3f, 0xda, 0x0d, 0x0d, 0x82, 0xc8, 0xc0, - 0xa6, 0x5e, 0x28, 0x1c, 0x0d, 0x79, 0x40, 0xe2, 0xc3, 0xa0, 0xe6, 0x02, 0x9f, 0x3b, 0x7d, 0xe7, - 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x5d, 0xc8, 0x46, 0xaa, 0x1e, 0x00, 0x00, + // 2104 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0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a, 0x03, 0x39, 0x62, 0x61, 0xf9, 0x12, 0x2c, 0x3f, 0x90, 0x40, 0xce, 0xd2, 0x20, 0xc8, 0x6e, + 0xc1, 0x1c, 0x8f, 0x78, 0x23, 0xa9, 0xe9, 0x2a, 0x9f, 0xbd, 0xcb, 0x27, 0x91, 0x0c, 0x65, 0x8f, + 0x82, 0x52, 0x7e, 0x57, 0x18, 0xbf, 0x70, 0x4c, 0x55, 0x60, 0xae, 0xb5, 0x61, 0xf7, 0xac, 0x26, + 0x71, 0x85, 0x05, 0x57, 0xc5, 0xec, 0x0f, 0xd8, 0xa4, 0xf2, 0x06, 0xac, 0x32, 0x1e, 0x3f, 0xc6, + 0x1d, 0x53, 0xc7, 0xbe, 0xe3, 0x0e, 0x19, 0x73, 0x03, 0x66, 0x5b, 0x8e, 0x3d, 0xcc, 0x63, 0x86, + 0xce, 0xdd, 0x4d, 0x59, 0xf5, 0x91, 0x04, 0x6b, 0x23, 0xb4, 0x09, 0xc3, 0x76, 0x60, 0x3e, 0x60, + 0x95, 0xd4, 0x18, 0x90, 0xbd, 0x44, 0xd3, 0x82, 0x24, 0x3a, 0xe4, 0x71, 0x7e, 0x96, 0xf0, 0xbc, + 0x20, 0x92, 0x28, 0x5c, 0x3a, 0x2e, 0x89, 0x94, 0x37, 0x04, 0x58, 0xdd, 0x77, 0x5c, 0x6c, 0x8c, + 0x07, 0x43, 0x0b, 0x50, 0x38, 0x23, 0xe7, 0x22, 0xdf, 0xe8, 0xdf, 0x18, 0xfc, 0x9e, 0x80, 0x0f, + 0x95, 0x09, 0xf8, 0x25, 0x98, 0xec, 0xe3, 0x4e, 0x2f, 0x00, 0xe7, 0x03, 0xe5, 0x65, 0x58, 0x10, + 0xa9, 0xa4, 0x3f, 0x93, 0x91, 0x3b, 0xb0, 0x18, 0x5b, 0x27, 0x20, 0x10, 0x14, 0x69, 0xee, 0xb3, + 0x55, 0xb3, 0x35, 0xf6, 0x5f, 0x79, 0x08, 0x88, 0x09, 0x9e,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+ 0x78, 0x68, 0xef, 0x9d, 0x91, 0xf3, 0x47, 0xe8, 0x21, 0x14, 0xe9, 0xae, 0x43, 0xca, 0xc8, 0x94, + 0x09, 0x37, 0xbd, 0x7c, 0x33, 0x57, 0x46, 0x70, 0xb8, 0xc5, 0x38, 0xdc, 0x44, 0x37, 0xb2, 0xb2, + 0x49, 0x4f, 0x78, 0xe2, 0xe7, 0x30, 0xc5, 0x9f, 0x69, 0xd0, 0xe6, 0x08, 0xcd, 0x89, 0xd7, 0x20, + 0x79, 0x6b, 0x8c, 0x94, 0x60, 0xb0, 0xc1, 0x18, 0xc8, 0xa8, 0xa2, 0x8d, 0x78, 0x82, 0x47, 0x03, + 0x28, 0x89, 0x67, 0x20, 0xb4, 0x91, 0xd6, 0x99, 0x7c, 0x21, 0x92, 0x77, 0xc6, 0xf5, 0x45, 0x01, + 0xae, 0xc2, 0x70, 0x57, 0x91, 0x9c, 0xc6, 0x25, 0x7e, 0xbb, 0xd1, 0xa2, 0x70, 0xbf, 0x80, 0x99, + 0xd8, 0x4b, 0xcd, 0x05, 0xd0, 0x33, 0x6c, 0xce, 0x78, 0xea, 0x51, 0xb6, 0x19, 0xf6, 0x06, 0x5a, + 0xcf, 0xc0, 0x16, 0xe2, 0x0d, 0x03, 0x7b, 0xe8, 0x7d, 0x28, 0x89, 0x5e, 0x7f, 0x64, 0xee, 0x25, + 0x5f, 0x7b, 0x46, 0xe6, 0xde, 0xd0, 0x93, 0x41, 0x9e, 0xf5, 0xbc, 0x61, 0xf4, 0x07, 0xe8, 0x43, + 0x09, 0x20, 0xea, 0x7a, 0xd0, 0x6e, 0x9e, 0xea, 0x78, 0xa3, 0x2a, 0xdf, 0xba, 0x80, 0xa4, 0xe0, + 0xb1, 0xc5, 0x78, 0x54, 0xd1, 0xda, 0x28, 0x1e, 0xac, 0x05, 0x44, 0xbf, 0x96, 0x60, 0x3a, 0xec, + 0x9f, 0xd1, 0x4e, 0x9e, 0xfe, 0x78, 0x38, 0x76, 0xc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 0x5b, + 0xea, 0x29, 0xb7, 0x98, 0xb0, 0x24, 0x14, 0x27, 0xee, 0xc9, 0x28, 0xa3, 0xe4, 0x64, 0xdd, 0xcc, + 0xb3, 0x4e, 0xca, 0xcc, 0x0b, 0xb7, 0x32, 0x71, 0xf8, 0xea, 0xa7, 0x4f, 0xd6, 0xa5, 0xcf, 0x9e, + 0xac, 0x4b, 0x5f, 0x3c, 0x59, 0x97, 0x3e, 0x7e, 0xba, 0x3e, 0xf1, 0xd9, 0xd3, 0xf5, 0x89, 0xbf, + 0x3f, 0x5d, 0x9f, 0x78, 0x7b, 0x3b, 0xf6, 0x9a, 0x41, 0xfa, 0x96, 0xe3, 0xc5, 0xea, 0xd7, 0x80, + 0x55, 0x30, 0xf6, 0xa2, 0xd1, 0x9c, 0x62, 0x0f, 0x7d, 0x2f, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, + 0x68, 0x7f, 0x6f, 0xa1, 0x1b, 0x20, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2802,19 +2970,18 @@ type QueryClient interface { // BaseFee queries the base fee of the parent block of the current block, // it's similar to feemarket module's method, but also checks london hardfork status. BaseFee(ctx context.Context, in *QueryBaseFeeRequest, opts ...grpc.CallOption) (*QueryBaseFeeResponse, error) - // ----------------------------------------- - // Query clients for evm keeper statedb access - QueryGetHashStateDB(ctx context.Context, in *GetHashRequest, opts ...grpc.CallOption) (*GetHashResponse, error) - PostAddBalanceStateDB(ctx context.Context, in *AddBalanceRequest, opts ...grpc.CallOption) (*AddBalanceResponse, error) - PostSubBalanceStateDB(ctx context.Context, in *SubBalanceRequest, opts ...grpc.CallOption) (*SubBalanceResponse, error) - QueryGetBalanceStateDB(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) - QueryGetAccountStateDB(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) - QueryGetStateStateDB(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) - QueryGetCodeStateDB(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error) - PostSetAccountStateDB(ctx context.Context, in *SetAccountRequest, opts ...grpc.CallOption) (*SetAccountResponse, error) - PostSetStateStateDB(ctx context.Context, in *SetStateRequest, opts ...grpc.CallOption) (*SetStateResponse, error) - PostSetCodeStateDB(ctx context.Context, in *SetCodeRequest, opts ...grpc.CallOption) (*SetCodeResponse, error) - PostDeleteAccountStateDB(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error) + StateDBGetHash(ctx context.Context, in *GetHashRequest, opts ...grpc.CallOption) (*GetHashResponse, error) + StateDBAddBalance(ctx context.Context, in *AddBalanceRequest, opts ...grpc.CallOption) (*AddBalanceResponse, error) + StateDBSubBalance(ctx context.Context, in *SubBalanceRequest, opts ...grpc.CallOption) (*SubBalanceResponse, error) + StateDBSetBalance(ctx context.Context, in *SetBalanceRequest, opts ...grpc.CallOption) (*SetBalanceResponse, error) + StateDBGetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) + StateDBGetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) + StateDBGetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) + StateDBGetCode(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error) + StateDBSetAccount(ctx context.Context, in *SetAccountRequest, opts ...grpc.CallOption) (*SetAccountResponse, error) + StateDBSetState(ctx context.Context, in *SetStateRequest, opts ...grpc.CallOption) (*SetStateResponse, error) + StateDBSetCode(ctx context.Context, in *SetCodeRequest, opts ...grpc.CallOption) (*SetCodeResponse, error) + StateDBDeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error) } type queryClient struct { @@ -2942,99 +3109,108 @@ func (c *queryClient) BaseFee(ctx context.Context, in *QueryBaseFeeRequest, opts return out, nil } -func (c *queryClient) QueryGetHashStateDB(ctx context.Context, in *GetHashRequest, opts ...grpc.CallOption) (*GetHashResponse, error) { +func (c *queryClient) StateDBGetHash(ctx context.Context, in *GetHashRequest, opts ...grpc.CallOption) (*GetHashResponse, error) { out := new(GetHashResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetHashStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBGetHash", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PostAddBalanceStateDB(ctx context.Context, in *AddBalanceRequest, opts ...grpc.CallOption) (*AddBalanceResponse, error) { +func (c *queryClient) StateDBAddBalance(ctx context.Context, in *AddBalanceRequest, opts ...grpc.CallOption) (*AddBalanceResponse, error) { out := new(AddBalanceResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostAddBalanceStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBAddBalance", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PostSubBalanceStateDB(ctx context.Context, in *SubBalanceRequest, opts ...grpc.CallOption) (*SubBalanceResponse, error) { +func (c *queryClient) StateDBSubBalance(ctx context.Context, in *SubBalanceRequest, opts ...grpc.CallOption) (*SubBalanceResponse, error) { out := new(SubBalanceResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostSubBalanceStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBSubBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) StateDBSetBalance(ctx context.Context, in *SetBalanceRequest, opts ...grpc.CallOption) (*SetBalanceResponse, error) { + out := new(SetBalanceResponse) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBSetBalance", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryGetBalanceStateDB(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) { +func (c *queryClient) StateDBGetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) { out := new(GetBalanceResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetBalanceStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBGetBalance", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryGetAccountStateDB(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { +func (c *queryClient) StateDBGetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { out := new(GetAccountResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetAccountStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBGetAccount", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryGetStateStateDB(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) { +func (c *queryClient) StateDBGetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) { out := new(GetStateResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetStateStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBGetState", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryGetCodeStateDB(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error) { +func (c *queryClient) StateDBGetCode(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error) { out := new(GetCodeResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/QueryGetCodeStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBGetCode", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PostSetAccountStateDB(ctx context.Context, in *SetAccountRequest, opts ...grpc.CallOption) (*SetAccountResponse, error) { +func (c *queryClient) StateDBSetAccount(ctx context.Context, in *SetAccountRequest, opts ...grpc.CallOption) (*SetAccountResponse, error) { out := new(SetAccountResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostSetAccountStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBSetAccount", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PostSetStateStateDB(ctx context.Context, in *SetStateRequest, opts ...grpc.CallOption) (*SetStateResponse, error) { +func (c *queryClient) StateDBSetState(ctx context.Context, in *SetStateRequest, opts ...grpc.CallOption) (*SetStateResponse, error) { out := new(SetStateResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostSetStateStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBSetState", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PostSetCodeStateDB(ctx context.Context, in *SetCodeRequest, opts ...grpc.CallOption) (*SetCodeResponse, error) { +func (c *queryClient) StateDBSetCode(ctx context.Context, in *SetCodeRequest, opts ...grpc.CallOption) (*SetCodeResponse, error) { out := new(SetCodeResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostSetCodeStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBSetCode", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PostDeleteAccountStateDB(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error) { +func (c *queryClient) StateDBDeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error) { out := new(DeleteAccountResponse) - err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/PostDeleteAccountStateDB", in, out, opts...) + err := c.cc.Invoke(ctx, "/ethermint.evm.v1.Query/StateDBDeleteAccount", in, out, opts...) if err != nil { return nil, err } @@ -3072,19 +3248,18 @@ type QueryServer interface { // BaseFee queries the base fee of the parent block of the current block, // it's similar to feemarket module's method, but also checks london hardfork status. BaseFee(context.Context, *QueryBaseFeeRequest) (*QueryBaseFeeResponse, error) - // ----------------------------------------- - // Query clients for evm keeper statedb access - QueryGetHashStateDB(context.Context, *GetHashRequest) (*GetHashResponse, error) - PostAddBalanceStateDB(context.Context, *AddBalanceRequest) (*AddBalanceResponse, error) - PostSubBalanceStateDB(context.Context, *SubBalanceRequest) (*SubBalanceResponse, error) - QueryGetBalanceStateDB(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) - QueryGetAccountStateDB(context.Context, *GetAccountRequest) (*GetAccountResponse, error) - QueryGetStateStateDB(context.Context, *GetStateRequest) (*GetStateResponse, error) - QueryGetCodeStateDB(context.Context, *GetCodeRequest) (*GetCodeResponse, error) - PostSetAccountStateDB(context.Context, *SetAccountRequest) (*SetAccountResponse, error) - PostSetStateStateDB(context.Context, *SetStateRequest) (*SetStateResponse, error) - PostSetCodeStateDB(context.Context, *SetCodeRequest) (*SetCodeResponse, error) - PostDeleteAccountStateDB(context.Context, *DeleteAccountRequest) (*DeleteAccountResponse, error) + StateDBGetHash(context.Context, *GetHashRequest) (*GetHashResponse, error) + StateDBAddBalance(context.Context, *AddBalanceRequest) (*AddBalanceResponse, error) + StateDBSubBalance(context.Context, *SubBalanceRequest) (*SubBalanceResponse, error) + StateDBSetBalance(context.Context, *SetBalanceRequest) (*SetBalanceResponse, error) + StateDBGetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) + StateDBGetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) + StateDBGetState(context.Context, *GetStateRequest) (*GetStateResponse, error) + StateDBGetCode(context.Context, *GetCodeRequest) (*GetCodeResponse, error) + StateDBSetAccount(context.Context, *SetAccountRequest) (*SetAccountResponse, error) + StateDBSetState(context.Context, *SetStateRequest) (*SetStateResponse, error) + StateDBSetCode(context.Context, *SetCodeRequest) (*SetCodeResponse, error) + StateDBDeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -3130,38 +3305,41 @@ func (*UnimplementedQueryServer) TraceCall(ctx context.Context, req *QueryTraceC func (*UnimplementedQueryServer) BaseFee(ctx context.Context, req *QueryBaseFeeRequest) (*QueryBaseFeeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method BaseFee not implemented") } -func (*UnimplementedQueryServer) QueryGetHashStateDB(ctx context.Context, req *GetHashRequest) (*GetHashResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryGetHashStateDB not implemented") +func (*UnimplementedQueryServer) StateDBGetHash(ctx context.Context, req *GetHashRequest) (*GetHashResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetHash not implemented") } -func (*UnimplementedQueryServer) PostAddBalanceStateDB(ctx context.Context, req *AddBalanceRequest) (*AddBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PostAddBalanceStateDB not implemented") +func (*UnimplementedQueryServer) StateDBAddBalance(ctx context.Context, req *AddBalanceRequest) (*AddBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBAddBalance not implemented") } -func (*UnimplementedQueryServer) PostSubBalanceStateDB(ctx context.Context, req *SubBalanceRequest) (*SubBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PostSubBalanceStateDB not implemented") +func (*UnimplementedQueryServer) StateDBSubBalance(ctx context.Context, req *SubBalanceRequest) (*SubBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSubBalance not implemented") } -func (*UnimplementedQueryServer) QueryGetBalanceStateDB(ctx context.Context, req *GetBalanceRequest) (*GetBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryGetBalanceStateDB not implemented") +func (*UnimplementedQueryServer) StateDBSetBalance(ctx context.Context, req *SetBalanceRequest) (*SetBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSetBalance not implemented") } -func (*UnimplementedQueryServer) QueryGetAccountStateDB(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryGetAccountStateDB not implemented") +func (*UnimplementedQueryServer) StateDBGetBalance(ctx context.Context, req *GetBalanceRequest) (*GetBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetBalance not implemented") } -func (*UnimplementedQueryServer) QueryGetStateStateDB(ctx context.Context, req *GetStateRequest) (*GetStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryGetStateStateDB not implemented") +func (*UnimplementedQueryServer) StateDBGetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetAccount not implemented") } -func (*UnimplementedQueryServer) QueryGetCodeStateDB(ctx context.Context, req *GetCodeRequest) (*GetCodeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryGetCodeStateDB not implemented") +func (*UnimplementedQueryServer) StateDBGetState(ctx context.Context, req *GetStateRequest) (*GetStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetState not implemented") } -func (*UnimplementedQueryServer) PostSetAccountStateDB(ctx context.Context, req *SetAccountRequest) (*SetAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PostSetAccountStateDB not implemented") +func (*UnimplementedQueryServer) StateDBGetCode(ctx context.Context, req *GetCodeRequest) (*GetCodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBGetCode not implemented") } -func (*UnimplementedQueryServer) PostSetStateStateDB(ctx context.Context, req *SetStateRequest) (*SetStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PostSetStateStateDB not implemented") +func (*UnimplementedQueryServer) StateDBSetAccount(ctx context.Context, req *SetAccountRequest) (*SetAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSetAccount not implemented") } -func (*UnimplementedQueryServer) PostSetCodeStateDB(ctx context.Context, req *SetCodeRequest) (*SetCodeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PostSetCodeStateDB not implemented") +func (*UnimplementedQueryServer) StateDBSetState(ctx context.Context, req *SetStateRequest) (*SetStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSetState not implemented") } -func (*UnimplementedQueryServer) PostDeleteAccountStateDB(ctx context.Context, req *DeleteAccountRequest) (*DeleteAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PostDeleteAccountStateDB not implemented") +func (*UnimplementedQueryServer) StateDBSetCode(ctx context.Context, req *SetCodeRequest) (*SetCodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBSetCode not implemented") +} +func (*UnimplementedQueryServer) StateDBDeleteAccount(ctx context.Context, req *DeleteAccountRequest) (*DeleteAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StateDBDeleteAccount not implemented") } func RegisterQueryServer(s grpc1.Server, srv QueryServer) { @@ -3402,200 +3580,218 @@ func _Query_BaseFee_Handler(srv interface{}, ctx context.Context, dec func(inter return interceptor(ctx, in, info, handler) } -func _Query_QueryGetHashStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBGetHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetHashRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryGetHashStateDB(ctx, in) + return srv.(QueryServer).StateDBGetHash(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/QueryGetHashStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBGetHash", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryGetHashStateDB(ctx, req.(*GetHashRequest)) + return srv.(QueryServer).StateDBGetHash(ctx, req.(*GetHashRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PostAddBalanceStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBAddBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddBalanceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PostAddBalanceStateDB(ctx, in) + return srv.(QueryServer).StateDBAddBalance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/PostAddBalanceStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBAddBalance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PostAddBalanceStateDB(ctx, req.(*AddBalanceRequest)) + return srv.(QueryServer).StateDBAddBalance(ctx, req.(*AddBalanceRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PostSubBalanceStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBSubBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SubBalanceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PostSubBalanceStateDB(ctx, in) + return srv.(QueryServer).StateDBSubBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.evm.v1.Query/StateDBSubBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).StateDBSubBalance(ctx, req.(*SubBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_StateDBSetBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).StateDBSetBalance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/PostSubBalanceStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBSetBalance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PostSubBalanceStateDB(ctx, req.(*SubBalanceRequest)) + return srv.(QueryServer).StateDBSetBalance(ctx, req.(*SetBalanceRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryGetBalanceStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBGetBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetBalanceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryGetBalanceStateDB(ctx, in) + return srv.(QueryServer).StateDBGetBalance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/QueryGetBalanceStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBGetBalance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryGetBalanceStateDB(ctx, req.(*GetBalanceRequest)) + return srv.(QueryServer).StateDBGetBalance(ctx, req.(*GetBalanceRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryGetAccountStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBGetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetAccountRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryGetAccountStateDB(ctx, in) + return srv.(QueryServer).StateDBGetAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/QueryGetAccountStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBGetAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryGetAccountStateDB(ctx, req.(*GetAccountRequest)) + return srv.(QueryServer).StateDBGetAccount(ctx, req.(*GetAccountRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryGetStateStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBGetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetStateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryGetStateStateDB(ctx, in) + return srv.(QueryServer).StateDBGetState(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/QueryGetStateStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBGetState", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryGetStateStateDB(ctx, req.(*GetStateRequest)) + return srv.(QueryServer).StateDBGetState(ctx, req.(*GetStateRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryGetCodeStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBGetCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetCodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryGetCodeStateDB(ctx, in) + return srv.(QueryServer).StateDBGetCode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/QueryGetCodeStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBGetCode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryGetCodeStateDB(ctx, req.(*GetCodeRequest)) + return srv.(QueryServer).StateDBGetCode(ctx, req.(*GetCodeRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PostSetAccountStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBSetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetAccountRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PostSetAccountStateDB(ctx, in) + return srv.(QueryServer).StateDBSetAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/PostSetAccountStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBSetAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PostSetAccountStateDB(ctx, req.(*SetAccountRequest)) + return srv.(QueryServer).StateDBSetAccount(ctx, req.(*SetAccountRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PostSetStateStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBSetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetStateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PostSetStateStateDB(ctx, in) + return srv.(QueryServer).StateDBSetState(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/PostSetStateStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBSetState", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PostSetStateStateDB(ctx, req.(*SetStateRequest)) + return srv.(QueryServer).StateDBSetState(ctx, req.(*SetStateRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PostSetCodeStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBSetCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetCodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PostSetCodeStateDB(ctx, in) + return srv.(QueryServer).StateDBSetCode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/PostSetCodeStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBSetCode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PostSetCodeStateDB(ctx, req.(*SetCodeRequest)) + return srv.(QueryServer).StateDBSetCode(ctx, req.(*SetCodeRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PostDeleteAccountStateDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Query_StateDBDeleteAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteAccountRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PostDeleteAccountStateDB(ctx, in) + return srv.(QueryServer).StateDBDeleteAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ethermint.evm.v1.Query/PostDeleteAccountStateDB", + FullMethod: "/ethermint.evm.v1.Query/StateDBDeleteAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PostDeleteAccountStateDB(ctx, req.(*DeleteAccountRequest)) + return srv.(QueryServer).StateDBDeleteAccount(ctx, req.(*DeleteAccountRequest)) } return interceptor(ctx, in, info, handler) } @@ -3657,48 +3853,52 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_BaseFee_Handler, }, { - MethodName: "QueryGetHashStateDB", - Handler: _Query_QueryGetHashStateDB_Handler, + MethodName: "StateDBGetHash", + Handler: _Query_StateDBGetHash_Handler, + }, + { + MethodName: "StateDBAddBalance", + Handler: _Query_StateDBAddBalance_Handler, }, { - MethodName: "PostAddBalanceStateDB", - Handler: _Query_PostAddBalanceStateDB_Handler, + MethodName: "StateDBSubBalance", + Handler: _Query_StateDBSubBalance_Handler, }, { - MethodName: "PostSubBalanceStateDB", - Handler: _Query_PostSubBalanceStateDB_Handler, + MethodName: "StateDBSetBalance", + Handler: _Query_StateDBSetBalance_Handler, }, { - MethodName: "QueryGetBalanceStateDB", - Handler: _Query_QueryGetBalanceStateDB_Handler, + MethodName: "StateDBGetBalance", + Handler: _Query_StateDBGetBalance_Handler, }, { - MethodName: "QueryGetAccountStateDB", - Handler: _Query_QueryGetAccountStateDB_Handler, + MethodName: "StateDBGetAccount", + Handler: _Query_StateDBGetAccount_Handler, }, { - MethodName: "QueryGetStateStateDB", - Handler: _Query_QueryGetStateStateDB_Handler, + MethodName: "StateDBGetState", + Handler: _Query_StateDBGetState_Handler, }, { - MethodName: "QueryGetCodeStateDB", - Handler: _Query_QueryGetCodeStateDB_Handler, + MethodName: "StateDBGetCode", + Handler: _Query_StateDBGetCode_Handler, }, { - MethodName: "PostSetAccountStateDB", - Handler: _Query_PostSetAccountStateDB_Handler, + MethodName: "StateDBSetAccount", + Handler: _Query_StateDBSetAccount_Handler, }, { - MethodName: "PostSetStateStateDB", - Handler: _Query_PostSetStateStateDB_Handler, + MethodName: "StateDBSetState", + Handler: _Query_StateDBSetState_Handler, }, { - MethodName: "PostSetCodeStateDB", - Handler: _Query_PostSetCodeStateDB_Handler, + MethodName: "StateDBSetCode", + Handler: _Query_StateDBSetCode_Handler, }, { - MethodName: "PostDeleteAccountStateDB", - Handler: _Query_PostDeleteAccountStateDB_Handler, + MethodName: "StateDBDeleteAccount", + Handler: _Query_StateDBDeleteAccount_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -4845,10 +5045,10 @@ func (m *AddBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x1a } } - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0x12 } @@ -4917,10 +5117,10 @@ func (m *SubBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x1a } } - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0x12 } @@ -4955,7 +5155,7 @@ func (m *SubBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetBalanceRequest) Marshal() (dAtA []byte, err error) { +func (m *SetBalanceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4965,12 +5165,12 @@ func (m *GetBalanceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetBalanceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *SetBalanceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SetBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4980,12 +5180,19 @@ func (m *GetBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Denom) i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) i-- + dAtA[i] = 0x22 + } + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) + i-- dAtA[i] = 0x1a } - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0x12 } @@ -4997,7 +5204,7 @@ func (m *GetBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetBalanceResponse) Marshal() (dAtA []byte, err error) { +func (m *SetBalanceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5007,30 +5214,20 @@ func (m *GetBalanceResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetBalanceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *SetBalanceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SetBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size := m.Balance.Size() - i -= size - if _, err := m.Balance.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *GetAccountRequest) Marshal() (dAtA []byte, err error) { +func (m *GetBalanceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5040,20 +5237,27 @@ func (m *GetAccountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetBalanceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0x12 } @@ -5065,7 +5269,7 @@ func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *GetBalanceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5075,26 +5279,131 @@ func (m *GetAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetBalanceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Balance) > 0 { + i -= len(m.Balance) + copy(dAtA[i:], m.Balance) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Balance))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Account) > 0 { - i -= len(m.Account) - copy(dAtA[i:], m.Account) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } +func (m *Account) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Account) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CodeHash) > 0 { + i -= len(m.CodeHash) + copy(dAtA[i:], m.CodeHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash))) + i-- + dAtA[i] = 0x12 + } + if m.Nonce != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *GetStateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5122,10 +5431,10 @@ func (m *GetStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0x12 } @@ -5252,17 +5561,22 @@ func (m *SetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Account) > 0 { - i -= len(m.Account) - copy(dAtA[i:], m.Account) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x1a } - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0x12 } @@ -5294,18 +5608,6 @@ func (m *SetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.CodeHash) > 0 { - i -= len(m.CodeHash) - copy(dAtA[i:], m.CodeHash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash))) - i-- - dAtA[i] = 0x12 - } - if m.Nonce != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } @@ -5343,10 +5645,10 @@ func (m *SetStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0x12 } @@ -5466,10 +5768,10 @@ func (m *DeleteAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0x12 } @@ -6005,7 +6307,7 @@ func (m *AddBalanceRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - l = len(m.Addr) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -6036,7 +6338,7 @@ func (m *SubBalanceRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - l = len(m.Addr) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -6058,6 +6360,39 @@ func (m *SubBalanceResponse) Size() (n int) { return n } +func (m *SetBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *SetBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func (m *GetBalanceRequest) Size() (n int) { if m == nil { return 0 @@ -6067,7 +6402,7 @@ func (m *GetBalanceRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - l = len(m.Addr) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -6084,8 +6419,10 @@ func (m *GetBalanceResponse) Size() (n int) { } var l int _ = l - l = m.Balance.Size() - n += 1 + l + sovQuery(uint64(l)) + l = len(m.Balance) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -6098,7 +6435,7 @@ func (m *GetAccountRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - l = len(m.Addr) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -6111,7 +6448,23 @@ func (m *GetAccountResponse) Size() (n int) { } var l int _ = l - l = len(m.Account) + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *Account) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Nonce != 0 { + n += 1 + sovQuery(uint64(m.Nonce)) + } + l = len(m.CodeHash) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -6127,7 +6480,7 @@ func (m *GetStateRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - l = len(m.Addr) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -6189,12 +6542,12 @@ func (m *SetAccountRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - l = len(m.Addr) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.Account) - if l > 0 { + if m.Account != nil { + l = m.Account.Size() n += 1 + l + sovQuery(uint64(l)) } return n @@ -6206,13 +6559,6 @@ func (m *SetAccountResponse) Size() (n int) { } var l int _ = l - if m.Nonce != 0 { - n += 1 + sovQuery(uint64(m.Nonce)) - } - l = len(m.CodeHash) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } return n } @@ -6225,7 +6571,7 @@ func (m *SetStateRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - l = len(m.Addr) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -6287,7 +6633,7 @@ func (m *DeleteAccountRequest) Size() (n int) { if m.HandlerId != 0 { n += 1 + sovQuery(uint64(m.HandlerId)) } - l = len(m.Addr) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -9485,7 +9831,7 @@ func (m *GetHashResponse) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9495,23 +9841,25 @@ func (m *GetHashResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Hash = string(dAtA[iNdEx:postIndex]) + m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) + if m.Hash == nil { + m.Hash = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -9584,9 +9932,9 @@ func (m *AddBalanceRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9596,23 +9944,25 @@ func (m *AddBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(dAtA[iNdEx:postIndex]) + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } iNdEx = postIndex case 3: if wireType != 2 { @@ -9769,9 +10119,9 @@ func (m *SubBalanceRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9781,23 +10131,25 @@ func (m *SubBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(dAtA[iNdEx:postIndex]) + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } iNdEx = postIndex case 3: if wireType != 2 { @@ -9904,7 +10256,7 @@ func (m *SubBalanceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetBalanceRequest) Unmarshal(dAtA []byte) error { +func (m *SetBalanceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9927,10 +10279,10 @@ func (m *GetBalanceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetBalanceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetBalanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9954,9 +10306,9 @@ func (m *GetBalanceRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9966,27 +10318,29 @@ func (m *GetBalanceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(dAtA[iNdEx:postIndex]) + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10014,9 +10368,226 @@ func (m *GetBalanceRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Denom = string(dAtA[iNdEx:postIndex]) + m.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetBalanceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetBalanceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { @@ -10096,9 +10667,7 @@ func (m *GetBalanceResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Balance = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -10171,9 +10740,9 @@ func (m *GetAccountRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -10183,23 +10752,25 @@ func (m *GetAccountRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(dAtA[iNdEx:postIndex]) + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -10255,6 +10826,111 @@ func (m *GetAccountResponse) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Account == nil { + m.Account = &Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Account) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Account: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) + } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { @@ -10280,9 +10956,9 @@ func (m *GetAccountResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Account = append(m.Account[:0], dAtA[iNdEx:postIndex]...) - if m.Account == nil { - m.Account = []byte{} + m.CodeHash = append(m.CodeHash[:0], dAtA[iNdEx:postIndex]...) + if m.CodeHash == nil { + m.CodeHash = []byte{} } iNdEx = postIndex default: @@ -10356,9 +11032,9 @@ func (m *GetStateRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -10368,29 +11044,31 @@ func (m *GetStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(dAtA[iNdEx:postIndex]) + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -10400,23 +11078,25 @@ func (m *GetStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = string(dAtA[iNdEx:postIndex]) + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -10472,7 +11152,7 @@ func (m *GetStateResponse) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -10482,23 +11162,25 @@ func (m *GetStateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Hash = string(dAtA[iNdEx:postIndex]) + m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) + if m.Hash == nil { + m.Hash = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -10573,7 +11255,7 @@ func (m *GetCodeRequest) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -10583,23 +11265,25 @@ func (m *GetCodeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.CodeHash = string(dAtA[iNdEx:postIndex]) + m.CodeHash = append(m.CodeHash[:0], dAtA[iNdEx:postIndex]...) + if m.CodeHash == nil { + m.CodeHash = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -10756,9 +11440,9 @@ func (m *SetAccountRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -10768,29 +11452,31 @@ func (m *SetAccountRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(dAtA[iNdEx:postIndex]) + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -10800,24 +11486,26 @@ func (m *SetAccountRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Account = append(m.Account[:0], dAtA[iNdEx:postIndex]...) if m.Account == nil { - m.Account = []byte{} + m.Account = &Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -10870,59 +11558,6 @@ func (m *SetAccountResponse) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: SetAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - m.Nonce = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Nonce |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CodeHash = append(m.CodeHash[:0], dAtA[iNdEx:postIndex]...) - if m.CodeHash == nil { - m.CodeHash = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -10994,9 +11629,9 @@ func (m *SetStateRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -11006,29 +11641,31 @@ func (m *SetStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(dAtA[iNdEx:postIndex]) + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -11038,23 +11675,25 @@ func (m *SetStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = string(dAtA[iNdEx:postIndex]) + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } iNdEx = postIndex case 4: if wireType != 2 { @@ -11398,9 +12037,9 @@ func (m *DeleteAccountRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -11410,23 +12049,25 @@ func (m *DeleteAccountRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(dAtA[iNdEx:postIndex]) + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex From 2b55e16fa1cab0b63245a5a2e36e42c98b69146c Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:55:11 +0200 Subject: [PATCH 44/46] InitFhevm --- proto/ethermint/sgx/v1/query.proto | 8 + x/evm/keeper/state_transition.go | 21 +- x/evm/sgx/query.pb.go | 517 +++++++++++++++++++++++------ 3 files changed, 442 insertions(+), 104 deletions(-) diff --git a/proto/ethermint/sgx/v1/query.proto b/proto/ethermint/sgx/v1/query.proto index 8d2ea2e22f..609db226fa 100644 --- a/proto/ethermint/sgx/v1/query.proto +++ b/proto/ethermint/sgx/v1/query.proto @@ -9,6 +9,7 @@ option go_package = "github.com/evmos/ethermint/x/evm/sgx"; // QueryService defines the gRPC querier service. service QueryService { rpc StartEVM(StartEVMRequest) returns (StartEVMResponse) {} + rpc InitFhevm(InitFhevmRequest) returns (InitFhevmResponse) {} rpc Create(CreateRequest) returns (CreateResponse) {} rpc Call(CallRequest) returns (CallResponse) {} rpc Commit(CommitRequest) returns (CommitResponse) {} @@ -90,6 +91,13 @@ message StartEVMResponse { uint64 handler_id = 1; } +message InitFhevmRequest { + // handler_id is the unique request ID that is given by the SGX binary. + uint64 handler_id = 1; +} + +message InitFhevmResponse {} + message CreateRequest { // handler_id is the unique request ID that is given by the SGX binary. uint64 handler_id = 1; diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 0e9cfacf88..9e24e56f76 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -640,7 +640,6 @@ func (k *Keeper) ApplyMessageWithConfig( // startEVM notifies the TEE enclave to create a new EVM. It returns the // unique handler id for the EVM. func (k *Keeper) startEVM(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgxGrpcClient sgx.QueryServiceClient) (uint64, error) { - // Step 1. Send a "StartEVM" request to the SGX enclave. chainConfigJSON, err := json.Marshal(cfg.ChainConfig) if err != nil { return 0, err @@ -696,10 +695,28 @@ func (k *Keeper) startEVM(ctx sdk.Context, msg core.Message, cfg *EVMConfig, sgx return 0, err } - // Snapshot the sdk ctx with this handlerId k.sdkCtxs[resp.HandlerId] = &ctx + // We unfortunately can't call InitFhevm on the EVM instance during the + // StartEVM method (inside newEVM), because InitFhevm needs access to the + // stateDB (via a gRPC calls), but the stateDB (i.e. its associated + // sdk.Context) is not yet initialized at that point. + // + // To solve this, we separate the fhEVM initialization in two phases: + // 1. StartEVM: Initialize the EVM instance and store it in the evms map + // (doesn't need access to stateDB). + // 2. InitFhevm: Initialize the fhEVM instance (needs access to stateDB). + // ref: https://github.com/Inco-fhevm/zbc-go-ethereum/pull/2 + // + // We are doing step 2 here. + _, err = sgxGrpcClient.InitFhevm(ctx, &sgx.InitFhevmRequest{ + HandlerId: resp.HandlerId, + }) + if err != nil { + return 0, err + } + return resp.HandlerId, err } diff --git a/x/evm/sgx/query.pb.go b/x/evm/sgx/query.pb.go index 4a7fead886..d1a8d1cf02 100644 --- a/x/evm/sgx/query.pb.go +++ b/x/evm/sgx/query.pb.go @@ -347,6 +347,87 @@ func (m *StartEVMResponse) GetHandlerId() uint64 { return 0 } +type InitFhevmRequest struct { + // handler_id is the unique request ID that is given by the SGX binary. + HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` +} + +func (m *InitFhevmRequest) Reset() { *m = InitFhevmRequest{} } +func (m *InitFhevmRequest) String() string { return proto.CompactTextString(m) } +func (*InitFhevmRequest) ProtoMessage() {} +func (*InitFhevmRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{4} +} +func (m *InitFhevmRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InitFhevmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InitFhevmRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InitFhevmRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InitFhevmRequest.Merge(m, src) +} +func (m *InitFhevmRequest) XXX_Size() int { + return m.Size() +} +func (m *InitFhevmRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InitFhevmRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_InitFhevmRequest proto.InternalMessageInfo + +func (m *InitFhevmRequest) GetHandlerId() uint64 { + if m != nil { + return m.HandlerId + } + return 0 +} + +type InitFhevmResponse struct { +} + +func (m *InitFhevmResponse) Reset() { *m = InitFhevmResponse{} } +func (m *InitFhevmResponse) String() string { return proto.CompactTextString(m) } +func (*InitFhevmResponse) ProtoMessage() {} +func (*InitFhevmResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d9fb6e76534f03e, []int{5} +} +func (m *InitFhevmResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InitFhevmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InitFhevmResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InitFhevmResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InitFhevmResponse.Merge(m, src) +} +func (m *InitFhevmResponse) XXX_Size() int { + return m.Size() +} +func (m *InitFhevmResponse) XXX_DiscardUnknown() { + xxx_messageInfo_InitFhevmResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_InitFhevmResponse proto.InternalMessageInfo + type CreateRequest struct { // handler_id is the unique request ID that is given by the SGX binary. HandlerId uint64 `protobuf:"varint,1,opt,name=handler_id,json=handlerId,proto3" json:"handler_id,omitempty"` @@ -363,7 +444,7 @@ func (m *CreateRequest) Reset() { *m = CreateRequest{} } func (m *CreateRequest) String() string { return proto.CompactTextString(m) } func (*CreateRequest) ProtoMessage() {} func (*CreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{4} + return fileDescriptor_1d9fb6e76534f03e, []int{6} } func (m *CreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -439,7 +520,7 @@ func (m *CreateResponse) Reset() { *m = CreateResponse{} } func (m *CreateResponse) String() string { return proto.CompactTextString(m) } func (*CreateResponse) ProtoMessage() {} func (*CreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{5} + return fileDescriptor_1d9fb6e76534f03e, []int{7} } func (m *CreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -507,7 +588,7 @@ func (m *CallRequest) Reset() { *m = CallRequest{} } func (m *CallRequest) String() string { return proto.CompactTextString(m) } func (*CallRequest) ProtoMessage() {} func (*CallRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{6} + return fileDescriptor_1d9fb6e76534f03e, []int{8} } func (m *CallRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -588,7 +669,7 @@ func (m *CallResponse) Reset() { *m = CallResponse{} } func (m *CallResponse) String() string { return proto.CompactTextString(m) } func (*CallResponse) ProtoMessage() {} func (*CallResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{7} + return fileDescriptor_1d9fb6e76534f03e, []int{9} } func (m *CallResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -640,7 +721,7 @@ func (m *CommitRequest) Reset() { *m = CommitRequest{} } func (m *CommitRequest) String() string { return proto.CompactTextString(m) } func (*CommitRequest) ProtoMessage() {} func (*CommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{8} + return fileDescriptor_1d9fb6e76534f03e, []int{10} } func (m *CommitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -683,7 +764,7 @@ func (m *CommitResponse) Reset() { *m = CommitResponse{} } func (m *CommitResponse) String() string { return proto.CompactTextString(m) } func (*CommitResponse) ProtoMessage() {} func (*CommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{9} + return fileDescriptor_1d9fb6e76534f03e, []int{11} } func (m *CommitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -725,7 +806,7 @@ func (m *StateDBAddBalanceRequest) Reset() { *m = StateDBAddBalanceReque func (m *StateDBAddBalanceRequest) String() string { return proto.CompactTextString(m) } func (*StateDBAddBalanceRequest) ProtoMessage() {} func (*StateDBAddBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{10} + return fileDescriptor_1d9fb6e76534f03e, []int{12} } func (m *StateDBAddBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -782,7 +863,7 @@ func (m *StateDBAddBalanceResponse) Reset() { *m = StateDBAddBalanceResp func (m *StateDBAddBalanceResponse) String() string { return proto.CompactTextString(m) } func (*StateDBAddBalanceResponse) ProtoMessage() {} func (*StateDBAddBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{11} + return fileDescriptor_1d9fb6e76534f03e, []int{13} } func (m *StateDBAddBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -824,7 +905,7 @@ func (m *StateDBSubBalanceRequest) Reset() { *m = StateDBSubBalanceReque func (m *StateDBSubBalanceRequest) String() string { return proto.CompactTextString(m) } func (*StateDBSubBalanceRequest) ProtoMessage() {} func (*StateDBSubBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{12} + return fileDescriptor_1d9fb6e76534f03e, []int{14} } func (m *StateDBSubBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -881,7 +962,7 @@ func (m *StateDBSubBalanceResponse) Reset() { *m = StateDBSubBalanceResp func (m *StateDBSubBalanceResponse) String() string { return proto.CompactTextString(m) } func (*StateDBSubBalanceResponse) ProtoMessage() {} func (*StateDBSubBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{13} + return fileDescriptor_1d9fb6e76534f03e, []int{15} } func (m *StateDBSubBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -922,7 +1003,7 @@ func (m *StateDBSetNonceRequest) Reset() { *m = StateDBSetNonceRequest{} func (m *StateDBSetNonceRequest) String() string { return proto.CompactTextString(m) } func (*StateDBSetNonceRequest) ProtoMessage() {} func (*StateDBSetNonceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{14} + return fileDescriptor_1d9fb6e76534f03e, []int{16} } func (m *StateDBSetNonceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -979,7 +1060,7 @@ func (m *StateDBSetNonceResponse) Reset() { *m = StateDBSetNonceResponse func (m *StateDBSetNonceResponse) String() string { return proto.CompactTextString(m) } func (*StateDBSetNonceResponse) ProtoMessage() {} func (*StateDBSetNonceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{15} + return fileDescriptor_1d9fb6e76534f03e, []int{17} } func (m *StateDBSetNonceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1019,7 +1100,7 @@ func (m *StateDBIncreaseNonceRequest) Reset() { *m = StateDBIncreaseNonc func (m *StateDBIncreaseNonceRequest) String() string { return proto.CompactTextString(m) } func (*StateDBIncreaseNonceRequest) ProtoMessage() {} func (*StateDBIncreaseNonceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{16} + return fileDescriptor_1d9fb6e76534f03e, []int{18} } func (m *StateDBIncreaseNonceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1069,7 +1150,7 @@ func (m *StateDBIncreaseNonceResponse) Reset() { *m = StateDBIncreaseNon func (m *StateDBIncreaseNonceResponse) String() string { return proto.CompactTextString(m) } func (*StateDBIncreaseNonceResponse) ProtoMessage() {} func (*StateDBIncreaseNonceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{17} + return fileDescriptor_1d9fb6e76534f03e, []int{19} } func (m *StateDBIncreaseNonceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1113,7 +1194,7 @@ func (m *AccessTuple) Reset() { *m = AccessTuple{} } func (m *AccessTuple) String() string { return proto.CompactTextString(m) } func (*AccessTuple) ProtoMessage() {} func (*AccessTuple) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{18} + return fileDescriptor_1d9fb6e76534f03e, []int{20} } func (m *AccessTuple) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1183,7 +1264,7 @@ func (m *StateDBPrepareRequest) Reset() { *m = StateDBPrepareRequest{} } func (m *StateDBPrepareRequest) String() string { return proto.CompactTextString(m) } func (*StateDBPrepareRequest) ProtoMessage() {} func (*StateDBPrepareRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{19} + return fileDescriptor_1d9fb6e76534f03e, []int{21} } func (m *StateDBPrepareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1261,7 +1342,7 @@ func (m *StateDBPrepareResponse) Reset() { *m = StateDBPrepareResponse{} func (m *StateDBPrepareResponse) String() string { return proto.CompactTextString(m) } func (*StateDBPrepareResponse) ProtoMessage() {} func (*StateDBPrepareResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{20} + return fileDescriptor_1d9fb6e76534f03e, []int{22} } func (m *StateDBPrepareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1299,7 +1380,7 @@ func (m *StateDBGetRefundRequest) Reset() { *m = StateDBGetRefundRequest func (m *StateDBGetRefundRequest) String() string { return proto.CompactTextString(m) } func (*StateDBGetRefundRequest) ProtoMessage() {} func (*StateDBGetRefundRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{21} + return fileDescriptor_1d9fb6e76534f03e, []int{23} } func (m *StateDBGetRefundRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1343,7 +1424,7 @@ func (m *StateDBGetRefundResponse) Reset() { *m = StateDBGetRefundRespon func (m *StateDBGetRefundResponse) String() string { return proto.CompactTextString(m) } func (*StateDBGetRefundResponse) ProtoMessage() {} func (*StateDBGetRefundResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{22} + return fileDescriptor_1d9fb6e76534f03e, []int{24} } func (m *StateDBGetRefundResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1388,7 +1469,7 @@ func (m *StateDBGetLogsRequest) Reset() { *m = StateDBGetLogsRequest{} } func (m *StateDBGetLogsRequest) String() string { return proto.CompactTextString(m) } func (*StateDBGetLogsRequest) ProtoMessage() {} func (*StateDBGetLogsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{23} + return fileDescriptor_1d9fb6e76534f03e, []int{25} } func (m *StateDBGetLogsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1437,7 +1518,7 @@ func (m *StateDBGetLogsResponse) Reset() { *m = StateDBGetLogsResponse{} func (m *StateDBGetLogsResponse) String() string { return proto.CompactTextString(m) } func (*StateDBGetLogsResponse) ProtoMessage() {} func (*StateDBGetLogsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{24} + return fileDescriptor_1d9fb6e76534f03e, []int{26} } func (m *StateDBGetLogsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1482,7 +1563,7 @@ func (m *StopEVMRequest) Reset() { *m = StopEVMRequest{} } func (m *StopEVMRequest) String() string { return proto.CompactTextString(m) } func (*StopEVMRequest) ProtoMessage() {} func (*StopEVMRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{25} + return fileDescriptor_1d9fb6e76534f03e, []int{27} } func (m *StopEVMRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1525,7 +1606,7 @@ func (m *StopEVMResponse) Reset() { *m = StopEVMResponse{} } func (m *StopEVMResponse) String() string { return proto.CompactTextString(m) } func (*StopEVMResponse) ProtoMessage() {} func (*StopEVMResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9fb6e76534f03e, []int{26} + return fileDescriptor_1d9fb6e76534f03e, []int{28} } func (m *StopEVMResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1559,6 +1640,8 @@ func init() { proto.RegisterType((*StartEVMConfig)(nil), "ethermint.sgx.v1.StartEVMConfig") proto.RegisterType((*TxConfig)(nil), "ethermint.sgx.v1.TxConfig") proto.RegisterType((*StartEVMResponse)(nil), "ethermint.sgx.v1.StartEVMResponse") + proto.RegisterType((*InitFhevmRequest)(nil), "ethermint.sgx.v1.InitFhevmRequest") + proto.RegisterType((*InitFhevmResponse)(nil), "ethermint.sgx.v1.InitFhevmResponse") proto.RegisterType((*CreateRequest)(nil), "ethermint.sgx.v1.CreateRequest") proto.RegisterType((*CreateResponse)(nil), "ethermint.sgx.v1.CreateResponse") proto.RegisterType((*CallRequest)(nil), "ethermint.sgx.v1.CallRequest") @@ -1587,85 +1670,88 @@ func init() { func init() { proto.RegisterFile("ethermint/sgx/v1/query.proto", fileDescriptor_1d9fb6e76534f03e) } var fileDescriptor_1d9fb6e76534f03e = []byte{ - // 1246 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x73, 0xdb, 0xc4, - 0x17, 0xb7, 0x6b, 0xc7, 0x3f, 0x9e, 0x9d, 0x34, 0xdd, 0xe9, 0x37, 0x75, 0x94, 0xd6, 0x75, 0xf5, - 0x85, 0xc1,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44, 0x9c, 0x21, 0x15, 0xb2, 0xb8, 0x41, - 0xaf, 0x53, 0x96, 0x71, 0x7b, 0x15, 0xd7, 0x9c, 0x9a, 0x34, 0xab, 0x2c, 0xa9, 0x69, 0x96, 0xaf, - 0x96, 0xd4, 0xf4, 0x1a, 0x41, 0x99, 0x05, 0xf2, 0x0c, 0xaa, 0x9a, 0x5d, 0x48, 0xee, 0xe7, 0xcf, - 0x34, 0x53, 0x19, 0xb7, 0x96, 0x78, 0xa4, 0x11, 0xf7, 0xef, 0xfe, 0xf6, 0xb2, 0x5d, 0x7c, 0xf1, - 0xb2, 0x5d, 0xfc, 0xeb, 0x65, 0xbb, 0xf8, 0xd3, 0xab, 0x76, 0xe1, 0xc5, 0xab, 0x76, 0xe1, 0x8f, - 0x57, 0xed, 0xc2, 0xb7, 0x6f, 0x79, 0xbe, 0x18, 0x8c, 0xfa, 0x3d, 0x87, 0x85, 0xbb, 0x38, 0x0e, - 0x19, 0xdf, 0x3d, 0xff, 0x66, 0x9c, 0x48, 0x8d, 0xfc, 0x72, 0xec, 0x57, 0xd4, 0x17, 0xe0, 0x47, - 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xe0, 0x06, 0x65, 0x51, 0x0e, 0x00, 0x00, + // 1281 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x72, 0x1b, 0xc5, + 0x13, 0xb7, 0x22, 0x59, 0x1f, 0x2d, 0xd9, 0xb1, 0xe7, 0x9f, 0xbf, 0x23, 0xaf, 0x13, 0x45, 0xd9, + 0x40, 0x21, 0x02, 0xc8, 0xc4, 0x54, 0x01, 0xa7, 0x50, 0xb1, 0x93, 0x38, 0x0e, 0x09, 0x84, 0xb5, + 0x2b, 0x07, 0x2e, 0x5b, 0xe3, 0xdd, 0xf6, 0x6a, 0xf1, 0xee, 0x8e, 0xb2, 0x33, 0x12, 0x32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x8a, 0x18, 0x25, 0xb2, 0xa4, + 0x7a, 0x65, 0x31, 0x52, 0x82, 0x4d, 0xa8, 0x8a, 0x91, 0xed, 0x47, 0x2e, 0x8e, 0x54, 0xed, 0x4a, + 0x56, 0x45, 0x8c, 0x0e, 0x24, 0x29, 0x33, 0x08, 0x98, 0xa7, 0x65, 0x25, 0x25, 0xab, 0x06, 0xcc, + 0x53, 0x42, 0xf3, 0x0e, 0xac, 0x9d, 0x37, 0x1c, 0xef, 0xb3, 0x88, 0xa3, 0xc4, 0xd0, 0xa3, 0x91, + 0x1b, 0x60, 0x6c, 0xfb, 0xae, 0xc2, 0x50, 0xb2, 0x6a, 0x9a, 0x73, 0xe0, 0x4a, 0x93, 0x83, 0xc8, + 0x17, 0x0f, 0x7b, 0x38, 0x0c, 0xd3, 0x26, 0x7d, 0x83, 0xc9, 0xff, 0x60, 0x7d, 0xcc, 0x24, 0x09, + 0x63, 0xfe, 0x58, 0x80, 0x95, 0xbd, 0x18, 0xa9, 0xc0, 0xc5, 0xbc, 0x90, 0x0d, 0x28, 0x3b, 0x34, + 0x08, 0xf4, 0x3f, 0xa1, 0x61, 0x69, 0x8a, 0x10, 0x28, 0x39, 0xcc, 0x45, 0xdd, 0xeb, 0xea, 0x4c, + 0xd6, 0xa0, 0xe8, 0x51, 0xae, 0xd3, 0x95, 0x47, 0x72, 0x05, 0x96, 0x87, 0x34, 0x18, 0x24, 0x3d, + 0x50, 0xb2, 0x12, 0xc2, 0x3c, 0x85, 0xd5, 0x14, 0x83, 0xce, 0x7e, 0x0d, 0x8a, 0x31, 0x0a, 0x5d, + 0x7a, 0x79, 0x24, 0xb7, 0x60, 0xc5, 0x61, 0x91, 0x6c, 0x20, 0x61, 0x53, 0xd7, 0x4d, 0xc3, 0x37, + 0x52, 0xe6, 0x3d, 0xd7, 0x8d, 0x89, 0x09, 0x2b, 0x01, 0x9e, 0x08, 0x5b, 0x7e, 0x5a, 0x5b, 0x86, + 0x4e, 0xbe, 0x42, 0x5d, 0x32, 0xbf, 0x1e, 0x62, 0xbc, 0x4f, 0xb9, 0xf9, 0x73, 0x01, 0xea, 0x7b, + 0x34, 0x08, 0xde, 0x3e, 0x5f, 0x05, 0x43, 0xe7, 0x2b, 0xcf, 0x32, 0x3b, 0x3f, 0xea, 0x0f, 0x84, + 0xca, 0xb8, 0x61, 0x25, 0x44, 0x5a, 0x85, 0xe5, 0x9c, 0x2a, 0x94, 0xc7, 0xab, 0x70, 0x1f, 0x1a, + 0x09, 0xae, 0x99, 0x35, 0x98, 0x4a, 0xef, 0xd2, 0x74, 0x7a, 0x5d, 0x58, 0xd9, 0x63, 0x61, 0xe8, + 0x8b, 0x05, 0xbb, 0x62, 0x0d, 0x56, 0x53, 0x7d, 0xdd, 0x12, 0x3e, 0x34, 0x0f, 0x05, 0x15, 0x78, + 0x7f, 0xf7, 0x9e, 0xeb, 0xee, 0xd2, 0x80, 0x46, 0xce, 0xdb, 0x36, 0xc7, 0x06, 0x94, 0x69, 0xc8, + 0x06, 0x91, 0xd0, 0x23, 0x45, 0x53, 0xe6, 0x16, 0x6c, 0xe6, 0x84, 0x9a, 0xc2, 0x71, 0x38, 0x38, + 0xfe, 0xaf, 0x70, 0x8c, 0x87, 0xd2, 0x38, 0x10, 0x36, 0x52, 0x21, 0x8a, 0xaf, 0xd8, 0xdb, 0xa3, + 0xb8, 0x02, 0xcb, 0x91, 0x74, 0xa3, 0xbb, 0x33, 0x21, 0xcc, 0x4d, 0xb8, 0x3a, 0x15, 0x46, 0x23, + 0x38, 0x82, 0x2d, 0x2d, 0x3a, 0x88, 0x9c, 0x18, 0x29, 0xc7, 0x7f, 0x01, 0x86, 0xd9, 0x82, 0x6b, + 0xf9, 0x5e, 0x75, 0xd4, 0xc7, 0x50, 0xbf, 0xe7, 0x38, 0xc8, 0xf9, 0xd1, 0xa0, 0x1f, 0x20, 0x69, + 0x42, 0x45, 0x36, 0x39, 0x72, 0xae, 0x5b, 0x32, 0x25, 0xc9, 0x4d, 0x68, 0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b3, 0x62, 0x16, 0xe6, 0x54, 0x5d, 0x61, 0x27, 0x86, 0x15, 0x99, + 0x5d, 0xa0, 0x8b, 0xa3, 0xd0, 0xb8, 0xbd, 0x88, 0x6a, 0x4e, 0x4e, 0x7a, 0x5a, 0xcd, 0xc9, 0x69, + 0x72, 0x0e, 0xce, 0xc9, 0xe9, 0xc2, 0xe0, 0x33, 0x97, 0xc8, 0x33, 0xa8, 0xe8, 0xa9, 0x45, 0x72, + 0x9f, 0x67, 0xe3, 0x13, 0xd0, 0xb8, 0x39, 0x47, 0x23, 0xf5, 0xb8, 0x7b, 0xf7, 0xd7, 0x57, 0xad, + 0xc2, 0xcb, 0x57, 0xad, 0xc2, 0x9f, 0xaf, 0x5a, 0x85, 0x9f, 0x5e, 0xb7, 0x96, 0x5e, 0xbe, 0x6e, + 0x2d, 0xfd, 0xfe, 0xba, 0xb5, 0xf4, 0xed, 0x3b, 0x9e, 0x2f, 0x7a, 0x83, 0xe3, 0xae, 0xc3, 0xc2, + 0x6d, 0x1c, 0x86, 0x8c, 0x6f, 0x9f, 0xbf, 0x69, 0x47, 0x92, 0x23, 0x5f, 0xb6, 0xc7, 0x65, 0xf5, + 0x42, 0xfd, 0xe4, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0x3c, 0x45, 0x02, 0xf1, 0x0e, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1681,6 +1767,7 @@ const _ = grpc.SupportPackageIsVersion4 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryServiceClient interface { StartEVM(ctx context.Context, in *StartEVMRequest, opts ...grpc.CallOption) (*StartEVMResponse, error) + InitFhevm(ctx context.Context, in *InitFhevmRequest, opts ...grpc.CallOption) (*InitFhevmResponse, error) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) @@ -1711,6 +1798,15 @@ func (c *queryServiceClient) StartEVM(ctx context.Context, in *StartEVMRequest, return out, nil } +func (c *queryServiceClient) InitFhevm(ctx context.Context, in *InitFhevmRequest, opts ...grpc.CallOption) (*InitFhevmResponse, error) { + out := new(InitFhevmResponse) + err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/InitFhevm", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { out := new(CreateResponse) err := c.cc.Invoke(ctx, "/ethermint.sgx.v1.QueryService/Create", in, out, opts...) @@ -1813,6 +1909,7 @@ func (c *queryServiceClient) StopEVM(ctx context.Context, in *StopEVMRequest, op // QueryServiceServer is the server API for QueryService service. type QueryServiceServer interface { StartEVM(context.Context, *StartEVMRequest) (*StartEVMResponse, error) + InitFhevm(context.Context, *InitFhevmRequest) (*InitFhevmResponse, error) Create(context.Context, *CreateRequest) (*CreateResponse, error) Call(context.Context, *CallRequest) (*CallResponse, error) Commit(context.Context, *CommitRequest) (*CommitResponse, error) @@ -1833,6 +1930,9 @@ type UnimplementedQueryServiceServer struct { func (*UnimplementedQueryServiceServer) StartEVM(ctx context.Context, req *StartEVMRequest) (*StartEVMResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartEVM not implemented") } +func (*UnimplementedQueryServiceServer) InitFhevm(ctx context.Context, req *InitFhevmRequest) (*InitFhevmResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InitFhevm not implemented") +} func (*UnimplementedQueryServiceServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } @@ -1889,6 +1989,24 @@ func _QueryService_StartEVM_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } +func _QueryService_InitFhevm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InitFhevmRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).InitFhevm(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethermint.sgx.v1.QueryService/InitFhevm", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).InitFhevm(ctx, req.(*InitFhevmRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _QueryService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateRequest) if err := dec(in); err != nil { @@ -2095,6 +2213,10 @@ var _QueryService_serviceDesc = grpc.ServiceDesc{ MethodName: "StartEVM", Handler: _QueryService_StartEVM_Handler, }, + { + MethodName: "InitFhevm", + Handler: _QueryService_InitFhevm_Handler, + }, { MethodName: "Create", Handler: _QueryService_Create_Handler, @@ -2382,6 +2504,57 @@ func (m *StartEVMResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *InitFhevmRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InitFhevmRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InitFhevmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HandlerId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HandlerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *InitFhevmResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InitFhevmResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InitFhevmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func (m *CreateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3284,6 +3457,27 @@ func (m *StartEVMResponse) Size() (n int) { return n } +func (m *InitFhevmRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HandlerId != 0 { + n += 1 + sovQuery(uint64(m.HandlerId)) + } + return n +} + +func (m *InitFhevmResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func (m *CreateRequest) Size() (n int) { if m == nil { return 0 @@ -4397,6 +4591,125 @@ func (m *StartEVMResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *InitFhevmRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InitFhevmRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InitFhevmRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HandlerId", wireType) + } + m.HandlerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HandlerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InitFhevmResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InitFhevmResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InitFhevmResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *CreateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 From 51a19996deae45092b6736b987c4616768132b3e Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Mon, 29 Apr 2024 12:04:58 +0200 Subject: [PATCH 45/46] revert core.Message --- x/evm/keeper/grpc_query.go | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index a73958c117..df8fcea004 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -343,22 +343,24 @@ func (k Keeper) EstimateGas(c context.Context, req *types.EthCallRequest) (*type // NOTE: the errors from the executable below should be consistent with go-ethereum, // so we don't wrap them with the gRPC status code - msg = core.Message{ - From: msg.From, - To: msg.To, - Nonce: msg.Nonce, - Value: msg.Value, - GasPrice: msg.GasPrice, - GasFeeCap: msg.GasFeeCap, - GasTipCap: msg.GasTipCap, - Data: msg.Data, - AccessList: msg.AccessList, - SkipAccountChecks: msg.SkipAccountChecks, - } + // Create a helper to check if a gas allowance results in an executable transaction executable := func(gas uint64) (vmError bool, rsp *types.MsgEthereumTxResponse, err error) { // update the message with the new gas value - msg.GasLimit = gas + msg = core.Message{ + From: msg.From, + To: msg.To, + Nonce: msg.Nonce, + Value: msg.Value, + GasLimit: gas, + GasPrice: msg.GasPrice, + GasFeeCap: msg.GasFeeCap, + GasTipCap: msg.GasTipCap, + Data: msg.Data, + AccessList: msg.AccessList, + SkipAccountChecks: msg.SkipAccountChecks, + } + // pass false to not commit StateDB rsp, err = k.ApplyMessageWithConfig(ctx, msg, cfg, false) if err != nil { From 964466284e316c7e6ec0f67fb15ea3268b1482c9 Mon Sep 17 00:00:00 2001 From: kenta-mori3322 Date: Tue, 30 Apr 2024 15:43:54 +0000 Subject: [PATCH 46/46] chore: update local node run script --- scripts/local_faucet.sh | 5 ++++- scripts/node_config.toml | 4 ++++ scripts/run_local_node.sh | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 scripts/node_config.toml diff --git a/scripts/local_faucet.sh b/scripts/local_faucet.sh index 5a99f44a4d..511ccd537e 100755 --- a/scripts/local_faucet.sh +++ b/scripts/local_faucet.sh @@ -18,6 +18,8 @@ export HOME_DIR=$(eval echo "${HOME_DIR:-"~/.ethermintd"}") export BINARY=${BINARY:-"./build/ethermintd"} export DENOM=${DENOM:-ainco} +export FHEVM_GO_KEYS_DIR="$HOME_DIR/keys/network-fhe-keys" + # if which binary does not exist, exit if [ -z `which $BINARY` ]; then echo "Ensure $BINARY is installed and in your PATH" @@ -48,7 +50,8 @@ AMOUNT="1000000000000000000$DENOM" # 10**18, so 1INCO # The `$BINARY debug addr` outputs 4 lines, the 3rd one is: # Bech32 Acc: inco1n7g8ek2znyua9dqua554pjvkh8vysxejlsfmcp # We extract the inco1... part -BECH32_ADDR=$($BINARY debug addr $RECIPIENT | sed -n '3 p' | sed 's/Bech32 Acc: //') +echo "BECH32_ADDR $($BINARY debug addr $RECIPIENT)" +BECH32_ADDR=$($BINARY debug addr $RECIPIENT | sed -n '5 p' | sed 's/Bech32 Acc: //') echo "Sending $AMOUNT to $BECH32_ADDR" $BINARY tx bank send $KEY $BECH32_ADDR $AMOUNT --gas-prices 1000000000$DENOM --yes \ No newline at end of file diff --git a/scripts/node_config.toml b/scripts/node_config.toml new file mode 100644 index 0000000000..7437ede1c0 --- /dev/null +++ b/scripts/node_config.toml @@ -0,0 +1,4 @@ +[fhevm] + +# Add mock functionality using trivial encrypt. DO NOT USE in production. +mock_ops_flag = true \ No newline at end of file diff --git a/scripts/run_local_node.sh b/scripts/run_local_node.sh index c27d5eaa3c..6edc7b49e5 100755 --- a/scripts/run_local_node.sh +++ b/scripts/run_local_node.sh @@ -28,6 +28,7 @@ export GRPC_WEB=${GRPC_WEB:-"9091"} export ROSETTA=${ROSETTA:-"8080"} export BLOCK_TIME=${BLOCK_TIME:-"5s"} + # if which binary does not exist, exit if [ -z `which $BINARY` ]; then echo "Ensure $BINARY is installed and in your PATH" @@ -54,6 +55,12 @@ from_scratch () { fi rm -rf $HOME_DIR && echo "Removed $HOME_DIR" + mkdir -p $HOME_DIR/config + cp ./scripts/node_config.toml $HOME_DIR/config + + mkdir -p $HOME_DIR/keys/network-fhe-keys + fhevm-tfhe-cli generate-keys -d $HOME_DIR/keys/network-fhe-keys + # reset values if not set already after whipe set_config