forked from cerc-io/laconicd-deprecated
Compare commits
7 Commits
main
...
console_re
Author | SHA1 | Date | |
---|---|---|---|
|
acfe52b6b6 | ||
|
241936d74a | ||
|
c9c0de0a06 | ||
|
b694034198 | ||
edeeb49614 | |||
c5cfc35f48 | |||
474a4d89da |
111
.clang-format
111
.clang-format
@ -1,6 +1,115 @@
|
|||||||
---
|
---
|
||||||
Language: Proto
|
Language: Proto
|
||||||
BasedOnStyle: google
|
# BasedOnStyle: LLVM
|
||||||
|
AccessModifierOffset: -2
|
||||||
|
AlignAfterOpenBracket: Align
|
||||||
|
AlignConsecutiveAssignments: true
|
||||||
|
AlignConsecutiveDeclarations: true
|
||||||
|
AlignEscapedNewlines: Right
|
||||||
|
AlignOperands: true
|
||||||
|
AlignTrailingComments: true
|
||||||
|
AllowAllParametersOfDeclarationOnNextLine: true
|
||||||
|
AllowShortBlocksOnASingleLine: true
|
||||||
|
AllowShortCaseLabelsOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: Empty
|
||||||
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
AllowShortLoopsOnASingleLine: false
|
||||||
|
AlwaysBreakAfterDefinitionReturnType: None
|
||||||
|
AlwaysBreakAfterReturnType: None
|
||||||
|
AlwaysBreakBeforeMultilineStrings: false
|
||||||
|
AlwaysBreakTemplateDeclarations: false
|
||||||
|
BinPackArguments: true
|
||||||
|
BinPackParameters: true
|
||||||
|
BraceWrapping:
|
||||||
|
AfterClass: false
|
||||||
|
AfterControlStatement: false
|
||||||
|
AfterEnum: false
|
||||||
|
AfterFunction: false
|
||||||
|
AfterNamespace: false
|
||||||
|
AfterObjCDeclaration: false
|
||||||
|
AfterStruct: false
|
||||||
|
AfterUnion: false
|
||||||
|
AfterExternBlock: false
|
||||||
|
BeforeCatch: false
|
||||||
|
BeforeElse: false
|
||||||
|
IndentBraces: false
|
||||||
|
SplitEmptyFunction: true
|
||||||
|
SplitEmptyRecord: true
|
||||||
|
SplitEmptyNamespace: true
|
||||||
|
BreakBeforeBinaryOperators: None
|
||||||
|
BreakBeforeBraces: Attach
|
||||||
|
BreakBeforeInheritanceComma: false
|
||||||
|
BreakBeforeTernaryOperators: true
|
||||||
|
BreakConstructorInitializersBeforeComma: false
|
||||||
|
BreakConstructorInitializers: BeforeColon
|
||||||
|
BreakAfterJavaFieldAnnotations: false
|
||||||
|
BreakStringLiterals: true
|
||||||
ColumnLimit: 120
|
ColumnLimit: 120
|
||||||
|
CommentPragmas: '^ IWYU pragma:'
|
||||||
|
CompactNamespaces: false
|
||||||
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||||
|
ConstructorInitializerIndentWidth: 4
|
||||||
|
ContinuationIndentWidth: 4
|
||||||
|
Cpp11BracedListStyle: true
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
DisableFormat: false
|
||||||
|
ExperimentalAutoDetectBinPacking: false
|
||||||
|
FixNamespaceComments: true
|
||||||
|
ForEachMacros:
|
||||||
|
- foreach
|
||||||
|
- Q_FOREACH
|
||||||
|
- BOOST_FOREACH
|
||||||
|
IncludeBlocks: Preserve
|
||||||
|
IncludeCategories:
|
||||||
|
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
||||||
|
Priority: 2
|
||||||
|
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
||||||
|
Priority: 3
|
||||||
|
- Regex: '.*'
|
||||||
|
Priority: 1
|
||||||
|
IncludeIsMainRegex: '(Test)?$'
|
||||||
|
IndentCaseLabels: false
|
||||||
|
IndentPPDirectives: None
|
||||||
IndentWidth: 2
|
IndentWidth: 2
|
||||||
|
IndentWrappedFunctionNames: false
|
||||||
|
JavaScriptQuotes: Leave
|
||||||
|
JavaScriptWrapImports: true
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
||||||
|
MacroBlockBegin: ''
|
||||||
|
MacroBlockEnd: ''
|
||||||
|
MaxEmptyLinesToKeep: 1
|
||||||
|
NamespaceIndentation: None
|
||||||
|
ObjCBlockIndentWidth: 2
|
||||||
|
ObjCSpaceAfterProperty: false
|
||||||
|
ObjCSpaceBeforeProtocolList: true
|
||||||
|
PenaltyBreakAssignment: 2
|
||||||
|
PenaltyBreakBeforeFirstCallParameter: 19
|
||||||
|
PenaltyBreakComment: 300
|
||||||
|
PenaltyBreakFirstLessLess: 120
|
||||||
|
PenaltyBreakString: 1000
|
||||||
|
PenaltyExcessCharacter: 1000000
|
||||||
|
PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
|
PointerAlignment: Right
|
||||||
|
RawStringFormats:
|
||||||
|
- Delimiters:
|
||||||
|
- pb
|
||||||
|
Language: TextProto
|
||||||
|
BasedOnStyle: google
|
||||||
|
ReflowComments: true
|
||||||
|
SortIncludes: true
|
||||||
|
SortUsingDeclarations: true
|
||||||
|
SpaceAfterCStyleCast: false
|
||||||
|
SpaceAfterTemplateKeyword: true
|
||||||
|
SpaceBeforeAssignmentOperators: true
|
||||||
|
SpaceBeforeParens: ControlStatements
|
||||||
|
SpaceInEmptyParentheses: false
|
||||||
|
SpacesBeforeTrailingComments: 1
|
||||||
|
SpacesInAngles: false
|
||||||
|
SpacesInContainerLiterals: false
|
||||||
|
SpacesInCStyleCastParentheses: false
|
||||||
|
SpacesInParentheses: false
|
||||||
|
SpacesInSquareBrackets: false
|
||||||
|
Standard: Cpp11
|
||||||
|
TabWidth: 8
|
||||||
|
UseTab: Never
|
||||||
...
|
...
|
||||||
|
5
.flake8
5
.flake8
@ -1,5 +0,0 @@
|
|||||||
[flake8]
|
|
||||||
ignore = BLK100, W503
|
|
||||||
max-line-length = 88
|
|
||||||
extend-ignore = E203
|
|
||||||
exclude = .git,__pycache__,node_modules,.direnv
|
|
5
.github/CODEOWNERS
vendored
5
.github/CODEOWNERS
vendored
@ -1,5 +1,4 @@
|
|||||||
# CODEOWNERS: https://help.github.com/articles/about-codeowners/
|
# CODEOWNERS: https://help.github.com/articles/about-codeowners/
|
||||||
|
|
||||||
# Primary (global) repo maintainers
|
# Primary repo maintainers
|
||||||
|
* @fedekunze @khoslaventures @jolube
|
||||||
* @evmos/core-engineering
|
|
||||||
|
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -17,17 +17,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.18
|
||||||
check-latest: true
|
- uses: technote-space/get-diff-action@v6.0.1
|
||||||
- uses: technote-space/get-diff-action@v6.1.2
|
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
SUFFIX_FILTER: |
|
||||||
**/**.go
|
.go
|
||||||
go.mod
|
.mod
|
||||||
go.sum
|
.sum
|
||||||
- run: |
|
- run: |
|
||||||
make build
|
make build
|
||||||
if: env.GIT_DIFF
|
if: env.GIT_DIFF
|
||||||
|
23
.github/workflows/codeql-analysis.yml
vendored
23
.github/workflows/codeql-analysis.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
language: [ 'go' ]
|
language: [ 'go', 'javascript' ]
|
||||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||||
# Learn more:
|
# 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
|
# 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
|
||||||
@ -40,33 +40,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- uses: technote-space/get-diff-action@v6.1.2
|
|
||||||
with:
|
|
||||||
PATTERNS: |
|
|
||||||
**/**.sol
|
|
||||||
**/**.go
|
|
||||||
**/**.ts
|
|
||||||
**/**.js
|
|
||||||
go.mod
|
|
||||||
go.sum
|
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v1
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
# By default, queries listed here will override any specified in a config file.
|
# By default, queries listed here will override any specified in a config file.
|
||||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality
|
|
||||||
if: env.GIT_DIFF
|
|
||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
|
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v2
|
uses: github/codeql-action/autobuild@v1
|
||||||
if: env.GIT_DIFF
|
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 https://git.io/JvXDl
|
||||||
@ -80,5 +68,4 @@ jobs:
|
|||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
uses: github/codeql-action/analyze@v1
|
||||||
if: env.GIT_DIFF
|
|
||||||
|
29
.github/workflows/dependencies.yml
vendored
29
.github/workflows/dependencies.yml
vendored
@ -1,29 +0,0 @@
|
|||||||
name: "Dependency Review"
|
|
||||||
on: pull_request
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dependency-review:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: 1.19
|
|
||||||
check-latest: true
|
|
||||||
- name: "Checkout Repository"
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- uses: technote-space/get-diff-action@v6.1.2
|
|
||||||
with:
|
|
||||||
PATTERNS: |
|
|
||||||
**/**.go
|
|
||||||
go.mod
|
|
||||||
go.sum
|
|
||||||
- name: "Dependency Review"
|
|
||||||
uses: actions/dependency-review-action@v3
|
|
||||||
if: env.GIT_DIFF
|
|
||||||
# TODO: https://git.vdb.to/cerc-io/laconicd/issues/115
|
|
||||||
# - name: "Go vulnerability check"
|
|
||||||
# run: make vulncheck
|
|
||||||
# if: env.GIT_DIFF
|
|
12
.github/workflows/deploy-contract.yml
vendored
12
.github/workflows/deploy-contract.yml
vendored
@ -23,14 +23,14 @@ jobs:
|
|||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- uses: technote-space/get-diff-action@v6.1.2
|
- uses: technote-space/get-diff-action@v6.0.1
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
SUFFIX_FILTER: |
|
||||||
**/**.sol
|
.go
|
||||||
**/**.go
|
.mod
|
||||||
go.mod
|
.sum
|
||||||
go.sum
|
.sol
|
||||||
- name: Test contract
|
- name: Test contract
|
||||||
run: |
|
run: |
|
||||||
sudo make contract-tools
|
sudo make contract-tools
|
||||||
|
2
.github/workflows/docker-image.yml
vendored
2
.github/workflows/docker-image.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Publish on release
|
name: Publish onn release
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
5
.github/workflows/goreleaser.yml
vendored
5
.github/workflows/goreleaser.yml
vendored
@ -13,10 +13,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.18
|
||||||
check-latest: true
|
|
||||||
- name: release dry run
|
- name: release dry run
|
||||||
run: make release-dry-run
|
run: make release-dry-run
|
||||||
- name: setup release environment
|
- name: setup release environment
|
||||||
|
12
.github/workflows/linkchecker.yml
vendored
Normal file
12
.github/workflows/linkchecker.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: Check Markdown links
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "* */24 * * *"
|
||||||
|
jobs:
|
||||||
|
markdown-link-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.14
|
||||||
|
with:
|
||||||
|
folder-path: "docs"
|
30
.github/workflows/lint.yml
vendored
30
.github/workflows/lint.yml
vendored
@ -13,40 +13,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
# Required: setup-go, for all versions v3.0.0+ of golangci-lint
|
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.18
|
||||||
check-latest: true
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: technote-space/get-diff-action@v6.1.2
|
- uses: technote-space/get-diff-action@v6.1.0
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
**/**.go
|
**/**.go
|
||||||
go.mod
|
go.mod
|
||||||
go.sum
|
go.sum
|
||||||
- uses: golangci/golangci-lint-action@v3.3.1
|
- uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
version: v1.48.0
|
||||||
version: latest
|
|
||||||
args: --timeout 10m
|
args: --timeout 10m
|
||||||
github-token: ${{ secrets.github_token }}
|
github-token: ${{ secrets.github_token }}
|
||||||
# Check only if there are differences in the source code
|
# Check only if there are differences in the source code
|
||||||
if: env.GIT_DIFF
|
if: "env.GIT_DIFF"
|
||||||
|
|
||||||
python-lint:
|
|
||||||
name: Run flake8 on python integration tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: cachix/install-nix-action@v20
|
|
||||||
- uses: cachix/cachix-action@v12
|
|
||||||
with:
|
|
||||||
name: ethermint
|
|
||||||
- uses: technote-space/get-diff-action@v6.1.2
|
|
||||||
with:
|
|
||||||
PATTERNS: |
|
|
||||||
**/**.py
|
|
||||||
- run: |
|
|
||||||
nix-shell -I nixpkgs=./nix -p test-env --run "make lint-py"
|
|
||||||
if: env.GIT_DIFF
|
|
||||||
|
24
.github/workflows/proto.yml
vendored
24
.github/workflows/proto.yml
vendored
@ -3,8 +3,6 @@ name: Protobuf
|
|||||||
# This workflow is only run when a .proto file has been changed
|
# This workflow is only run when a .proto file has been changed
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
|
||||||
- "proto/**"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
@ -12,17 +10,21 @@ jobs:
|
|||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: bufbuild/buf-setup-action@v1.9.0
|
- uses: technote-space/get-diff-action@v6.0.1
|
||||||
- uses: bufbuild/buf-lint-action@v1
|
|
||||||
with:
|
with:
|
||||||
input: "proto"
|
PATTERNS: |
|
||||||
|
**/**.proto
|
||||||
break-check:
|
- name: lint
|
||||||
|
run: make proto-lint
|
||||||
|
if: env.GIT_DIFF
|
||||||
|
breakage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: bufbuild/buf-setup-action@v1.9.0
|
- uses: technote-space/get-diff-action@v6.0.1
|
||||||
- uses: bufbuild/buf-breaking-action@v1
|
|
||||||
with:
|
with:
|
||||||
input: "proto"
|
PATTERNS: |
|
||||||
against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto"
|
**/**.proto
|
||||||
|
- name: check-breakage
|
||||||
|
run: make proto-check-breaking
|
||||||
|
if: env.GIT_DIFF
|
||||||
|
7
.github/workflows/security.yml
vendored
7
.github/workflows/security.yml
vendored
@ -7,9 +7,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Gosec:
|
Gosec:
|
||||||
permissions:
|
|
||||||
security-events: write
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
@ -17,7 +14,7 @@ jobs:
|
|||||||
- name: Checkout Source
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Get Diff
|
- name: Get Diff
|
||||||
uses: technote-space/get-diff-action@v6.1.2
|
uses: technote-space/get-diff-action@v6.0.1
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
**/*.go
|
**/*.go
|
||||||
@ -30,7 +27,7 @@ jobs:
|
|||||||
args: '-no-fail -fmt sarif -out results.sarif -exclude=G701,G703 ./...'
|
args: '-no-fail -fmt sarif -out results.sarif -exclude=G701,G703 ./...'
|
||||||
if: "env.GIT_DIFF_FILTERED != ''"
|
if: "env.GIT_DIFF_FILTERED != ''"
|
||||||
- name: Upload SARIF file
|
- name: Upload SARIF file
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v1
|
||||||
with:
|
with:
|
||||||
# Path to SARIF file relative to the root of the repository
|
# Path to SARIF file relative to the root of the repository
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
20
.github/workflows/semgrep.yml
vendored
20
.github/workflows/semgrep.yml
vendored
@ -10,19 +10,14 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 0'
|
- cron: '0 0 * * 0'
|
||||||
jobs:
|
jobs:
|
||||||
# Update from: https://semgrep.dev/docs/semgrep-ci/sample-ci-configs/#github-actions
|
|
||||||
semgrep:
|
semgrep:
|
||||||
name: Scan
|
name: Scan
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: returntocorp/semgrep
|
|
||||||
if: (github.actor != 'dependabot[bot]')
|
if: (github.actor != 'dependabot[bot]')
|
||||||
steps:
|
steps:
|
||||||
- name: Permission issue fix
|
|
||||||
run: git config --global --add safe.directory /__w/laconicd/laconicd
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Get Diff
|
- name: Get Diff
|
||||||
uses: technote-space/get-diff-action@v6.1.2
|
uses: technote-space/get-diff-action@v6.0.1
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
**/*.go
|
**/*.go
|
||||||
@ -31,15 +26,16 @@ jobs:
|
|||||||
**/*.sol
|
**/*.sol
|
||||||
go.mod
|
go.mod
|
||||||
go.sum
|
go.sum
|
||||||
- uses: actions/checkout@v3
|
- uses: returntocorp/semgrep-action@v1
|
||||||
- run: semgrep scan --sarif --output=semgrep.sarif --config auto
|
with:
|
||||||
env:
|
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
|
||||||
# Upload findings to GitHub Advanced Security Dashboard [step 1/2]
|
# Upload findings to GitHub Advanced Security Dashboard [step 1/2]
|
||||||
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
|
# See also the next step.
|
||||||
|
generateSarif: "1"
|
||||||
if: "env.GIT_DIFF_FILTERED != ''"
|
if: "env.GIT_DIFF_FILTERED != ''"
|
||||||
# Upload findings to GitHub Advanced Security Dashboard [step 2/2]
|
# Upload findings to GitHub Advanced Security Dashboard [step 2/2]
|
||||||
- name: Upload SARIF file
|
- name: Upload SARIF file for GitHub Advanced Security Dashboard
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v1
|
||||||
with:
|
with:
|
||||||
sarif_file: semgrep.sarif
|
sarif_file: semgrep.sarif
|
||||||
if: "env.GIT_DIFF_FILTERED != ''"
|
if: "env.GIT_DIFF_FILTERED != ''"
|
||||||
|
190
.github/workflows/test.yml
vendored
190
.github/workflows/test.yml
vendored
@ -20,10 +20,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.18
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: technote-space/get-diff-action@v6.1.2
|
- uses: technote-space/get-diff-action@v6.1.1
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
**/**.go
|
**/**.go
|
||||||
@ -36,7 +36,7 @@ jobs:
|
|||||||
- uses: codecov/codecov-action@v3
|
- uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
file: ./coverage.txt
|
file: ./coverage.txt
|
||||||
fail_ci_if_error: false
|
fail_ci_if_error: true
|
||||||
if: env.GIT_DIFF
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
test-importer:
|
test-importer:
|
||||||
@ -45,10 +45,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.18
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: technote-space/get-diff-action@v6.1.2
|
- uses: technote-space/get-diff-action@v6.1.1
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
@ -66,10 +66,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.18
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: technote-space/get-diff-action@v6.1.2
|
- uses: technote-space/get-diff-action@v6.1.1
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
**/**.sol
|
**/**.sol
|
||||||
@ -81,63 +81,37 @@ jobs:
|
|||||||
make test-rpc
|
make test-rpc
|
||||||
if: env.GIT_DIFF
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
sdk_tests:
|
test-e2e:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/setup-go@v3
|
||||||
- name: Checkout laconic-sdk
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
with:
|
||||||
path: "./laconic-sdk/"
|
go-version: 1.18
|
||||||
repository: cerc-io/laconic-sdk
|
check-latest: true
|
||||||
fetch-depth: 0
|
- uses: actions/checkout@v3
|
||||||
ref: jest_timeout
|
- uses: technote-space/get-diff-action@v6.1.1
|
||||||
- name: Environment
|
with:
|
||||||
run: ls -tlh && env
|
PATTERNS: |
|
||||||
- name: build containers scripts
|
**/**.sol
|
||||||
working-directory: tests/sdk_tests
|
**/**.go
|
||||||
run: ./build-laconicd-container.sh && ./build-sdk-test-container.sh
|
go.mod
|
||||||
- name: start containers
|
go.sum
|
||||||
working-directory: tests/sdk_tests
|
- name: Test e2e
|
||||||
run: docker compose up -d
|
run: |
|
||||||
- name: run-tests.sh
|
make test-integration
|
||||||
working-directory: tests/sdk_tests
|
if: env.GIT_DIFF
|
||||||
run: ./run-tests.sh
|
|
||||||
- name: reset containers for auction tests
|
|
||||||
working-directory: tests/sdk_tests
|
|
||||||
if: always()
|
|
||||||
run: docker compose down
|
|
||||||
- name: start auction containers
|
|
||||||
working-directory: tests/sdk_tests
|
|
||||||
run: docker compose -f docker-compose-auctions.yml up -d
|
|
||||||
- name: run-acution-tests.sh
|
|
||||||
working-directory: tests/sdk_tests
|
|
||||||
run: ./run-auction-tests.sh
|
|
||||||
- name: reset containers for nameservice tests
|
|
||||||
working-directory: tests/sdk_tests
|
|
||||||
if: always()
|
|
||||||
run: docker compose -f docker-compose-auctions.yml down
|
|
||||||
- name: start auction containers
|
|
||||||
working-directory: tests/sdk_tests
|
|
||||||
run: docker compose -f docker-compose-nameservice.yml up -d
|
|
||||||
- name: run-nameservice-expiry-tests.sh
|
|
||||||
working-directory: tests/sdk_tests
|
|
||||||
run: ./run-nameservice-expiry-tests.sh
|
|
||||||
- name: reset containers for nameservice tests
|
|
||||||
working-directory: tests/sdk_tests
|
|
||||||
if: always()
|
|
||||||
run: docker compose -f docker-compose-nameservice.yml down
|
|
||||||
|
|
||||||
# integration_tests:
|
# integration_tests:
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
# steps:
|
# steps:
|
||||||
# - uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
# - uses: cachix/install-nix-action@v18
|
# - uses: cachix/install-nix-action@v18
|
||||||
# - uses: cachix/cachix-action@v12
|
# - uses: cachix/cachix-action@v11
|
||||||
# with:
|
# with:
|
||||||
# name: ethermint
|
# name: ethermint
|
||||||
# signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
# signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
||||||
# - uses: technote-space/get-diff-action@v6.1.2
|
# - uses: technote-space/get-diff-action@v6.1.1
|
||||||
# with:
|
# with:
|
||||||
# PATTERNS: |
|
# PATTERNS: |
|
||||||
# **/**.sol
|
# **/**.sol
|
||||||
@ -158,19 +132,99 @@ jobs:
|
|||||||
# path: debug_files.tar.gz
|
# path: debug_files.tar.gz
|
||||||
# if-no-files-found: ignore
|
# if-no-files-found: ignore
|
||||||
|
|
||||||
# upload-cache:
|
upload-cache:
|
||||||
# if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
# needs: ["integration_tests"]
|
needs: ["integration_tests"]
|
||||||
# strategy:
|
strategy:
|
||||||
# matrix:
|
matrix:
|
||||||
# os: [macos-latest]
|
os: [macos-latest]
|
||||||
# runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# - uses: cachix/install-nix-action@v18
|
- uses: cachix/install-nix-action@v18
|
||||||
# - uses: cachix/cachix-action@v12
|
- uses: cachix/cachix-action@v11
|
||||||
# with:
|
with:
|
||||||
# name: ethermint
|
name: ethermint
|
||||||
# signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
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)"
|
run: nix-store -r $(nix-instantiate tests/integration_tests/shell.nix)
|
||||||
|
|
||||||
|
test-sim-nondeterminism:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 25
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.18
|
||||||
|
check-latest: true
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: technote-space/get-diff-action@v6.1.1
|
||||||
|
with:
|
||||||
|
PATTERNS: |
|
||||||
|
**/**.go
|
||||||
|
go.mod
|
||||||
|
go.sum
|
||||||
|
- name: Test simulation nondeterminism
|
||||||
|
run: |
|
||||||
|
make test-sim-nondeterminism
|
||||||
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
|
test-sim-random-genesis-fast:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 25
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.18
|
||||||
|
check-latest: true
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: technote-space/get-diff-action@v6.1.1
|
||||||
|
with:
|
||||||
|
PATTERNS: |
|
||||||
|
**/**.go
|
||||||
|
go.mod
|
||||||
|
go.sum
|
||||||
|
- name: Test simulation with random genesis
|
||||||
|
run: |
|
||||||
|
make test-sim-random-genesis-fast
|
||||||
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
|
test-sim-import-export:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 25
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.18
|
||||||
|
check-latest: true
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: technote-space/get-diff-action@v6.1.1
|
||||||
|
with:
|
||||||
|
PATTERNS: |
|
||||||
|
**/**.go
|
||||||
|
go.mod
|
||||||
|
go.sum
|
||||||
|
- name: Simulation of import and export genesis
|
||||||
|
run: |
|
||||||
|
make test-sim-import-export
|
||||||
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
|
test-sim-after-import:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 25
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.18
|
||||||
|
check-latest: true
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: technote-space/get-diff-action@v6.1.1
|
||||||
|
with:
|
||||||
|
PATTERNS: |
|
||||||
|
**/**.go
|
||||||
|
go.mod
|
||||||
|
go.sum
|
||||||
|
- name: Test simulation after import
|
||||||
|
run: |
|
||||||
|
make test-sim-after-import
|
||||||
|
if: env.GIT_DIFF
|
15
.gitignore
vendored
15
.gitignore
vendored
@ -13,7 +13,6 @@
|
|||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
.dccache
|
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
*.test
|
*.test
|
||||||
@ -35,14 +34,10 @@ keyring_test_cosmos
|
|||||||
./**/node_modules
|
./**/node_modules
|
||||||
./**/dist
|
./**/dist
|
||||||
secret.yml
|
secret.yml
|
||||||
artifacts/*
|
|
||||||
tmp-swagger-gen
|
|
||||||
github.com/
|
|
||||||
# vue/
|
# vue/
|
||||||
|
|
||||||
# Local docker volume mappings
|
# Local docker volume mappings
|
||||||
localnet-setup
|
localnet-setup
|
||||||
.testnets
|
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
coverage.txt
|
coverage.txt
|
||||||
@ -50,7 +45,6 @@ coverage.txt
|
|||||||
sim_log_file
|
sim_log_file
|
||||||
tests/**/tmp/*
|
tests/**/tmp/*
|
||||||
yarn.lock
|
yarn.lock
|
||||||
x/auction/client/testutil/bidder-bafyre*
|
|
||||||
|
|
||||||
# Vagrant
|
# Vagrant
|
||||||
.vagrant/
|
.vagrant/
|
||||||
@ -61,7 +55,6 @@ vagrant
|
|||||||
# IDE
|
# IDE
|
||||||
.idea/
|
.idea/
|
||||||
*.iml
|
*.iml
|
||||||
*.code-workspace
|
|
||||||
|
|
||||||
# Graphviz
|
# Graphviz
|
||||||
dependency-graph.png
|
dependency-graph.png
|
||||||
@ -76,8 +69,6 @@ dependency-graph.png
|
|||||||
*.abi
|
*.abi
|
||||||
|
|
||||||
# Node.js
|
# Node.js
|
||||||
**/node_modules
|
tests/**/node_modules/*
|
||||||
|
tests-solidity/**/node_modules/*
|
||||||
|
**/**.json
|
||||||
# OpenZeppelin contracts
|
|
||||||
contracts/@openzeppelin/*
|
|
2766
.gitleaks.toml
2766
.gitleaks.toml
File diff suppressed because it is too large
Load Diff
@ -6,35 +6,47 @@ run:
|
|||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- bodyclose
|
- bodyclose
|
||||||
# - depguard # 20231120 disable until https://github.com/golangci/golangci-lint/issues/3906 is released
|
- deadcode
|
||||||
|
- depguard
|
||||||
- dogsled
|
- dogsled
|
||||||
- dupl
|
- dupl
|
||||||
- errcheck
|
- errcheck
|
||||||
- goconst
|
- goconst
|
||||||
- gocritic
|
- gocritic
|
||||||
- gofumpt
|
- gofmt
|
||||||
# - revive # 20231120 overly sensitive unused detection
|
- goimports
|
||||||
|
- revive
|
||||||
- gosec
|
- gosec
|
||||||
- gosimple
|
- gosimple
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- lll
|
# - lll TODO: enable
|
||||||
- misspell
|
- misspell
|
||||||
- nakedret
|
- nakedret
|
||||||
- prealloc
|
- prealloc
|
||||||
- exportloopref
|
- exportloopref
|
||||||
- staticcheck
|
- staticcheck
|
||||||
|
- structcheck
|
||||||
- stylecheck
|
- stylecheck
|
||||||
- typecheck
|
# - typecheck #TODO: enable
|
||||||
- unconvert
|
- unconvert
|
||||||
- unparam
|
- unparam
|
||||||
- unused
|
- unused
|
||||||
|
- varcheck
|
||||||
- nolintlint
|
- nolintlint
|
||||||
- asciicheck
|
- asciicheck
|
||||||
|
# - exhaustive
|
||||||
- exportloopref
|
- exportloopref
|
||||||
- gofumpt
|
- gofumpt
|
||||||
- gomodguard
|
- gomodguard
|
||||||
- whitespace
|
# - nestif
|
||||||
|
# - nlreturn
|
||||||
|
- noctx
|
||||||
|
- rowserrcheck
|
||||||
|
# - whitespace
|
||||||
|
# - wsl
|
||||||
|
disable:
|
||||||
|
- typecheck
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
@ -47,8 +59,6 @@ issues:
|
|||||||
max-same-issues: 50
|
max-same-issues: 50
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
lll:
|
|
||||||
line-length: 150
|
|
||||||
dogsled:
|
dogsled:
|
||||||
max-blank-identifiers: 3
|
max-blank-identifiers: 3
|
||||||
golint:
|
golint:
|
||||||
@ -63,7 +73,7 @@ linters-settings:
|
|||||||
require-explanation: false
|
require-explanation: false
|
||||||
require-specific: false
|
require-specific: false
|
||||||
gofumpt:
|
gofumpt:
|
||||||
lang-version: "1.19"
|
lang-version: "1.17"
|
||||||
gomodguard:
|
gomodguard:
|
||||||
blocked:
|
blocked:
|
||||||
versions: # List of blocked module version constraints
|
versions: # List of blocked module version constraints
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
"default": true
|
|
||||||
"MD001": false
|
|
||||||
"MD004": false
|
|
||||||
"MD007":
|
|
||||||
"indent": 4
|
|
||||||
"MD013": false
|
|
||||||
"MD024":
|
|
||||||
"siblings_only": true
|
|
||||||
"MD025": false
|
|
||||||
"MD026":
|
|
||||||
"punctuation": ".;:"
|
|
||||||
"MD029": false
|
|
||||||
"MD033": false
|
|
||||||
"MD034": false
|
|
||||||
"MD036": false
|
|
||||||
"MD040": false
|
|
||||||
"MD041": false
|
|
||||||
"MD051": false
|
|
||||||
"MD049":
|
|
||||||
"style": "asterisk"
|
|
||||||
"no-hard-tabs": false
|
|
@ -1,3 +0,0 @@
|
|||||||
CHANGELOG.md
|
|
||||||
docs/api/proto-docs.md
|
|
||||||
docs/node_modules
|
|
26
.mergify.yml
26
.mergify.yml
@ -4,7 +4,7 @@ queue_rules:
|
|||||||
- "#approved-reviews-by>1"
|
- "#approved-reviews-by>1"
|
||||||
|
|
||||||
pull_request_rules:
|
pull_request_rules:
|
||||||
- name: automerge to main with label "automerge" and branch protection passing
|
- name: automerge to the base branch with label automerge and branch protection passing
|
||||||
conditions:
|
conditions:
|
||||||
- "#approved-reviews-by>1"
|
- "#approved-reviews-by>1"
|
||||||
- base=main
|
- base=main
|
||||||
@ -12,30 +12,22 @@ pull_request_rules:
|
|||||||
actions:
|
actions:
|
||||||
queue:
|
queue:
|
||||||
name: default
|
name: default
|
||||||
|
merge:
|
||||||
method: squash
|
method: squash
|
||||||
commit_message_template: |
|
commit_message: title+body
|
||||||
{{ title }} (#{{ number }})
|
- name: backport patches to v0.9.x branch
|
||||||
{{ body }}
|
|
||||||
- name: backport patches to main branch
|
|
||||||
conditions:
|
|
||||||
- label=backport/main
|
|
||||||
actions:
|
|
||||||
backport:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- name: backport patches to v0.20.x branch
|
|
||||||
conditions:
|
conditions:
|
||||||
- base=main
|
- base=main
|
||||||
- label=backport/0.20.x
|
- label=backport/0.9.x
|
||||||
actions:
|
actions:
|
||||||
backport:
|
backport:
|
||||||
branches:
|
branches:
|
||||||
- release/v0.20.x
|
- release/v0.9.x
|
||||||
- name: backport patches to v0.19.x branch
|
- name: backport patches to v0.7.x branch
|
||||||
conditions:
|
conditions:
|
||||||
- base=main
|
- base=main
|
||||||
- label=backport/0.19.x
|
- label=backport/0.7.x
|
||||||
actions:
|
actions:
|
||||||
backport:
|
backport:
|
||||||
branches:
|
branches:
|
||||||
- release/v0.19.x
|
- release/v0.7.x
|
||||||
|
174
.protolint.yml
174
.protolint.yml
@ -1,174 +0,0 @@
|
|||||||
---
|
|
||||||
# Lint directives.
|
|
||||||
lint:
|
|
||||||
# # Linter files to ignore.
|
|
||||||
# ignores:
|
|
||||||
# - id: MESSAGE_NAMES_UPPER_CAMEL_CASE
|
|
||||||
# files:
|
|
||||||
# # NOTE: UNIX paths will be properly accepted by both UNIX and Windows.
|
|
||||||
# - _example/proto/simple.proto
|
|
||||||
# - id: ENUM_NAMES_UPPER_CAMEL_CASE
|
|
||||||
# files:
|
|
||||||
# - path/to/foo.proto
|
|
||||||
|
|
||||||
# # Linter files to walk.
|
|
||||||
# files:
|
|
||||||
# # The specific files to exclude.
|
|
||||||
# exclude:
|
|
||||||
# # NOTE: UNIX paths will be properly accepted by both UNIX and Windows.
|
|
||||||
# - path/to/file
|
|
||||||
|
|
||||||
# # Linter directories to walk.
|
|
||||||
# directories:
|
|
||||||
# # The specific directories to exclude.
|
|
||||||
# exclude:
|
|
||||||
# # NOTE: UNIX paths will be properly accepted by both UNIX and Windows.
|
|
||||||
# - path/to/dir
|
|
||||||
|
|
||||||
# Linter rules.
|
|
||||||
# Run `protolint list` to see all available rules.
|
|
||||||
rules:
|
|
||||||
# Determines whether or not to include the default set of linters.
|
|
||||||
no_default: true
|
|
||||||
|
|
||||||
# Set the default to all linters. This option works the other way around as no_default does.
|
|
||||||
# If you want to enable this option, delete the comment out below and no_default.
|
|
||||||
# all_default: true
|
|
||||||
|
|
||||||
# The specific linters to add.
|
|
||||||
add:
|
|
||||||
- FIELD_NAMES_LOWER_SNAKE_CASE
|
|
||||||
- MESSAGE_NAMES_UPPER_CAMEL_CASE
|
|
||||||
- MAX_LINE_LENGTH
|
|
||||||
- INDENT
|
|
||||||
# - SERVICE_NAMES_END_WITH
|
|
||||||
- FIELD_NAMES_EXCLUDE_PREPOSITIONS
|
|
||||||
- MESSAGE_NAMES_EXCLUDE_PREPOSITIONS
|
|
||||||
- FILE_NAMES_LOWER_SNAKE_CASE
|
|
||||||
- IMPORTS_SORTED
|
|
||||||
- PACKAGE_NAME_LOWER_CASE
|
|
||||||
- ORDER
|
|
||||||
- MESSAGES_HAVE_COMMENT
|
|
||||||
- SERVICES_HAVE_COMMENT
|
|
||||||
- RPCS_HAVE_COMMENT
|
|
||||||
- FIELDS_HAVE_COMMENT
|
|
||||||
- PROTO3_FIELDS_AVOID_REQUIRED
|
|
||||||
- PROTO3_GROUPS_AVOID
|
|
||||||
# - REPEATED_FIELD_NAMES_PLURALIZED
|
|
||||||
- ENUMS_HAVE_COMMENT
|
|
||||||
- ENUM_FIELDS_HAVE_COMMENT
|
|
||||||
- SYNTAX_CONSISTENT
|
|
||||||
- RPC_NAMES_UPPER_CAMEL_CASE
|
|
||||||
# - FILE_HAS_COMMENT
|
|
||||||
- QUOTE_CONSISTENT
|
|
||||||
|
|
||||||
# # The specific linters to remove.
|
|
||||||
# remove:
|
|
||||||
# - RPC_NAMES_UPPER_CAMEL_CASE
|
|
||||||
|
|
||||||
# Linter rules option.
|
|
||||||
rules_option:
|
|
||||||
# MAX_LINE_LENGTH rule option.
|
|
||||||
max_line_length:
|
|
||||||
# Enforces a maximum line length
|
|
||||||
max_chars: 120
|
|
||||||
# Specifies the character count for tab characters
|
|
||||||
tab_chars: 2
|
|
||||||
|
|
||||||
# INDENT rule option.
|
|
||||||
indent:
|
|
||||||
# Available styles are 4(4-spaces), 2(2-spaces) or tab.
|
|
||||||
style: 2
|
|
||||||
# Specifies if it should stop considering and inserting new lines at the appropriate positions
|
|
||||||
# when the inner elements are on the same line. Default is false.
|
|
||||||
not_insert_newline: true
|
|
||||||
|
|
||||||
# # FILE_NAMES_LOWER_SNAKE_CASE rule option.
|
|
||||||
# file_names_lower_snake_case:
|
|
||||||
# excludes:
|
|
||||||
# - ../proto/invalidFileName.proto
|
|
||||||
|
|
||||||
# QUOTE_CONSISTENT rule option.
|
|
||||||
quote_consistent:
|
|
||||||
# Available quote are "double" or "single".
|
|
||||||
quote: double
|
|
||||||
|
|
||||||
# ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH rule option.
|
|
||||||
enum_field_names_zero_value_end_with:
|
|
||||||
suffix: INVALID
|
|
||||||
|
|
||||||
# # SERVICE_NAMES_END_WITH rule option.
|
|
||||||
# service_names_end_with:
|
|
||||||
# text: Service
|
|
||||||
|
|
||||||
# FIELD_NAMES_EXCLUDE_PREPOSITIONS rule option.
|
|
||||||
field_names_exclude_prepositions:
|
|
||||||
# The specific prepositions to determine if the field name includes.
|
|
||||||
prepositions:
|
|
||||||
- for
|
|
||||||
- at
|
|
||||||
- of
|
|
||||||
# The specific keywords including prepositions to ignore. E.g. end_of_support is a term you would like to use, and skip checking.
|
|
||||||
excludes:
|
|
||||||
- duration_of_decay
|
|
||||||
|
|
||||||
# # REPEATED_FIELD_NAMES_PLURALIZED rule option.
|
|
||||||
# ## The spec for each rules follows the implementation of https://github.com/gertd/go-pluralize.
|
|
||||||
# ## Plus, you can refer to this rule's test code.
|
|
||||||
# repeated_field_names_pluralized:
|
|
||||||
# uncountable_rules:
|
|
||||||
# - paper
|
|
||||||
# irregular_rules:
|
|
||||||
# Irregular: Regular
|
|
||||||
|
|
||||||
# MESSAGE_NAMES_EXCLUDE_PREPOSITIONS rule option.
|
|
||||||
message_names_exclude_prepositions:
|
|
||||||
# The specific prepositions to determine if the message name includes.
|
|
||||||
prepositions:
|
|
||||||
- With
|
|
||||||
- For
|
|
||||||
- Of
|
|
||||||
# # The specific keywords including prepositions to ignore. E.g. EndOfSupport is a term you would like to use, and skip checking.
|
|
||||||
# excludes:
|
|
||||||
# - EndOfSupport
|
|
||||||
|
|
||||||
# # RPC_NAMES_CASE rule option.
|
|
||||||
# rpc_names_case:
|
|
||||||
# # The specific convention the name should conforms to.
|
|
||||||
# ## Available conventions are "lower_camel_case", "upper_snake_case", or "lower_snake_case".
|
|
||||||
# convention: upper_snake_case
|
|
||||||
|
|
||||||
# MESSAGES_HAVE_COMMENT rule option.
|
|
||||||
messages_have_comment:
|
|
||||||
# Comments need to begin with the name of the thing being described. default is false.
|
|
||||||
should_follow_golang_style: true
|
|
||||||
|
|
||||||
# SERVICES_HAVE_COMMENT rule option.
|
|
||||||
services_have_comment:
|
|
||||||
# Comments need to begin with the name of the thing being described. default is false.
|
|
||||||
should_follow_golang_style: true
|
|
||||||
|
|
||||||
# RPCS_HAVE_COMMENT rule option.
|
|
||||||
rpcs_have_comment:
|
|
||||||
# Comments need to begin with the name of the thing being described. default is false.
|
|
||||||
should_follow_golang_style: true
|
|
||||||
|
|
||||||
# FIELDS_HAVE_COMMENT rule option.
|
|
||||||
fields_have_comment:
|
|
||||||
# Comments need to begin with the name of the thing being described. default is false.
|
|
||||||
should_follow_golang_style: true
|
|
||||||
|
|
||||||
# ENUMS_HAVE_COMMENT rule option.
|
|
||||||
enums_have_comment:
|
|
||||||
# Comments need to begin with the name of the thing being described. default is false.
|
|
||||||
should_follow_golang_style: true
|
|
||||||
|
|
||||||
# ENUM_FIELDS_HAVE_COMMENT rule option.
|
|
||||||
enum_fields_have_comment:
|
|
||||||
# Comments need to begin with the name of the thing being described. default is false.
|
|
||||||
should_follow_golang_style: true
|
|
||||||
|
|
||||||
# # SYNTAX_CONSISTENT rule option.
|
|
||||||
# syntax_consistent:
|
|
||||||
# # Default is proto3.
|
|
||||||
# version: proto2
|
|
@ -19,9 +19,6 @@ test/
|
|||||||
tests/
|
tests/
|
||||||
*_test.go
|
*_test.go
|
||||||
|
|
||||||
# false positive; TODO: https://github.com/cerc-io/laconicd/issues/104
|
|
||||||
testutil/network/network.go
|
|
||||||
|
|
||||||
# Semgrep rules folder
|
# Semgrep rules folder
|
||||||
.semgrep
|
.semgrep
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "solhint:default"
|
|
||||||
}
|
|
31
.yamllint
31
.yamllint
@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
yaml-files:
|
|
||||||
- '*.yaml'
|
|
||||||
- '*.yml'
|
|
||||||
- '.yamllint'
|
|
||||||
|
|
||||||
rules:
|
|
||||||
braces: enable
|
|
||||||
brackets: enable
|
|
||||||
colons: enable
|
|
||||||
commas: enable
|
|
||||||
comments:
|
|
||||||
level: warning
|
|
||||||
comments-indentation: disable
|
|
||||||
document-end: disable
|
|
||||||
document-start: disable
|
|
||||||
empty-lines: disable
|
|
||||||
empty-values: disable
|
|
||||||
float-values: disable
|
|
||||||
hyphens: enable
|
|
||||||
indentation: enable
|
|
||||||
key-duplicates: enable
|
|
||||||
key-ordering: disable
|
|
||||||
line-length: disable
|
|
||||||
new-line-at-end-of-file: enable
|
|
||||||
new-lines: enable
|
|
||||||
octal-values: disable
|
|
||||||
quoted-strings: disable
|
|
||||||
trailing-spaces: disable
|
|
||||||
truthy: disable
|
|
75
CHANGELOG.md
75
CHANGELOG.md
@ -36,57 +36,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
|||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [v0.20.0] - 2022-12-28
|
## Unreleased
|
||||||
|
|
||||||
### State Machine Breaking
|
|
||||||
|
|
||||||
* (deps) [#1564](https://github.com/evmos/ethermint/pull/1564) Bump ibc-go to [`v5.2.0`](https://github.com/cosmos/ibc-go/releases/tag/v5.2.0)
|
|
||||||
* (evm) [\#1272](https://github.com/evmos/ethermint/pull/1272) Implement modular interface for the EVM.
|
|
||||||
* (deps) [#1551](https://github.com/evmos/ethermint/pull/1551) Upgrade Cosmos SDK to [`v0.46.7`](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.7).
|
|
||||||
* (feemarket) [#1194](https://github.com/evmos/ethermint/pull/1194) Apply feemarket to native cosmos tx.
|
|
||||||
* (eth) [#1346](https://github.com/evmos/ethermint/pull/1346) Added support for `sdk.Dec` and `ed25519` type on eip712.
|
|
||||||
* (evm) [#1452](https://github.com/evmos/ethermint/pull/1452) Simplify Gas Math in `ApplyTransaction`.
|
|
||||||
* (eth) [#1430](https://github.com/evmos/ethermint/pull/1430) Added support for array of type `Any` on eip712.
|
|
||||||
* (ante) [1460](https://github.com/evmos/ethermint/pull/1460) Add KV Gas config on ethereum Txs.
|
|
||||||
* (eth) [#1459](https://github.com/evmos/ethermint/pull/1459) Added support for messages with optional types omitted on eip712.
|
|
||||||
* (geth) [#1413](https://github.com/evmos/ethermint/pull/1413) Update go-ethereum version to [`v1.10.26`](https://github.com/ethereum/go-ethereum/releases/tag/v1.10.26).
|
|
||||||
* (deps) [#1419](https://github.com/evmos/ethermint/pull/1419) Add ics23 patch for dragonberry and bump iavl to v0.19.4
|
|
||||||
|
|
||||||
### API Breaking
|
|
||||||
|
|
||||||
* (ante) [#1521](https://github.com/evmos/ethermint/pull/1521) Deprecate support for legacy EIP-712 signature verification implementation via AnteHandler decorator.
|
|
||||||
* (ante) [#1214](https://github.com/evmos/ethermint/pull/1214) Set mempool priority to EVM transactions.
|
|
||||||
* (evm) [#1405](https://github.com/evmos/ethermint/pull/1405) Add parameter `chainID` to evm keeper's `EVMConfig` method, so caller can choose to not use the cached `eip155ChainID`.
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* (ci) [#1528](https://github.com/evmos/ethermint/pull/1528) Add Golang dependency vulnerability checker.
|
|
||||||
* (app) [#1501](https://github.com/evmos/ethermint/pull/1501) Set default File store listener for application from [ADR38](https://docs.cosmos.network/v0.47/architecture/adr-038-state-listening)
|
|
||||||
|
|
||||||
### Improvements
|
|
||||||
|
|
||||||
* (tests) [#1507](https://github.com/evmos/ethermint/pull/1507) Remove legacy sim tests
|
|
||||||
* (feemarket) [#1508](https://github.com/evmos/ethermint/pull/1508) Remove old x/params migration logic
|
|
||||||
* (evm) [#1499](https://github.com/evmos/ethermint/pull/1499) Add Shanghai and Cancun block
|
|
||||||
* (ante) [#1455](https://github.com/evmos/ethermint/pull/1455) Refactor `AnteHandler` logic
|
|
||||||
* (evm) [#1444](https://github.com/evmos/ethermint/pull/1444) Improve performance of `eth_estimateGas`
|
|
||||||
* (ante) [\#1388](https://github.com/evmos/ethermint/pull/1388) Optimize AnteHandler gas consumption
|
|
||||||
* (lint) [#1298](https://github.com/evmos/ethermint/pull/1298) 150 character line length limit, `gofumpt`, and linting
|
|
||||||
* (feemarket) [\#1165](https://github.com/evmos/ethermint/pull/1165) Add hint in specs about different gas terminology in Cosmos and Ethereum.
|
|
||||||
* (cli) [#1226](https://github.com/evmos/ethermint/pull/1226) Add custom app db backend flag.
|
|
||||||
* (ante) [#1289](https://github.com/evmos/ethermint/pull/1289) Change the fallback tx priority mechanism to be based on gas price.
|
|
||||||
* (test) [#1311](https://github.com/evmos/ethermint/pull/1311) Add integration test for the `rollback` cmd
|
|
||||||
* (ledger) [#1277](https://github.com/evmos/ethermint/pull/1277) Add Ledger preprocessing transaction hook for EIP-712-signed Cosmos payloads.
|
|
||||||
* (rpc) [#1296](https://github.com/evmos/ethermint/pull/1296) Add RPC Backend unit tests.
|
|
||||||
* (rpc) [#1352](https://github.com/evmos/ethermint/pull/1352) Make the grpc queries run concurrently, don't block the consensus state machine.
|
|
||||||
* (cli) [#1360](https://github.com/evmos/ethermint/pull/1360) Introduce a new `grpc-only` flag, such that when enabled, will start the node in a query-only mode. Note, gRPC MUST be enabled with this flag.
|
|
||||||
* (rpc) [#1378](https://github.com/evmos/ethermint/pull/1378) Add support for EVM RPC metrics
|
|
||||||
* (ante) [#1390](https://github.com/evmos/ethermint/pull/1390) Added multisig tx support.
|
|
||||||
* (test) [#1396](https://github.com/evmos/ethermint/pull/1396) Increase test coverage for the EVM module `keeper`
|
|
||||||
* (ante) [#1397](https://github.com/evmos/ethermint/pull/1397) Refactor EIP-712 signature verification to support EIP-712 multi-signing.
|
|
||||||
* (deps) [#1416](https://github.com/evmos/ethermint/pull/1416) Bump Go version to `1.19`
|
|
||||||
* (cmd) [\#1417](https://github.com/evmos/ethermint/pull/1417) Apply Google CLI Syntax for required and optional args.
|
|
||||||
* (deps) [#1456](https://github.com/evmos/ethermint/pull/1456) Migrate errors-related functionality from "github.com/cosmos/cosmos-sdk/types/errors" (deprecated) to "cosmossdk.io/errors"
|
|
||||||
|
|
||||||
### State Machine Breaking
|
### State Machine Breaking
|
||||||
|
|
||||||
@ -113,30 +63,11 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
|||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* (rpc) [#1561](https://github.com/evmos/ethermint/pull/1561) Fix call to `NewMnemonic` in `personal_newAccount`
|
|
||||||
* (cli) [#1550](https://github.com/evmos/ethermint/pull/1550) Fix signature algorithm validation and default for Ledger.
|
|
||||||
* (eip712) [#1543](https://github.com/evmos/ethermint/pull/1543) Improve error handling for EIP-712 encoding config initialization.
|
|
||||||
* (app) [#1505](https://github.com/evmos/ethermint/pull/1505) Setup gRPC node service with the application.
|
|
||||||
* (server) [#1497](https://github.com/evmos/ethermint/pull/1497) Fix telemetry server setup for observability
|
|
||||||
* (rpc) [#1442](https://github.com/evmos/ethermint/pull/1442) Fix decoding of `finalized` block number.
|
|
||||||
* (rpc) [#1179](https://github.com/evmos/ethermint/pull/1179) Fix gas used in traceTransaction response.
|
* (rpc) [#1179](https://github.com/evmos/ethermint/pull/1179) Fix gas used in traceTransaction response.
|
||||||
* (rpc) [#1284](https://github.com/evmos/ethermint/pull/1284) Fix internal trace response upon incomplete `eth_sendTransaction` call.
|
* (rpc) [#1284](https://github.com/evmos/ethermint/pull/1284) Fix internal trace response upon incomplete `eth_sendTransaction` call.
|
||||||
* (rpc) [#1340](https://github.com/evmos/ethermint/pull/1340) Fix error response when `eth_estimateGas` height provided is not found.
|
* (rpc) [#1340](https://github.com/evmos/ethermint/pull/1340) Fix error response when `eth_estimateGas` height provided is not found.
|
||||||
* (rpc) [#1354](https://github.com/evmos/ethermint/pull/1354) Fix grpc query failure(`BaseFee` and `EthCall`) on legacy block states.
|
* (rpc) [#1354](https://github.com/evmos/ethermint/pull/1354) Fix grpc query failure(`BaseFee` and `EthCall`) on legacy block states.
|
||||||
* (cli) [#1362](https://github.com/evmos/ethermint/pull/1362) Fix `index-eth-tx` error when the indexer db is empty.
|
* (cli) [#1362](https://github.com/evmos/ethermint/pull/1362) Fix `index-eth-tx` error when the indexer db is empty.
|
||||||
* (state) [#1320](https://github.com/evmos/ethermint/pull/1320) Fix codehash check mismatch when the code has been deleted in the evm state.
|
|
||||||
* (rpc) [#1392](https://github.com/evmos/ethermint/pull/1392) Allow fill the proposer address in json-rpc through tendermint api, and pass explicitly to grpc query handler.
|
|
||||||
* (rpc) [#1431](https://github.com/evmos/ethermint/pull/1431) Align hex-strings proof fields in `eth_getProof` as Ethereum.
|
|
||||||
* (proto) [#1466](https://github.com/evmos/ethermint/pull/1466) Fix proto scripts and upgrade them to mirror current cosmos-sdk scripts
|
|
||||||
* (rpc) [#1405](https://github.com/evmos/ethermint/pull/1405) Fix uninitialized chain ID field in gRPC requests.
|
|
||||||
* (analytics) [#1434](https://github.com/evmos/ethermint/pull/1434) Remove unbound labels from custom tendermint metrics.
|
|
||||||
* (rpc) [#1484](https://github.com/evmos/ethermint/pull/1484) Align empty account result for old blocks as ethereum instead of return account not found error.
|
|
||||||
* (rpc) [#1503](https://github.com/evmos/ethermint/pull/1503) Fix block hashes returned on JSON-RPC filter `eth_newBlockFilter`.
|
|
||||||
* (ante) [#1566](https://github.com/evmos/ethermint/pull/1566) Fix `gasWanted` on `EthGasConsumeDecorator` ante handler when running transaction in `ReCheckMode`
|
|
||||||
|
|
||||||
## [v0.19.3] - 2022-10-14
|
|
||||||
|
|
||||||
* (deps) [1381](https://github.com/evmos/ethermint/pull/1381) Bump sdk to `v0.45.9`
|
|
||||||
|
|
||||||
## [v0.19.2] - 2022-08-29
|
## [v0.19.2] - 2022-08-29
|
||||||
|
|
||||||
@ -266,7 +197,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
|||||||
* (evm) [tharsis#1088](https://github.com/evmos/ethermint/pull/1088) Fix ability to append log in tx post processing.
|
* (evm) [tharsis#1088](https://github.com/evmos/ethermint/pull/1088) Fix ability to append log in tx post processing.
|
||||||
* (rpc) [tharsis#1081](https://github.com/evmos/ethermint/pull/1081) fix `debug_getBlockRlp`/`debug_printBlock` don't filter failed transactions.
|
* (rpc) [tharsis#1081](https://github.com/evmos/ethermint/pull/1081) fix `debug_getBlockRlp`/`debug_printBlock` don't filter failed transactions.
|
||||||
* (ante) [tharsis#1111](https://github.com/evmos/ethermint/pull/1111) Move CanTransfer decorator before GasConsume decorator
|
* (ante) [tharsis#1111](https://github.com/evmos/ethermint/pull/1111) Move CanTransfer decorator before GasConsume decorator
|
||||||
* (types) [tharsis#1112](https://github.com/evmos/ethermint/pull/1112) Add `GetBaseAccount` to avoid invalid account error when create vesting account.
|
* (types) [tharsis#1112](https://github.com/cosmos/ethermint/pull/1112) Add `GetBaseAccount` to avoid invalid account error when create vesting account.
|
||||||
|
|
||||||
## [v0.15.0] - 2022-05-09
|
## [v0.15.0] - 2022-05-09
|
||||||
|
|
||||||
@ -702,7 +633,7 @@ the Tracer type used to collect execution traces from the EVM transaction execut
|
|||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|
||||||
* (deps) [tharsis#615](https://github.com/cosmos/ethermint/pull/615) Bump Cosmos SDK version to [v0.39.2](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.39.2)
|
* (deps) [tharsis#615](https://github.com/cosmos/ethermint/pull/615) Bump Cosmos SDK version to [v0.39.2](https://github.com/cosmos/cosmos-sdk/tag/v0.39.2)
|
||||||
* (deps) [tharsis#610](https://github.com/cosmos/ethermint/pull/610) Update Go dependency to 1.15+.
|
* (deps) [tharsis#610](https://github.com/cosmos/ethermint/pull/610) Update Go dependency to 1.15+.
|
||||||
* (evm) [tharsis#603](https://github.com/cosmos/ethermint/pull/603) Add state transition params that enable or disable the EVM `Call` and `Create` operations.
|
* (evm) [tharsis#603](https://github.com/cosmos/ethermint/pull/603) Add state transition params that enable or disable the EVM `Call` and `Create` operations.
|
||||||
* (deps) [tharsis#602](https://github.com/cosmos/ethermint/pull/602) Bump tendermint version to [v0.33.9](https://github.com/tendermint/tendermint/releases/tag/v0.33.9)
|
* (deps) [tharsis#602](https://github.com/cosmos/ethermint/pull/602) Bump tendermint version to [v0.33.9](https://github.com/tendermint/tendermint/releases/tag/v0.33.9)
|
||||||
|
@ -17,10 +17,10 @@ COPY . .
|
|||||||
RUN make build
|
RUN make build
|
||||||
|
|
||||||
# Final image
|
# Final image
|
||||||
FROM alpine:3.17.0
|
FROM alpine:3.16.2
|
||||||
|
|
||||||
# Install ca-certificates
|
# Install ca-certificates
|
||||||
RUN apk add --update ca-certificates jq curl
|
RUN apk add --update ca-certificates jq
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
# Copy over binaries from the build-env
|
# Copy over binaries from the build-env
|
||||||
|
157
Makefile
Normal file → Executable file
157
Makefile
Normal file → Executable file
@ -14,6 +14,7 @@ SIMAPP = ./app
|
|||||||
HTTPS_GIT := https://github.com/cerc-io/laconicd.git
|
HTTPS_GIT := https://github.com/cerc-io/laconicd.git
|
||||||
PROJECT_NAME = $(shell git remote get-url origin | xargs basename -s .git)
|
PROJECT_NAME = $(shell git remote get-url origin | xargs basename -s .git)
|
||||||
DOCKER := $(shell which docker)
|
DOCKER := $(shell which docker)
|
||||||
|
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf:1.0.0-rc8
|
||||||
# RocksDB is a native dependency, so we don't assume the library is installed.
|
# RocksDB is a native dependency, so we don't assume the library is installed.
|
||||||
# Instead, it must be explicitly enabled and we warn when it is not.
|
# Instead, it must be explicitly enabled and we warn when it is not.
|
||||||
ENABLE_ROCKSDB ?= false
|
ENABLE_ROCKSDB ?= false
|
||||||
@ -110,12 +111,6 @@ ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS)))
|
|||||||
BUILD_FLAGS += -trimpath
|
BUILD_FLAGS += -trimpath
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# check if no optimization option is passed
|
|
||||||
# used for remote debugging
|
|
||||||
ifneq (,$(findstring nooptimization,$(COSMOS_BUILD_OPTIONS)))
|
|
||||||
BUILD_FLAGS += -gcflags "all=-N -l"
|
|
||||||
endif
|
|
||||||
|
|
||||||
# # The below include contains the tools and runsim targets.
|
# # The below include contains the tools and runsim targets.
|
||||||
# include contrib/devtools/Makefile
|
# include contrib/devtools/Makefile
|
||||||
|
|
||||||
@ -163,7 +158,7 @@ clean:
|
|||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
build-all: tools build lint test vulncheck
|
build-all: tools build lint test
|
||||||
|
|
||||||
.PHONY: distclean clean build-all
|
.PHONY: distclean clean build-all
|
||||||
|
|
||||||
@ -172,7 +167,7 @@ build-all: tools build lint test vulncheck
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
PACKAGE_NAME:=github.com/cerc-io/laconicd
|
PACKAGE_NAME:=github.com/cerc-io/laconicd
|
||||||
GOLANG_CROSS_VERSION = v1.19
|
GOLANG_CROSS_VERSION = v1.18
|
||||||
GOPATH ?= '$(HOME)/go'
|
GOPATH ?= '$(HOME)/go'
|
||||||
release-dry-run:
|
release-dry-run:
|
||||||
docker run \
|
docker run \
|
||||||
@ -237,7 +232,7 @@ endif
|
|||||||
|
|
||||||
ifeq (, $(shell which go-bindata))
|
ifeq (, $(shell which go-bindata))
|
||||||
@echo "Installing go-bindata..."
|
@echo "Installing go-bindata..."
|
||||||
@go get github.com/kevinburke/go-bindata/go-bindata@v3
|
@go get github.com/kevinburke/go-bindata/go-bindata
|
||||||
else
|
else
|
||||||
@echo "go-bindata already installed; skipping..."
|
@echo "go-bindata already installed; skipping..."
|
||||||
endif
|
endif
|
||||||
@ -281,10 +276,6 @@ go.sum: go.mod
|
|||||||
go mod verify
|
go mod verify
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
vulncheck: $(BUILDDIR)/
|
|
||||||
GOBIN=$(BUILDDIR) go install golang.org/x/vuln/cmd/govulncheck@latest
|
|
||||||
$(BUILDDIR)/govulncheck ./...
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
### Documentation ###
|
### Documentation ###
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@ -339,6 +330,9 @@ test-import:
|
|||||||
test-rpc:
|
test-rpc:
|
||||||
./scripts/integration-test-all.sh -t "rpc" -q 1 -z 1 -s 2 -m "rpc" -r "true"
|
./scripts/integration-test-all.sh -t "rpc" -q 1 -z 1 -s 2 -m "rpc" -r "true"
|
||||||
|
|
||||||
|
test-integration:
|
||||||
|
./scripts/integration-test-all.sh -t "integration" -q 1 -z 1 -s 2 -m "integration" -r "true"
|
||||||
|
|
||||||
run-integration-tests:
|
run-integration-tests:
|
||||||
@nix-shell ./tests/integration_tests/shell.nix --run ./scripts/run-integration-tests.sh
|
@nix-shell ./tests/integration_tests/shell.nix --run ./scripts/run-integration-tests.sh
|
||||||
|
|
||||||
@ -355,6 +349,51 @@ test-solidity:
|
|||||||
|
|
||||||
.PHONY: run-tests test test-all test-import test-rpc test-contract test-solidity $(TEST_TARGETS)
|
.PHONY: run-tests test test-all test-import test-rpc test-contract test-solidity $(TEST_TARGETS)
|
||||||
|
|
||||||
|
test-sim-nondeterminism:
|
||||||
|
@echo "Running non-determinism test..."
|
||||||
|
@go test -mod=readonly $(SIMAPP) -run TestAppStateDeterminism -Enabled=true \
|
||||||
|
-NumBlocks=100 -BlockSize=200 -Commit=true -Period=0 -v -timeout 24h
|
||||||
|
|
||||||
|
test-sim-random-genesis-fast:
|
||||||
|
@echo "Running random genesis simulation..."
|
||||||
|
@go test -mod=readonly $(SIMAPP) -run TestFullAppSimulation \
|
||||||
|
-Enabled=true -NumBlocks=100 -BlockSize=200 -Commit=true -Seed=99 -Period=5 -v -timeout 24h
|
||||||
|
|
||||||
|
test-sim-import-export: runsim
|
||||||
|
@echo "Running application import/export simulation. This may take several minutes..."
|
||||||
|
@$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(SIMAPP) -ExitOnFail 50 5 TestAppImportExport
|
||||||
|
|
||||||
|
test-sim-after-import: runsim
|
||||||
|
@echo "Running application simulation-after-import. This may take several minutes..."
|
||||||
|
@$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(SIMAPP) -ExitOnFail 50 5 TestAppSimulationAfterImport
|
||||||
|
|
||||||
|
test-sim-random-genesis-multi-seed: runsim
|
||||||
|
@echo "Running multi-seed custom genesis simulation..."
|
||||||
|
@$(BINDIR)/runsim -SimAppPkg=$(SIMAPP) -ExitOnFail 400 5 TestFullAppSimulation
|
||||||
|
|
||||||
|
test-sim-multi-seed-long: runsim
|
||||||
|
@echo "Running long multi-seed application simulation. This may take awhile!"
|
||||||
|
@$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(SIMAPP) -ExitOnFail 500 50 TestFullAppSimulation
|
||||||
|
|
||||||
|
test-sim-multi-seed-short: runsim
|
||||||
|
@echo "Running short multi-seed application simulation. This may take awhile!"
|
||||||
|
@$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(SIMAPP) -ExitOnFail 50 10 TestFullAppSimulation
|
||||||
|
|
||||||
|
test-sim-benchmark-invariants:
|
||||||
|
@echo "Running simulation invariant benchmarks..."
|
||||||
|
@go test -mod=readonly $(SIMAPP) -benchmem -bench=BenchmarkInvariants -run=^$ \
|
||||||
|
-Enabled=true -NumBlocks=1000 -BlockSize=200 \
|
||||||
|
-Period=1 -Commit=true -Seed=57 -v -timeout 24h
|
||||||
|
|
||||||
|
.PHONY: \
|
||||||
|
test-sim-nondeterminism \
|
||||||
|
test-sim-custom-genesis-fast \
|
||||||
|
test-sim-import-export \
|
||||||
|
test-sim-after-import \
|
||||||
|
test-sim-custom-genesis-multi-seed \
|
||||||
|
test-sim-multi-seed-short \
|
||||||
|
test-sim-multi-seed-long \
|
||||||
|
test-sim-benchmark-invariants
|
||||||
|
|
||||||
benchmark:
|
benchmark:
|
||||||
@go test -mod=readonly -bench=. $(PACKAGES_NOSIMULATION)
|
@go test -mod=readonly -bench=. $(PACKAGES_NOSIMULATION)
|
||||||
@ -388,62 +427,74 @@ format-fix:
|
|||||||
### Protobuf ###
|
### Protobuf ###
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# ------
|
protoVer=v0.2
|
||||||
# NOTE: Link to the tendermintdev/sdk-proto-gen docker images:
|
|
||||||
# https://hub.docker.com/r/tendermintdev/sdk-proto-gen/tags
|
|
||||||
#
|
|
||||||
protoVer=v0.7
|
|
||||||
protoImageName=tendermintdev/sdk-proto-gen:$(protoVer)
|
protoImageName=tendermintdev/sdk-proto-gen:$(protoVer)
|
||||||
protoImage=$(DOCKER) run --network host --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
|
containerProtoGen=$(PROJECT_NAME)-proto-gen-$(protoVer)
|
||||||
# ------
|
containerProtoGenAny=$(PROJECT_NAME)-proto-gen-any-$(protoVer)
|
||||||
# NOTE: cosmos/proto-builder image is needed because clang-format is not installed
|
containerProtoGenSwagger=$(PROJECT_NAME)-proto-gen-swagger-$(protoVer)
|
||||||
# on the tendermintdev/sdk-proto-gen docker image.
|
containerProtoFmt=$(PROJECT_NAME)-proto-fmt-$(protoVer)
|
||||||
# Link to the cosmos/proto-builder docker images:
|
|
||||||
# https://github.com/cosmos/cosmos-sdk/pkgs/container/proto-builder
|
|
||||||
#
|
|
||||||
protoCosmosVer=0.11.2
|
|
||||||
protoCosmosName=ghcr.io/cosmos/proto-builder:$(protoCosmosVer)
|
|
||||||
protoCosmosImage=$(DOCKER) run --network host --rm -v $(CURDIR):/workspace --workdir /workspace $(protoCosmosName)
|
|
||||||
# ------
|
|
||||||
# NOTE: Link to the yoheimuta/protolint docker images:
|
|
||||||
# https://hub.docker.com/r/yoheimuta/protolint/tags
|
|
||||||
#
|
|
||||||
protolintVer=0.42.2
|
|
||||||
protolintName=yoheimuta/protolint:$(protolintVer)
|
|
||||||
protolintImage=$(DOCKER) run --network host --rm -v $(CURDIR):/workspace --workdir /workspace $(protolintName)
|
|
||||||
|
|
||||||
|
|
||||||
# ------
|
|
||||||
# NOTE: If you are experiencing problems running these commands, try deleting
|
|
||||||
# the docker images and execute the desired command again.
|
|
||||||
#
|
|
||||||
proto-all: proto-format proto-lint proto-gen
|
proto-all: proto-format proto-lint proto-gen
|
||||||
|
|
||||||
proto-gen:
|
proto-gen:
|
||||||
@echo "Generating Protobuf files"
|
@echo "Generating Protobuf files"
|
||||||
$(protoImage) sh ./scripts/protocgen.sh
|
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \
|
||||||
|
sh ./scripts/protocgen.sh; fi
|
||||||
|
|
||||||
|
proto-swagger-gen:
|
||||||
# TODO: Rethink API docs generation
|
@echo "Generating Protobuf Swagger"
|
||||||
# proto-swagger-gen:
|
@./scripts/proto-tools-installer.sh
|
||||||
# @echo "Generating Protobuf Swagger"
|
@./scripts/protoc-swagger-gen.sh
|
||||||
# $(protoImage) sh ./scripts/protoc-swagger-gen.sh
|
|
||||||
|
|
||||||
proto-format:
|
proto-format:
|
||||||
@echo "Formatting Protobuf files"
|
@echo "Formatting Protobuf files"
|
||||||
$(protoCosmosImage) find ./ -name *.proto -exec clang-format -i {} \;
|
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoFmt}$$"; then docker start -a $(containerProtoFmt); else docker run --name $(containerProtoFmt) -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \
|
||||||
|
find ./ -not -path "./third_party/*" -name "*.proto" -exec clang-format -i {} \; ; fi
|
||||||
|
|
||||||
# NOTE: The linter configuration lives in .protolint.yaml
|
|
||||||
proto-lint:
|
proto-lint:
|
||||||
@echo "Linting Protobuf files"
|
@$(DOCKER_BUF) lint --error-format=json
|
||||||
$(protolintImage) lint ./proto
|
|
||||||
|
|
||||||
proto-check-breaking:
|
proto-check-breaking:
|
||||||
@echo "Checking Protobuf files for breaking changes"
|
@$(DOCKER_BUF) breaking --against $(HTTPS_GIT)#branch=main
|
||||||
$(protoImage) buf breaking --against $(HTTPS_GIT)#branch=main
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: proto-all proto-gen proto-gen-any proto-format proto-lint proto-check-breaking
|
TM_URL = https://raw.githubusercontent.com/tendermint/tendermint/v0.34.12/proto/tendermint
|
||||||
|
GOGO_PROTO_URL = https://raw.githubusercontent.com/regen-network/protobuf/cosmos
|
||||||
|
COSMOS_SDK_URL = https://raw.githubusercontent.com/cosmos/cosmos-sdk/v0.43.0
|
||||||
|
COSMOS_PROTO_URL = https://raw.githubusercontent.com/regen-network/cosmos-proto/master
|
||||||
|
|
||||||
|
TM_CRYPTO_TYPES = third_party/proto/tendermint/crypto
|
||||||
|
TM_ABCI_TYPES = third_party/proto/tendermint/abci
|
||||||
|
TM_TYPES = third_party/proto/tendermint/types
|
||||||
|
|
||||||
|
GOGO_PROTO_TYPES = third_party/proto/gogoproto
|
||||||
|
|
||||||
|
COSMOS_PROTO_TYPES = third_party/proto/cosmos_proto
|
||||||
|
|
||||||
|
proto-update-deps:
|
||||||
|
@mkdir -p $(GOGO_PROTO_TYPES)
|
||||||
|
@curl -sSL $(GOGO_PROTO_URL)/gogoproto/gogo.proto > $(GOGO_PROTO_TYPES)/gogo.proto
|
||||||
|
|
||||||
|
@mkdir -p $(COSMOS_PROTO_TYPES)
|
||||||
|
@curl -sSL $(COSMOS_PROTO_URL)/cosmos.proto > $(COSMOS_PROTO_TYPES)/cosmos.proto
|
||||||
|
|
||||||
|
## Importing of tendermint protobuf definitions currently requires the
|
||||||
|
## use of `sed` in order to build properly with cosmos-sdk's proto file layout
|
||||||
|
## (which is the standard Buf.build FILE_LAYOUT)
|
||||||
|
## Issue link: https://github.com/tendermint/tendermint/issues/5021
|
||||||
|
@mkdir -p $(TM_ABCI_TYPES)
|
||||||
|
@curl -sSL $(TM_URL)/abci/types.proto > $(TM_ABCI_TYPES)/types.proto
|
||||||
|
|
||||||
|
@mkdir -p $(TM_TYPES)
|
||||||
|
@curl -sSL $(TM_URL)/types/types.proto > $(TM_TYPES)/types.proto
|
||||||
|
|
||||||
|
@mkdir -p $(TM_CRYPTO_TYPES)
|
||||||
|
@curl -sSL $(TM_URL)/crypto/proof.proto > $(TM_CRYPTO_TYPES)/proof.proto
|
||||||
|
@curl -sSL $(TM_URL)/crypto/keys.proto > $(TM_CRYPTO_TYPES)/keys.proto
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: proto-all proto-gen proto-gen-any proto-swagger-gen proto-format proto-lint proto-check-breaking proto-update-deps
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
### Localnet ###
|
### Localnet ###
|
||||||
|
10
README.md
10
README.md
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
The Source of Proof. Laconic is a next generation data availability & verifiability layer with cryptographic proofs, powering internet-scale Web3 applications, built on Proof-of-Stake with fast-finality using the [Cosmos SDK](https://github.com/cosmos/cosmos-sdk/) which runs on top of [Tendermint Core](https://github.com/tendermint/tendermint) consensus engine.
|
The Source of Proof. Laconic is a next generation data availability & verifiability layer with cryptographic proofs, powering internet-scale Web3 applications, built on Proof-of-Stake with fast-finality using the [Cosmos SDK](https://github.com/cosmos/cosmos-sdk/) which runs on top of [Tendermint Core](https://github.com/tendermint/tendermint) consensus engine.
|
||||||
|
|
||||||
**Note**: Requires [Go 1.19+](https://golang.org/dl/)
|
**Note**: Requires [Go 1.18+](https://golang.org/dl/)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -15,14 +15,6 @@ The Source of Proof. Laconic is a next generation data availability & verifiabil
|
|||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
To quickly get started with a single node fixture, run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
./init.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## Community
|
## Community
|
||||||
|
|
||||||
The following chat channels and forums are a great spot to ask questions about Ethermint:
|
The following chat channels and forums are a great spot to ask questions about Ethermint:
|
||||||
|
@ -6,10 +6,8 @@ import (
|
|||||||
|
|
||||||
tmlog "github.com/tendermint/tendermint/libs/log"
|
tmlog "github.com/tendermint/tendermint/libs/log"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/types/multisig"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
||||||
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
||||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||||
@ -46,14 +44,14 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
|
|||||||
// handle as *evmtypes.MsgEthereumTx
|
// handle as *evmtypes.MsgEthereumTx
|
||||||
anteHandler = newEthAnteHandler(options)
|
anteHandler = newEthAnteHandler(options)
|
||||||
case "/ethermint.types.v1.ExtensionOptionsWeb3Tx":
|
case "/ethermint.types.v1.ExtensionOptionsWeb3Tx":
|
||||||
// Deprecated: Handle as normal Cosmos SDK tx, except signature is checked for Legacy EIP712 representation
|
// handle as normal Cosmos SDK tx, except signature is checked for EIP712 representation
|
||||||
anteHandler = NewLegacyCosmosAnteHandlerEip712(options)
|
anteHandler = newCosmosAnteHandlerEip712(options)
|
||||||
case "/ethermint.types.v1.ExtensionOptionDynamicFeeTx":
|
case "/ethermint.types.v1.ExtensionOptionDynamicFeeTx":
|
||||||
// cosmos-sdk tx with dynamic fee extension
|
// cosmos-sdk tx with dynamic fee extension
|
||||||
anteHandler = newCosmosAnteHandler(options)
|
anteHandler = newCosmosAnteHandler(options)
|
||||||
default:
|
default:
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(
|
||||||
errortypes.ErrUnknownExtensionOptions,
|
sdkerrors.ErrUnknownExtensionOptions,
|
||||||
"rejecting tx with unsupported extension option: %s", typeURL,
|
"rejecting tx with unsupported extension option: %s", typeURL,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -67,7 +65,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
|
|||||||
case sdk.Tx:
|
case sdk.Tx:
|
||||||
anteHandler = newCosmosAnteHandler(options)
|
anteHandler = newCosmosAnteHandler(options)
|
||||||
default:
|
default:
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid transaction type: %T", tx)
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid transaction type: %T", tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
return anteHandler(ctx, tx, sim)
|
return anteHandler(ctx, tx, sim)
|
||||||
@ -76,7 +74,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
|
|||||||
|
|
||||||
func Recover(logger tmlog.Logger, err *error) {
|
func Recover(logger tmlog.Logger, err *error) {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
*err = errorsmod.Wrapf(errortypes.ErrPanic, "%v", r)
|
*err = sdkerrors.Wrapf(sdkerrors.ErrPanic, "%v", r)
|
||||||
|
|
||||||
if e, ok := r.(error); ok {
|
if e, ok := r.(error); ok {
|
||||||
logger.Error(
|
logger.Error(
|
||||||
@ -101,48 +99,12 @@ var _ authante.SignatureVerificationGasConsumer = DefaultSigVerificationGasConsu
|
|||||||
func DefaultSigVerificationGasConsumer(
|
func DefaultSigVerificationGasConsumer(
|
||||||
meter sdk.GasMeter, sig signing.SignatureV2, params authtypes.Params,
|
meter sdk.GasMeter, sig signing.SignatureV2, params authtypes.Params,
|
||||||
) error {
|
) error {
|
||||||
pubkey := sig.PubKey
|
// support for ethereum ECDSA secp256k1 keys
|
||||||
switch pubkey := pubkey.(type) {
|
_, ok := sig.PubKey.(*ethsecp256k1.PubKey)
|
||||||
case *ethsecp256k1.PubKey:
|
if ok {
|
||||||
meter.ConsumeGas(secp256k1VerifyCost, "ante verify: eth_secp256k1")
|
meter.ConsumeGas(secp256k1VerifyCost, "ante verify: eth_secp256k1")
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
case multisig.PubKey:
|
|
||||||
// Multisig keys
|
|
||||||
multisignature, ok := sig.Data.(*signing.MultiSignatureData)
|
|
||||||
if !ok {
|
|
||||||
return fmt.Errorf("expected %T, got, %T", &signing.MultiSignatureData{}, sig.Data)
|
|
||||||
}
|
}
|
||||||
return ConsumeMultisignatureVerificationGas(meter, multisignature, pubkey, params, sig.Sequence)
|
|
||||||
|
|
||||||
default:
|
|
||||||
return authante.DefaultSigVerificationGasConsumer(meter, sig, params)
|
return authante.DefaultSigVerificationGasConsumer(meter, sig, params)
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ConsumeMultisignatureVerificationGas consumes gas from a GasMeter for verifying a multisig pubkey signature
|
|
||||||
func ConsumeMultisignatureVerificationGas(
|
|
||||||
meter sdk.GasMeter, sig *signing.MultiSignatureData, pubkey multisig.PubKey,
|
|
||||||
params authtypes.Params, accSeq uint64,
|
|
||||||
) error {
|
|
||||||
size := sig.BitArray.Count()
|
|
||||||
sigIndex := 0
|
|
||||||
|
|
||||||
for i := 0; i < size; i++ {
|
|
||||||
if !sig.BitArray.GetIndex(i) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
sigV2 := signing.SignatureV2{
|
|
||||||
PubKey: pubkey.GetPubKeys()[i],
|
|
||||||
Data: sig.Signatures[sigIndex],
|
|
||||||
Sequence: accSeq,
|
|
||||||
}
|
|
||||||
err := DefaultSigVerificationGasConsumer(meter, sigV2, params)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
sigIndex++
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
@ -2,36 +2,24 @@ package ante_test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"math/big"
|
"math/big"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
sdkmath "cosmossdk.io/math"
|
sdkmath "cosmossdk.io/math"
|
||||||
kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
|
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1"
|
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/types/multisig"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
|
||||||
|
|
||||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/authz"
|
"github.com/cosmos/cosmos-sdk/x/authz"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/app/ante"
|
|
||||||
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
|
|
||||||
"github.com/cerc-io/laconicd/tests"
|
"github.com/cerc-io/laconicd/tests"
|
||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
ethparams "github.com/ethereum/go-ethereum/params"
|
ethparams "github.com/ethereum/go-ethereum/params"
|
||||||
|
|
||||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (suite AnteTestSuite) TestAnteHandler() {
|
func (suite AnteTestSuite) TestAnteHandler() {
|
||||||
@ -349,17 +337,6 @@ func (suite AnteTestSuite) TestAnteHandler() {
|
|||||||
return txBuilder.GetTx()
|
return txBuilder.GetTx()
|
||||||
}, false, false, true,
|
}, false, false, true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"success- DeliverTx EIP712 create validator (with blank fields)",
|
|
||||||
func() sdk.Tx {
|
|
||||||
from := acc.GetAddress()
|
|
||||||
coinAmount := sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20))
|
|
||||||
amount := sdk.NewCoins(coinAmount)
|
|
||||||
gas := uint64(200000)
|
|
||||||
txBuilder := suite.CreateTestEIP712MsgCreateValidator2(from, privKey, "ethermint_9000-1", gas, amount)
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"success- DeliverTx EIP712 MsgSubmitProposal",
|
"success- DeliverTx EIP712 MsgSubmitProposal",
|
||||||
func() sdk.Tx {
|
func() sdk.Tx {
|
||||||
@ -387,7 +364,7 @@ func (suite AnteTestSuite) TestAnteHandler() {
|
|||||||
from, grantee, &banktypes.SendAuthorization{SpendLimit: gasAmount}, &expiresAt,
|
from, grantee, &banktypes.SendAuthorization{SpendLimit: gasAmount}, &expiresAt,
|
||||||
)
|
)
|
||||||
suite.Require().NoError(err)
|
suite.Require().NoError(err)
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, privKey, "ethermint_9000-1", gas, gasAmount, msg).GetTx()
|
return suite.CreateTestEIP712CosmosTxBuilder(from, privKey, "ethermint_9000-1", gas, gasAmount, msg).GetTx()
|
||||||
}, false, false, true,
|
}, false, false, true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -420,65 +397,10 @@ func (suite AnteTestSuite) TestAnteHandler() {
|
|||||||
coinAmount := sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20))
|
coinAmount := sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20))
|
||||||
amount := sdk.NewCoins(coinAmount)
|
amount := sdk.NewCoins(coinAmount)
|
||||||
gas := uint64(200000)
|
gas := uint64(200000)
|
||||||
txBuilder := suite.CreateTestEIP712MsgSubmitEvidence(from, privKey, "ethermint_9000-1", gas, amount)
|
txBuilder := suite.CreateTestEIP712MsgEditValidator(from, privKey, "ethermint_9000-1", gas, amount)
|
||||||
return txBuilder.GetTx()
|
return txBuilder.GetTx()
|
||||||
}, false, false, true,
|
}, false, false, true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"success- DeliverTx EIP712 submit proposal v1",
|
|
||||||
func() sdk.Tx {
|
|
||||||
from := acc.GetAddress()
|
|
||||||
coinAmount := sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20))
|
|
||||||
amount := sdk.NewCoins(coinAmount)
|
|
||||||
gas := uint64(200000)
|
|
||||||
txBuilder := suite.CreateTestEIP712SubmitProposalV1(from, privKey, "ethermint_9000-1", gas, amount)
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"success- DeliverTx EIP712 MsgExec",
|
|
||||||
func() sdk.Tx {
|
|
||||||
from := acc.GetAddress()
|
|
||||||
coinAmount := sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20))
|
|
||||||
amount := sdk.NewCoins(coinAmount)
|
|
||||||
gas := uint64(200000)
|
|
||||||
txBuilder := suite.CreateTestEIP712MsgExec(from, privKey, "ethermint_9000-1", gas, amount)
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"success- DeliverTx EIP712 MsgVoteV1",
|
|
||||||
func() sdk.Tx {
|
|
||||||
from := acc.GetAddress()
|
|
||||||
coinAmount := sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20))
|
|
||||||
amount := sdk.NewCoins(coinAmount)
|
|
||||||
gas := uint64(200000)
|
|
||||||
txBuilder := suite.CreateTestEIP712MsgVoteV1(from, privKey, "ethermint_9000-1", gas, amount)
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"success- DeliverTx EIP712 Multiple MsgSend",
|
|
||||||
func() sdk.Tx {
|
|
||||||
from := acc.GetAddress()
|
|
||||||
coinAmount := sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20))
|
|
||||||
amount := sdk.NewCoins(coinAmount)
|
|
||||||
gas := uint64(200000)
|
|
||||||
txBuilder := suite.CreateTestEIP712MultipleMsgSend(from, privKey, "ethermint_9000-1", gas, amount)
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fails - DeliverTx EIP712 Multiple Signers",
|
|
||||||
func() sdk.Tx {
|
|
||||||
from := acc.GetAddress()
|
|
||||||
coinAmount := sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20))
|
|
||||||
amount := sdk.NewCoins(coinAmount)
|
|
||||||
gas := uint64(200000)
|
|
||||||
txBuilder := suite.CreateTestEIP712MultipleSignerMsgs(from, privKey, "ethermint_9000-1", gas, amount)
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fails - DeliverTx EIP712 signed Cosmos Tx with wrong Chain ID",
|
"fails - DeliverTx EIP712 signed Cosmos Tx with wrong Chain ID",
|
||||||
func() sdk.Tx {
|
func() sdk.Tx {
|
||||||
@ -574,301 +496,6 @@ func (suite AnteTestSuite) TestAnteHandler() {
|
|||||||
return tx
|
return tx
|
||||||
}, true, false, false,
|
}, true, false, false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"passes - Single-signer EIP-712",
|
|
||||||
func() sdk.Tx {
|
|
||||||
msg := banktypes.NewMsgSend(
|
|
||||||
sdk.AccAddress(privKey.PubKey().Address()),
|
|
||||||
addr[:],
|
|
||||||
sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
"photon",
|
|
||||||
sdk.NewInt(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSingleSignedTx(
|
|
||||||
privKey,
|
|
||||||
signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON,
|
|
||||||
msg,
|
|
||||||
"ethermint_9000-1",
|
|
||||||
2000000,
|
|
||||||
"EIP-712",
|
|
||||||
)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"passes - EIP-712 multi-key",
|
|
||||||
func() sdk.Tx {
|
|
||||||
numKeys := 5
|
|
||||||
privKeys, pubKeys := suite.GenerateMultipleKeys(numKeys)
|
|
||||||
pk := kmultisig.NewLegacyAminoPubKey(numKeys, pubKeys)
|
|
||||||
|
|
||||||
msg := banktypes.NewMsgSend(
|
|
||||||
sdk.AccAddress(pk.Address()),
|
|
||||||
addr[:],
|
|
||||||
sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
"photon",
|
|
||||||
sdk.NewInt(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSignedMultisigTx(
|
|
||||||
privKeys,
|
|
||||||
signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON,
|
|
||||||
msg,
|
|
||||||
"ethermint_9000-1",
|
|
||||||
2000000,
|
|
||||||
"EIP-712",
|
|
||||||
)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"passes - Mixed multi-key",
|
|
||||||
func() sdk.Tx {
|
|
||||||
numKeys := 5
|
|
||||||
privKeys, pubKeys := suite.GenerateMultipleKeys(numKeys)
|
|
||||||
pk := kmultisig.NewLegacyAminoPubKey(numKeys, pubKeys)
|
|
||||||
|
|
||||||
msg := banktypes.NewMsgSend(
|
|
||||||
sdk.AccAddress(pk.Address()),
|
|
||||||
addr[:],
|
|
||||||
sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
"photon",
|
|
||||||
sdk.NewInt(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSignedMultisigTx(
|
|
||||||
privKeys,
|
|
||||||
signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON,
|
|
||||||
msg,
|
|
||||||
"ethermint_9000-1",
|
|
||||||
2000000,
|
|
||||||
"mixed", // Combine EIP-712 and standard signatures
|
|
||||||
)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"passes - Mixed multi-key with MsgVote",
|
|
||||||
func() sdk.Tx {
|
|
||||||
numKeys := 5
|
|
||||||
privKeys, pubKeys := suite.GenerateMultipleKeys(numKeys)
|
|
||||||
pk := kmultisig.NewLegacyAminoPubKey(numKeys, pubKeys)
|
|
||||||
|
|
||||||
msg := govtypes.NewMsgVote(
|
|
||||||
sdk.AccAddress(pk.Address()),
|
|
||||||
1,
|
|
||||||
govtypes.OptionYes,
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSignedMultisigTx(
|
|
||||||
privKeys,
|
|
||||||
signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON,
|
|
||||||
msg,
|
|
||||||
"ethermint_9000-1",
|
|
||||||
2000000,
|
|
||||||
"mixed", // Combine EIP-712 and standard signatures
|
|
||||||
)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Fails - Multi-Key with incorrect Chain ID",
|
|
||||||
func() sdk.Tx {
|
|
||||||
numKeys := 5
|
|
||||||
privKeys, pubKeys := suite.GenerateMultipleKeys(numKeys)
|
|
||||||
pk := kmultisig.NewLegacyAminoPubKey(numKeys, pubKeys)
|
|
||||||
|
|
||||||
msg := banktypes.NewMsgSend(
|
|
||||||
sdk.AccAddress(pk.Address()),
|
|
||||||
addr[:],
|
|
||||||
sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
"photon",
|
|
||||||
sdk.NewInt(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSignedMultisigTx(
|
|
||||||
privKeys,
|
|
||||||
signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON,
|
|
||||||
msg,
|
|
||||||
"ethermint_9005-1",
|
|
||||||
2000000,
|
|
||||||
"mixed",
|
|
||||||
)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Fails - Multi-Key with incorrect sign mode",
|
|
||||||
func() sdk.Tx {
|
|
||||||
numKeys := 5
|
|
||||||
privKeys, pubKeys := suite.GenerateMultipleKeys(numKeys)
|
|
||||||
pk := kmultisig.NewLegacyAminoPubKey(numKeys, pubKeys)
|
|
||||||
|
|
||||||
msg := banktypes.NewMsgSend(
|
|
||||||
sdk.AccAddress(pk.Address()),
|
|
||||||
addr[:],
|
|
||||||
sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
"photon",
|
|
||||||
sdk.NewInt(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSignedMultisigTx(
|
|
||||||
privKeys,
|
|
||||||
signing.SignMode_SIGN_MODE_DIRECT,
|
|
||||||
msg,
|
|
||||||
"ethermint_9000-1",
|
|
||||||
2000000,
|
|
||||||
"mixed",
|
|
||||||
)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Fails - Multi-Key with too little gas",
|
|
||||||
func() sdk.Tx {
|
|
||||||
numKeys := 5
|
|
||||||
privKeys, pubKeys := suite.GenerateMultipleKeys(numKeys)
|
|
||||||
pk := kmultisig.NewLegacyAminoPubKey(numKeys, pubKeys)
|
|
||||||
|
|
||||||
msg := banktypes.NewMsgSend(
|
|
||||||
sdk.AccAddress(pk.Address()),
|
|
||||||
addr[:],
|
|
||||||
sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
"photon",
|
|
||||||
sdk.NewInt(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSignedMultisigTx(
|
|
||||||
privKeys,
|
|
||||||
signing.SignMode_SIGN_MODE_DIRECT,
|
|
||||||
msg,
|
|
||||||
"ethermint_9000-1",
|
|
||||||
2000,
|
|
||||||
"mixed", // Combine EIP-712 and standard signatures
|
|
||||||
)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Fails - Multi-Key with different payload than one signed",
|
|
||||||
func() sdk.Tx {
|
|
||||||
numKeys := 1
|
|
||||||
privKeys, pubKeys := suite.GenerateMultipleKeys(numKeys)
|
|
||||||
pk := kmultisig.NewLegacyAminoPubKey(numKeys, pubKeys)
|
|
||||||
|
|
||||||
msg := banktypes.NewMsgSend(
|
|
||||||
sdk.AccAddress(pk.Address()),
|
|
||||||
addr[:],
|
|
||||||
sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
"photon",
|
|
||||||
sdk.NewInt(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSignedMultisigTx(
|
|
||||||
privKeys,
|
|
||||||
signing.SignMode_SIGN_MODE_DIRECT,
|
|
||||||
msg,
|
|
||||||
"ethermint_9000-1",
|
|
||||||
2000,
|
|
||||||
"EIP-712",
|
|
||||||
)
|
|
||||||
|
|
||||||
msg.Amount[0].Amount = sdk.NewInt(5)
|
|
||||||
txBuilder.SetMsgs(msg)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Fails - Multi-Key with messages added after signing",
|
|
||||||
func() sdk.Tx {
|
|
||||||
numKeys := 1
|
|
||||||
privKeys, pubKeys := suite.GenerateMultipleKeys(numKeys)
|
|
||||||
pk := kmultisig.NewLegacyAminoPubKey(numKeys, pubKeys)
|
|
||||||
|
|
||||||
msg := banktypes.NewMsgSend(
|
|
||||||
sdk.AccAddress(pk.Address()),
|
|
||||||
addr[:],
|
|
||||||
sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
"photon",
|
|
||||||
sdk.NewInt(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSignedMultisigTx(
|
|
||||||
privKeys,
|
|
||||||
signing.SignMode_SIGN_MODE_DIRECT,
|
|
||||||
msg,
|
|
||||||
"ethermint_9000-1",
|
|
||||||
2000,
|
|
||||||
"EIP-712",
|
|
||||||
)
|
|
||||||
|
|
||||||
// Duplicate
|
|
||||||
txBuilder.SetMsgs(msg, msg)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Fails - Single-Signer EIP-712 with messages added after signing",
|
|
||||||
func() sdk.Tx {
|
|
||||||
msg := banktypes.NewMsgSend(
|
|
||||||
sdk.AccAddress(privKey.PubKey().Address()),
|
|
||||||
addr[:],
|
|
||||||
sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
"photon",
|
|
||||||
sdk.NewInt(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder := suite.CreateTestSingleSignedTx(
|
|
||||||
privKey,
|
|
||||||
signing.SignMode_SIGN_MODE_DIRECT,
|
|
||||||
msg,
|
|
||||||
"ethermint_9000-1",
|
|
||||||
2000,
|
|
||||||
"EIP-712",
|
|
||||||
)
|
|
||||||
|
|
||||||
txBuilder.SetMsgs(msg, msg)
|
|
||||||
|
|
||||||
return txBuilder.GetTx()
|
|
||||||
}, false, false, false,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range testCases {
|
for _, tc := range testCases {
|
||||||
@ -1287,93 +914,3 @@ func (suite AnteTestSuite) TestAnteHandlerWithParams() {
|
|||||||
}
|
}
|
||||||
suite.evmParamsOption = nil
|
suite.evmParamsOption = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *AnteTestSuite) TestConsumeSignatureVerificationGas() {
|
|
||||||
params := authtypes.DefaultParams()
|
|
||||||
msg := []byte{1, 2, 3, 4}
|
|
||||||
cdc := simapp.MakeTestEncodingConfig().Amino
|
|
||||||
|
|
||||||
p := authtypes.DefaultParams()
|
|
||||||
skR1, _ := secp256r1.GenPrivKey()
|
|
||||||
pkSet1, sigSet1, err := generatePubKeysAndSignatures(5, msg, false)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
multisigKey1 := kmultisig.NewLegacyAminoPubKey(2, pkSet1)
|
|
||||||
multisignature1 := multisig.NewMultisig(len(pkSet1))
|
|
||||||
expectedCost1 := expectedGasCostByKeys(pkSet1)
|
|
||||||
|
|
||||||
for i := 0; i < len(pkSet1); i++ {
|
|
||||||
stdSig := legacytx.StdSignature{PubKey: pkSet1[i], Signature: sigSet1[i]}
|
|
||||||
sigV2, err := legacytx.StdSignatureToSignatureV2(cdc, stdSig)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
err = multisig.AddSignatureV2(multisignature1, sigV2, pkSet1)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
type args struct {
|
|
||||||
meter sdk.GasMeter
|
|
||||||
sig signing.SignatureData
|
|
||||||
pubkey cryptotypes.PubKey
|
|
||||||
params authtypes.Params
|
|
||||||
}
|
|
||||||
tests := []struct {
|
|
||||||
name string
|
|
||||||
args args
|
|
||||||
gasConsumed uint64
|
|
||||||
shouldErr bool
|
|
||||||
}{
|
|
||||||
{"PubKeyEd25519", args{sdk.NewInfiniteGasMeter(), nil, ed25519.GenPrivKey().PubKey(), params}, p.SigVerifyCostED25519, true},
|
|
||||||
{"PubKeyEthSecp256k1", args{sdk.NewInfiniteGasMeter(), nil, pkSet1[0], params}, 21_000, false},
|
|
||||||
{"PubKeySecp256r1", args{sdk.NewInfiniteGasMeter(), nil, skR1.PubKey(), params}, p.SigVerifyCostSecp256r1(), false},
|
|
||||||
{"Multisig", args{sdk.NewInfiniteGasMeter(), multisignature1, multisigKey1, params}, expectedCost1, false},
|
|
||||||
{"unknown key", args{sdk.NewInfiniteGasMeter(), nil, nil, params}, 0, true},
|
|
||||||
}
|
|
||||||
for _, tt := range tests {
|
|
||||||
sigV2 := signing.SignatureV2{
|
|
||||||
PubKey: tt.args.pubkey,
|
|
||||||
Data: tt.args.sig,
|
|
||||||
Sequence: 0, // Arbitrary account sequence
|
|
||||||
}
|
|
||||||
err := ante.DefaultSigVerificationGasConsumer(tt.args.meter, sigV2, tt.args.params)
|
|
||||||
|
|
||||||
if tt.shouldErr {
|
|
||||||
suite.Require().NotNil(err)
|
|
||||||
} else {
|
|
||||||
suite.Require().Nil(err)
|
|
||||||
suite.Require().Equal(tt.gasConsumed, tt.args.meter.GasConsumed(), fmt.Sprintf("%d != %d", tt.gasConsumed, tt.args.meter.GasConsumed()))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func generatePubKeysAndSignatures(n int, msg []byte, _ bool) (pubkeys []cryptotypes.PubKey, signatures [][]byte, err error) {
|
|
||||||
pubkeys = make([]cryptotypes.PubKey, n)
|
|
||||||
signatures = make([][]byte, n)
|
|
||||||
for i := 0; i < n; i++ {
|
|
||||||
privkey, err := ethsecp256k1.GenerateKey()
|
|
||||||
if err != nil {
|
|
||||||
return nil, nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
pubkeys[i] = privkey.PubKey()
|
|
||||||
signatures[i], _ = privkey.Sign(msg)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func expectedGasCostByKeys(pubkeys []cryptotypes.PubKey) uint64 {
|
|
||||||
cost := uint64(0)
|
|
||||||
for _, pubkey := range pubkeys {
|
|
||||||
pubkeyType := strings.ToLower(fmt.Sprintf("%T", pubkey))
|
|
||||||
switch {
|
|
||||||
case strings.Contains(pubkeyType, "ed25519"):
|
|
||||||
cost += authtypes.DefaultParams().SigVerifyCostED25519
|
|
||||||
case strings.Contains(pubkeyType, "ethsecp256k1"):
|
|
||||||
cost += 21_000
|
|
||||||
case strings.Contains(pubkeyType, "secp256k1"):
|
|
||||||
cost += authtypes.DefaultParams().SigVerifyCostSecp256k1
|
|
||||||
default:
|
|
||||||
panic("unexpected key type")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return cost
|
|
||||||
}
|
|
||||||
|
@ -3,17 +3,15 @@ package ante
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
||||||
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
||||||
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
||||||
ibcante "github.com/cosmos/ibc-go/v5/modules/core/ante"
|
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
|
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
|
||||||
"github.com/cerc-io/laconicd/ethereum/eip712"
|
"github.com/cerc-io/laconicd/ethereum/eip712"
|
||||||
@ -21,7 +19,6 @@ import (
|
|||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
||||||
ethcrypto "github.com/ethereum/go-ethereum/crypto"
|
ethcrypto "github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/crypto/secp256k1"
|
"github.com/ethereum/go-ethereum/crypto/secp256k1"
|
||||||
"github.com/ethereum/go-ethereum/signer/core/apitypes"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var ethermintCodec codec.ProtoCodecMarshaler
|
var ethermintCodec codec.ProtoCodecMarshaler
|
||||||
@ -32,47 +29,19 @@ func init() {
|
|||||||
ethermintCodec = codec.NewProtoCodec(registry)
|
ethermintCodec = codec.NewProtoCodec(registry)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: NewLegacyCosmosAnteHandlerEip712 creates an AnteHandler to process legacy EIP-712
|
// Eip712SigVerificationDecorator Verify all signatures for a tx and return an error if any are invalid. Note,
|
||||||
// transactions, as defined by the presence of an ExtensionOptionsWeb3Tx extension.
|
// the Eip712SigVerificationDecorator decorator will not get executed on ReCheck.
|
||||||
func NewLegacyCosmosAnteHandlerEip712(options HandlerOptions) sdk.AnteHandler {
|
|
||||||
return sdk.ChainAnteDecorators(
|
|
||||||
RejectMessagesDecorator{}, // reject MsgEthereumTxs
|
|
||||||
authante.NewSetUpContextDecorator(),
|
|
||||||
authante.NewValidateBasicDecorator(),
|
|
||||||
authante.NewTxTimeoutHeightDecorator(),
|
|
||||||
NewMinGasPriceDecorator(options.FeeMarketKeeper, options.EvmKeeper),
|
|
||||||
authante.NewValidateMemoDecorator(options.AccountKeeper),
|
|
||||||
authante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),
|
|
||||||
authante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker),
|
|
||||||
// SetPubKeyDecorator must be called before all signature verification decorators
|
|
||||||
authante.NewSetPubKeyDecorator(options.AccountKeeper),
|
|
||||||
authante.NewValidateSigCountDecorator(options.AccountKeeper),
|
|
||||||
authante.NewSigGasConsumeDecorator(options.AccountKeeper, options.SigGasConsumer),
|
|
||||||
// Note: signature verification uses EIP instead of the cosmos signature validator
|
|
||||||
NewLegacyEip712SigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
|
|
||||||
authante.NewIncrementSequenceDecorator(options.AccountKeeper),
|
|
||||||
ibcante.NewRedundantRelayDecorator(options.IBCKeeper),
|
|
||||||
NewGasWantedDecorator(options.EvmKeeper, options.FeeMarketKeeper),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: LegacyEip712SigVerificationDecorator Verify all signatures for a tx and return an error if any are invalid. Note,
|
|
||||||
// the LegacyEip712SigVerificationDecorator decorator will not get executed on ReCheck.
|
|
||||||
// NOTE: As of v0.20.0, EIP-712 signature verification is handled by the ethsecp256k1 public key (see ethsecp256k1.go)
|
|
||||||
//
|
//
|
||||||
// CONTRACT: Pubkeys are set in context for all signers before this decorator runs
|
// CONTRACT: Pubkeys are set in context for all signers before this decorator runs
|
||||||
// CONTRACT: Tx must implement SigVerifiableTx interface
|
// CONTRACT: Tx must implement SigVerifiableTx interface
|
||||||
type LegacyEip712SigVerificationDecorator struct {
|
type Eip712SigVerificationDecorator struct {
|
||||||
ak evmtypes.AccountKeeper
|
ak evmtypes.AccountKeeper
|
||||||
signModeHandler authsigning.SignModeHandler
|
signModeHandler authsigning.SignModeHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: NewLegacyEip712SigVerificationDecorator creates a new LegacyEip712SigVerificationDecorator
|
// NewEip712SigVerificationDecorator creates a new Eip712SigVerificationDecorator
|
||||||
func NewLegacyEip712SigVerificationDecorator(
|
func NewEip712SigVerificationDecorator(ak evmtypes.AccountKeeper, signModeHandler authsigning.SignModeHandler) Eip712SigVerificationDecorator {
|
||||||
ak evmtypes.AccountKeeper,
|
return Eip712SigVerificationDecorator{
|
||||||
signModeHandler authsigning.SignModeHandler,
|
|
||||||
) LegacyEip712SigVerificationDecorator {
|
|
||||||
return LegacyEip712SigVerificationDecorator{
|
|
||||||
ak: ak,
|
ak: ak,
|
||||||
signModeHandler: signModeHandler,
|
signModeHandler: signModeHandler,
|
||||||
}
|
}
|
||||||
@ -80,7 +49,7 @@ func NewLegacyEip712SigVerificationDecorator(
|
|||||||
|
|
||||||
// AnteHandle handles validation of EIP712 signed cosmos txs.
|
// AnteHandle handles validation of EIP712 signed cosmos txs.
|
||||||
// it is not run on RecheckTx
|
// it is not run on RecheckTx
|
||||||
func (svd LegacyEip712SigVerificationDecorator) AnteHandle(ctx sdk.Context,
|
func (svd Eip712SigVerificationDecorator) AnteHandle(ctx sdk.Context,
|
||||||
tx sdk.Tx,
|
tx sdk.Tx,
|
||||||
simulate bool,
|
simulate bool,
|
||||||
next sdk.AnteHandler,
|
next sdk.AnteHandler,
|
||||||
@ -92,12 +61,12 @@ func (svd LegacyEip712SigVerificationDecorator) AnteHandle(ctx sdk.Context,
|
|||||||
|
|
||||||
sigTx, ok := tx.(authsigning.SigVerifiableTx)
|
sigTx, ok := tx.(authsigning.SigVerifiableTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrInvalidType, "tx %T doesn't implement authsigning.SigVerifiableTx", tx)
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInvalidType, "tx %T doesn't implement authsigning.SigVerifiableTx", tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
authSignTx, ok := tx.(authsigning.Tx)
|
authSignTx, ok := tx.(authsigning.Tx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrInvalidType, "tx %T doesn't implement the authsigning.Tx interface", tx)
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInvalidType, "tx %T doesn't implement the authsigning.Tx interface", tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
// stdSigs contains the sequence number, account number, and signatures.
|
// stdSigs contains the sequence number, account number, and signatures.
|
||||||
@ -111,16 +80,12 @@ func (svd LegacyEip712SigVerificationDecorator) AnteHandle(ctx sdk.Context,
|
|||||||
|
|
||||||
// EIP712 allows just one signature
|
// EIP712 allows just one signature
|
||||||
if len(sigs) != 1 {
|
if len(sigs) != 1 {
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnauthorized, "invalid number of signers (%d); EIP712 signatures allows just one signature", len(sigs))
|
||||||
errortypes.ErrTooManySignatures,
|
|
||||||
"invalid number of signers (%d); EIP712 signatures allows just one signature",
|
|
||||||
len(sigs),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// check that signer length and signature length are the same
|
// check that signer length and signature length are the same
|
||||||
if len(sigs) != len(signerAddrs) {
|
if len(sigs) != len(signerAddrs) {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrorInvalidSigner, "invalid number of signers; expected: %d, got %d", len(signerAddrs), len(sigs))
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnauthorized, "invalid number of signer; expected: %d, got %d", len(signerAddrs), len(sigs))
|
||||||
}
|
}
|
||||||
|
|
||||||
// EIP712 has just one signature, avoid looping here and only read index 0
|
// EIP712 has just one signature, avoid looping here and only read index 0
|
||||||
@ -135,13 +100,13 @@ func (svd LegacyEip712SigVerificationDecorator) AnteHandle(ctx sdk.Context,
|
|||||||
// retrieve pubkey
|
// retrieve pubkey
|
||||||
pubKey := acc.GetPubKey()
|
pubKey := acc.GetPubKey()
|
||||||
if !simulate && pubKey == nil {
|
if !simulate && pubKey == nil {
|
||||||
return ctx, errorsmod.Wrap(errortypes.ErrInvalidPubKey, "pubkey on account is not set")
|
return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidPubKey, "pubkey on account is not set")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check account sequence number.
|
// Check account sequence number.
|
||||||
if sig.Sequence != acc.GetSequence() {
|
if sig.Sequence != acc.GetSequence() {
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(
|
||||||
errortypes.ErrWrongSequence,
|
sdkerrors.ErrWrongSequence,
|
||||||
"account sequence mismatch, expected %d, got %d", acc.GetSequence(), sig.Sequence,
|
"account sequence mismatch, expected %d, got %d", acc.GetSequence(), sig.Sequence,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -167,7 +132,7 @@ func (svd LegacyEip712SigVerificationDecorator) AnteHandle(ctx sdk.Context,
|
|||||||
|
|
||||||
if err := VerifySignature(pubKey, signerData, sig.Data, svd.signModeHandler, authSignTx); err != nil {
|
if err := VerifySignature(pubKey, signerData, sig.Data, svd.signModeHandler, authSignTx); err != nil {
|
||||||
errMsg := fmt.Errorf("signature verification failed; please verify account number (%d) and chain-id (%s): %w", accNum, chainID, err)
|
errMsg := fmt.Errorf("signature verification failed; please verify account number (%d) and chain-id (%s): %w", accNum, chainID, err)
|
||||||
return ctx, errorsmod.Wrap(errortypes.ErrUnauthorized, errMsg.Error())
|
return ctx, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, errMsg.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
return next(ctx, tx, simulate)
|
return next(ctx, tx, simulate)
|
||||||
@ -185,12 +150,12 @@ func VerifySignature(
|
|||||||
switch data := sigData.(type) {
|
switch data := sigData.(type) {
|
||||||
case *signing.SingleSignatureData:
|
case *signing.SingleSignatureData:
|
||||||
if data.SignMode != signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON {
|
if data.SignMode != signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON {
|
||||||
return errorsmod.Wrapf(errortypes.ErrNotSupported, "unexpected SignatureData %T: wrong SignMode", sigData)
|
return sdkerrors.Wrapf(sdkerrors.ErrNotSupported, "unexpected SignatureData %T: wrong SignMode", sigData)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: this prevents the user from sending trash data in the signature field
|
// Note: this prevents the user from sending thrash data in the signature field
|
||||||
if len(data.Signature) != 0 {
|
if len(data.Signature) != 0 {
|
||||||
return errorsmod.Wrap(errortypes.ErrTooManySignatures, "invalid signature value; EIP712 must have the cosmos transaction signature empty")
|
return sdkerrors.Wrap(sdkerrors.ErrTooManySignatures, "invalid signature value; EIP712 must have the cosmos transaction signature empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
// @contract: this code is reached only when Msg has Web3Tx extension (so this custom Ante handler flow),
|
// @contract: this code is reached only when Msg has Web3Tx extension (so this custom Ante handler flow),
|
||||||
@ -198,7 +163,7 @@ func VerifySignature(
|
|||||||
|
|
||||||
msgs := tx.GetMsgs()
|
msgs := tx.GetMsgs()
|
||||||
if len(msgs) == 0 {
|
if len(msgs) == 0 {
|
||||||
return errorsmod.Wrap(errortypes.ErrNoSignatures, "tx doesn't contain any msgs to verify signature")
|
return sdkerrors.Wrap(sdkerrors.ErrNoSignatures, "tx doesn't contain any msgs to verify signature")
|
||||||
}
|
}
|
||||||
|
|
||||||
txBytes := legacytx.StdSignBytes(
|
txBytes := legacytx.StdSignBytes(
|
||||||
@ -215,33 +180,33 @@ func VerifySignature(
|
|||||||
|
|
||||||
signerChainID, err := ethermint.ParseChainID(signerData.ChainID)
|
signerChainID, err := ethermint.ParseChainID(signerData.ChainID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errorsmod.Wrapf(err, "failed to parse chain-id: %s", signerData.ChainID)
|
return sdkerrors.Wrapf(err, "failed to parse chainID: %s", signerData.ChainID)
|
||||||
}
|
}
|
||||||
|
|
||||||
txWithExtensions, ok := tx.(authante.HasExtensionOptionsTx)
|
txWithExtensions, ok := tx.(authante.HasExtensionOptionsTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return errorsmod.Wrap(errortypes.ErrUnknownExtensionOptions, "tx doesnt contain any extensions")
|
return sdkerrors.Wrap(sdkerrors.ErrUnknownExtensionOptions, "tx doesnt contain any extensions")
|
||||||
}
|
}
|
||||||
opts := txWithExtensions.GetExtensionOptions()
|
opts := txWithExtensions.GetExtensionOptions()
|
||||||
if len(opts) != 1 {
|
if len(opts) != 1 {
|
||||||
return errorsmod.Wrap(errortypes.ErrUnknownExtensionOptions, "tx doesnt contain expected amount of extension options")
|
return sdkerrors.Wrap(sdkerrors.ErrUnknownExtensionOptions, "tx doesnt contain expected amount of extension options")
|
||||||
}
|
}
|
||||||
|
|
||||||
extOpt, ok := opts[0].GetCachedValue().(*ethermint.ExtensionOptionsWeb3Tx)
|
extOpt, ok := opts[0].GetCachedValue().(*ethermint.ExtensionOptionsWeb3Tx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return errorsmod.Wrap(errortypes.ErrUnknownExtensionOptions, "unknown extension option")
|
return sdkerrors.Wrap(sdkerrors.ErrInvalidChainID, "unknown extension option")
|
||||||
}
|
}
|
||||||
|
|
||||||
if extOpt.TypedDataChainID != signerChainID.Uint64() {
|
if extOpt.TypedDataChainID != signerChainID.Uint64() {
|
||||||
return errorsmod.Wrap(errortypes.ErrInvalidChainID, "invalid chain-id")
|
return sdkerrors.Wrap(sdkerrors.ErrInvalidChainID, "invalid chainID")
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(extOpt.FeePayer) == 0 {
|
if len(extOpt.FeePayer) == 0 {
|
||||||
return errorsmod.Wrap(errortypes.ErrUnknownExtensionOptions, "no feePayer on ExtensionOptionsWeb3Tx")
|
return sdkerrors.Wrap(sdkerrors.ErrUnknownExtensionOptions, "no feePayer on ExtensionOptionsWeb3Tx")
|
||||||
}
|
}
|
||||||
feePayer, err := sdk.AccAddressFromBech32(extOpt.FeePayer)
|
feePayer, err := sdk.AccAddressFromBech32(extOpt.FeePayer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errorsmod.Wrap(err, "failed to parse feePayer from ExtensionOptionsWeb3Tx")
|
return sdkerrors.Wrap(err, "failed to parse feePayer from ExtensionOptionsWeb3Tx")
|
||||||
}
|
}
|
||||||
|
|
||||||
feeDelegation := &eip712.FeeDelegationOptions{
|
feeDelegation := &eip712.FeeDelegationOptions{
|
||||||
@ -250,17 +215,17 @@ func VerifySignature(
|
|||||||
|
|
||||||
typedData, err := eip712.WrapTxToTypedData(ethermintCodec, extOpt.TypedDataChainID, msgs[0], txBytes, feeDelegation)
|
typedData, err := eip712.WrapTxToTypedData(ethermintCodec, extOpt.TypedDataChainID, msgs[0], txBytes, feeDelegation)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errorsmod.Wrap(err, "failed to create EIP-712 typed data from tx")
|
return sdkerrors.Wrap(err, "failed to pack tx data in EIP712 object")
|
||||||
}
|
}
|
||||||
|
|
||||||
sigHash, _, err := apitypes.TypedDataAndHash(typedData)
|
sigHash, err := eip712.ComputeTypedDataHash(typedData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
feePayerSig := extOpt.FeePayerSig
|
feePayerSig := extOpt.FeePayerSig
|
||||||
if len(feePayerSig) != ethcrypto.SignatureLength {
|
if len(feePayerSig) != ethcrypto.SignatureLength {
|
||||||
return errorsmod.Wrap(errortypes.ErrorInvalidSigner, "signature length doesn't match typical [R||S||V] signature 65 bytes")
|
return sdkerrors.Wrap(sdkerrors.ErrorInvalidSigner, "signature length doesn't match typical [R||S||V] signature 65 bytes")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the recovery offset if needed (ie. Metamask eip712 signature)
|
// Remove the recovery offset if needed (ie. Metamask eip712 signature)
|
||||||
@ -270,12 +235,12 @@ func VerifySignature(
|
|||||||
|
|
||||||
feePayerPubkey, err := secp256k1.RecoverPubkey(sigHash, feePayerSig)
|
feePayerPubkey, err := secp256k1.RecoverPubkey(sigHash, feePayerSig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errorsmod.Wrap(err, "failed to recover delegated fee payer from sig")
|
return sdkerrors.Wrap(err, "failed to recover delegated fee payer from sig")
|
||||||
}
|
}
|
||||||
|
|
||||||
ecPubKey, err := ethcrypto.UnmarshalPubkey(feePayerPubkey)
|
ecPubKey, err := ethcrypto.UnmarshalPubkey(feePayerPubkey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errorsmod.Wrap(err, "failed to unmarshal recovered fee payer pubkey")
|
return sdkerrors.Wrap(err, "failed to unmarshal recovered fee payer pubkey")
|
||||||
}
|
}
|
||||||
|
|
||||||
pk := ðsecp256k1.PubKey{
|
pk := ðsecp256k1.PubKey{
|
||||||
@ -283,23 +248,23 @@ func VerifySignature(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !pubKey.Equals(pk) {
|
if !pubKey.Equals(pk) {
|
||||||
return errorsmod.Wrapf(errortypes.ErrInvalidPubKey, "feePayer pubkey %s is different from transaction pubkey %s", pubKey, pk)
|
return sdkerrors.Wrapf(sdkerrors.ErrInvalidPubKey, "feePayer pubkey %s is different from transaction pubkey %s", pubKey, pk)
|
||||||
}
|
}
|
||||||
|
|
||||||
recoveredFeePayerAcc := sdk.AccAddress(pk.Address().Bytes())
|
recoveredFeePayerAcc := sdk.AccAddress(pk.Address().Bytes())
|
||||||
|
|
||||||
if !recoveredFeePayerAcc.Equals(feePayer) {
|
if !recoveredFeePayerAcc.Equals(feePayer) {
|
||||||
return errorsmod.Wrapf(errortypes.ErrorInvalidSigner, "failed to verify delegated fee payer %s signature", recoveredFeePayerAcc)
|
return sdkerrors.Wrapf(sdkerrors.ErrorInvalidSigner, "failed to verify delegated fee payer %s signature", recoveredFeePayerAcc)
|
||||||
}
|
}
|
||||||
|
|
||||||
// VerifySignature of ethsecp256k1 accepts 64 byte signature [R||S]
|
// VerifySignature of ethsecp256k1 accepts 64 byte signature [R||S]
|
||||||
// WARNING! Under NO CIRCUMSTANCES try to use pubKey.VerifySignature there
|
// WARNING! Under NO CIRCUMSTANCES try to use pubKey.VerifySignature there
|
||||||
if !secp256k1.VerifySignature(pubKey.Bytes(), sigHash, feePayerSig[:len(feePayerSig)-1]) {
|
if !secp256k1.VerifySignature(pubKey.Bytes(), sigHash, feePayerSig[:len(feePayerSig)-1]) {
|
||||||
return errorsmod.Wrap(errortypes.ErrorInvalidSigner, "unable to verify signer signature of EIP712 typed data")
|
return sdkerrors.Wrap(sdkerrors.ErrorInvalidSigner, "unable to verify signer signature of EIP712 typed data")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
return errorsmod.Wrapf(errortypes.ErrTooManySignatures, "unexpected SignatureData %T", sigData)
|
return sdkerrors.Wrapf(sdkerrors.ErrTooManySignatures, "unexpected SignatureData %T", sigData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
452
app/ante/eth.go
452
app/ante/eth.go
@ -1,32 +1,19 @@
|
|||||||
// Copyright 2021 Evmos Foundation
|
|
||||||
// This file is part of Evmos' Ethermint library.
|
|
||||||
//
|
|
||||||
// The Ethermint library is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// The Ethermint library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public License
|
|
||||||
// along with the Ethermint library. If not, see https://github.com/evmos/ethermint/blob/main/LICENSE
|
|
||||||
package ante
|
package ante
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"math"
|
"math"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
sdkmath "cosmossdk.io/math"
|
sdkmath "cosmossdk.io/math"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
|
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
||||||
|
|
||||||
ethermint "github.com/cerc-io/laconicd/types"
|
ethermint "github.com/cerc-io/laconicd/types"
|
||||||
"github.com/cerc-io/laconicd/x/evm/keeper"
|
evmkeeper "github.com/cerc-io/laconicd/x/evm/keeper"
|
||||||
"github.com/cerc-io/laconicd/x/evm/statedb"
|
"github.com/cerc-io/laconicd/x/evm/statedb"
|
||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
||||||
|
|
||||||
@ -34,6 +21,61 @@ import (
|
|||||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// EthSigVerificationDecorator validates an ethereum signatures
|
||||||
|
type EthSigVerificationDecorator struct {
|
||||||
|
evmKeeper EVMKeeper
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewEthSigVerificationDecorator creates a new EthSigVerificationDecorator
|
||||||
|
func NewEthSigVerificationDecorator(ek EVMKeeper) EthSigVerificationDecorator {
|
||||||
|
return EthSigVerificationDecorator{
|
||||||
|
evmKeeper: ek,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// AnteHandle validates checks that the registered chain id is the same as the one on the message, and
|
||||||
|
// that the signer address matches the one defined on the message.
|
||||||
|
// It's not skipped for RecheckTx, because it set `From` address which is critical from other ante handler to work.
|
||||||
|
// Failure in RecheckTx will prevent tx to be included into block, especially when CheckTx succeed, in which case user
|
||||||
|
// won't see the error message.
|
||||||
|
func (esvd EthSigVerificationDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
|
chainID := esvd.evmKeeper.ChainID()
|
||||||
|
|
||||||
|
params := esvd.evmKeeper.GetParams(ctx)
|
||||||
|
|
||||||
|
ethCfg := params.ChainConfig.EthereumConfig(chainID)
|
||||||
|
blockNum := big.NewInt(ctx.BlockHeight())
|
||||||
|
signer := ethtypes.MakeSigner(ethCfg, blockNum)
|
||||||
|
|
||||||
|
for _, msg := range tx.GetMsgs() {
|
||||||
|
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
||||||
|
if !ok {
|
||||||
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
||||||
|
}
|
||||||
|
|
||||||
|
ethTx := msgEthTx.AsTransaction()
|
||||||
|
if !params.AllowUnprotectedTxs && !ethTx.Protected() {
|
||||||
|
return ctx, sdkerrors.Wrapf(
|
||||||
|
sdkerrors.ErrNotSupported,
|
||||||
|
"rejected unprotected Ethereum txs. Please EIP155 sign your transaction to protect it against replay-attacks")
|
||||||
|
}
|
||||||
|
|
||||||
|
sender, err := signer.Sender(ethTx)
|
||||||
|
if err != nil {
|
||||||
|
return ctx, sdkerrors.Wrapf(
|
||||||
|
sdkerrors.ErrorInvalidSigner,
|
||||||
|
"couldn't retrieve sender address from the ethereum transaction: %s",
|
||||||
|
err.Error(),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// set up the sender to the transaction field if not already
|
||||||
|
msgEthTx.From = sender.Hex()
|
||||||
|
}
|
||||||
|
|
||||||
|
return next(ctx, tx, simulate)
|
||||||
|
}
|
||||||
|
|
||||||
// EthAccountVerificationDecorator validates an account balance checks
|
// EthAccountVerificationDecorator validates an account balance checks
|
||||||
type EthAccountVerificationDecorator struct {
|
type EthAccountVerificationDecorator struct {
|
||||||
ak evmtypes.AccountKeeper
|
ak evmtypes.AccountKeeper
|
||||||
@ -67,35 +109,35 @@ func (avd EthAccountVerificationDecorator) AnteHandle(
|
|||||||
for i, msg := range tx.GetMsgs() {
|
for i, msg := range tx.GetMsgs() {
|
||||||
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
txData, err := evmtypes.UnpackTxData(msgEthTx.Data)
|
txData, err := evmtypes.UnpackTxData(msgEthTx.Data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ctx, errorsmod.Wrapf(err, "failed to unpack tx data any for tx %d", i)
|
return ctx, sdkerrors.Wrapf(err, "failed to unpack tx data any for tx %d", i)
|
||||||
}
|
}
|
||||||
|
|
||||||
// sender address should be in the tx cache from the previous AnteHandle call
|
// sender address should be in the tx cache from the previous AnteHandle call
|
||||||
from := msgEthTx.GetFrom()
|
from := msgEthTx.GetFrom()
|
||||||
if from.Empty() {
|
if from.Empty() {
|
||||||
return ctx, errorsmod.Wrap(errortypes.ErrInvalidAddress, "from address cannot be empty")
|
return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "from address cannot be empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
// check whether the sender address is EOA
|
// check whether the sender address is EOA
|
||||||
fromAddr := common.BytesToAddress(from)
|
fromAddr := common.BytesToAddress(from)
|
||||||
acct := avd.evmKeeper.GetAccount(ctx, fromAddr)
|
acct := avd.evmKeeper.GetAccount(ctx, fromAddr) //nolint: all
|
||||||
|
|
||||||
if acct == nil {
|
if acct == nil {
|
||||||
acc := avd.ak.NewAccountWithAddress(ctx, from)
|
acc := avd.ak.NewAccountWithAddress(ctx, from)
|
||||||
avd.ak.SetAccount(ctx, acc)
|
avd.ak.SetAccount(ctx, acc)
|
||||||
acct = statedb.NewEmptyAccount()
|
acct = statedb.NewEmptyAccount()
|
||||||
} else if acct.IsContract() {
|
} else if acct.IsContract() {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrInvalidType,
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInvalidType,
|
||||||
"the sender is not EOA: address %s, codeHash <%s>", fromAddr, acct.CodeHash)
|
"the sender is not EOA: address %s, codeHash <%s>", fromAddr, acct.CodeHash)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := keeper.CheckSenderBalance(sdkmath.NewIntFromBigInt(acct.Balance), txData); err != nil {
|
if err := evmkeeper.CheckSenderBalance(sdkmath.NewIntFromBigInt(acct.Balance), txData); err != nil {
|
||||||
return ctx, errorsmod.Wrap(err, "failed to check sender balance")
|
return ctx, sdkerrors.Wrap(err, "failed to check sender balance")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return next(ctx, tx, simulate)
|
return next(ctx, tx, simulate)
|
||||||
@ -123,7 +165,7 @@ func NewEthGasConsumeDecorator(
|
|||||||
// (during CheckTx only) and that the sender has enough balance to pay for the gas cost.
|
// (during CheckTx only) and that the sender has enough balance to pay for the gas cost.
|
||||||
//
|
//
|
||||||
// Intrinsic gas for a transaction is the amount of gas that the transaction uses before the
|
// Intrinsic gas for a transaction is the amount of gas that the transaction uses before the
|
||||||
// transaction is executed. The gas is a constant value plus any cost incurred by additional bytes
|
// transaction is executed. The gas is a constant value plus any cost inccured by additional bytes
|
||||||
// of data supplied with the transaction.
|
// of data supplied with the transaction.
|
||||||
//
|
//
|
||||||
// This AnteHandler decorator will fail if:
|
// This AnteHandler decorator will fail if:
|
||||||
@ -133,43 +175,31 @@ func NewEthGasConsumeDecorator(
|
|||||||
// - user doesn't have enough balance to deduct the transaction fees (gas_limit * gas_price)
|
// - user doesn't have enough balance to deduct the transaction fees (gas_limit * gas_price)
|
||||||
// - transaction or block gas meter runs out of gas
|
// - transaction or block gas meter runs out of gas
|
||||||
// - sets the gas meter limit
|
// - sets the gas meter limit
|
||||||
// - gas limit is greater than the block gas meter limit
|
|
||||||
func (egcd EthGasConsumeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
|
func (egcd EthGasConsumeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
|
||||||
gasWanted := uint64(0)
|
params := egcd.evmKeeper.GetParams(ctx)
|
||||||
// gas consumption limit already checked during CheckTx so there's no need to
|
|
||||||
// verify it again during ReCheckTx
|
|
||||||
if ctx.IsReCheckTx() {
|
|
||||||
// Use new context with gasWanted = 0
|
|
||||||
// Otherwise, there's an error on txmempool.postCheck (tendermint)
|
|
||||||
// that is not bubbled up. Thus, the Tx never runs on DeliverMode
|
|
||||||
// Error: "gas wanted -1 is negative"
|
|
||||||
// For more information, see issue #1554
|
|
||||||
// https://github.com/cerc-io/laconicd/issues/1554
|
|
||||||
newCtx := ctx.WithGasMeter(ethermint.NewInfiniteGasMeterWithLimit(gasWanted))
|
|
||||||
return next(newCtx, tx, simulate)
|
|
||||||
}
|
|
||||||
|
|
||||||
chainCfg := egcd.evmKeeper.GetChainConfig(ctx)
|
ethCfg := params.ChainConfig.EthereumConfig(egcd.evmKeeper.ChainID())
|
||||||
ethCfg := chainCfg.EthereumConfig(egcd.evmKeeper.ChainID())
|
|
||||||
|
|
||||||
blockHeight := big.NewInt(ctx.BlockHeight())
|
blockHeight := big.NewInt(ctx.BlockHeight())
|
||||||
homestead := ethCfg.IsHomestead(blockHeight)
|
homestead := ethCfg.IsHomestead(blockHeight)
|
||||||
istanbul := ethCfg.IsIstanbul(blockHeight)
|
istanbul := ethCfg.IsIstanbul(blockHeight)
|
||||||
|
london := ethCfg.IsLondon(blockHeight)
|
||||||
|
evmDenom := params.EvmDenom
|
||||||
|
gasWanted := uint64(0)
|
||||||
var events sdk.Events
|
var events sdk.Events
|
||||||
|
|
||||||
// Use the lowest priority of all the messages as the final one.
|
// Use the lowest priority of all the messages as the final one.
|
||||||
minPriority := int64(math.MaxInt64)
|
minPriority := int64(math.MaxInt64)
|
||||||
baseFee := egcd.evmKeeper.GetBaseFee(ctx, ethCfg)
|
|
||||||
|
|
||||||
for _, msg := range tx.GetMsgs() {
|
for _, msg := range tx.GetMsgs() {
|
||||||
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
txData, err := evmtypes.UnpackTxData(msgEthTx.Data)
|
txData, err := evmtypes.UnpackTxData(msgEthTx.Data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ctx, errorsmod.Wrap(err, "failed to unpack tx data")
|
return ctx, sdkerrors.Wrap(err, "failed to unpack tx data")
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.IsCheckTx() && egcd.maxGasWanted != 0 {
|
if ctx.IsCheckTx() && egcd.maxGasWanted != 0 {
|
||||||
@ -183,59 +213,45 @@ func (egcd EthGasConsumeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula
|
|||||||
gasWanted += txData.GetGas()
|
gasWanted += txData.GetGas()
|
||||||
}
|
}
|
||||||
|
|
||||||
evmDenom := egcd.evmKeeper.GetEVMDenom(ctx)
|
fees, priority, err := egcd.evmKeeper.DeductTxCostsFromUserBalance(
|
||||||
|
ctx,
|
||||||
fees, err := keeper.VerifyFee(txData, evmDenom, baseFee, homestead, istanbul, ctx.IsCheckTx())
|
*msgEthTx,
|
||||||
if err != nil {
|
txData,
|
||||||
return ctx, errorsmod.Wrapf(err, "failed to verify the fees")
|
evmDenom,
|
||||||
}
|
homestead,
|
||||||
|
istanbul,
|
||||||
err = egcd.evmKeeper.DeductTxCostsFromUserBalance(ctx, fees, common.HexToAddress(msgEthTx.From))
|
london,
|
||||||
if err != nil {
|
|
||||||
return ctx, errorsmod.Wrapf(err, "failed to deduct transaction costs from user balance")
|
|
||||||
}
|
|
||||||
|
|
||||||
events = append(events,
|
|
||||||
sdk.NewEvent(
|
|
||||||
sdk.EventTypeTx,
|
|
||||||
sdk.NewAttribute(sdk.AttributeKeyFee, fees.String()),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
if err != nil {
|
||||||
|
return ctx, sdkerrors.Wrapf(err, "failed to deduct transaction costs from user balance")
|
||||||
|
}
|
||||||
|
|
||||||
priority := evmtypes.GetTxPriority(txData, baseFee)
|
events = append(events, sdk.NewEvent(sdk.EventTypeTx, sdk.NewAttribute(sdk.AttributeKeyFee, fees.String())))
|
||||||
|
|
||||||
if priority < minPriority {
|
if priority < minPriority {
|
||||||
minPriority = priority
|
minPriority = priority
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: change to typed events
|
||||||
ctx.EventManager().EmitEvents(events)
|
ctx.EventManager().EmitEvents(events)
|
||||||
|
|
||||||
|
// TODO: deprecate after https://github.com/cosmos/cosmos-sdk/issues/9514 is fixed on SDK
|
||||||
blockGasLimit := ethermint.BlockGasLimit(ctx)
|
blockGasLimit := ethermint.BlockGasLimit(ctx)
|
||||||
|
|
||||||
// return error if the tx gas is greater than the block limit (max gas)
|
// NOTE: safety check
|
||||||
|
if blockGasLimit > 0 {
|
||||||
// NOTE: it's important here to use the gas wanted instead of the gas consumed
|
// generate a copy of the gas pool (i.e block gas meter) to see if we've run out of gas for this block
|
||||||
// from the tx gas pool. The later only has the value so far since the
|
// if current gas consumed is greater than the limit, this funcion panics and the error is recovered on the Baseapp
|
||||||
// EthSetupContextDecorator so it will never exceed the block gas limit.
|
gasPool := sdk.NewGasMeter(blockGasLimit)
|
||||||
if gasWanted > blockGasLimit {
|
gasPool.ConsumeGas(ctx.GasMeter().GasConsumedToLimit(), "gas pool check")
|
||||||
return ctx, errorsmod.Wrapf(
|
|
||||||
errortypes.ErrOutOfGas,
|
|
||||||
"tx gas (%d) exceeds block gas limit (%d)",
|
|
||||||
gasWanted,
|
|
||||||
blockGasLimit,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set tx GasMeter with a limit of GasWanted (i.e gas limit from the Ethereum tx).
|
// Set ctx.GasMeter with a limit of GasWanted (gasLimit)
|
||||||
// The gas consumed will be then reset to the gas used by the state transition
|
gasConsumed := ctx.GasMeter().GasConsumed()
|
||||||
// in the EVM.
|
ctx = ctx.WithGasMeter(ethermint.NewInfiniteGasMeterWithLimit(gasWanted))
|
||||||
|
ctx.GasMeter().ConsumeGas(gasConsumed, "copy gas consumed")
|
||||||
|
|
||||||
// FIXME: use a custom gas configuration that doesn't add any additional gas and only
|
newCtx := ctx.WithPriority(minPriority)
|
||||||
// takes into account the gas consumed at the end of the EVM transaction.
|
|
||||||
newCtx := ctx.
|
|
||||||
WithGasMeter(ethermint.NewInfiniteGasMeterWithLimit(gasWanted)).
|
|
||||||
WithPriority(minPriority)
|
|
||||||
|
|
||||||
// we know that we have enough gas on the pool to cover the intrinsic gas
|
// we know that we have enough gas on the pool to cover the intrinsic gas
|
||||||
return next(newCtx, tx, simulate)
|
return next(newCtx, tx, simulate)
|
||||||
@ -264,35 +280,19 @@ func (ctd CanTransferDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate
|
|||||||
for _, msg := range tx.GetMsgs() {
|
for _, msg := range tx.GetMsgs() {
|
||||||
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
baseFee := ctd.evmKeeper.GetBaseFee(ctx, ethCfg)
|
baseFee := ctd.evmKeeper.GetBaseFee(ctx, ethCfg)
|
||||||
|
|
||||||
coreMsg, err := msgEthTx.AsMessage(signer, baseFee)
|
coreMsg, err := msgEthTx.AsMessage(signer, baseFee)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(
|
||||||
err,
|
err,
|
||||||
"failed to create an ethereum core.Message from signer %T", signer,
|
"failed to create an ethereum core.Message from signer %T", signer,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if evmtypes.IsLondon(ethCfg, ctx.BlockHeight()) {
|
|
||||||
if baseFee == nil {
|
|
||||||
return ctx, errorsmod.Wrap(
|
|
||||||
evmtypes.ErrInvalidBaseFee,
|
|
||||||
"base fee is supported but evm block context value is nil",
|
|
||||||
)
|
|
||||||
}
|
|
||||||
if coreMsg.GasFeeCap().Cmp(baseFee) < 0 {
|
|
||||||
return ctx, errorsmod.Wrapf(
|
|
||||||
errortypes.ErrInsufficientFee,
|
|
||||||
"max fee per gas less than block base fee (%s < %s)",
|
|
||||||
coreMsg.GasFeeCap(), baseFee,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// NOTE: pass in an empty coinbase address and nil tracer as we don't need them for the check below
|
// NOTE: pass in an empty coinbase address and nil tracer as we don't need them for the check below
|
||||||
cfg := &evmtypes.EVMConfig{
|
cfg := &evmtypes.EVMConfig{
|
||||||
ChainConfig: ethCfg,
|
ChainConfig: ethCfg,
|
||||||
@ -300,20 +300,35 @@ func (ctd CanTransferDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate
|
|||||||
CoinBase: common.Address{},
|
CoinBase: common.Address{},
|
||||||
BaseFee: baseFee,
|
BaseFee: baseFee,
|
||||||
}
|
}
|
||||||
|
|
||||||
stateDB := statedb.New(ctx, ctd.evmKeeper, statedb.NewEmptyTxConfig(common.BytesToHash(ctx.HeaderHash().Bytes())))
|
stateDB := statedb.New(ctx, ctd.evmKeeper, statedb.NewEmptyTxConfig(common.BytesToHash(ctx.HeaderHash().Bytes())))
|
||||||
evm := ctd.evmKeeper.NewEVM(ctx, coreMsg, cfg, evmtypes.NewNoOpTracer(), stateDB)
|
evm := ctd.evmKeeper.NewEVM(ctx, coreMsg, cfg, evmtypes.NewNoOpTracer(), stateDB)
|
||||||
|
|
||||||
// check that caller has enough balance to cover asset transfer for **topmost** call
|
// check that caller has enough balance to cover asset transfer for **topmost** call
|
||||||
// NOTE: here the gas consumed is from the context with the infinite gas meter
|
// NOTE: here the gas consumed is from the context with the infinite gas meter
|
||||||
if coreMsg.Value().Sign() > 0 && !evm.Context().CanTransfer(stateDB, coreMsg.From(), coreMsg.Value()) {
|
if coreMsg.Value().Sign() > 0 && !evm.Context().CanTransfer(stateDB, coreMsg.From(), coreMsg.Value()) {
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(
|
||||||
errortypes.ErrInsufficientFunds,
|
sdkerrors.ErrInsufficientFunds,
|
||||||
"failed to transfer %s from address %s using the EVM block context transfer function",
|
"failed to transfer %s from address %s using the EVM block context transfer function",
|
||||||
coreMsg.Value(),
|
coreMsg.Value(),
|
||||||
coreMsg.From(),
|
coreMsg.From(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if evmtypes.IsLondon(ethCfg, ctx.BlockHeight()) {
|
||||||
|
if baseFee == nil {
|
||||||
|
return ctx, sdkerrors.Wrap(
|
||||||
|
evmtypes.ErrInvalidBaseFee,
|
||||||
|
"base fee is supported but evm block context value is nil",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
if coreMsg.GasFeeCap().Cmp(baseFee) < 0 {
|
||||||
|
return ctx, sdkerrors.Wrapf(
|
||||||
|
sdkerrors.ErrInsufficientFee,
|
||||||
|
"max fee per gas less than block base fee (%s < %s)",
|
||||||
|
coreMsg.GasFeeCap(), baseFee,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return next(ctx, tx, simulate)
|
return next(ctx, tx, simulate)
|
||||||
@ -338,19 +353,19 @@ func (issd EthIncrementSenderSequenceDecorator) AnteHandle(ctx sdk.Context, tx s
|
|||||||
for _, msg := range tx.GetMsgs() {
|
for _, msg := range tx.GetMsgs() {
|
||||||
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
txData, err := evmtypes.UnpackTxData(msgEthTx.Data)
|
txData, err := evmtypes.UnpackTxData(msgEthTx.Data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ctx, errorsmod.Wrap(err, "failed to unpack tx data")
|
return ctx, sdkerrors.Wrap(err, "failed to unpack tx data")
|
||||||
}
|
}
|
||||||
|
|
||||||
// increase sequence of sender
|
// increase sequence of sender
|
||||||
acc := issd.ak.GetAccount(ctx, msgEthTx.GetFrom())
|
acc := issd.ak.GetAccount(ctx, msgEthTx.GetFrom())
|
||||||
if acc == nil {
|
if acc == nil {
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(
|
||||||
errortypes.ErrUnknownAddress,
|
sdkerrors.ErrUnknownAddress,
|
||||||
"account %s is nil", common.BytesToAddress(msgEthTx.GetFrom().Bytes()),
|
"account %s is nil", common.BytesToAddress(msgEthTx.GetFrom().Bytes()),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -359,14 +374,14 @@ func (issd EthIncrementSenderSequenceDecorator) AnteHandle(ctx sdk.Context, tx s
|
|||||||
// we merged the nonce verification to nonce increment, so when tx includes multiple messages
|
// we merged the nonce verification to nonce increment, so when tx includes multiple messages
|
||||||
// with same sender, they'll be accepted.
|
// with same sender, they'll be accepted.
|
||||||
if txData.GetNonce() != nonce {
|
if txData.GetNonce() != nonce {
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(
|
||||||
errortypes.ErrInvalidSequence,
|
sdkerrors.ErrInvalidSequence,
|
||||||
"invalid nonce; got %d, expected %d", txData.GetNonce(), nonce,
|
"invalid nonce; got %d, expected %d", txData.GetNonce(), nonce,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := acc.SetSequence(nonce + 1); err != nil {
|
if err := acc.SetSequence(nonce + 1); err != nil {
|
||||||
return ctx, errorsmod.Wrapf(err, "failed to set sequence to %d", acc.GetSequence()+1)
|
return ctx, sdkerrors.Wrapf(err, "failed to set sequence to %d", acc.GetSequence()+1)
|
||||||
}
|
}
|
||||||
|
|
||||||
issd.ak.SetAccount(ctx, acc)
|
issd.ak.SetAccount(ctx, acc)
|
||||||
@ -374,3 +389,216 @@ func (issd EthIncrementSenderSequenceDecorator) AnteHandle(ctx sdk.Context, tx s
|
|||||||
|
|
||||||
return next(ctx, tx, simulate)
|
return next(ctx, tx, simulate)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// EthValidateBasicDecorator is adapted from ValidateBasicDecorator from cosmos-sdk, it ignores ErrNoSignatures
|
||||||
|
type EthValidateBasicDecorator struct {
|
||||||
|
evmKeeper EVMKeeper
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewEthValidateBasicDecorator creates a new EthValidateBasicDecorator
|
||||||
|
func NewEthValidateBasicDecorator(ek EVMKeeper) EthValidateBasicDecorator {
|
||||||
|
return EthValidateBasicDecorator{
|
||||||
|
evmKeeper: ek,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// AnteHandle handles basic validation of tx
|
||||||
|
func (vbd EthValidateBasicDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
|
||||||
|
// no need to validate basic on recheck tx, call next antehandler
|
||||||
|
if ctx.IsReCheckTx() {
|
||||||
|
return next(ctx, tx, simulate)
|
||||||
|
}
|
||||||
|
|
||||||
|
err := tx.ValidateBasic()
|
||||||
|
// ErrNoSignatures is fine with eth tx
|
||||||
|
if err != nil && !errors.Is(err, sdkerrors.ErrNoSignatures) {
|
||||||
|
return ctx, sdkerrors.Wrap(err, "tx basic validation failed")
|
||||||
|
}
|
||||||
|
|
||||||
|
// For eth type cosmos tx, some fields should be veified as zero values,
|
||||||
|
// since we will only verify the signature against the hash of the MsgEthereumTx.Data
|
||||||
|
wrapperTx, ok := tx.(protoTxProvider)
|
||||||
|
if !ok {
|
||||||
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid tx type %T, didn't implement interface protoTxProvider", tx)
|
||||||
|
}
|
||||||
|
|
||||||
|
protoTx := wrapperTx.GetProtoTx()
|
||||||
|
body := protoTx.Body
|
||||||
|
if body.Memo != "" || body.TimeoutHeight != uint64(0) || len(body.NonCriticalExtensionOptions) > 0 {
|
||||||
|
return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest,
|
||||||
|
"for eth tx body Memo TimeoutHeight NonCriticalExtensionOptions should be empty")
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(body.ExtensionOptions) != 1 {
|
||||||
|
return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "for eth tx length of ExtensionOptions should be 1")
|
||||||
|
}
|
||||||
|
|
||||||
|
txFee := sdk.Coins{}
|
||||||
|
txGasLimit := uint64(0)
|
||||||
|
|
||||||
|
params := vbd.evmKeeper.GetParams(ctx)
|
||||||
|
chainID := vbd.evmKeeper.ChainID()
|
||||||
|
ethCfg := params.ChainConfig.EthereumConfig(chainID)
|
||||||
|
baseFee := vbd.evmKeeper.GetBaseFee(ctx, ethCfg)
|
||||||
|
|
||||||
|
for _, msg := range protoTx.GetMsgs() {
|
||||||
|
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
||||||
|
if !ok {
|
||||||
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Validate `From` field
|
||||||
|
if msgEthTx.From != "" {
|
||||||
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid From %s, expect empty string", msgEthTx.From)
|
||||||
|
}
|
||||||
|
|
||||||
|
txGasLimit += msgEthTx.GetGas()
|
||||||
|
|
||||||
|
txData, err := evmtypes.UnpackTxData(msgEthTx.Data)
|
||||||
|
if err != nil {
|
||||||
|
return ctx, sdkerrors.Wrap(err, "failed to unpack MsgEthereumTx Data")
|
||||||
|
}
|
||||||
|
|
||||||
|
// return error if contract creation or call are disabled through governance
|
||||||
|
if !params.EnableCreate && txData.GetTo() == nil {
|
||||||
|
return ctx, sdkerrors.Wrap(evmtypes.ErrCreateDisabled, "failed to create new contract")
|
||||||
|
} else if !params.EnableCall && txData.GetTo() != nil {
|
||||||
|
return ctx, sdkerrors.Wrap(evmtypes.ErrCallDisabled, "failed to call contract")
|
||||||
|
}
|
||||||
|
|
||||||
|
if baseFee == nil && txData.TxType() == ethtypes.DynamicFeeTxType {
|
||||||
|
return ctx, sdkerrors.Wrap(ethtypes.ErrTxTypeNotSupported, "dynamic fee tx not supported")
|
||||||
|
}
|
||||||
|
|
||||||
|
txFee = txFee.Add(sdk.NewCoin(params.EvmDenom, sdkmath.NewIntFromBigInt(txData.Fee())))
|
||||||
|
}
|
||||||
|
|
||||||
|
authInfo := protoTx.AuthInfo
|
||||||
|
if len(authInfo.SignerInfos) > 0 {
|
||||||
|
return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "for eth tx AuthInfo SignerInfos should be empty")
|
||||||
|
}
|
||||||
|
|
||||||
|
if authInfo.Fee.Payer != "" || authInfo.Fee.Granter != "" {
|
||||||
|
return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "for eth tx AuthInfo Fee payer and granter should be empty")
|
||||||
|
}
|
||||||
|
|
||||||
|
if !authInfo.Fee.Amount.IsEqual(txFee) {
|
||||||
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid AuthInfo Fee Amount (%s != %s)", authInfo.Fee.Amount, txFee)
|
||||||
|
}
|
||||||
|
|
||||||
|
if authInfo.Fee.GasLimit != txGasLimit {
|
||||||
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid AuthInfo Fee GasLimit (%d != %d)", authInfo.Fee.GasLimit, txGasLimit)
|
||||||
|
}
|
||||||
|
|
||||||
|
sigs := protoTx.Signatures
|
||||||
|
if len(sigs) > 0 {
|
||||||
|
return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "for eth tx Signatures should be empty")
|
||||||
|
}
|
||||||
|
|
||||||
|
return next(ctx, tx, simulate)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EthSetupContextDecorator is adapted from SetUpContextDecorator from cosmos-sdk, it ignores gas consumption
|
||||||
|
// by setting the gas meter to infinite
|
||||||
|
type EthSetupContextDecorator struct {
|
||||||
|
evmKeeper EVMKeeper
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewEthSetUpContextDecorator(evmKeeper EVMKeeper) EthSetupContextDecorator {
|
||||||
|
return EthSetupContextDecorator{
|
||||||
|
evmKeeper: evmKeeper,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (esc EthSetupContextDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
|
// all transactions must implement GasTx
|
||||||
|
_, ok := tx.(authante.GasTx)
|
||||||
|
if !ok {
|
||||||
|
return newCtx, sdkerrors.Wrap(sdkerrors.ErrTxDecode, "Tx must be GasTx")
|
||||||
|
}
|
||||||
|
|
||||||
|
newCtx = ctx.WithGasMeter(sdk.NewInfiniteGasMeter())
|
||||||
|
// Reset transient gas used to prepare the execution of current cosmos tx.
|
||||||
|
// Transient gas-used is necessary to sum the gas-used of cosmos tx, when it contains multiple eth msgs.
|
||||||
|
esc.evmKeeper.ResetTransientGasUsed(ctx)
|
||||||
|
return next(newCtx, tx, simulate)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EthMempoolFeeDecorator will check if the transaction's effective fee is at least as large
|
||||||
|
// as the local validator's minimum gasFee (defined in validator config).
|
||||||
|
// If fee is too low, decorator returns error and tx is rejected from mempool.
|
||||||
|
// Note this only applies when ctx.CheckTx = true
|
||||||
|
// If fee is high enough or not CheckTx, then call next AnteHandler
|
||||||
|
// CONTRACT: Tx must implement FeeTx to use MempoolFeeDecorator
|
||||||
|
type EthMempoolFeeDecorator struct {
|
||||||
|
evmKeeper EVMKeeper
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewEthMempoolFeeDecorator(ek EVMKeeper) EthMempoolFeeDecorator {
|
||||||
|
return EthMempoolFeeDecorator{
|
||||||
|
evmKeeper: ek,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// AnteHandle ensures that the provided fees meet a minimum threshold for the validator,
|
||||||
|
// if this is a CheckTx. This is only for local mempool purposes, and thus
|
||||||
|
// is only ran on check tx.
|
||||||
|
// It only do the check if london hardfork not enabled or feemarket not enabled, because in that case feemarket will take over the task.
|
||||||
|
func (mfd EthMempoolFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
|
if ctx.IsCheckTx() && !simulate {
|
||||||
|
params := mfd.evmKeeper.GetParams(ctx)
|
||||||
|
ethCfg := params.ChainConfig.EthereumConfig(mfd.evmKeeper.ChainID())
|
||||||
|
baseFee := mfd.evmKeeper.GetBaseFee(ctx, ethCfg)
|
||||||
|
if baseFee == nil {
|
||||||
|
for _, msg := range tx.GetMsgs() {
|
||||||
|
ethMsg, ok := msg.(*evmtypes.MsgEthereumTx)
|
||||||
|
if !ok {
|
||||||
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
||||||
|
}
|
||||||
|
|
||||||
|
evmDenom := params.EvmDenom
|
||||||
|
feeAmt := ethMsg.GetFee()
|
||||||
|
glDec := sdk.NewDec(int64(ethMsg.GetGas()))
|
||||||
|
requiredFee := ctx.MinGasPrices().AmountOf(evmDenom).Mul(glDec)
|
||||||
|
if sdk.NewDecFromBigInt(feeAmt).LT(requiredFee) {
|
||||||
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInsufficientFee, "insufficient fees; got: %s required: %s", feeAmt, requiredFee)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return next(ctx, tx, simulate)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EthEmitEventDecorator emit events in ante handler in case of tx execution failed (out of block gas limit).
|
||||||
|
type EthEmitEventDecorator struct {
|
||||||
|
evmKeeper EVMKeeper
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewEthEmitEventDecorator creates a new EthEmitEventDecorator
|
||||||
|
func NewEthEmitEventDecorator(evmKeeper EVMKeeper) EthEmitEventDecorator {
|
||||||
|
return EthEmitEventDecorator{evmKeeper}
|
||||||
|
}
|
||||||
|
|
||||||
|
// AnteHandle emits some basic events for the eth messages
|
||||||
|
func (eeed EthEmitEventDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
|
// After eth tx passed ante handler, the fee is deducted and nonce increased, it shouldn't be ignored by json-rpc,
|
||||||
|
// we need to emit some basic events at the very end of ante handler to be indexed by tendermint.
|
||||||
|
txIndex := eeed.evmKeeper.GetTxIndexTransient(ctx)
|
||||||
|
for i, msg := range tx.GetMsgs() {
|
||||||
|
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
||||||
|
if !ok {
|
||||||
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
||||||
|
}
|
||||||
|
|
||||||
|
// emit ethereum tx hash as event, should be indexed by tm tx indexer for query purpose.
|
||||||
|
// it's emitted in ante handler so we can query failed transaction (out of block gas limit).
|
||||||
|
ctx.EventManager().EmitEvent(sdk.NewEvent(
|
||||||
|
evmtypes.EventTypeEthereumTx,
|
||||||
|
sdk.NewAttribute(evmtypes.AttributeKeyEthereumTxHash, msgEthTx.Hash),
|
||||||
|
sdk.NewAttribute(evmtypes.AttributeKeyTxIndex, strconv.FormatUint(txIndex+uint64(i), 10)),
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
return next(ctx, tx, simulate)
|
||||||
|
}
|
||||||
|
@ -9,13 +9,65 @@ import (
|
|||||||
"github.com/cerc-io/laconicd/app/ante"
|
"github.com/cerc-io/laconicd/app/ante"
|
||||||
"github.com/cerc-io/laconicd/server/config"
|
"github.com/cerc-io/laconicd/server/config"
|
||||||
"github.com/cerc-io/laconicd/tests"
|
"github.com/cerc-io/laconicd/tests"
|
||||||
ethermint "github.com/cerc-io/laconicd/types"
|
|
||||||
"github.com/cerc-io/laconicd/x/evm/statedb"
|
"github.com/cerc-io/laconicd/x/evm/statedb"
|
||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
||||||
|
|
||||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func (suite AnteTestSuite) TestEthSigVerificationDecorator() {
|
||||||
|
addr, privKey := tests.NewAddrKey()
|
||||||
|
|
||||||
|
signedTx := evmtypes.NewTxContract(suite.app.EvmKeeper.ChainID(), 1, big.NewInt(10), 1000, big.NewInt(1), nil, nil, nil, nil)
|
||||||
|
signedTx.From = addr.Hex()
|
||||||
|
err := signedTx.Sign(suite.ethSigner, tests.NewSigner(privKey))
|
||||||
|
suite.Require().NoError(err)
|
||||||
|
|
||||||
|
unprotectedTx := evmtypes.NewTxContract(nil, 1, big.NewInt(10), 1000, big.NewInt(1), nil, nil, nil, nil)
|
||||||
|
unprotectedTx.From = addr.Hex()
|
||||||
|
err = unprotectedTx.Sign(ethtypes.HomesteadSigner{}, tests.NewSigner(privKey))
|
||||||
|
suite.Require().NoError(err)
|
||||||
|
|
||||||
|
testCases := []struct {
|
||||||
|
name string
|
||||||
|
tx sdk.Tx
|
||||||
|
allowUnprotectedTxs bool
|
||||||
|
reCheckTx bool
|
||||||
|
expPass bool
|
||||||
|
}{
|
||||||
|
{"ReCheckTx", &invalidTx{}, false, true, false},
|
||||||
|
{"invalid transaction type", &invalidTx{}, false, false, false},
|
||||||
|
{
|
||||||
|
"invalid sender",
|
||||||
|
evmtypes.NewTx(suite.app.EvmKeeper.ChainID(), 1, &addr, big.NewInt(10), 1000, big.NewInt(1), nil, nil, nil, nil),
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
},
|
||||||
|
{"successful signature verification", signedTx, false, false, true},
|
||||||
|
{"invalid, reject unprotected txs", unprotectedTx, false, false, false},
|
||||||
|
{"successful, allow unprotected txs", unprotectedTx, true, false, true},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, tc := range testCases {
|
||||||
|
suite.Run(tc.name, func() {
|
||||||
|
suite.evmParamsOption = func(params *evmtypes.Params) {
|
||||||
|
params.AllowUnprotectedTxs = tc.allowUnprotectedTxs
|
||||||
|
}
|
||||||
|
suite.SetupTest()
|
||||||
|
dec := ante.NewEthSigVerificationDecorator(suite.app.EvmKeeper)
|
||||||
|
_, err := dec.AnteHandle(suite.ctx.WithIsReCheckTx(tc.reCheckTx), tc.tx, false, NextFn)
|
||||||
|
|
||||||
|
if tc.expPass {
|
||||||
|
suite.Require().NoError(err)
|
||||||
|
} else {
|
||||||
|
suite.Require().Error(err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
suite.evmParamsOption = nil
|
||||||
|
}
|
||||||
|
|
||||||
func (suite AnteTestSuite) TestNewEthAccountVerificationDecorator() {
|
func (suite AnteTestSuite) TestNewEthAccountVerificationDecorator() {
|
||||||
dec := ante.NewEthAccountVerificationDecorator(
|
dec := ante.NewEthAccountVerificationDecorator(
|
||||||
suite.app.AccountKeeper, suite.app.EvmKeeper,
|
suite.app.AccountKeeper, suite.app.EvmKeeper,
|
||||||
@ -181,9 +233,6 @@ func (suite AnteTestSuite) TestEthGasConsumeDecorator() {
|
|||||||
tx2.From = addr.Hex()
|
tx2.From = addr.Hex()
|
||||||
tx2Priority := int64(1)
|
tx2Priority := int64(1)
|
||||||
|
|
||||||
tx3GasLimit := ethermint.BlockGasLimit(suite.ctx) + uint64(1)
|
|
||||||
tx3 := evmtypes.NewTxContract(suite.app.EvmKeeper.ChainID(), 1, big.NewInt(10), tx3GasLimit, gasPrice, nil, nil, nil, ðtypes.AccessList{{Address: addr, StorageKeys: nil}})
|
|
||||||
|
|
||||||
dynamicFeeTx := evmtypes.NewTxContract(suite.app.EvmKeeper.ChainID(), 1, big.NewInt(10), tx2GasLimit,
|
dynamicFeeTx := evmtypes.NewTxContract(suite.app.EvmKeeper.ChainID(), 1, big.NewInt(10), tx2GasLimit,
|
||||||
nil, // gasPrice
|
nil, // gasPrice
|
||||||
new(big.Int).Add(baseFee, big.NewInt(evmtypes.DefaultPriorityReduction.Int64()*2)), // gasFeeCap
|
new(big.Int).Add(baseFee, big.NewInt(evmtypes.DefaultPriorityReduction.Int64()*2)), // gasFeeCap
|
||||||
@ -220,14 +269,6 @@ func (suite AnteTestSuite) TestEthGasConsumeDecorator() {
|
|||||||
false, false,
|
false, false,
|
||||||
0,
|
0,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"gas limit above block gas limit",
|
|
||||||
tx3,
|
|
||||||
math.MaxUint64,
|
|
||||||
func() {},
|
|
||||||
false, false,
|
|
||||||
0,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"not enough balance for fees",
|
"not enough balance for fees",
|
||||||
tx2,
|
tx2,
|
||||||
@ -279,17 +320,6 @@ func (suite AnteTestSuite) TestEthGasConsumeDecorator() {
|
|||||||
true, false,
|
true, false,
|
||||||
dynamicFeeTxPriority,
|
dynamicFeeTxPriority,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"success - gas limit on gasMeter is set on ReCheckTx mode",
|
|
||||||
dynamicFeeTx,
|
|
||||||
0, // for reCheckTX mode, gas limit should be set to 0
|
|
||||||
func() {
|
|
||||||
vmdb.AddBalance(addr, big.NewInt(1001000000000000))
|
|
||||||
suite.ctx = suite.ctx.WithIsReCheckTx(true)
|
|
||||||
},
|
|
||||||
true, false,
|
|
||||||
0,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range testCases {
|
for _, tc := range testCases {
|
||||||
@ -491,3 +521,33 @@ func (suite AnteTestSuite) TestEthIncrementSenderSequenceDecorator() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (suite AnteTestSuite) TestEthSetupContextDecorator() {
|
||||||
|
dec := ante.NewEthSetUpContextDecorator(suite.app.EvmKeeper)
|
||||||
|
tx := evmtypes.NewTxContract(suite.app.EvmKeeper.ChainID(), 1, big.NewInt(10), 1000, big.NewInt(1), nil, nil, nil, nil)
|
||||||
|
|
||||||
|
testCases := []struct {
|
||||||
|
name string
|
||||||
|
tx sdk.Tx
|
||||||
|
expPass bool
|
||||||
|
}{
|
||||||
|
{"invalid transaction type - does not implement GasTx", &invalidTx{}, false},
|
||||||
|
{
|
||||||
|
"success - transaction implement GasTx",
|
||||||
|
tx,
|
||||||
|
true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, tc := range testCases {
|
||||||
|
suite.Run(tc.name, func() {
|
||||||
|
_, err := dec.AnteHandle(suite.ctx, tc.tx, false, NextFn)
|
||||||
|
|
||||||
|
if tc.expPass {
|
||||||
|
suite.Require().NoError(err)
|
||||||
|
} else {
|
||||||
|
suite.Require().Error(err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -4,13 +4,12 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
sdkmath "cosmossdk.io/math"
|
sdkmath "cosmossdk.io/math"
|
||||||
|
|
||||||
ethermint "github.com/cerc-io/laconicd/types"
|
ethermint "github.com/cerc-io/laconicd/types"
|
||||||
"github.com/cerc-io/laconicd/x/evm/types"
|
"github.com/cerc-io/laconicd/x/evm/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -65,7 +64,7 @@ func NewDynamicFeeChecker(k DynamicFeeEVMKeeper) authante.TxFeeChecker {
|
|||||||
baseFeeInt := sdkmath.NewIntFromBigInt(baseFee)
|
baseFeeInt := sdkmath.NewIntFromBigInt(baseFee)
|
||||||
|
|
||||||
if feeCap.LT(baseFeeInt) {
|
if feeCap.LT(baseFeeInt) {
|
||||||
return nil, 0, errorsmod.Wrapf(errortypes.ErrInsufficientFee, "insufficient gas prices; got: %s required: %s", feeCap, baseFeeInt)
|
return nil, 0, sdkerrors.Wrapf(sdkerrors.ErrInsufficientFee, "insufficient gas prices; got: %s required: %s", feeCap, baseFeeInt)
|
||||||
}
|
}
|
||||||
|
|
||||||
// calculate the effective gas price using the EIP-1559 logic.
|
// calculate the effective gas price using the EIP-1559 logic.
|
||||||
@ -113,7 +112,7 @@ func checkTxFeeWithValidatorMinGasPrices(ctx sdk.Context, tx sdk.FeeTx) (sdk.Coi
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !feeCoins.IsAnyGTE(requiredFees) {
|
if !feeCoins.IsAnyGTE(requiredFees) {
|
||||||
return nil, 0, errorsmod.Wrapf(errortypes.ErrInsufficientFee, "insufficient fees; got: %s required: %s", feeCoins, requiredFees)
|
return nil, 0, sdkerrors.Wrapf(sdkerrors.ErrInsufficientFee, "insufficient fees; got: %s required: %s", feeCoins, requiredFees)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@ package ante
|
|||||||
import (
|
import (
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GasWantedDecorator keeps track of the gasWanted amount on the current block in transient store
|
// GasWantedDecorator keeps track of the gasWanted amount on the current block in transient store
|
||||||
@ -27,8 +27,8 @@ func NewGasWantedDecorator(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (gwd GasWantedDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
func (gwd GasWantedDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
chainCfg := gwd.evmKeeper.GetChainConfig(ctx)
|
params := gwd.evmKeeper.GetParams(ctx)
|
||||||
ethCfg := chainCfg.EthereumConfig(gwd.evmKeeper.ChainID())
|
ethCfg := params.ChainConfig.EthereumConfig(gwd.evmKeeper.ChainID())
|
||||||
|
|
||||||
blockHeight := big.NewInt(ctx.BlockHeight())
|
blockHeight := big.NewInt(ctx.BlockHeight())
|
||||||
isLondon := ethCfg.IsLondon(blockHeight)
|
isLondon := ethCfg.IsLondon(blockHeight)
|
||||||
@ -39,12 +39,12 @@ func (gwd GasWantedDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
gasWanted := feeTx.GetGas()
|
gasWanted := feeTx.GetGas()
|
||||||
isBaseFeeEnabled := gwd.feeMarketKeeper.GetBaseFeeEnabled(ctx)
|
feeMktParams := gwd.feeMarketKeeper.GetParams(ctx)
|
||||||
|
|
||||||
// Add total gasWanted to cumulative in block transientStore in FeeMarket module
|
// Add total gasWanted to cumulative in block transientStore in FeeMarket module
|
||||||
if isBaseFeeEnabled {
|
if feeMktParams.IsBaseFeeEnabled(ctx.BlockHeight()) {
|
||||||
if _, err := gwd.feeMarketKeeper.AddTransientGasWanted(ctx, gasWanted); err != nil {
|
if _, err := gwd.feeMarketKeeper.AddTransientGasWanted(ctx, gasWanted); err != nil {
|
||||||
return ctx, errorsmod.Wrapf(err, "failed to add gas wanted to transient store")
|
return ctx, sdkerrors.Wrapf(err, "failed to add gas wanted to transient store")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
118
app/ante/fees.go
118
app/ante/fees.go
@ -3,9 +3,8 @@ package ante
|
|||||||
import (
|
import (
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
|
|
||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
||||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
||||||
@ -21,50 +20,14 @@ type MinGasPriceDecorator struct {
|
|||||||
evmKeeper EVMKeeper
|
evmKeeper EVMKeeper
|
||||||
}
|
}
|
||||||
|
|
||||||
// EthMinGasPriceDecorator will check if the transaction's fee is at least as large
|
|
||||||
// as the MinGasPrices param. If fee is too low, decorator returns error and tx
|
|
||||||
// is rejected. This applies to both CheckTx and DeliverTx and regardless
|
|
||||||
// if London hard fork or fee market params (EIP-1559) are enabled.
|
|
||||||
// If fee is high enough, then call next AnteHandler
|
|
||||||
type EthMinGasPriceDecorator struct {
|
|
||||||
feesKeeper FeeMarketKeeper
|
|
||||||
evmKeeper EVMKeeper
|
|
||||||
}
|
|
||||||
|
|
||||||
// EthMempoolFeeDecorator will check if the transaction's effective fee is at least as large
|
|
||||||
// as the local validator's minimum gasFee (defined in validator config).
|
|
||||||
// If fee is too low, decorator returns error and tx is rejected from mempool.
|
|
||||||
// Note this only applies when ctx.CheckTx = true
|
|
||||||
// If fee is high enough or not CheckTx, then call next AnteHandler
|
|
||||||
// CONTRACT: Tx must implement FeeTx to use MempoolFeeDecorator
|
|
||||||
type EthMempoolFeeDecorator struct {
|
|
||||||
evmKeeper EVMKeeper
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewMinGasPriceDecorator creates a new MinGasPriceDecorator instance used only for
|
|
||||||
// Cosmos transactions.
|
|
||||||
func NewMinGasPriceDecorator(fk FeeMarketKeeper, ek EVMKeeper) MinGasPriceDecorator {
|
func NewMinGasPriceDecorator(fk FeeMarketKeeper, ek EVMKeeper) MinGasPriceDecorator {
|
||||||
return MinGasPriceDecorator{feesKeeper: fk, evmKeeper: ek}
|
return MinGasPriceDecorator{feesKeeper: fk, evmKeeper: ek}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewEthMinGasPriceDecorator creates a new MinGasPriceDecorator instance used only for
|
|
||||||
// Ethereum transactions.
|
|
||||||
func NewEthMinGasPriceDecorator(fk FeeMarketKeeper, ek EVMKeeper) EthMinGasPriceDecorator {
|
|
||||||
return EthMinGasPriceDecorator{feesKeeper: fk, evmKeeper: ek}
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewEthMempoolFeeDecorator creates a new NewEthMempoolFeeDecorator instance used only for
|
|
||||||
// Ethereum transactions.
|
|
||||||
func NewEthMempoolFeeDecorator(ek EVMKeeper) EthMempoolFeeDecorator {
|
|
||||||
return EthMempoolFeeDecorator{
|
|
||||||
evmKeeper: ek,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (mpd MinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
func (mpd MinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
feeTx, ok := tx.(sdk.FeeTx)
|
feeTx, ok := tx.(sdk.FeeTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrInvalidType, "invalid transaction type %T, expected sdk.FeeTx", tx)
|
return ctx, sdkerrors.Wrap(sdkerrors.ErrTxDecode, "Tx must be a FeeTx")
|
||||||
}
|
}
|
||||||
|
|
||||||
minGasPrice := mpd.feesKeeper.GetParams(ctx).MinGasPrice
|
minGasPrice := mpd.feesKeeper.GetParams(ctx).MinGasPrice
|
||||||
@ -74,10 +37,10 @@ func (mpd MinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate
|
|||||||
return next(ctx, tx, simulate)
|
return next(ctx, tx, simulate)
|
||||||
}
|
}
|
||||||
|
|
||||||
evmDenom := mpd.evmKeeper.GetEVMDenom(ctx)
|
evmParams := mpd.evmKeeper.GetParams(ctx)
|
||||||
minGasPrices := sdk.DecCoins{
|
minGasPrices := sdk.DecCoins{
|
||||||
{
|
{
|
||||||
Denom: evmDenom,
|
Denom: evmParams.EvmDenom,
|
||||||
Amount: minGasPrice,
|
Amount: minGasPrice,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -99,7 +62,7 @@ func (mpd MinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !feeCoins.IsAnyGTE(requiredFees) {
|
if !feeCoins.IsAnyGTE(requiredFees) {
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrInsufficientFee,
|
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInsufficientFee,
|
||||||
"provided fee < minimum global fee (%s < %s). Please increase the gas price.",
|
"provided fee < minimum global fee (%s < %s). Please increase the gas price.",
|
||||||
feeCoins,
|
feeCoins,
|
||||||
requiredFees)
|
requiredFees)
|
||||||
@ -108,8 +71,20 @@ func (mpd MinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate
|
|||||||
return next(ctx, tx, simulate)
|
return next(ctx, tx, simulate)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AnteHandle ensures that the that the effective fee from the transaction is greater than the
|
// EthMinGasPriceDecorator will check if the transaction's fee is at least as large
|
||||||
// minimum global fee, which is defined by the MinGasPrice (parameter) * GasLimit (tx argument).
|
// as the MinGasPrices param. If fee is too low, decorator returns error and tx
|
||||||
|
// is rejected. This applies to both CheckTx and DeliverTx and regardless
|
||||||
|
// if London hard fork or fee market params (EIP-1559) are enabled.
|
||||||
|
// If fee is high enough, then call next AnteHandler
|
||||||
|
type EthMinGasPriceDecorator struct {
|
||||||
|
feesKeeper FeeMarketKeeper
|
||||||
|
evmKeeper EVMKeeper
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewEthMinGasPriceDecorator(fk FeeMarketKeeper, ek EVMKeeper) EthMinGasPriceDecorator {
|
||||||
|
return EthMinGasPriceDecorator{feesKeeper: fk, evmKeeper: ek}
|
||||||
|
}
|
||||||
|
|
||||||
func (empd EthMinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
func (empd EthMinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
minGasPrice := empd.feesKeeper.GetParams(ctx).MinGasPrice
|
minGasPrice := empd.feesKeeper.GetParams(ctx).MinGasPrice
|
||||||
|
|
||||||
@ -118,15 +93,15 @@ func (empd EthMinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul
|
|||||||
return next(ctx, tx, simulate)
|
return next(ctx, tx, simulate)
|
||||||
}
|
}
|
||||||
|
|
||||||
chainCfg := empd.evmKeeper.GetChainConfig(ctx)
|
paramsEvm := empd.evmKeeper.GetParams(ctx)
|
||||||
ethCfg := chainCfg.EthereumConfig(empd.evmKeeper.ChainID())
|
ethCfg := paramsEvm.ChainConfig.EthereumConfig(empd.evmKeeper.ChainID())
|
||||||
baseFee := empd.evmKeeper.GetBaseFee(ctx, ethCfg)
|
baseFee := empd.evmKeeper.GetBaseFee(ctx, ethCfg)
|
||||||
|
|
||||||
for _, msg := range tx.GetMsgs() {
|
for _, msg := range tx.GetMsgs() {
|
||||||
ethMsg, ok := msg.(*evmtypes.MsgEthereumTx)
|
ethMsg, ok := msg.(*evmtypes.MsgEthereumTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(
|
||||||
errortypes.ErrUnknownRequest,
|
sdkerrors.ErrUnknownRequest,
|
||||||
"invalid message type %T, expected %T",
|
"invalid message type %T, expected %T",
|
||||||
msg, (*evmtypes.MsgEthereumTx)(nil),
|
msg, (*evmtypes.MsgEthereumTx)(nil),
|
||||||
)
|
)
|
||||||
@ -145,7 +120,7 @@ func (empd EthMinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul
|
|||||||
|
|
||||||
txData, err := evmtypes.UnpackTxData(ethMsg.Data)
|
txData, err := evmtypes.UnpackTxData(ethMsg.Data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ctx, errorsmod.Wrapf(err, "failed to unpack tx data %s", ethMsg.Hash)
|
return ctx, sdkerrors.Wrapf(err, "failed to unpack tx data %s", ethMsg.Hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
if txData.TxType() != ethtypes.LegacyTxType {
|
if txData.TxType() != ethtypes.LegacyTxType {
|
||||||
@ -158,8 +133,8 @@ func (empd EthMinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul
|
|||||||
fee := sdk.NewDecFromBigInt(feeAmt)
|
fee := sdk.NewDecFromBigInt(feeAmt)
|
||||||
|
|
||||||
if fee.LT(requiredFee) {
|
if fee.LT(requiredFee) {
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(
|
||||||
errortypes.ErrInsufficientFee,
|
sdkerrors.ErrInsufficientFee,
|
||||||
"provided fee < minimum global fee (%d < %d). Please increase the priority tip (for EIP-1559 txs) or the gas prices (for access list or legacy txs)", //nolint:lll
|
"provided fee < minimum global fee (%d < %d). Please increase the priority tip (for EIP-1559 txs) or the gas prices (for access list or legacy txs)", //nolint:lll
|
||||||
fee.TruncateInt().Int64(), requiredFee.TruncateInt().Int64(),
|
fee.TruncateInt().Int64(), requiredFee.TruncateInt().Int64(),
|
||||||
)
|
)
|
||||||
@ -168,44 +143,3 @@ func (empd EthMinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul
|
|||||||
|
|
||||||
return next(ctx, tx, simulate)
|
return next(ctx, tx, simulate)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AnteHandle ensures that the provided fees meet a minimum threshold for the validator.
|
|
||||||
// This check only for local mempool purposes, and thus it is only run on (Re)CheckTx.
|
|
||||||
// The logic is also skipped if the London hard fork and EIP-1559 are enabled.
|
|
||||||
func (mfd EthMempoolFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
|
||||||
if !ctx.IsCheckTx() || simulate {
|
|
||||||
return next(ctx, tx, simulate)
|
|
||||||
}
|
|
||||||
chainCfg := mfd.evmKeeper.GetChainConfig(ctx)
|
|
||||||
ethCfg := chainCfg.EthereumConfig(mfd.evmKeeper.ChainID())
|
|
||||||
|
|
||||||
baseFee := mfd.evmKeeper.GetBaseFee(ctx, ethCfg)
|
|
||||||
// skip check as the London hard fork and EIP-1559 are enabled
|
|
||||||
if baseFee != nil {
|
|
||||||
return next(ctx, tx, simulate)
|
|
||||||
}
|
|
||||||
|
|
||||||
evmDenom := mfd.evmKeeper.GetEVMDenom(ctx)
|
|
||||||
minGasPrice := ctx.MinGasPrices().AmountOf(evmDenom)
|
|
||||||
|
|
||||||
for _, msg := range tx.GetMsgs() {
|
|
||||||
ethMsg, ok := msg.(*evmtypes.MsgEthereumTx)
|
|
||||||
if !ok {
|
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
|
||||||
}
|
|
||||||
|
|
||||||
fee := sdk.NewDecFromBigInt(ethMsg.GetFee())
|
|
||||||
gasLimit := sdk.NewDecFromBigInt(new(big.Int).SetUint64(ethMsg.GetGas()))
|
|
||||||
requiredFee := minGasPrice.Mul(gasLimit)
|
|
||||||
|
|
||||||
if fee.LT(requiredFee) {
|
|
||||||
return ctx, errorsmod.Wrapf(
|
|
||||||
errortypes.ErrInsufficientFee,
|
|
||||||
"insufficient fee; got: %s required: %s",
|
|
||||||
fee, requiredFee,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return next(ctx, tx, simulate)
|
|
||||||
}
|
|
||||||
|
@ -42,7 +42,7 @@ func (s AnteTestSuite) TestMinGasPriceDecorator() {
|
|||||||
return &invalidTx{}
|
return &invalidTx{}
|
||||||
},
|
},
|
||||||
false,
|
false,
|
||||||
"invalid transaction type",
|
"must be a FeeTx",
|
||||||
false,
|
false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -345,7 +345,3 @@ func (s AnteTestSuite) TestEthMinGasPriceDecorator() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite AnteTestSuite) TestEthMempoolFeeDecorator() {
|
|
||||||
// TODO: add test
|
|
||||||
}
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
package ante
|
package ante
|
||||||
|
|
||||||
import (
|
import (
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/ante"
|
"github.com/cosmos/cosmos-sdk/x/auth/ante"
|
||||||
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
||||||
@ -21,7 +20,7 @@ type HandlerOptions struct {
|
|||||||
AccountKeeper evmtypes.AccountKeeper
|
AccountKeeper evmtypes.AccountKeeper
|
||||||
BankKeeper evmtypes.BankKeeper
|
BankKeeper evmtypes.BankKeeper
|
||||||
IBCKeeper *ibckeeper.Keeper
|
IBCKeeper *ibckeeper.Keeper
|
||||||
FeeMarketKeeper FeeMarketKeeper
|
FeeMarketKeeper evmtypes.FeeMarketKeeper
|
||||||
EvmKeeper EVMKeeper
|
EvmKeeper EVMKeeper
|
||||||
FeegrantKeeper ante.FeegrantKeeper
|
FeegrantKeeper ante.FeegrantKeeper
|
||||||
SignModeHandler authsigning.SignModeHandler
|
SignModeHandler authsigning.SignModeHandler
|
||||||
@ -32,20 +31,20 @@ type HandlerOptions struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (options HandlerOptions) validate() error {
|
func (options HandlerOptions) validate() error {
|
||||||
if options.AccountKeeper == nil {
|
if options.AccountKeeper == evmtypes.AccountKeeper(nil) {
|
||||||
return errorsmod.Wrap(errortypes.ErrLogic, "account keeper is required for AnteHandler")
|
return sdkerrors.Wrap(sdkerrors.ErrLogic, "account keeper is required for AnteHandler")
|
||||||
}
|
}
|
||||||
if options.BankKeeper == nil {
|
if options.BankKeeper == evmtypes.BankKeeper(nil) {
|
||||||
return errorsmod.Wrap(errortypes.ErrLogic, "bank keeper is required for AnteHandler")
|
return sdkerrors.Wrap(sdkerrors.ErrLogic, "bank keeper is required for AnteHandler")
|
||||||
}
|
}
|
||||||
if options.SignModeHandler == nil {
|
if options.SignModeHandler == authsigning.SignModeHandler(nil) {
|
||||||
return errorsmod.Wrap(errortypes.ErrLogic, "sign mode handler is required for ante builder")
|
return sdkerrors.Wrap(sdkerrors.ErrLogic, "sign mode handler is required for ante builder")
|
||||||
}
|
}
|
||||||
if options.FeeMarketKeeper == nil {
|
if options.FeeMarketKeeper == evmtypes.FeeMarketKeeper(nil) {
|
||||||
return errorsmod.Wrap(errortypes.ErrLogic, "fee market keeper is required for AnteHandler")
|
return sdkerrors.Wrap(sdkerrors.ErrLogic, "fee market keeper is required for AnteHandler")
|
||||||
}
|
}
|
||||||
if options.EvmKeeper == nil {
|
if options.EvmKeeper == EVMKeeper(nil) {
|
||||||
return errorsmod.Wrap(errortypes.ErrLogic, "evm keeper is required for AnteHandler")
|
return sdkerrors.Wrap(sdkerrors.ErrLogic, "evm keeper is required for AnteHandler")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -71,9 +70,9 @@ func newCosmosAnteHandler(options HandlerOptions) sdk.AnteHandler {
|
|||||||
RejectMessagesDecorator{}, // reject MsgEthereumTxs
|
RejectMessagesDecorator{}, // reject MsgEthereumTxs
|
||||||
ante.NewSetUpContextDecorator(),
|
ante.NewSetUpContextDecorator(),
|
||||||
ante.NewExtensionOptionsDecorator(options.ExtensionOptionChecker),
|
ante.NewExtensionOptionsDecorator(options.ExtensionOptionChecker),
|
||||||
|
NewMinGasPriceDecorator(options.FeeMarketKeeper, options.EvmKeeper),
|
||||||
ante.NewValidateBasicDecorator(),
|
ante.NewValidateBasicDecorator(),
|
||||||
ante.NewTxTimeoutHeightDecorator(),
|
ante.NewTxTimeoutHeightDecorator(),
|
||||||
NewMinGasPriceDecorator(options.FeeMarketKeeper, options.EvmKeeper),
|
|
||||||
ante.NewValidateMemoDecorator(options.AccountKeeper),
|
ante.NewValidateMemoDecorator(options.AccountKeeper),
|
||||||
ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),
|
ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),
|
||||||
ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker),
|
ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker),
|
||||||
@ -87,3 +86,27 @@ func newCosmosAnteHandler(options HandlerOptions) sdk.AnteHandler {
|
|||||||
NewGasWantedDecorator(options.EvmKeeper, options.FeeMarketKeeper),
|
NewGasWantedDecorator(options.EvmKeeper, options.FeeMarketKeeper),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func newCosmosAnteHandlerEip712(options HandlerOptions) sdk.AnteHandler {
|
||||||
|
return sdk.ChainAnteDecorators(
|
||||||
|
RejectMessagesDecorator{}, // reject MsgEthereumTxs
|
||||||
|
ante.NewSetUpContextDecorator(),
|
||||||
|
// NOTE: extensions option decorator removed
|
||||||
|
// ante.NewRejectExtensionOptionsDecorator(),
|
||||||
|
NewMinGasPriceDecorator(options.FeeMarketKeeper, options.EvmKeeper),
|
||||||
|
ante.NewValidateBasicDecorator(),
|
||||||
|
ante.NewTxTimeoutHeightDecorator(),
|
||||||
|
ante.NewValidateMemoDecorator(options.AccountKeeper),
|
||||||
|
ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),
|
||||||
|
ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker),
|
||||||
|
// SetPubKeyDecorator must be called before all signature verification decorators
|
||||||
|
ante.NewSetPubKeyDecorator(options.AccountKeeper),
|
||||||
|
ante.NewValidateSigCountDecorator(options.AccountKeeper),
|
||||||
|
ante.NewSigGasConsumeDecorator(options.AccountKeeper, options.SigGasConsumer),
|
||||||
|
// Note: signature verification uses EIP instead of the cosmos signature validator
|
||||||
|
NewEip712SigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
|
||||||
|
ante.NewIncrementSequenceDecorator(options.AccountKeeper),
|
||||||
|
ibcante.NewRedundantRelayDecorator(options.IBCKeeper),
|
||||||
|
NewGasWantedDecorator(options.EvmKeeper, options.FeeMarketKeeper),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
@ -28,15 +28,12 @@ type EVMKeeper interface {
|
|||||||
DynamicFeeEVMKeeper
|
DynamicFeeEVMKeeper
|
||||||
|
|
||||||
NewEVM(ctx sdk.Context, msg core.Message, cfg *evmtypes.EVMConfig, tracer vm.EVMLogger, stateDB vm.StateDB) evm.EVM
|
NewEVM(ctx sdk.Context, msg core.Message, cfg *evmtypes.EVMConfig, tracer vm.EVMLogger, stateDB vm.StateDB) evm.EVM
|
||||||
DeductTxCostsFromUserBalance(ctx sdk.Context, fees sdk.Coins, from common.Address) error
|
DeductTxCostsFromUserBalance(
|
||||||
|
ctx sdk.Context, msgEthTx evmtypes.MsgEthereumTx, txData evmtypes.TxData, denom string, homestead, istanbul, london bool,
|
||||||
|
) (fees sdk.Coins, priority int64, err error)
|
||||||
GetBalance(ctx sdk.Context, addr common.Address) *big.Int
|
GetBalance(ctx sdk.Context, addr common.Address) *big.Int
|
||||||
ResetTransientGasUsed(ctx sdk.Context)
|
ResetTransientGasUsed(ctx sdk.Context)
|
||||||
GetTxIndexTransient(ctx sdk.Context) uint64
|
GetTxIndexTransient(ctx sdk.Context) uint64
|
||||||
GetChainConfig(ctx sdk.Context) evmtypes.ChainConfig
|
|
||||||
GetEVMDenom(ctx sdk.Context) string
|
|
||||||
GetEnableCreate(ctx sdk.Context) bool
|
|
||||||
GetEnableCall(ctx sdk.Context) bool
|
|
||||||
GetAllowUnprotectedTxs(ctx sdk.Context) bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type protoTxProvider interface {
|
type protoTxProvider interface {
|
||||||
@ -47,5 +44,4 @@ type protoTxProvider interface {
|
|||||||
type FeeMarketKeeper interface {
|
type FeeMarketKeeper interface {
|
||||||
GetParams(ctx sdk.Context) (params feemarkettypes.Params)
|
GetParams(ctx sdk.Context) (params feemarkettypes.Params)
|
||||||
AddTransientGasWanted(ctx sdk.Context, gasWanted uint64) (uint64, error)
|
AddTransientGasWanted(ctx sdk.Context, gasWanted uint64) (uint64, error)
|
||||||
GetBaseFeeEnabled(ctx sdk.Context) bool
|
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
package ante
|
package ante
|
||||||
|
|
||||||
import (
|
import (
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RejectMessagesDecorator prevents invalid msg types from being executed
|
// RejectMessagesDecorator prevents invalid msg types from being executed
|
||||||
@ -16,8 +15,8 @@ type RejectMessagesDecorator struct{}
|
|||||||
func (rmd RejectMessagesDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
func (rmd RejectMessagesDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
for _, msg := range tx.GetMsgs() {
|
for _, msg := range tx.GetMsgs() {
|
||||||
if _, ok := msg.(*evmtypes.MsgEthereumTx); ok {
|
if _, ok := msg.(*evmtypes.MsgEthereumTx); ok {
|
||||||
return ctx, errorsmod.Wrapf(
|
return ctx, sdkerrors.Wrapf(
|
||||||
errortypes.ErrInvalidType,
|
sdkerrors.ErrInvalidType,
|
||||||
"MsgEthereumTx needs to be contained within a tx with 'ExtensionOptionsEthereumTx' option",
|
"MsgEthereumTx needs to be contained within a tx with 'ExtensionOptionsEthereumTx' option",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,189 +0,0 @@
|
|||||||
package ante
|
|
||||||
|
|
||||||
import (
|
|
||||||
"errors"
|
|
||||||
"strconv"
|
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
sdkmath "cosmossdk.io/math"
|
|
||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
|
||||||
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
|
||||||
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
|
||||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
|
||||||
)
|
|
||||||
|
|
||||||
// EthSetupContextDecorator is adapted from SetUpContextDecorator from cosmos-sdk, it ignores gas consumption
|
|
||||||
// by setting the gas meter to infinite
|
|
||||||
type EthSetupContextDecorator struct {
|
|
||||||
evmKeeper EVMKeeper
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewEthSetUpContextDecorator(evmKeeper EVMKeeper) EthSetupContextDecorator {
|
|
||||||
return EthSetupContextDecorator{
|
|
||||||
evmKeeper: evmKeeper,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (esc EthSetupContextDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
|
||||||
// all transactions must implement GasTx
|
|
||||||
_, ok := tx.(authante.GasTx)
|
|
||||||
if !ok {
|
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrInvalidType, "invalid transaction type %T, expected GasTx", tx)
|
|
||||||
}
|
|
||||||
|
|
||||||
// We need to setup an empty gas config so that the gas is consistent with Ethereum.
|
|
||||||
newCtx = ctx.WithGasMeter(sdk.NewInfiniteGasMeter()).
|
|
||||||
WithKVGasConfig(storetypes.GasConfig{}).
|
|
||||||
WithTransientKVGasConfig(storetypes.GasConfig{})
|
|
||||||
|
|
||||||
// Reset transient gas used to prepare the execution of current cosmos tx.
|
|
||||||
// Transient gas-used is necessary to sum the gas-used of cosmos tx, when it contains multiple eth msgs.
|
|
||||||
esc.evmKeeper.ResetTransientGasUsed(ctx)
|
|
||||||
return next(newCtx, tx, simulate)
|
|
||||||
}
|
|
||||||
|
|
||||||
// EthEmitEventDecorator emit events in ante handler in case of tx execution failed (out of block gas limit).
|
|
||||||
type EthEmitEventDecorator struct {
|
|
||||||
evmKeeper EVMKeeper
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewEthEmitEventDecorator creates a new EthEmitEventDecorator
|
|
||||||
func NewEthEmitEventDecorator(evmKeeper EVMKeeper) EthEmitEventDecorator {
|
|
||||||
return EthEmitEventDecorator{evmKeeper}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AnteHandle emits some basic events for the eth messages
|
|
||||||
func (eeed EthEmitEventDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
|
||||||
// After eth tx passed ante handler, the fee is deducted and nonce increased, it shouldn't be ignored by json-rpc,
|
|
||||||
// we need to emit some basic events at the very end of ante handler to be indexed by tendermint.
|
|
||||||
txIndex := eeed.evmKeeper.GetTxIndexTransient(ctx)
|
|
||||||
for i, msg := range tx.GetMsgs() {
|
|
||||||
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
|
||||||
if !ok {
|
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
|
||||||
}
|
|
||||||
|
|
||||||
// emit ethereum tx hash as an event so that it can be indexed by Tendermint for query purposes
|
|
||||||
// it's emitted in ante handler, so we can query failed transaction (out of block gas limit).
|
|
||||||
ctx.EventManager().EmitEvent(sdk.NewEvent(
|
|
||||||
evmtypes.EventTypeEthereumTx,
|
|
||||||
sdk.NewAttribute(evmtypes.AttributeKeyEthereumTxHash, msgEthTx.Hash),
|
|
||||||
sdk.NewAttribute(evmtypes.AttributeKeyTxIndex, strconv.FormatUint(txIndex+uint64(i), 10)),
|
|
||||||
))
|
|
||||||
}
|
|
||||||
|
|
||||||
return next(ctx, tx, simulate)
|
|
||||||
}
|
|
||||||
|
|
||||||
// EthValidateBasicDecorator is adapted from ValidateBasicDecorator from cosmos-sdk, it ignores ErrNoSignatures
|
|
||||||
type EthValidateBasicDecorator struct {
|
|
||||||
evmKeeper EVMKeeper
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewEthValidateBasicDecorator creates a new EthValidateBasicDecorator
|
|
||||||
func NewEthValidateBasicDecorator(ek EVMKeeper) EthValidateBasicDecorator {
|
|
||||||
return EthValidateBasicDecorator{
|
|
||||||
evmKeeper: ek,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AnteHandle handles basic validation of tx
|
|
||||||
func (vbd EthValidateBasicDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
|
|
||||||
// no need to validate basic on recheck tx, call next antehandler
|
|
||||||
if ctx.IsReCheckTx() {
|
|
||||||
return next(ctx, tx, simulate)
|
|
||||||
}
|
|
||||||
|
|
||||||
err := tx.ValidateBasic()
|
|
||||||
// ErrNoSignatures is fine with eth tx
|
|
||||||
if err != nil && !errors.Is(err, errortypes.ErrNoSignatures) {
|
|
||||||
return ctx, errorsmod.Wrap(err, "tx basic validation failed")
|
|
||||||
}
|
|
||||||
|
|
||||||
// For eth type cosmos tx, some fields should be verified as zero values,
|
|
||||||
// since we will only verify the signature against the hash of the MsgEthereumTx.Data
|
|
||||||
wrapperTx, ok := tx.(protoTxProvider)
|
|
||||||
if !ok {
|
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid tx type %T, didn't implement interface protoTxProvider", tx)
|
|
||||||
}
|
|
||||||
|
|
||||||
protoTx := wrapperTx.GetProtoTx()
|
|
||||||
body := protoTx.Body
|
|
||||||
if body.Memo != "" || body.TimeoutHeight != uint64(0) || len(body.NonCriticalExtensionOptions) > 0 {
|
|
||||||
return ctx, errorsmod.Wrap(errortypes.ErrInvalidRequest,
|
|
||||||
"for eth tx body Memo TimeoutHeight NonCriticalExtensionOptions should be empty")
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(body.ExtensionOptions) != 1 {
|
|
||||||
return ctx, errorsmod.Wrap(errortypes.ErrInvalidRequest, "for eth tx length of ExtensionOptions should be 1")
|
|
||||||
}
|
|
||||||
|
|
||||||
authInfo := protoTx.AuthInfo
|
|
||||||
if len(authInfo.SignerInfos) > 0 {
|
|
||||||
return ctx, errorsmod.Wrap(errortypes.ErrInvalidRequest, "for eth tx AuthInfo SignerInfos should be empty")
|
|
||||||
}
|
|
||||||
|
|
||||||
if authInfo.Fee.Payer != "" || authInfo.Fee.Granter != "" {
|
|
||||||
return ctx, errorsmod.Wrap(errortypes.ErrInvalidRequest, "for eth tx AuthInfo Fee payer and granter should be empty")
|
|
||||||
}
|
|
||||||
|
|
||||||
sigs := protoTx.Signatures
|
|
||||||
if len(sigs) > 0 {
|
|
||||||
return ctx, errorsmod.Wrap(errortypes.ErrInvalidRequest, "for eth tx Signatures should be empty")
|
|
||||||
}
|
|
||||||
|
|
||||||
txFee := sdk.Coins{}
|
|
||||||
txGasLimit := uint64(0)
|
|
||||||
|
|
||||||
chainCfg := vbd.evmKeeper.GetChainConfig(ctx)
|
|
||||||
chainID := vbd.evmKeeper.ChainID()
|
|
||||||
ethCfg := chainCfg.EthereumConfig(chainID)
|
|
||||||
baseFee := vbd.evmKeeper.GetBaseFee(ctx, ethCfg)
|
|
||||||
enableCreate := vbd.evmKeeper.GetEnableCreate(ctx)
|
|
||||||
enableCall := vbd.evmKeeper.GetEnableCall(ctx)
|
|
||||||
evmDenom := vbd.evmKeeper.GetEVMDenom(ctx)
|
|
||||||
|
|
||||||
for _, msg := range protoTx.GetMsgs() {
|
|
||||||
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
|
||||||
if !ok {
|
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate `From` field
|
|
||||||
if msgEthTx.From != "" {
|
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrInvalidRequest, "invalid From %s, expect empty string", msgEthTx.From)
|
|
||||||
}
|
|
||||||
|
|
||||||
txGasLimit += msgEthTx.GetGas()
|
|
||||||
|
|
||||||
txData, err := evmtypes.UnpackTxData(msgEthTx.Data)
|
|
||||||
if err != nil {
|
|
||||||
return ctx, errorsmod.Wrap(err, "failed to unpack MsgEthereumTx Data")
|
|
||||||
}
|
|
||||||
|
|
||||||
// return error if contract creation or call are disabled through governance
|
|
||||||
if !enableCreate && txData.GetTo() == nil {
|
|
||||||
return ctx, errorsmod.Wrap(evmtypes.ErrCreateDisabled, "failed to create new contract")
|
|
||||||
} else if !enableCall && txData.GetTo() != nil {
|
|
||||||
return ctx, errorsmod.Wrap(evmtypes.ErrCallDisabled, "failed to call contract")
|
|
||||||
}
|
|
||||||
|
|
||||||
if baseFee == nil && txData.TxType() == ethtypes.DynamicFeeTxType {
|
|
||||||
return ctx, errorsmod.Wrap(ethtypes.ErrTxTypeNotSupported, "dynamic fee tx not supported")
|
|
||||||
}
|
|
||||||
|
|
||||||
txFee = txFee.Add(sdk.Coin{Denom: evmDenom, Amount: sdkmath.NewIntFromBigInt(txData.Fee())})
|
|
||||||
}
|
|
||||||
|
|
||||||
if !authInfo.Fee.Amount.IsEqual(txFee) {
|
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrInvalidRequest, "invalid AuthInfo Fee Amount (%s != %s)", authInfo.Fee.Amount, txFee)
|
|
||||||
}
|
|
||||||
|
|
||||||
if authInfo.Fee.GasLimit != txGasLimit {
|
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrInvalidRequest, "invalid AuthInfo Fee GasLimit (%d != %d)", authInfo.Fee.GasLimit, txGasLimit)
|
|
||||||
}
|
|
||||||
|
|
||||||
return next(ctx, tx, simulate)
|
|
||||||
}
|
|
@ -1,42 +0,0 @@
|
|||||||
package ante_test
|
|
||||||
|
|
||||||
import (
|
|
||||||
"math/big"
|
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/app/ante"
|
|
||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
|
||||||
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
||||||
)
|
|
||||||
|
|
||||||
func (suite AnteTestSuite) TestEthSetupContextDecorator() {
|
|
||||||
dec := ante.NewEthSetUpContextDecorator(suite.app.EvmKeeper)
|
|
||||||
tx := evmtypes.NewTxContract(suite.app.EvmKeeper.ChainID(), 1, big.NewInt(10), 1000, big.NewInt(1), nil, nil, nil, nil)
|
|
||||||
|
|
||||||
testCases := []struct {
|
|
||||||
name string
|
|
||||||
tx sdk.Tx
|
|
||||||
expPass bool
|
|
||||||
}{
|
|
||||||
{"invalid transaction type - does not implement GasTx", &invalidTx{}, false},
|
|
||||||
{
|
|
||||||
"success - transaction implement GasTx",
|
|
||||||
tx,
|
|
||||||
true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, tc := range testCases {
|
|
||||||
suite.Run(tc.name, func() {
|
|
||||||
ctx, err := dec.AnteHandle(suite.ctx, tc.tx, false, NextFn)
|
|
||||||
|
|
||||||
if tc.expPass {
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
suite.Equal(storetypes.GasConfig{}, ctx.KVGasConfig())
|
|
||||||
suite.Equal(storetypes.GasConfig{}, ctx.TransientKVGasConfig())
|
|
||||||
} else {
|
|
||||||
suite.Require().Error(err)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,64 +0,0 @@
|
|||||||
package ante_test
|
|
||||||
|
|
||||||
import (
|
|
||||||
"math/big"
|
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/app/ante"
|
|
||||||
"github.com/cerc-io/laconicd/tests"
|
|
||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
||||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
|
||||||
)
|
|
||||||
|
|
||||||
func (suite AnteTestSuite) TestEthSigVerificationDecorator() {
|
|
||||||
addr, privKey := tests.NewAddrKey()
|
|
||||||
|
|
||||||
signedTx := evmtypes.NewTxContract(suite.app.EvmKeeper.ChainID(), 1, big.NewInt(10), 1000, big.NewInt(1), nil, nil, nil, nil)
|
|
||||||
signedTx.From = addr.Hex()
|
|
||||||
err := signedTx.Sign(suite.ethSigner, tests.NewSigner(privKey))
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
unprotectedTx := evmtypes.NewTxContract(nil, 1, big.NewInt(10), 1000, big.NewInt(1), nil, nil, nil, nil)
|
|
||||||
unprotectedTx.From = addr.Hex()
|
|
||||||
err = unprotectedTx.Sign(ethtypes.HomesteadSigner{}, tests.NewSigner(privKey))
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
testCases := []struct {
|
|
||||||
name string
|
|
||||||
tx sdk.Tx
|
|
||||||
allowUnprotectedTxs bool
|
|
||||||
reCheckTx bool
|
|
||||||
expPass bool
|
|
||||||
}{
|
|
||||||
{"ReCheckTx", &invalidTx{}, false, true, false},
|
|
||||||
{"invalid transaction type", &invalidTx{}, false, false, false},
|
|
||||||
{
|
|
||||||
"invalid sender",
|
|
||||||
evmtypes.NewTx(suite.app.EvmKeeper.ChainID(), 1, &addr, big.NewInt(10), 1000, big.NewInt(1), nil, nil, nil, nil),
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
},
|
|
||||||
{"successful signature verification", signedTx, false, false, true},
|
|
||||||
{"invalid, reject unprotected txs", unprotectedTx, false, false, false},
|
|
||||||
{"successful, allow unprotected txs", unprotectedTx, true, false, true},
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, tc := range testCases {
|
|
||||||
suite.Run(tc.name, func() {
|
|
||||||
suite.evmParamsOption = func(params *evmtypes.Params) {
|
|
||||||
params.AllowUnprotectedTxs = tc.allowUnprotectedTxs
|
|
||||||
}
|
|
||||||
suite.SetupTest()
|
|
||||||
dec := ante.NewEthSigVerificationDecorator(suite.app.EvmKeeper)
|
|
||||||
_, err := dec.AnteHandle(suite.ctx.WithIsReCheckTx(tc.reCheckTx), tc.tx, false, NextFn)
|
|
||||||
|
|
||||||
if tc.expPass {
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
} else {
|
|
||||||
suite.Require().Error(err)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
suite.evmParamsOption = nil
|
|
||||||
}
|
|
@ -1,65 +0,0 @@
|
|||||||
package ante
|
|
||||||
|
|
||||||
import (
|
|
||||||
"math/big"
|
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
|
||||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
|
||||||
)
|
|
||||||
|
|
||||||
// EthSigVerificationDecorator validates an ethereum signatures
|
|
||||||
type EthSigVerificationDecorator struct {
|
|
||||||
evmKeeper EVMKeeper
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewEthSigVerificationDecorator creates a new EthSigVerificationDecorator
|
|
||||||
func NewEthSigVerificationDecorator(ek EVMKeeper) EthSigVerificationDecorator {
|
|
||||||
return EthSigVerificationDecorator{
|
|
||||||
evmKeeper: ek,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AnteHandle validates checks that the registered chain id is the same as the one on the message, and
|
|
||||||
// that the signer address matches the one defined on the message.
|
|
||||||
// It's not skipped for RecheckTx, because it set `From` address which is critical from other ante handler to work.
|
|
||||||
// Failure in RecheckTx will prevent tx to be included into block, especially when CheckTx succeed, in which case user
|
|
||||||
// won't see the error message.
|
|
||||||
func (esvd EthSigVerificationDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
|
||||||
chainID := esvd.evmKeeper.ChainID()
|
|
||||||
chainCfg := esvd.evmKeeper.GetChainConfig(ctx)
|
|
||||||
ethCfg := chainCfg.EthereumConfig(chainID)
|
|
||||||
blockNum := big.NewInt(ctx.BlockHeight())
|
|
||||||
signer := ethtypes.MakeSigner(ethCfg, blockNum)
|
|
||||||
|
|
||||||
for _, msg := range tx.GetMsgs() {
|
|
||||||
msgEthTx, ok := msg.(*evmtypes.MsgEthereumTx)
|
|
||||||
if !ok {
|
|
||||||
return ctx, errorsmod.Wrapf(errortypes.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
|
|
||||||
}
|
|
||||||
|
|
||||||
allowUnprotectedTxs := esvd.evmKeeper.GetAllowUnprotectedTxs(ctx)
|
|
||||||
ethTx := msgEthTx.AsTransaction()
|
|
||||||
if !allowUnprotectedTxs && !ethTx.Protected() {
|
|
||||||
return ctx, errorsmod.Wrapf(
|
|
||||||
errortypes.ErrNotSupported,
|
|
||||||
"rejected unprotected Ethereum transaction. Please EIP155 sign your transaction to protect it against replay-attacks")
|
|
||||||
}
|
|
||||||
|
|
||||||
sender, err := signer.Sender(ethTx)
|
|
||||||
if err != nil {
|
|
||||||
return ctx, errorsmod.Wrapf(
|
|
||||||
errortypes.ErrorInvalidSigner,
|
|
||||||
"couldn't retrieve sender address from the ethereum transaction: %s",
|
|
||||||
err.Error(),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// set up the sender to the transaction field if not already
|
|
||||||
msgEthTx.From = sender.Hex()
|
|
||||||
}
|
|
||||||
|
|
||||||
return next(ctx, tx, simulate)
|
|
||||||
}
|
|
@ -15,32 +15,26 @@ import (
|
|||||||
"github.com/cerc-io/laconicd/types"
|
"github.com/cerc-io/laconicd/types"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
||||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
types2 "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
types3 "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/signer/core/apitypes"
|
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
||||||
|
|
||||||
cryptocodec "github.com/cerc-io/laconicd/crypto/codec"
|
cryptocodec "github.com/cerc-io/laconicd/crypto/codec"
|
||||||
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||||
kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
|
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/types/multisig"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
|
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
||||||
sdkante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
|
||||||
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
||||||
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
|
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
|
||||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||||
authz "github.com/cosmos/cosmos-sdk/x/authz"
|
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/app"
|
"github.com/cerc-io/laconicd/app"
|
||||||
ante "github.com/cerc-io/laconicd/app/ante"
|
ante "github.com/cerc-io/laconicd/app/ante"
|
||||||
@ -52,8 +46,7 @@ import (
|
|||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
||||||
evtypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
|
evtypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/feegrant"
|
"github.com/cosmos/cosmos-sdk/x/feegrant"
|
||||||
govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
types5 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
|
||||||
|
|
||||||
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
||||||
)
|
)
|
||||||
@ -99,8 +92,6 @@ func (suite *AnteTestSuite) SetupTest() {
|
|||||||
evmGenesis.Params.ChainConfig.ArrowGlacierBlock = &maxInt
|
evmGenesis.Params.ChainConfig.ArrowGlacierBlock = &maxInt
|
||||||
evmGenesis.Params.ChainConfig.GrayGlacierBlock = &maxInt
|
evmGenesis.Params.ChainConfig.GrayGlacierBlock = &maxInt
|
||||||
evmGenesis.Params.ChainConfig.MergeNetsplitBlock = &maxInt
|
evmGenesis.Params.ChainConfig.MergeNetsplitBlock = &maxInt
|
||||||
evmGenesis.Params.ChainConfig.ShanghaiBlock = &maxInt
|
|
||||||
evmGenesis.Params.ChainConfig.CancunBlock = &maxInt
|
|
||||||
}
|
}
|
||||||
if suite.evmParamsOption != nil {
|
if suite.evmParamsOption != nil {
|
||||||
suite.evmParamsOption(&evmGenesis.Params)
|
suite.evmParamsOption(&evmGenesis.Params)
|
||||||
@ -120,7 +111,6 @@ func (suite *AnteTestSuite) SetupTest() {
|
|||||||
encodingConfig := encoding.MakeConfig(app.ModuleBasics)
|
encodingConfig := encoding.MakeConfig(app.ModuleBasics)
|
||||||
// We're using TestMsg amino encoding in some tests, so register it here.
|
// We're using TestMsg amino encoding in some tests, so register it here.
|
||||||
encodingConfig.Amino.RegisterConcrete(&testdata.TestMsg{}, "testdata.TestMsg", nil)
|
encodingConfig.Amino.RegisterConcrete(&testdata.TestMsg{}, "testdata.TestMsg", nil)
|
||||||
eip712.SetEncodingConfig(encodingConfig)
|
|
||||||
|
|
||||||
suite.clientCtx = client.Context{}.WithTxConfig(encodingConfig.TxConfig)
|
suite.clientCtx = client.Context{}.WithTxConfig(encodingConfig.TxConfig)
|
||||||
|
|
||||||
@ -273,57 +263,41 @@ func (suite *AnteTestSuite) CreateTestCosmosTxBuilder(gasPrice sdkmath.Int, deno
|
|||||||
func (suite *AnteTestSuite) CreateTestEIP712TxBuilderMsgSend(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
func (suite *AnteTestSuite) CreateTestEIP712TxBuilderMsgSend(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
||||||
// Build MsgSend
|
// Build MsgSend
|
||||||
recipient := sdk.AccAddress(common.Address{}.Bytes())
|
recipient := sdk.AccAddress(common.Address{}.Bytes())
|
||||||
msgSend := banktypes.NewMsgSend(from, recipient, sdk.NewCoins(sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(1))))
|
msgSend := types2.NewMsgSend(from, recipient, sdk.NewCoins(sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(1))))
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgSend)
|
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, msgSend)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712TxBuilderMsgDelegate(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
func (suite *AnteTestSuite) CreateTestEIP712TxBuilderMsgDelegate(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
||||||
// Build MsgSend
|
// Build MsgSend
|
||||||
valEthAddr := tests.GenerateAddress()
|
valEthAddr := tests.GenerateAddress()
|
||||||
valAddr := sdk.ValAddress(valEthAddr.Bytes())
|
valAddr := sdk.ValAddress(valEthAddr.Bytes())
|
||||||
msgSend := stakingtypes.NewMsgDelegate(from, valAddr, sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(20)))
|
msgSend := types3.NewMsgDelegate(from, valAddr, sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(20)))
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgSend)
|
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, msgSend)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712MsgCreateValidator(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
func (suite *AnteTestSuite) CreateTestEIP712MsgCreateValidator(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
||||||
// Build MsgCreateValidator
|
// Build MsgCreateValidator
|
||||||
valAddr := sdk.ValAddress(from.Bytes())
|
valAddr := sdk.ValAddress(from.Bytes())
|
||||||
privEd := ed25519.GenPrivKey()
|
privEd := ed25519.GenPrivKey()
|
||||||
msgCreate, err := stakingtypes.NewMsgCreateValidator(
|
msgCreate, err := types3.NewMsgCreateValidator(
|
||||||
valAddr,
|
valAddr,
|
||||||
privEd.PubKey(),
|
privEd.PubKey(),
|
||||||
sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20)),
|
sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20)),
|
||||||
stakingtypes.NewDescription("moniker", "indentity", "website", "security_contract", "details"),
|
// TODO: can this values be empty strings?
|
||||||
stakingtypes.NewCommissionRates(sdk.OneDec(), sdk.OneDec(), sdk.OneDec()),
|
types3.NewDescription("moniker", "indentity", "website", "security_contract", "details"),
|
||||||
|
types3.NewCommissionRates(sdk.OneDec(), sdk.OneDec(), sdk.OneDec()),
|
||||||
sdk.OneInt(),
|
sdk.OneInt(),
|
||||||
)
|
)
|
||||||
suite.Require().NoError(err)
|
suite.Require().NoError(err)
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgCreate)
|
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, msgCreate)
|
||||||
}
|
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712MsgCreateValidator2(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
|
||||||
// Build MsgCreateValidator
|
|
||||||
valAddr := sdk.ValAddress(from.Bytes())
|
|
||||||
privEd := ed25519.GenPrivKey()
|
|
||||||
msgCreate, err := stakingtypes.NewMsgCreateValidator(
|
|
||||||
valAddr,
|
|
||||||
privEd.PubKey(),
|
|
||||||
sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewInt(20)),
|
|
||||||
// Ensure optional fields can be left blank
|
|
||||||
stakingtypes.NewDescription("moniker", "indentity", "", "", ""),
|
|
||||||
stakingtypes.NewCommissionRates(sdk.OneDec(), sdk.OneDec(), sdk.OneDec()),
|
|
||||||
sdk.OneInt(),
|
|
||||||
)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgCreate)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712SubmitProposal(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins, deposit sdk.Coins) client.TxBuilder {
|
func (suite *AnteTestSuite) CreateTestEIP712SubmitProposal(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins, deposit sdk.Coins) client.TxBuilder {
|
||||||
proposal, ok := govtypes.ContentFromProposalType("My proposal", "My description", govtypes.ProposalTypeText)
|
proposal, ok := types5.ContentFromProposalType("My proposal", "My description", types5.ProposalTypeText)
|
||||||
suite.Require().True(ok)
|
suite.Require().True(ok)
|
||||||
msgSubmit, err := govtypes.NewMsgSubmitProposal(proposal, deposit, from)
|
msgSubmit, err := types5.NewMsgSubmitProposal(proposal, deposit, from)
|
||||||
suite.Require().NoError(err)
|
suite.Require().NoError(err)
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgSubmit)
|
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, msgSubmit)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712GrantAllowance(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
func (suite *AnteTestSuite) CreateTestEIP712GrantAllowance(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
||||||
@ -337,18 +311,18 @@ func (suite *AnteTestSuite) CreateTestEIP712GrantAllowance(from sdk.AccAddress,
|
|||||||
grantedAddr := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, granted.Bytes())
|
grantedAddr := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, granted.Bytes())
|
||||||
msgGrant, err := feegrant.NewMsgGrantAllowance(basic, from, grantedAddr.GetAddress())
|
msgGrant, err := feegrant.NewMsgGrantAllowance(basic, from, grantedAddr.GetAddress())
|
||||||
suite.Require().NoError(err)
|
suite.Require().NoError(err)
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgGrant)
|
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, msgGrant)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712MsgEditValidator(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
func (suite *AnteTestSuite) CreateTestEIP712MsgEditValidator(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
||||||
valAddr := sdk.ValAddress(from.Bytes())
|
valAddr := sdk.ValAddress(from.Bytes())
|
||||||
msgEdit := stakingtypes.NewMsgEditValidator(
|
msgEdit := types3.NewMsgEditValidator(
|
||||||
valAddr,
|
valAddr,
|
||||||
stakingtypes.NewDescription("moniker", "identity", "website", "security_contract", "details"),
|
types3.NewDescription("moniker", "identity", "website", "security_contract", "details"),
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
)
|
)
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgEdit)
|
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, msgEdit)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712MsgSubmitEvidence(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
func (suite *AnteTestSuite) CreateTestEIP712MsgSubmitEvidence(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
||||||
@ -361,72 +335,7 @@ func (suite *AnteTestSuite) CreateTestEIP712MsgSubmitEvidence(from sdk.AccAddres
|
|||||||
})
|
})
|
||||||
suite.Require().NoError(err)
|
suite.Require().NoError(err)
|
||||||
|
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgEvidence)
|
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, msgEvidence)
|
||||||
}
|
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712MsgVoteV1(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
|
||||||
msgVote := govtypesv1.NewMsgVote(from, 1, govtypesv1.VoteOption_VOTE_OPTION_YES, "")
|
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgVote)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712SubmitProposalV1(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
|
||||||
// Build V1 proposal messages. Must all be same-type, since EIP-712
|
|
||||||
// does not support arrays of variable type.
|
|
||||||
authAcc := suite.app.GovKeeper.GetGovernanceAccount(suite.ctx)
|
|
||||||
|
|
||||||
proposal1, ok := govtypes.ContentFromProposalType("My proposal 1", "My description 1", govtypes.ProposalTypeText)
|
|
||||||
suite.Require().True(ok)
|
|
||||||
content1, err := govtypesv1.NewLegacyContent(
|
|
||||||
proposal1,
|
|
||||||
sdk.MustBech32ifyAddressBytes(sdk.GetConfig().GetBech32AccountAddrPrefix(), authAcc.GetAddress().Bytes()),
|
|
||||||
)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
proposal2, ok := govtypes.ContentFromProposalType("My proposal 2", "My description 2", govtypes.ProposalTypeText)
|
|
||||||
suite.Require().True(ok)
|
|
||||||
content2, err := govtypesv1.NewLegacyContent(
|
|
||||||
proposal2,
|
|
||||||
sdk.MustBech32ifyAddressBytes(sdk.GetConfig().GetBech32AccountAddrPrefix(), authAcc.GetAddress().Bytes()),
|
|
||||||
)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
proposalMsgs := []sdk.Msg{
|
|
||||||
content1,
|
|
||||||
content2,
|
|
||||||
}
|
|
||||||
|
|
||||||
// Build V1 proposal
|
|
||||||
msgProposal, err := govtypesv1.NewMsgSubmitProposal(
|
|
||||||
proposalMsgs,
|
|
||||||
sdk.NewCoins(sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(100))),
|
|
||||||
sdk.MustBech32ifyAddressBytes(sdk.GetConfig().GetBech32AccountAddrPrefix(), from.Bytes()),
|
|
||||||
"Metadata",
|
|
||||||
)
|
|
||||||
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, msgProposal)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712MsgExec(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
|
||||||
recipient := sdk.AccAddress(common.Address{}.Bytes())
|
|
||||||
msgSend := banktypes.NewMsgSend(from, recipient, sdk.NewCoins(sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(1))))
|
|
||||||
msgExec := authz.NewMsgExec(from, []sdk.Msg{msgSend})
|
|
||||||
return suite.CreateTestEIP712SingleMessageTxBuilder(from, priv, chainId, gas, gasAmount, &msgExec)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712MultipleMsgSend(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
|
||||||
recipient := sdk.AccAddress(common.Address{}.Bytes())
|
|
||||||
msgSend := banktypes.NewMsgSend(from, recipient, sdk.NewCoins(sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(1))))
|
|
||||||
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, []sdk.Msg{msgSend, msgSend, msgSend})
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fails
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712MultipleSignerMsgs(from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins) client.TxBuilder {
|
|
||||||
recipient := sdk.AccAddress(common.Address{}.Bytes())
|
|
||||||
msgSend1 := banktypes.NewMsgSend(from, recipient, sdk.NewCoins(sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(1))))
|
|
||||||
msgSend2 := banktypes.NewMsgSend(recipient, from, sdk.NewCoins(sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(1))))
|
|
||||||
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, []sdk.Msg{msgSend1, msgSend2})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// StdSignBytes returns the bytes to sign for a transaction.
|
// StdSignBytes returns the bytes to sign for a transaction.
|
||||||
@ -467,14 +376,8 @@ func StdSignBytes(cdc *codec.LegacyAmino, chainID string, accnum uint64, sequenc
|
|||||||
return sdk.MustSortJSON(bz)
|
return sdk.MustSortJSON(bz)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712SingleMessageTxBuilder(
|
|
||||||
from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins, msg sdk.Msg,
|
|
||||||
) client.TxBuilder {
|
|
||||||
return suite.CreateTestEIP712CosmosTxBuilder(from, priv, chainId, gas, gasAmount, []sdk.Msg{msg})
|
|
||||||
}
|
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestEIP712CosmosTxBuilder(
|
func (suite *AnteTestSuite) CreateTestEIP712CosmosTxBuilder(
|
||||||
from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins, msgs []sdk.Msg,
|
from sdk.AccAddress, priv cryptotypes.PrivKey, chainId string, gas uint64, gasAmount sdk.Coins, msg sdk.Msg,
|
||||||
) client.TxBuilder {
|
) client.TxBuilder {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
@ -495,13 +398,13 @@ func (suite *AnteTestSuite) CreateTestEIP712CosmosTxBuilder(
|
|||||||
fee := legacytx.NewStdFee(gas, gasAmount)
|
fee := legacytx.NewStdFee(gas, gasAmount)
|
||||||
accNumber := suite.app.AccountKeeper.GetAccount(suite.ctx, from).GetAccountNumber()
|
accNumber := suite.app.AccountKeeper.GetAccount(suite.ctx, from).GetAccountNumber()
|
||||||
|
|
||||||
data := legacytx.StdSignBytes(chainId, accNumber, nonce, 0, fee, msgs, "", nil)
|
data := legacytx.StdSignBytes(chainId, accNumber, nonce, 0, fee, []sdk.Msg{msg}, "", nil)
|
||||||
typedData, err := eip712.WrapTxToTypedData(ethermintCodec, ethChainId, msgs[0], data, &eip712.FeeDelegationOptions{
|
typedData, err := eip712.WrapTxToTypedData(ethermintCodec, ethChainId, msg, data, &eip712.FeeDelegationOptions{
|
||||||
FeePayer: from,
|
FeePayer: from,
|
||||||
})
|
})
|
||||||
suite.Require().NoError(err)
|
suite.Require().NoError(err)
|
||||||
|
|
||||||
sigHash, _, err := apitypes.TypedDataAndHash(typedData)
|
sigHash, err := eip712.ComputeTypedDataHash(typedData)
|
||||||
suite.Require().NoError(err)
|
suite.Require().NoError(err)
|
||||||
|
|
||||||
// Sign typedData
|
// Sign typedData
|
||||||
@ -539,189 +442,12 @@ func (suite *AnteTestSuite) CreateTestEIP712CosmosTxBuilder(
|
|||||||
err = builder.SetSignatures(sigsV2)
|
err = builder.SetSignatures(sigsV2)
|
||||||
suite.Require().NoError(err)
|
suite.Require().NoError(err)
|
||||||
|
|
||||||
err = builder.SetMsgs(msgs...)
|
err = builder.SetMsgs(msg)
|
||||||
suite.Require().NoError(err)
|
suite.Require().NoError(err)
|
||||||
|
|
||||||
return builder
|
return builder
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate a set of pub/priv keys to be used in creating multi-keys
|
|
||||||
func (suite *AnteTestSuite) GenerateMultipleKeys(n int) ([]cryptotypes.PrivKey, []cryptotypes.PubKey) {
|
|
||||||
privKeys := make([]cryptotypes.PrivKey, n)
|
|
||||||
pubKeys := make([]cryptotypes.PubKey, n)
|
|
||||||
for i := 0; i < n; i++ {
|
|
||||||
privKey, err := ethsecp256k1.GenerateKey()
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
privKeys[i] = privKey
|
|
||||||
pubKeys[i] = privKey.PubKey()
|
|
||||||
}
|
|
||||||
return privKeys, pubKeys
|
|
||||||
}
|
|
||||||
|
|
||||||
// generateSingleSignature signs the given sign doc bytes using the given signType (EIP-712 or Standard)
|
|
||||||
func (suite *AnteTestSuite) generateSingleSignature(signMode signing.SignMode, privKey cryptotypes.PrivKey, signDocBytes []byte, signType string) (signature signing.SignatureV2) {
|
|
||||||
var (
|
|
||||||
msg []byte
|
|
||||||
err error
|
|
||||||
)
|
|
||||||
|
|
||||||
msg = signDocBytes
|
|
||||||
|
|
||||||
if signType == "EIP-712" {
|
|
||||||
msg, err = eip712.GetEIP712BytesForMsg(signDocBytes)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
sigBytes, _ := privKey.Sign(msg)
|
|
||||||
sigData := &signing.SingleSignatureData{
|
|
||||||
SignMode: signMode,
|
|
||||||
Signature: sigBytes,
|
|
||||||
}
|
|
||||||
|
|
||||||
return signing.SignatureV2{
|
|
||||||
PubKey: privKey.PubKey(),
|
|
||||||
Data: sigData,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// generateMultikeySignatures signs a set of messages using each private key within a given multi-key
|
|
||||||
func (suite *AnteTestSuite) generateMultikeySignatures(signMode signing.SignMode, privKeys []cryptotypes.PrivKey, signDocBytes []byte, signType string) (signatures []signing.SignatureV2) {
|
|
||||||
n := len(privKeys)
|
|
||||||
signatures = make([]signing.SignatureV2, n)
|
|
||||||
|
|
||||||
for i := 0; i < n; i++ {
|
|
||||||
privKey := privKeys[i]
|
|
||||||
currentType := signType
|
|
||||||
|
|
||||||
// If mixed type, alternate signing type on each iteration
|
|
||||||
if signType == "mixed" {
|
|
||||||
if i%2 == 0 {
|
|
||||||
currentType = "EIP-712"
|
|
||||||
} else {
|
|
||||||
currentType = "Standard"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
signatures[i] = suite.generateSingleSignature(
|
|
||||||
signMode,
|
|
||||||
privKey,
|
|
||||||
signDocBytes,
|
|
||||||
currentType,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return signatures
|
|
||||||
}
|
|
||||||
|
|
||||||
// RegisterAccount creates an account with the keeper and populates the initial balance
|
|
||||||
func (suite *AnteTestSuite) RegisterAccount(pubKey cryptotypes.PubKey, balance *big.Int) {
|
|
||||||
acc := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, sdk.AccAddress(pubKey.Address()))
|
|
||||||
suite.app.AccountKeeper.SetAccount(suite.ctx, acc)
|
|
||||||
|
|
||||||
suite.app.EvmKeeper.SetBalance(suite.ctx, common.BytesToAddress(pubKey.Address()), balance)
|
|
||||||
}
|
|
||||||
|
|
||||||
// createSignerBytes generates sign doc bytes using the given parameters
|
|
||||||
func (suite *AnteTestSuite) createSignerBytes(chainId string, signMode signing.SignMode, pubKey cryptotypes.PubKey, txBuilder client.TxBuilder) []byte {
|
|
||||||
acc, err := sdkante.GetSignerAcc(suite.ctx, suite.app.AccountKeeper, sdk.AccAddress(pubKey.Address()))
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
signerInfo := authsigning.SignerData{
|
|
||||||
Address: sdk.MustBech32ifyAddressBytes(sdk.GetConfig().GetBech32AccountAddrPrefix(), acc.GetAddress().Bytes()),
|
|
||||||
ChainID: chainId,
|
|
||||||
AccountNumber: acc.GetAccountNumber(),
|
|
||||||
Sequence: acc.GetSequence(),
|
|
||||||
PubKey: pubKey,
|
|
||||||
}
|
|
||||||
|
|
||||||
signerBytes, err := suite.clientCtx.TxConfig.SignModeHandler().GetSignBytes(
|
|
||||||
signMode,
|
|
||||||
signerInfo,
|
|
||||||
txBuilder.GetTx(),
|
|
||||||
)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
return signerBytes
|
|
||||||
}
|
|
||||||
|
|
||||||
// createBaseTxBuilder creates a TxBuilder to be used for Single- or Multi-signing
|
|
||||||
func (suite *AnteTestSuite) createBaseTxBuilder(msg sdk.Msg, gas uint64) client.TxBuilder {
|
|
||||||
txBuilder := suite.clientCtx.TxConfig.NewTxBuilder()
|
|
||||||
|
|
||||||
txBuilder.SetGasLimit(gas)
|
|
||||||
txBuilder.SetFeeAmount(sdk.NewCoins(
|
|
||||||
sdk.NewCoin("aphoton", sdk.NewInt(10000)),
|
|
||||||
))
|
|
||||||
|
|
||||||
err := txBuilder.SetMsgs(msg)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
txBuilder.SetMemo("")
|
|
||||||
|
|
||||||
return txBuilder
|
|
||||||
}
|
|
||||||
|
|
||||||
// CreateTestSignedMultisigTx creates and sign a multi-signed tx for the given message. `signType` indicates whether to use standard signing ("Standard"),
|
|
||||||
// EIP-712 signing ("EIP-712"), or a mix of the two ("mixed").
|
|
||||||
func (suite *AnteTestSuite) CreateTestSignedMultisigTx(privKeys []cryptotypes.PrivKey, signMode signing.SignMode, msg sdk.Msg, chainId string, gas uint64, signType string) client.TxBuilder {
|
|
||||||
pubKeys := make([]cryptotypes.PubKey, len(privKeys))
|
|
||||||
for i, privKey := range privKeys {
|
|
||||||
pubKeys[i] = privKey.PubKey()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Re-derive multikey
|
|
||||||
numKeys := len(privKeys)
|
|
||||||
multiKey := kmultisig.NewLegacyAminoPubKey(numKeys, pubKeys)
|
|
||||||
|
|
||||||
suite.RegisterAccount(multiKey, big.NewInt(10000000000))
|
|
||||||
|
|
||||||
txBuilder := suite.createBaseTxBuilder(msg, gas)
|
|
||||||
|
|
||||||
// Prepare signature field
|
|
||||||
sig := multisig.NewMultisig(len(pubKeys))
|
|
||||||
txBuilder.SetSignatures(signing.SignatureV2{
|
|
||||||
PubKey: multiKey,
|
|
||||||
Data: sig,
|
|
||||||
})
|
|
||||||
|
|
||||||
signerBytes := suite.createSignerBytes(chainId, signMode, multiKey, txBuilder)
|
|
||||||
|
|
||||||
// Sign for each key and update signature field
|
|
||||||
sigs := suite.generateMultikeySignatures(signMode, privKeys, signerBytes, signType)
|
|
||||||
for _, pkSig := range sigs {
|
|
||||||
err := multisig.AddSignatureV2(sig, pkSig, pubKeys)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
txBuilder.SetSignatures(signing.SignatureV2{
|
|
||||||
PubKey: multiKey,
|
|
||||||
Data: sig,
|
|
||||||
})
|
|
||||||
|
|
||||||
return txBuilder
|
|
||||||
}
|
|
||||||
|
|
||||||
func (suite *AnteTestSuite) CreateTestSingleSignedTx(privKey cryptotypes.PrivKey, signMode signing.SignMode, msg sdk.Msg, chainId string, gas uint64, signType string) client.TxBuilder {
|
|
||||||
pubKey := privKey.PubKey()
|
|
||||||
|
|
||||||
suite.RegisterAccount(pubKey, big.NewInt(10000000000))
|
|
||||||
|
|
||||||
txBuilder := suite.createBaseTxBuilder(msg, gas)
|
|
||||||
|
|
||||||
// Prepare signature field
|
|
||||||
sig := signing.SingleSignatureData{}
|
|
||||||
txBuilder.SetSignatures(signing.SignatureV2{
|
|
||||||
PubKey: pubKey,
|
|
||||||
Data: &sig,
|
|
||||||
})
|
|
||||||
|
|
||||||
signerBytes := suite.createSignerBytes(chainId, signMode, pubKey, txBuilder)
|
|
||||||
|
|
||||||
sigData := suite.generateSingleSignature(signMode, privKey, signerBytes, signType)
|
|
||||||
txBuilder.SetSignatures(sigData)
|
|
||||||
|
|
||||||
return txBuilder
|
|
||||||
}
|
|
||||||
|
|
||||||
func NextFn(ctx sdk.Context, _ sdk.Tx, _ bool) (sdk.Context, error) {
|
func NextFn(ctx sdk.Context, _ sdk.Tx, _ bool) (sdk.Context, error) {
|
||||||
return ctx, nil
|
return ctx, nil
|
||||||
}
|
}
|
||||||
|
87
app/app.go
87
app/app.go
@ -2,7 +2,6 @@ package app
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
@ -19,7 +18,6 @@ import (
|
|||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/grpc/node"
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
|
"github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
||||||
@ -28,7 +26,6 @@ import (
|
|||||||
servertypes "github.com/cosmos/cosmos-sdk/server/types"
|
servertypes "github.com/cosmos/cosmos-sdk/server/types"
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
|
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
|
||||||
"github.com/cosmos/cosmos-sdk/store/streaming"
|
|
||||||
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/types/module"
|
"github.com/cosmos/cosmos-sdk/types/module"
|
||||||
@ -104,7 +101,6 @@ import (
|
|||||||
_ "github.com/cerc-io/laconicd/client/docs/statik"
|
_ "github.com/cerc-io/laconicd/client/docs/statik"
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/app/ante"
|
"github.com/cerc-io/laconicd/app/ante"
|
||||||
"github.com/cerc-io/laconicd/ethereum/eip712"
|
|
||||||
srvflags "github.com/cerc-io/laconicd/server/flags"
|
srvflags "github.com/cerc-io/laconicd/server/flags"
|
||||||
ethermint "github.com/cerc-io/laconicd/types"
|
ethermint "github.com/cerc-io/laconicd/types"
|
||||||
"github.com/cerc-io/laconicd/x/evm"
|
"github.com/cerc-io/laconicd/x/evm"
|
||||||
@ -125,9 +121,9 @@ import (
|
|||||||
"github.com/cerc-io/laconicd/x/bond"
|
"github.com/cerc-io/laconicd/x/bond"
|
||||||
bondkeeper "github.com/cerc-io/laconicd/x/bond/keeper"
|
bondkeeper "github.com/cerc-io/laconicd/x/bond/keeper"
|
||||||
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
|
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
|
||||||
registry "github.com/cerc-io/laconicd/x/registry"
|
"github.com/cerc-io/laconicd/x/nameservice"
|
||||||
registrykeeper "github.com/cerc-io/laconicd/x/registry/keeper"
|
nameservicekeeper "github.com/cerc-io/laconicd/x/nameservice/keeper"
|
||||||
registrytypes "github.com/cerc-io/laconicd/x/registry/types"
|
nameservicetypes "github.com/cerc-io/laconicd/x/nameservice/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -176,7 +172,7 @@ var (
|
|||||||
// Laconic modules
|
// Laconic modules
|
||||||
auction.AppModuleBasic{},
|
auction.AppModuleBasic{},
|
||||||
bond.AppModuleBasic{},
|
bond.AppModuleBasic{},
|
||||||
registry.AppModuleBasic{},
|
nameservice.AppModuleBasic{},
|
||||||
)
|
)
|
||||||
|
|
||||||
// module account permissions
|
// module account permissions
|
||||||
@ -188,12 +184,12 @@ var (
|
|||||||
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
|
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
|
||||||
govtypes.ModuleName: {authtypes.Burner},
|
govtypes.ModuleName: {authtypes.Burner},
|
||||||
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
|
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
|
||||||
evmtypes.ModuleName: {authtypes.Minter, authtypes.Burner}, //nolint:lll // used for secure addition and subtraction of balance using module account
|
evmtypes.ModuleName: {authtypes.Minter, authtypes.Burner}, // used for secure addition and subtraction of balance using module account
|
||||||
auctiontypes.ModuleName: nil,
|
auctiontypes.ModuleName: nil,
|
||||||
auctiontypes.AuctionBurnModuleAccountName: nil,
|
auctiontypes.AuctionBurnModuleAccountName: nil,
|
||||||
registrytypes.ModuleName: nil,
|
nameservicetypes.ModuleName: nil,
|
||||||
registrytypes.RecordRentModuleAccountName: nil,
|
nameservicetypes.RecordRentModuleAccountName: nil,
|
||||||
registrytypes.AuthorityRentModuleAccountName: nil,
|
nameservicetypes.AuthorityRentModuleAccountName: nil,
|
||||||
bondtypes.ModuleName: nil,
|
bondtypes.ModuleName: nil,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,6 +199,8 @@ var (
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var _ simapp.App = (*EthermintApp)(nil)
|
||||||
|
|
||||||
// var _ server.Application (*EthermintApp)(nil)
|
// var _ server.Application (*EthermintApp)(nil)
|
||||||
|
|
||||||
// EthermintApp implements an extended ABCI application. It is an application
|
// EthermintApp implements an extended ABCI application. It is an application
|
||||||
@ -252,12 +250,15 @@ type EthermintApp struct {
|
|||||||
// laconic keepers
|
// laconic keepers
|
||||||
AuctionKeeper auctionkeeper.Keeper
|
AuctionKeeper auctionkeeper.Keeper
|
||||||
BondKeeper bondkeeper.Keeper
|
BondKeeper bondkeeper.Keeper
|
||||||
RegistryKeeper registrykeeper.Keeper
|
NameServiceKeeper nameservicekeeper.Keeper
|
||||||
RegistryRecordKeeper registrykeeper.RecordKeeper
|
NameServiceRecordKeeper nameservicekeeper.RecordKeeper
|
||||||
|
|
||||||
// the module manager
|
// the module manager
|
||||||
mm *module.Manager
|
mm *module.Manager
|
||||||
|
|
||||||
|
// simulation manager
|
||||||
|
sm *module.SimulationManager
|
||||||
|
|
||||||
// the configurator
|
// the configurator
|
||||||
configurator module.Configurator
|
configurator module.Configurator
|
||||||
}
|
}
|
||||||
@ -279,8 +280,6 @@ func NewEthermintApp(
|
|||||||
cdc := encodingConfig.Amino
|
cdc := encodingConfig.Amino
|
||||||
interfaceRegistry := encodingConfig.InterfaceRegistry
|
interfaceRegistry := encodingConfig.InterfaceRegistry
|
||||||
|
|
||||||
eip712.SetEncodingConfig(encodingConfig)
|
|
||||||
|
|
||||||
// NOTE we use custom transaction decoder that supports the sdk.Tx interface instead of sdk.StdTx
|
// NOTE we use custom transaction decoder that supports the sdk.Tx interface instead of sdk.StdTx
|
||||||
bApp := baseapp.NewBaseApp(
|
bApp := baseapp.NewBaseApp(
|
||||||
appName,
|
appName,
|
||||||
@ -307,19 +306,13 @@ func NewEthermintApp(
|
|||||||
// laconic keys
|
// laconic keys
|
||||||
auctiontypes.StoreKey,
|
auctiontypes.StoreKey,
|
||||||
bondtypes.StoreKey,
|
bondtypes.StoreKey,
|
||||||
registrytypes.StoreKey,
|
nameservicetypes.StoreKey,
|
||||||
)
|
)
|
||||||
|
|
||||||
// Add the EVM transient store key
|
// Add the EVM transient store key
|
||||||
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey, evmtypes.TransientKey, feemarkettypes.TransientKey)
|
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey, evmtypes.TransientKey, feemarkettypes.TransientKey)
|
||||||
memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)
|
memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)
|
||||||
|
|
||||||
// load state streaming if enabled
|
|
||||||
if _, _, err := streaming.LoadStreamingServices(bApp, appOpts, appCodec, keys); err != nil {
|
|
||||||
fmt.Printf("failed to load state streaming: %s", err)
|
|
||||||
os.Exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
app := &EthermintApp{
|
app := &EthermintApp{
|
||||||
BaseApp: bApp,
|
BaseApp: bApp,
|
||||||
cdc: cdc,
|
cdc: cdc,
|
||||||
@ -443,19 +436,19 @@ func NewEthermintApp(
|
|||||||
appCodec, app.GetSubspace(auctiontypes.ModuleName),
|
appCodec, app.GetSubspace(auctiontypes.ModuleName),
|
||||||
)
|
)
|
||||||
|
|
||||||
app.RegistryRecordKeeper = registrykeeper.NewRecordKeeper(app.AuctionKeeper, keys[registrytypes.StoreKey], appCodec)
|
app.NameServiceRecordKeeper = nameservicekeeper.NewRecordKeeper(app.AuctionKeeper, keys[nameservicetypes.StoreKey], appCodec)
|
||||||
|
|
||||||
app.AuctionKeeper.SetUsageKeepers([]auctiontypes.AuctionUsageKeeper{app.RegistryRecordKeeper})
|
app.AuctionKeeper.SetUsageKeepers([]auctiontypes.AuctionUsageKeeper{app.NameServiceRecordKeeper})
|
||||||
|
|
||||||
app.BondKeeper = bondkeeper.NewKeeper(
|
app.BondKeeper = bondkeeper.NewKeeper(
|
||||||
appCodec, app.AccountKeeper, app.BankKeeper,
|
appCodec, app.AccountKeeper, app.BankKeeper,
|
||||||
[]bondtypes.BondUsageKeeper{app.RegistryRecordKeeper}, keys[bondtypes.StoreKey], app.GetSubspace(bondtypes.ModuleName),
|
[]bondtypes.BondUsageKeeper{app.NameServiceRecordKeeper}, keys[bondtypes.StoreKey], app.GetSubspace(bondtypes.ModuleName),
|
||||||
)
|
)
|
||||||
|
|
||||||
app.RegistryKeeper = registrykeeper.NewKeeper(
|
app.NameServiceKeeper = nameservicekeeper.NewKeeper(
|
||||||
appCodec, app.AccountKeeper, app.BankKeeper,
|
appCodec, app.AccountKeeper, app.BankKeeper,
|
||||||
app.RegistryRecordKeeper, app.BondKeeper, app.AuctionKeeper,
|
app.NameServiceRecordKeeper, app.BondKeeper, app.AuctionKeeper,
|
||||||
keys[registrytypes.StoreKey], app.GetSubspace(registrytypes.ModuleName),
|
keys[nameservicetypes.StoreKey], app.GetSubspace(nameservicetypes.ModuleName),
|
||||||
)
|
)
|
||||||
|
|
||||||
// Create IBC Keeper
|
// Create IBC Keeper
|
||||||
@ -546,7 +539,7 @@ func NewEthermintApp(
|
|||||||
// laconic modules
|
// laconic modules
|
||||||
auction.NewAppModule(appCodec, app.AuctionKeeper),
|
auction.NewAppModule(appCodec, app.AuctionKeeper),
|
||||||
bond.NewAppModule(appCodec, app.BondKeeper),
|
bond.NewAppModule(appCodec, app.BondKeeper),
|
||||||
registry.NewAppModule(app.RegistryKeeper),
|
nameservice.NewAppModule(app.NameServiceKeeper),
|
||||||
)
|
)
|
||||||
|
|
||||||
// During begin block slashing happens after distr.BeginBlocker so that
|
// During begin block slashing happens after distr.BeginBlocker so that
|
||||||
@ -580,7 +573,7 @@ func NewEthermintApp(
|
|||||||
// laconic modules
|
// laconic modules
|
||||||
auctiontypes.ModuleName,
|
auctiontypes.ModuleName,
|
||||||
bondtypes.ModuleName,
|
bondtypes.ModuleName,
|
||||||
registrytypes.ModuleName,
|
nameservicetypes.ModuleName,
|
||||||
)
|
)
|
||||||
|
|
||||||
// NOTE: fee market module must go last in order to retrieve the block gas used.
|
// NOTE: fee market module must go last in order to retrieve the block gas used.
|
||||||
@ -609,7 +602,7 @@ func NewEthermintApp(
|
|||||||
// laconic modules
|
// laconic modules
|
||||||
auctiontypes.ModuleName,
|
auctiontypes.ModuleName,
|
||||||
bondtypes.ModuleName,
|
bondtypes.ModuleName,
|
||||||
registrytypes.ModuleName,
|
nameservicetypes.ModuleName,
|
||||||
)
|
)
|
||||||
|
|
||||||
// NOTE: The genutils module must occur after staking so that pools are
|
// NOTE: The genutils module must occur after staking so that pools are
|
||||||
@ -645,7 +638,7 @@ func NewEthermintApp(
|
|||||||
// laconic modules
|
// laconic modules
|
||||||
auctiontypes.ModuleName,
|
auctiontypes.ModuleName,
|
||||||
bondtypes.ModuleName,
|
bondtypes.ModuleName,
|
||||||
registrytypes.ModuleName,
|
nameservicetypes.ModuleName,
|
||||||
// NOTE: crisis module must go at the end to check for invariants on each module
|
// NOTE: crisis module must go at the end to check for invariants on each module
|
||||||
crisistypes.ModuleName,
|
crisistypes.ModuleName,
|
||||||
)
|
)
|
||||||
@ -665,6 +658,17 @@ func NewEthermintApp(
|
|||||||
// add test gRPC service for testing gRPC queries in isolation
|
// add test gRPC service for testing gRPC queries in isolation
|
||||||
// testdata.RegisterTestServiceServer(app.GRPCQueryRouter(), testdata.TestServiceImpl{})
|
// testdata.RegisterTestServiceServer(app.GRPCQueryRouter(), testdata.TestServiceImpl{})
|
||||||
|
|
||||||
|
// create the simulation manager and define the order of the modules for deterministic simulations
|
||||||
|
//
|
||||||
|
// NOTE: this is not required apps that don't use the simulator for fuzz testing
|
||||||
|
// transactions
|
||||||
|
overrideModules := map[string]module.AppModuleSimulation{
|
||||||
|
authtypes.ModuleName: auth.NewAppModule(app.appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts),
|
||||||
|
}
|
||||||
|
app.sm = module.NewSimulationManagerFromAppModules(app.mm.Modules, overrideModules)
|
||||||
|
|
||||||
|
app.sm.RegisterStoreDecoders()
|
||||||
|
|
||||||
// initialize stores
|
// initialize stores
|
||||||
app.MountKVStores(keys)
|
app.MountKVStores(keys)
|
||||||
app.MountTransientStores(tkeys)
|
app.MountTransientStores(tkeys)
|
||||||
@ -714,8 +718,6 @@ func (app *EthermintApp) setAnteHandler(txConfig client.TxConfig, maxGasWanted u
|
|||||||
EvmKeeper: app.EvmKeeper,
|
EvmKeeper: app.EvmKeeper,
|
||||||
FeeMarketKeeper: app.FeeMarketKeeper,
|
FeeMarketKeeper: app.FeeMarketKeeper,
|
||||||
MaxTxGasWanted: maxGasWanted,
|
MaxTxGasWanted: maxGasWanted,
|
||||||
ExtensionOptionChecker: ethermint.HasDynamicFeeExtensionOption,
|
|
||||||
// TxFeeChecker: ante.NewDynamicFeeChecker(app.EvmKeeper),
|
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
@ -836,6 +838,11 @@ func (app *EthermintApp) GetSubspace(moduleName string) paramstypes.Subspace {
|
|||||||
return subspace
|
return subspace
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SimulationManager implements the SimulationApp interface
|
||||||
|
func (app *EthermintApp) SimulationManager() *module.SimulationManager {
|
||||||
|
return app.sm
|
||||||
|
}
|
||||||
|
|
||||||
// RegisterAPIRoutes registers all application module routes with the provided
|
// RegisterAPIRoutes registers all application module routes with the provided
|
||||||
// API server.
|
// API server.
|
||||||
func (app *EthermintApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
|
func (app *EthermintApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
|
||||||
@ -844,8 +851,6 @@ func (app *EthermintApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.
|
|||||||
authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
|
authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
|
||||||
// Register new tendermint queries routes from grpc-gateway.
|
// Register new tendermint queries routes from grpc-gateway.
|
||||||
tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
|
tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
|
||||||
// Register node gRPC service for grpc-gateway.
|
|
||||||
node.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
|
|
||||||
|
|
||||||
// Register grpc-gateway routes for all modules.
|
// Register grpc-gateway routes for all modules.
|
||||||
ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
|
ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
|
||||||
@ -871,12 +876,6 @@ func (app *EthermintApp) RegisterTendermintService(clientCtx client.Context) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RegisterNodeService registers the node gRPC service on the provided
|
|
||||||
// application gRPC query router.
|
|
||||||
func (app *EthermintApp) RegisterNodeService(clientCtx client.Context) {
|
|
||||||
node.RegisterNodeService(clientCtx, app.GRPCQueryRouter())
|
|
||||||
}
|
|
||||||
|
|
||||||
// RegisterSwaggerAPI registers swagger route with API Server
|
// RegisterSwaggerAPI registers swagger route with API Server
|
||||||
func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router) {
|
func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router) {
|
||||||
statikFS, err := fs.New()
|
statikFS, err := fs.New()
|
||||||
@ -918,6 +917,6 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
|
|||||||
// laconic subspaces
|
// laconic subspaces
|
||||||
paramsKeeper.Subspace(auctiontypes.ModuleName)
|
paramsKeeper.Subspace(auctiontypes.ModuleName)
|
||||||
paramsKeeper.Subspace(bondtypes.ModuleName)
|
paramsKeeper.Subspace(bondtypes.ModuleName)
|
||||||
paramsKeeper.Subspace(registrytypes.ModuleName)
|
paramsKeeper.Subspace(nameservicetypes.ModuleName)
|
||||||
return paramsKeeper
|
return paramsKeeper
|
||||||
}
|
}
|
||||||
|
403
app/simulation_test.go
Normal file
403
app/simulation_test.go
Normal file
@ -0,0 +1,403 @@
|
|||||||
|
package app
|
||||||
|
|
||||||
|
// TODO: COsmos SDK fix for the simulator issue for custom keys
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
|
"math/rand"
|
||||||
|
"os"
|
||||||
|
"runtime/debug"
|
||||||
|
"strings"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"github.com/cerc-io/laconicd/app/ante"
|
||||||
|
evmenc "github.com/cerc-io/laconicd/encoding"
|
||||||
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
|
"github.com/cosmos/cosmos-sdk/simapp/params"
|
||||||
|
"github.com/cosmos/cosmos-sdk/store"
|
||||||
|
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
||||||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||||
|
authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper"
|
||||||
|
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||||
|
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
|
||||||
|
distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
|
||||||
|
evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
|
||||||
|
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||||
|
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
|
||||||
|
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
|
||||||
|
"github.com/cosmos/cosmos-sdk/x/simulation"
|
||||||
|
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
|
||||||
|
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||||
|
ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types"
|
||||||
|
ibchost "github.com/cosmos/ibc-go/v5/modules/core/24-host"
|
||||||
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
|
"github.com/tendermint/tendermint/libs/log"
|
||||||
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
||||||
|
dbm "github.com/tendermint/tm-db"
|
||||||
|
)
|
||||||
|
|
||||||
|
// MakeEncodingConfig creates the EncodingConfig
|
||||||
|
func MakeEncodingConfig() params.EncodingConfig {
|
||||||
|
return evmenc.MakeConfig(ModuleBasics)
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
simapp.GetSimulatorFlags()
|
||||||
|
}
|
||||||
|
|
||||||
|
const SimAppChainID = "simulation_777-1"
|
||||||
|
|
||||||
|
type storeKeysPrefixes struct {
|
||||||
|
A storetypes.StoreKey
|
||||||
|
B storetypes.StoreKey
|
||||||
|
Prefixes [][]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
// fauxMerkleModeOpt returns a BaseApp option to use a dbStoreAdapter instead of
|
||||||
|
// an IAVLStore for faster simulation speed.
|
||||||
|
func fauxMerkleModeOpt(bapp *baseapp.BaseApp) {
|
||||||
|
bapp.SetFauxMerkleMode()
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewSimApp disable feemarket on native tx, otherwise the cosmos-sdk simulation tests will fail.
|
||||||
|
func NewSimApp(logger log.Logger, db dbm.DB) (*EthermintApp, error) {
|
||||||
|
encodingConfig := MakeEncodingConfig()
|
||||||
|
app := NewEthermintApp(logger, db, nil, false, map[int64]bool{}, DefaultNodeHome, simapp.FlagPeriodValue, encodingConfig, simapp.EmptyAppOptions{}, fauxMerkleModeOpt)
|
||||||
|
// disable feemarket on native tx
|
||||||
|
anteHandler, err := ante.NewAnteHandler(ante.HandlerOptions{
|
||||||
|
AccountKeeper: app.AccountKeeper,
|
||||||
|
BankKeeper: app.BankKeeper,
|
||||||
|
SignModeHandler: encodingConfig.TxConfig.SignModeHandler(),
|
||||||
|
FeegrantKeeper: app.FeeGrantKeeper,
|
||||||
|
SigGasConsumer: ante.DefaultSigVerificationGasConsumer,
|
||||||
|
IBCKeeper: app.IBCKeeper,
|
||||||
|
EvmKeeper: app.EvmKeeper,
|
||||||
|
FeeMarketKeeper: app.FeeMarketKeeper,
|
||||||
|
MaxTxGasWanted: 0,
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
app.SetAnteHandler(anteHandler)
|
||||||
|
if err := app.LoadLatestVersion(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return app, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// interBlockCacheOpt returns a BaseApp option function that sets the persistent
|
||||||
|
// inter-block write-through cache.
|
||||||
|
func interBlockCacheOpt() func(*baseapp.BaseApp) {
|
||||||
|
return baseapp.SetInterBlockCache(store.NewCommitKVStoreCacheManager())
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFullAppSimulation(t *testing.T) {
|
||||||
|
config, db, dir, logger, skip, err := simapp.SetupSimulation("leveldb-app-sim", "Simulation")
|
||||||
|
if skip {
|
||||||
|
t.Skip("skipping application simulation")
|
||||||
|
}
|
||||||
|
require.NoError(t, err, "simulation setup failed")
|
||||||
|
|
||||||
|
config.ChainID = SimAppChainID
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
require.NoError(t, db.Close())
|
||||||
|
require.NoError(t, os.RemoveAll(dir))
|
||||||
|
}()
|
||||||
|
|
||||||
|
app, err := NewSimApp(logger, db)
|
||||||
|
require.Equal(t, appName, app.Name())
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
// run randomized simulation
|
||||||
|
_, simParams, simErr := simulation.SimulateFromSeed(
|
||||||
|
t,
|
||||||
|
os.Stdout,
|
||||||
|
app.BaseApp,
|
||||||
|
StateFn(app.AppCodec(), app.SimulationManager()),
|
||||||
|
RandomAccounts, // Replace with own random account function if using keys other than secp256k1
|
||||||
|
simapp.SimulationOperations(app, app.AppCodec(), config),
|
||||||
|
app.ModuleAccountAddrs(),
|
||||||
|
config,
|
||||||
|
app.AppCodec(),
|
||||||
|
)
|
||||||
|
|
||||||
|
// export state and simParams before the simulation error is checked
|
||||||
|
err = simapp.CheckExportSimulation(app, config, simParams)
|
||||||
|
require.NoError(t, err)
|
||||||
|
require.NoError(t, simErr)
|
||||||
|
|
||||||
|
if config.Commit {
|
||||||
|
simapp.PrintStats(db)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestAppImportExport(t *testing.T) {
|
||||||
|
config, db, dir, logger, skip, err := simapp.SetupSimulation("leveldb-app-sim", "Simulation")
|
||||||
|
if skip {
|
||||||
|
t.Skip("skipping application import/export simulation")
|
||||||
|
}
|
||||||
|
require.NoError(t, err, "simulation setup failed")
|
||||||
|
|
||||||
|
config.ChainID = SimAppChainID
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
require.NoError(t, db.Close())
|
||||||
|
require.NoError(t, os.RemoveAll(dir))
|
||||||
|
}()
|
||||||
|
app, err := NewSimApp(logger, db)
|
||||||
|
require.NoError(t, err)
|
||||||
|
require.Equal(t, appName, app.Name())
|
||||||
|
|
||||||
|
// Run randomized simulation
|
||||||
|
_, simParams, simErr := simulation.SimulateFromSeed(
|
||||||
|
t,
|
||||||
|
os.Stdout,
|
||||||
|
app.BaseApp,
|
||||||
|
StateFn(app.AppCodec(), app.SimulationManager()),
|
||||||
|
RandomAccounts, // Replace with own random account function if using keys other than secp256k1
|
||||||
|
simapp.SimulationOperations(app, app.AppCodec(), config),
|
||||||
|
app.ModuleAccountAddrs(),
|
||||||
|
config,
|
||||||
|
app.AppCodec(),
|
||||||
|
)
|
||||||
|
|
||||||
|
// export state and simParams before the simulation error is checked
|
||||||
|
err = simapp.CheckExportSimulation(app, config, simParams)
|
||||||
|
require.NoError(t, err)
|
||||||
|
require.NoError(t, simErr)
|
||||||
|
|
||||||
|
if config.Commit {
|
||||||
|
simapp.PrintStats(db)
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt.Printf("exporting genesis...\n")
|
||||||
|
|
||||||
|
exported, err := app.ExportAppStateAndValidators(false, []string{})
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
fmt.Printf("importing genesis...\n")
|
||||||
|
|
||||||
|
//nolint: dogsled
|
||||||
|
_, newDB, newDir, _, _, err := simapp.SetupSimulation("leveldb-app-sim-2", "Simulation-2")
|
||||||
|
require.NoError(t, err, "simulation setup failed")
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
require.NoError(t, newDB.Close())
|
||||||
|
require.NoError(t, os.RemoveAll(newDir))
|
||||||
|
}()
|
||||||
|
|
||||||
|
newApp, err := NewSimApp(log.NewNopLogger(), newDB)
|
||||||
|
require.Equal(t, appName, newApp.Name())
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
var genesisState simapp.GenesisState
|
||||||
|
err = json.Unmarshal(exported.AppState, &genesisState)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
err := fmt.Sprintf("%v", r)
|
||||||
|
if !strings.Contains(err, "validator set is empty after InitGenesis") {
|
||||||
|
panic(r)
|
||||||
|
}
|
||||||
|
logger.Info("Skipping simulation as all validators have been unbonded")
|
||||||
|
logger.Info("err", err, "stacktrace", string(debug.Stack()))
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
|
ctxA := app.NewContext(true, tmproto.Header{Height: app.LastBlockHeight(), ChainID: SimAppChainID})
|
||||||
|
ctxB := newApp.NewContext(true, tmproto.Header{Height: app.LastBlockHeight(), ChainID: SimAppChainID})
|
||||||
|
newApp.mm.InitGenesis(ctxB, app.AppCodec(), genesisState)
|
||||||
|
newApp.StoreConsensusParams(ctxB, exported.ConsensusParams)
|
||||||
|
|
||||||
|
fmt.Printf("comparing stores...\n")
|
||||||
|
|
||||||
|
storeKeysPrefixes := []storeKeysPrefixes{
|
||||||
|
{app.keys[authtypes.StoreKey], newApp.keys[authtypes.StoreKey], [][]byte{}},
|
||||||
|
{
|
||||||
|
app.keys[stakingtypes.StoreKey], newApp.keys[stakingtypes.StoreKey],
|
||||||
|
[][]byte{
|
||||||
|
stakingtypes.UnbondingQueueKey, stakingtypes.RedelegationQueueKey, stakingtypes.ValidatorQueueKey,
|
||||||
|
stakingtypes.HistoricalInfoKey,
|
||||||
|
},
|
||||||
|
}, // ordering may change but it doesn't matter
|
||||||
|
{app.keys[slashingtypes.StoreKey], newApp.keys[slashingtypes.StoreKey], [][]byte{}},
|
||||||
|
{app.keys[minttypes.StoreKey], newApp.keys[minttypes.StoreKey], [][]byte{}},
|
||||||
|
{app.keys[distrtypes.StoreKey], newApp.keys[distrtypes.StoreKey], [][]byte{}},
|
||||||
|
{app.keys[banktypes.StoreKey], newApp.keys[banktypes.StoreKey], [][]byte{banktypes.BalancesPrefix}},
|
||||||
|
{app.keys[paramtypes.StoreKey], newApp.keys[paramtypes.StoreKey], [][]byte{}},
|
||||||
|
{app.keys[govtypes.StoreKey], newApp.keys[govtypes.StoreKey], [][]byte{}},
|
||||||
|
{app.keys[evidencetypes.StoreKey], newApp.keys[evidencetypes.StoreKey], [][]byte{}},
|
||||||
|
{app.keys[capabilitytypes.StoreKey], newApp.keys[capabilitytypes.StoreKey], [][]byte{}},
|
||||||
|
{app.keys[authzkeeper.StoreKey], newApp.keys[authzkeeper.StoreKey], [][]byte{authzkeeper.GrantKey, authzkeeper.GrantQueuePrefix}},
|
||||||
|
{app.keys[ibchost.StoreKey], newApp.keys[ibchost.StoreKey], [][]byte{}},
|
||||||
|
{app.keys[ibctransfertypes.StoreKey], newApp.keys[ibctransfertypes.StoreKey], [][]byte{}},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, skp := range storeKeysPrefixes {
|
||||||
|
storeA := ctxA.KVStore(skp.A)
|
||||||
|
storeB := ctxB.KVStore(skp.B)
|
||||||
|
|
||||||
|
failedKVAs, failedKVBs := sdk.DiffKVStores(storeA, storeB, skp.Prefixes)
|
||||||
|
require.Equal(t, len(failedKVAs), len(failedKVBs), "unequal sets of key-values to compare")
|
||||||
|
|
||||||
|
fmt.Printf("compared %d different key/value pairs between %s and %s\n", len(failedKVAs), skp.A, skp.B)
|
||||||
|
require.Equal(t, len(failedKVAs), 0, simapp.GetSimulationLog(skp.A.Name(), app.SimulationManager().StoreDecoders, failedKVAs, failedKVBs))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestAppSimulationAfterImport(t *testing.T) {
|
||||||
|
config, db, dir, logger, skip, err := simapp.SetupSimulation("leveldb-app-sim", "Simulation")
|
||||||
|
if skip {
|
||||||
|
t.Skip("skipping application simulation after import")
|
||||||
|
}
|
||||||
|
require.NoError(t, err, "simulation setup failed")
|
||||||
|
|
||||||
|
config.ChainID = SimAppChainID
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
require.NoError(t, db.Close())
|
||||||
|
require.NoError(t, os.RemoveAll(dir))
|
||||||
|
}()
|
||||||
|
|
||||||
|
app, err := NewSimApp(logger, db)
|
||||||
|
require.Equal(t, appName, app.Name())
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
// Run randomized simulation
|
||||||
|
stopEarly, simParams, simErr := simulation.SimulateFromSeed(
|
||||||
|
t,
|
||||||
|
os.Stdout,
|
||||||
|
app.BaseApp,
|
||||||
|
StateFn(app.AppCodec(), app.SimulationManager()),
|
||||||
|
RandomAccounts, // Replace with own random account function if using keys other than secp256k1
|
||||||
|
simapp.SimulationOperations(app, app.AppCodec(), config),
|
||||||
|
app.ModuleAccountAddrs(),
|
||||||
|
config,
|
||||||
|
app.AppCodec(),
|
||||||
|
)
|
||||||
|
|
||||||
|
// export state and simParams before the simulation error is checked
|
||||||
|
err = simapp.CheckExportSimulation(app, config, simParams)
|
||||||
|
require.NoError(t, err)
|
||||||
|
require.NoError(t, simErr)
|
||||||
|
|
||||||
|
if config.Commit {
|
||||||
|
simapp.PrintStats(db)
|
||||||
|
}
|
||||||
|
|
||||||
|
if stopEarly {
|
||||||
|
fmt.Println("can't export or import a zero-validator genesis, exiting test...")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt.Printf("exporting genesis...\n")
|
||||||
|
|
||||||
|
exported, err := app.ExportAppStateAndValidators(true, []string{})
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
fmt.Printf("importing genesis...\n")
|
||||||
|
|
||||||
|
_, newDB, newDir, _, _, err := simapp.SetupSimulation("leveldb-app-sim-2", "Simulation-2")
|
||||||
|
require.NoError(t, err, "simulation setup failed")
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
require.NoError(t, newDB.Close())
|
||||||
|
require.NoError(t, os.RemoveAll(newDir))
|
||||||
|
}()
|
||||||
|
|
||||||
|
newApp, err := NewSimApp(log.NewNopLogger(), newDB)
|
||||||
|
require.Equal(t, appName, newApp.Name())
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
newApp.InitChain(abci.RequestInitChain{
|
||||||
|
ChainId: SimAppChainID,
|
||||||
|
AppStateBytes: exported.AppState,
|
||||||
|
})
|
||||||
|
|
||||||
|
_, _, err = simulation.SimulateFromSeed(
|
||||||
|
t,
|
||||||
|
os.Stdout,
|
||||||
|
newApp.BaseApp,
|
||||||
|
StateFn(app.AppCodec(), app.SimulationManager()),
|
||||||
|
RandomAccounts, // Replace with own random account function if using keys other than secp256k1
|
||||||
|
simapp.SimulationOperations(newApp, newApp.AppCodec(), config),
|
||||||
|
app.ModuleAccountAddrs(),
|
||||||
|
config,
|
||||||
|
app.AppCodec(),
|
||||||
|
)
|
||||||
|
require.NoError(t, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Make another test for the fuzzer itself, which just has noOp txs
|
||||||
|
// and doesn't depend on the application.
|
||||||
|
func TestAppStateDeterminism(t *testing.T) {
|
||||||
|
if !simapp.FlagEnabledValue {
|
||||||
|
t.Skip("skipping application simulation")
|
||||||
|
}
|
||||||
|
|
||||||
|
config := simapp.NewConfigFromFlags()
|
||||||
|
config.InitialBlockHeight = 1
|
||||||
|
config.ExportParamsPath = ""
|
||||||
|
config.OnOperation = false
|
||||||
|
config.AllInvariants = false
|
||||||
|
config.ChainID = SimAppChainID
|
||||||
|
|
||||||
|
numSeeds := 3
|
||||||
|
numTimesToRunPerSeed := 5
|
||||||
|
appHashList := make([]json.RawMessage, numTimesToRunPerSeed)
|
||||||
|
|
||||||
|
for i := 0; i < numSeeds; i++ {
|
||||||
|
config.Seed = rand.Int63()
|
||||||
|
|
||||||
|
for j := 0; j < numTimesToRunPerSeed; j++ {
|
||||||
|
var logger log.Logger
|
||||||
|
if simapp.FlagVerboseValue {
|
||||||
|
logger = log.TestingLogger()
|
||||||
|
} else {
|
||||||
|
logger = log.NewNopLogger()
|
||||||
|
}
|
||||||
|
|
||||||
|
db := dbm.NewMemDB()
|
||||||
|
app, err := NewSimApp(logger, db)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
fmt.Printf(
|
||||||
|
"running non-determinism simulation; seed %d: %d/%d, attempt: %d/%d\n",
|
||||||
|
config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
|
||||||
|
)
|
||||||
|
|
||||||
|
_, _, err = simulation.SimulateFromSeed(
|
||||||
|
t,
|
||||||
|
os.Stdout,
|
||||||
|
app.BaseApp,
|
||||||
|
StateFn(app.AppCodec(), app.SimulationManager()),
|
||||||
|
RandomAccounts, // Replace with own random account function if using keys other than secp256k1
|
||||||
|
simapp.SimulationOperations(app, app.AppCodec(), config),
|
||||||
|
app.ModuleAccountAddrs(),
|
||||||
|
config,
|
||||||
|
app.AppCodec(),
|
||||||
|
)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
if config.Commit {
|
||||||
|
simapp.PrintStats(db)
|
||||||
|
}
|
||||||
|
|
||||||
|
appHash := app.LastCommitID().Hash
|
||||||
|
appHashList[j] = appHash
|
||||||
|
|
||||||
|
if j != 0 {
|
||||||
|
require.Equal(
|
||||||
|
t, string(appHashList[0]), string(appHashList[j]),
|
||||||
|
"non-determinism in seed %d: %d/%d, attempt: %d/%d\n", config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
117
app/utils.go
117
app/utils.go
@ -5,21 +5,27 @@ import (
|
|||||||
"math/rand" // #nosec G702
|
"math/rand" // #nosec G702
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||||
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
|
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/mock"
|
"github.com/cosmos/cosmos-sdk/testutil/mock"
|
||||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
"github.com/cosmos/cosmos-sdk/types/module"
|
||||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/encoding"
|
"github.com/cerc-io/laconicd/encoding"
|
||||||
|
ethermint "github.com/cerc-io/laconicd/types"
|
||||||
|
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
||||||
|
|
||||||
|
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
|
||||||
|
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
|
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||||
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
"github.com/tendermint/tendermint/libs/log"
|
"github.com/tendermint/tendermint/libs/log"
|
||||||
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
||||||
@ -77,7 +83,7 @@ func SetupWithDB(isCheckTx bool, patchGenesis func(*EthermintApp, simapp.Genesis
|
|||||||
// Initialize the chain
|
// Initialize the chain
|
||||||
app.InitChain(
|
app.InitChain(
|
||||||
abci.RequestInitChain{
|
abci.RequestInitChain{
|
||||||
ChainId: "laconic_9000-1",
|
ChainId: "ethermint_9000-1",
|
||||||
Validators: []abci.ValidatorUpdate{},
|
Validators: []abci.ValidatorUpdate{},
|
||||||
ConsensusParams: DefaultConsensusParams,
|
ConsensusParams: DefaultConsensusParams,
|
||||||
AppStateBytes: stateBytes,
|
AppStateBytes: stateBytes,
|
||||||
@ -88,27 +94,22 @@ func SetupWithDB(isCheckTx bool, patchGenesis func(*EthermintApp, simapp.Genesis
|
|||||||
return app
|
return app
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTestGenesisState generate genesis state with single validator
|
// RandomGenesisAccounts is used by the auth module to create random genesis accounts in simulation when a genesis.json is not specified.
|
||||||
func NewTestGenesisState(codec codec.Codec) simapp.GenesisState {
|
// In contrast, the default auth module's RandomGenesisAccounts implementation creates only base accounts and vestings accounts.
|
||||||
privVal := mock.NewPV()
|
func RandomGenesisAccounts(simState *module.SimulationState) authtypes.GenesisAccounts {
|
||||||
pubKey, err := privVal.GetPubKey()
|
emptyCodeHash := crypto.Keccak256(nil)
|
||||||
if err != nil {
|
genesisAccs := make(authtypes.GenesisAccounts, len(simState.Accounts))
|
||||||
panic(err)
|
for i, acc := range simState.Accounts {
|
||||||
}
|
bacc := authtypes.NewBaseAccountWithAddress(acc.Address)
|
||||||
// create validator set with single validator
|
|
||||||
validator := tmtypes.NewValidator(pubKey, 1)
|
|
||||||
valSet := tmtypes.NewValidatorSet([]*tmtypes.Validator{validator})
|
|
||||||
|
|
||||||
// generate genesis account
|
ethacc := ðermint.EthAccount{
|
||||||
senderPrivKey := secp256k1.GenPrivKey()
|
BaseAccount: bacc,
|
||||||
acc := authtypes.NewBaseAccount(senderPrivKey.PubKey().Address().Bytes(), senderPrivKey.PubKey(), 0, 0)
|
CodeHash: common.BytesToHash(emptyCodeHash).String(),
|
||||||
balance := banktypes.Balance{
|
}
|
||||||
Address: acc.GetAddress().String(),
|
genesisAccs[i] = ethacc
|
||||||
Coins: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100000000000000))),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
genesisState := NewDefaultGenesisState()
|
return genesisAccs
|
||||||
return genesisStateWithValSet(codec, genesisState, valSet, []authtypes.GenesisAccount{acc}, balance)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RandomAccounts creates random accounts with an ethsecp256k1 private key
|
// RandomAccounts creates random accounts with an ethsecp256k1 private key
|
||||||
@ -134,6 +135,78 @@ func RandomAccounts(r *rand.Rand, n int) []simtypes.Account {
|
|||||||
return accs
|
return accs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// StateFn returns the initial application state using a genesis or the simulation parameters.
|
||||||
|
// It is a wrapper of simapp.AppStateFn to replace evm param EvmDenom with staking param BondDenom.
|
||||||
|
func StateFn(cdc codec.JSONCodec, simManager *module.SimulationManager) simtypes.AppStateFn {
|
||||||
|
return func(r *rand.Rand, accs []simtypes.Account, config simtypes.Config,
|
||||||
|
) (appState json.RawMessage, simAccs []simtypes.Account, chainID string, genesisTimestamp time.Time) {
|
||||||
|
appStateFn := simapp.AppStateFn(cdc, simManager)
|
||||||
|
appState, simAccs, chainID, genesisTimestamp = appStateFn(r, accs, config)
|
||||||
|
|
||||||
|
rawState := make(map[string]json.RawMessage)
|
||||||
|
err := json.Unmarshal(appState, &rawState)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
stakingStateBz, ok := rawState[stakingtypes.ModuleName]
|
||||||
|
if !ok {
|
||||||
|
panic("staking genesis state is missing")
|
||||||
|
}
|
||||||
|
|
||||||
|
stakingState := new(stakingtypes.GenesisState)
|
||||||
|
cdc.MustUnmarshalJSON(stakingStateBz, stakingState)
|
||||||
|
|
||||||
|
// we should get the BondDenom and make it the evmdenom.
|
||||||
|
// thus simulation accounts could have positive amount of gas token.
|
||||||
|
bondDenom := stakingState.Params.BondDenom
|
||||||
|
|
||||||
|
evmStateBz, ok := rawState[evmtypes.ModuleName]
|
||||||
|
if !ok {
|
||||||
|
panic("evm genesis state is missing")
|
||||||
|
}
|
||||||
|
|
||||||
|
evmState := new(evmtypes.GenesisState)
|
||||||
|
cdc.MustUnmarshalJSON(evmStateBz, evmState)
|
||||||
|
|
||||||
|
// we should replace the EvmDenom with BondDenom
|
||||||
|
evmState.Params.EvmDenom = bondDenom
|
||||||
|
|
||||||
|
// change appState back
|
||||||
|
rawState[evmtypes.ModuleName] = cdc.MustMarshalJSON(evmState)
|
||||||
|
|
||||||
|
// replace appstate
|
||||||
|
appState, err = json.Marshal(rawState)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
return appState, simAccs, chainID, genesisTimestamp
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewTestGenesisState generate genesis state with single validator
|
||||||
|
func NewTestGenesisState(codec codec.Codec) simapp.GenesisState {
|
||||||
|
privVal := mock.NewPV()
|
||||||
|
pubKey, err := privVal.GetPubKey()
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
// create validator set with single validator
|
||||||
|
validator := tmtypes.NewValidator(pubKey, 1)
|
||||||
|
valSet := tmtypes.NewValidatorSet([]*tmtypes.Validator{validator})
|
||||||
|
|
||||||
|
// generate genesis account
|
||||||
|
senderPrivKey := secp256k1.GenPrivKey()
|
||||||
|
acc := authtypes.NewBaseAccount(senderPrivKey.PubKey().Address().Bytes(), senderPrivKey.PubKey(), 0, 0)
|
||||||
|
balance := banktypes.Balance{
|
||||||
|
Address: acc.GetAddress().String(),
|
||||||
|
Coins: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100000000000000))),
|
||||||
|
}
|
||||||
|
|
||||||
|
genesisState := NewDefaultGenesisState()
|
||||||
|
return genesisStateWithValSet(codec, genesisState, valSet, []authtypes.GenesisAccount{acc}, balance)
|
||||||
|
}
|
||||||
|
|
||||||
func genesisStateWithValSet(codec codec.Codec, genesisState simapp.GenesisState,
|
func genesisStateWithValSet(codec codec.Codec, genesisState simapp.GenesisState,
|
||||||
valSet *tmtypes.ValidatorSet, genAccs []authtypes.GenesisAccount,
|
valSet *tmtypes.ValidatorSet, genAccs []authtypes.GenesisAccount,
|
||||||
balances ...banktypes.Balance,
|
balances ...banktypes.Balance,
|
||||||
|
113
app/utils_test.go
Normal file
113
app/utils_test.go
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
package app
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
"math/rand"
|
||||||
|
"os"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
|
||||||
|
"github.com/cosmos/cosmos-sdk/types/module"
|
||||||
|
"github.com/cosmos/cosmos-sdk/x/auth"
|
||||||
|
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
|
||||||
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||||
|
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
|
||||||
|
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||||
|
|
||||||
|
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
|
||||||
|
ethermint "github.com/cerc-io/laconicd/types"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
maxTestingAccounts = 100
|
||||||
|
seed = int64(233)
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestRandomGenesisAccounts(t *testing.T) {
|
||||||
|
r := rand.New(rand.NewSource(seed))
|
||||||
|
accs := RandomAccounts(r, rand.Intn(maxTestingAccounts))
|
||||||
|
|
||||||
|
encodingConfig := MakeEncodingConfig()
|
||||||
|
appCodec := encodingConfig.Codec
|
||||||
|
cdc := encodingConfig.Amino
|
||||||
|
|
||||||
|
paramsKeeper := initParamsKeeper(appCodec, cdc, sdk.NewKVStoreKey(paramstypes.StoreKey), sdk.NewTransientStoreKey(paramstypes.StoreKey))
|
||||||
|
subSpace, find := paramsKeeper.GetSubspace(authtypes.ModuleName)
|
||||||
|
require.True(t, find)
|
||||||
|
accountKeeper := authkeeper.NewAccountKeeper(
|
||||||
|
appCodec, sdk.NewKVStoreKey(authtypes.StoreKey), subSpace, ethermint.ProtoAccount, maccPerms, sdk.GetConfig().GetBech32AccountAddrPrefix(),
|
||||||
|
)
|
||||||
|
authModule := auth.NewAppModule(appCodec, accountKeeper, RandomGenesisAccounts)
|
||||||
|
|
||||||
|
genesisState := simapp.NewDefaultGenesisState(appCodec)
|
||||||
|
simState := &module.SimulationState{Accounts: accs, Cdc: appCodec, Rand: r, GenState: genesisState}
|
||||||
|
authModule.GenerateGenesisState(simState)
|
||||||
|
|
||||||
|
authStateBz, find := genesisState[authtypes.ModuleName]
|
||||||
|
require.True(t, find)
|
||||||
|
|
||||||
|
authState := new(authtypes.GenesisState)
|
||||||
|
appCodec.MustUnmarshalJSON(authStateBz, authState)
|
||||||
|
accounts, err := authtypes.UnpackAccounts(authState.Accounts)
|
||||||
|
require.NoError(t, err)
|
||||||
|
for _, acc := range accounts {
|
||||||
|
_, ok := acc.(ethermint.EthAccountI)
|
||||||
|
require.True(t, ok)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestStateFn(t *testing.T) {
|
||||||
|
config, db, dir, logger, skip, err := simapp.SetupSimulation("leveldb-app-sim", "Simulation")
|
||||||
|
if skip {
|
||||||
|
t.Skip("skipping AppStateFn testing")
|
||||||
|
}
|
||||||
|
require.NoError(t, err, "simulation setup failed")
|
||||||
|
|
||||||
|
config.ChainID = SimAppChainID
|
||||||
|
config.Commit = true
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
db.Close()
|
||||||
|
require.NoError(t, os.RemoveAll(dir))
|
||||||
|
}()
|
||||||
|
|
||||||
|
app := NewEthermintApp(logger, db, nil, true, map[int64]bool{}, DefaultNodeHome, simapp.FlagPeriodValue, MakeEncodingConfig(), simapp.EmptyAppOptions{}, fauxMerkleModeOpt)
|
||||||
|
require.Equal(t, appName, app.Name())
|
||||||
|
|
||||||
|
appStateFn := StateFn(app.AppCodec(), app.SimulationManager())
|
||||||
|
r := rand.New(rand.NewSource(seed))
|
||||||
|
accounts := RandomAccounts(r, rand.Intn(maxTestingAccounts))
|
||||||
|
appState, _, _, _ := appStateFn(r, accounts, config)
|
||||||
|
|
||||||
|
rawState := make(map[string]json.RawMessage)
|
||||||
|
err = json.Unmarshal(appState, &rawState)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
stakingStateBz, ok := rawState[stakingtypes.ModuleName]
|
||||||
|
require.True(t, ok)
|
||||||
|
|
||||||
|
stakingState := new(stakingtypes.GenesisState)
|
||||||
|
app.AppCodec().MustUnmarshalJSON(stakingStateBz, stakingState)
|
||||||
|
bondDenom := stakingState.Params.BondDenom
|
||||||
|
|
||||||
|
evmStateBz, ok := rawState[evmtypes.ModuleName]
|
||||||
|
require.True(t, ok)
|
||||||
|
|
||||||
|
evmState := new(evmtypes.GenesisState)
|
||||||
|
app.AppCodec().MustUnmarshalJSON(evmStateBz, evmState)
|
||||||
|
require.Equal(t, bondDenom, evmState.Params.EvmDenom)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestRandomAccounts(t *testing.T) {
|
||||||
|
r := rand.New(rand.NewSource(seed))
|
||||||
|
accounts := RandomAccounts(r, rand.Intn(maxTestingAccounts))
|
||||||
|
for _, acc := range accounts {
|
||||||
|
_, ok := acc.PrivKey.(*ethsecp256k1.PrivKey)
|
||||||
|
require.True(t, ok)
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
version: v1
|
version: v1
|
||||||
directories:
|
directories:
|
||||||
- proto
|
- proto
|
||||||
|
- third_party/proto
|
||||||
|
@ -13,6 +13,57 @@
|
|||||||
"Params": "EvmParams"
|
"Params": "EvmParams"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "./tmp-swagger-gen/cosmos/auth/v1beta1/query.swagger.json",
|
||||||
|
"operationIds": {
|
||||||
|
"rename": {
|
||||||
|
"Account": "AuthAccount",
|
||||||
|
"Params": "AuthParams"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "./tmp-swagger-gen/cosmos/bank/v1beta1/query.swagger.json",
|
||||||
|
"operationIds": {
|
||||||
|
"rename": {
|
||||||
|
"Balance": "BankBalance",
|
||||||
|
"Params": "BankParams"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "./tmp-swagger-gen/cosmos/distribution/v1beta1/query.swagger.json",
|
||||||
|
"operationIds": {
|
||||||
|
"rename": {
|
||||||
|
"Params": "DistributionParams",
|
||||||
|
"DelegatorValidators": "DistDelegatorValidators"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "./tmp-swagger-gen/cosmos/mint/v1beta1/query.swagger.json",
|
||||||
|
"operationIds": {
|
||||||
|
"rename": {
|
||||||
|
"Params": "MintParams"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "./tmp-swagger-gen/cosmos/gov/v1beta1/query.swagger.json",
|
||||||
|
"operationIds": {
|
||||||
|
"rename": {
|
||||||
|
"Params": "GovParams"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "./tmp-swagger-gen/cosmos/staking/v1beta1/query.swagger.json",
|
||||||
|
"operationIds": {
|
||||||
|
"rename": {
|
||||||
|
"Params": "StakingParams"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
4
client/docs/statik/statik.go
vendored
4
client/docs/statik/statik.go
vendored
File diff suppressed because one or more lines are too long
272
client/docs/swagger-ui/swagger.yaml
vendored
272
client/docs/swagger-ui/swagger.yaml
vendored
@ -154,13 +154,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -372,13 +369,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -589,20 +583,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
<<<<<<< HEAD
|
|
||||||
any, err := ptypes.MarshalAny(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
=======
|
|
||||||
any, err := anypb.New(foo)
|
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
|
||||||
foo := &pb.Foo{}
|
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -807,13 +791,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1033,13 +1014,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1248,13 +1226,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1326,18 +1301,6 @@ paths:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
format: uint64
|
format: uint64
|
||||||
- name: proposer_address
|
|
||||||
description: the proposer of the requested block.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
format: byte
|
|
||||||
- name: chain_id
|
|
||||||
description: the eip155 chain id parsed from the requested block header.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
format: int64
|
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
/ethermint/evm/v1/eth_call:
|
/ethermint/evm/v1/eth_call:
|
||||||
@ -1561,13 +1524,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1639,18 +1599,6 @@ paths:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
format: uint64
|
format: uint64
|
||||||
- name: proposer_address
|
|
||||||
description: the proposer of the requested block.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
format: byte
|
|
||||||
- name: chain_id
|
|
||||||
description: the eip155 chain id parsed from the requested block header.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
format: int64
|
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
/ethermint/evm/v1/params:
|
/ethermint/evm/v1/params:
|
||||||
@ -1765,24 +1713,11 @@ paths:
|
|||||||
title: >-
|
title: >-
|
||||||
Eip-4345 (bomb delay) switch block (nil = no fork, 0 =
|
Eip-4345 (bomb delay) switch block (nil = no fork, 0 =
|
||||||
already activated)
|
already activated)
|
||||||
<<<<<<< HEAD
|
|
||||||
merge_fork_block:
|
merge_fork_block:
|
||||||
type: string
|
type: string
|
||||||
title: >-
|
title: >-
|
||||||
EIP-3675 (TheMerge) switch block (nil = no fork, 0 =
|
EIP-3675 (TheMerge) switch block (nil = no fork, 0 =
|
||||||
already in merge proceedings)
|
already in merge proceedings)
|
||||||
=======
|
|
||||||
gray_glacier_block:
|
|
||||||
type: string
|
|
||||||
title: >-
|
|
||||||
EIP-5133 (bomb delay) switch block (nil = no fork, 0 =
|
|
||||||
already activated)
|
|
||||||
merge_netsplit_block:
|
|
||||||
type: string
|
|
||||||
title: >-
|
|
||||||
Virtual fork after The Merge to use as a network
|
|
||||||
splitter
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
description: >-
|
description: >-
|
||||||
ChainConfig defines the Ethereum ChainConfig parameters
|
ChainConfig defines the Ethereum ChainConfig parameters
|
||||||
using *sdk.Int values
|
using *sdk.Int values
|
||||||
@ -1792,11 +1727,7 @@ paths:
|
|||||||
type: boolean
|
type: boolean
|
||||||
description: >-
|
description: >-
|
||||||
Allow unprotected transactions defines if replay-protected
|
Allow unprotected transactions defines if replay-protected
|
||||||
<<<<<<< HEAD
|
|
||||||
(i.e non EIP155
|
(i.e non EIP155
|
||||||
=======
|
|
||||||
(i.e non EIP155
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
|
|
||||||
signed) transactions can be executed on the state machine.
|
signed) transactions can be executed on the state machine.
|
||||||
title: Params defines the EVM module parameters
|
title: Params defines the EVM module parameters
|
||||||
@ -1930,13 +1861,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2144,13 +2072,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2367,13 +2292,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2559,22 +2481,10 @@ paths:
|
|||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
<<<<<<< HEAD
|
|
||||||
- name: trace_config.overrides.merge_fork_block
|
- name: trace_config.overrides.merge_fork_block
|
||||||
description: >-
|
description: >-
|
||||||
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in
|
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in
|
||||||
merge proceedings).
|
merge proceedings).
|
||||||
=======
|
|
||||||
- name: trace_config.overrides.gray_glacier_block
|
|
||||||
description: >-
|
|
||||||
EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already
|
|
||||||
activated).
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
- name: trace_config.overrides.merge_netsplit_block
|
|
||||||
description: Virtual fork after The Merge to use as a network splitter.
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -2588,11 +2498,6 @@ paths:
|
|||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
- name: trace_config.tracer_json_config
|
|
||||||
description: tracer config.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
- name: block_number
|
- name: block_number
|
||||||
description: block number.
|
description: block number.
|
||||||
in: query
|
in: query
|
||||||
@ -2610,18 +2515,6 @@ paths:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
- name: proposer_address
|
|
||||||
description: the proposer of the requested block.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
format: byte
|
|
||||||
- name: chain_id
|
|
||||||
description: the eip155 chain id parsed from the requested block header.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
format: int64
|
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
/ethermint/evm/v1/trace_tx:
|
/ethermint/evm/v1/trace_tx:
|
||||||
@ -2766,13 +2659,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2893,7 +2783,7 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
format: byte
|
format: byte
|
||||||
- name: msg.size
|
- name: msg.size
|
||||||
description: 'DEPRECATED: encoded storage size of the transaction.'
|
description: encoded storage size of the transaction.
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
type: number
|
type: number
|
||||||
@ -3037,22 +2927,10 @@ paths:
|
|||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
<<<<<<< HEAD
|
|
||||||
- name: trace_config.overrides.merge_fork_block
|
- name: trace_config.overrides.merge_fork_block
|
||||||
description: >-
|
description: >-
|
||||||
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in
|
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in
|
||||||
merge proceedings).
|
merge proceedings).
|
||||||
=======
|
|
||||||
- name: trace_config.overrides.gray_glacier_block
|
|
||||||
description: >-
|
|
||||||
EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already
|
|
||||||
activated).
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
- name: trace_config.overrides.merge_netsplit_block
|
|
||||||
description: Virtual fork after The Merge to use as a network splitter.
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -3066,11 +2944,6 @@ paths:
|
|||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
- name: trace_config.tracer_json_config
|
|
||||||
description: tracer config.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
- name: block_number
|
- name: block_number
|
||||||
description: block number of requested transaction.
|
description: block number of requested transaction.
|
||||||
in: query
|
in: query
|
||||||
@ -3088,18 +2961,6 @@ paths:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
- name: proposer_address
|
|
||||||
description: the proposer of the requested block.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
format: byte
|
|
||||||
- name: chain_id
|
|
||||||
description: the eip155 chain id parsed from the requested block header.
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
format: int64
|
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
/ethermint/evm/v1/validator_account/{cons_address}:
|
/ethermint/evm/v1/validator_account/{cons_address}:
|
||||||
@ -3259,13 +3120,10 @@ paths:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3332,7 +3190,6 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
<<<<<<< HEAD
|
|
||||||
/cosmos/auth/v1beta1/accounts:
|
/cosmos/auth/v1beta1/accounts:
|
||||||
get:
|
get:
|
||||||
summary: Accounts returns all the existing accounts
|
summary: Accounts returns all the existing accounts
|
||||||
@ -14195,8 +14052,6 @@ paths:
|
|||||||
type: boolean
|
type: boolean
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
=======
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
definitions:
|
definitions:
|
||||||
ethermint.evm.v1.ChainConfig:
|
ethermint.evm.v1.ChainConfig:
|
||||||
type: object
|
type: object
|
||||||
@ -14256,22 +14111,11 @@ definitions:
|
|||||||
title: >-
|
title: >-
|
||||||
Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already
|
Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already
|
||||||
activated)
|
activated)
|
||||||
<<<<<<< HEAD
|
|
||||||
merge_fork_block:
|
merge_fork_block:
|
||||||
type: string
|
type: string
|
||||||
title: >-
|
title: >-
|
||||||
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in merge
|
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in merge
|
||||||
proceedings)
|
proceedings)
|
||||||
=======
|
|
||||||
gray_glacier_block:
|
|
||||||
type: string
|
|
||||||
title: >-
|
|
||||||
EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already
|
|
||||||
activated)
|
|
||||||
merge_netsplit_block:
|
|
||||||
type: string
|
|
||||||
title: Virtual fork after The Merge to use as a network splitter
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
description: >-
|
description: >-
|
||||||
ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int
|
ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int
|
||||||
values
|
values
|
||||||
@ -14443,13 +14287,10 @@ definitions:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -14503,7 +14344,7 @@ definitions:
|
|||||||
size:
|
size:
|
||||||
type: number
|
type: number
|
||||||
format: double
|
format: double
|
||||||
title: 'DEPRECATED: encoded storage size of the transaction'
|
title: encoded storage size of the transaction
|
||||||
hash:
|
hash:
|
||||||
type: string
|
type: string
|
||||||
title: transaction hash in hex format
|
title: transaction hash in hex format
|
||||||
@ -14674,22 +14515,11 @@ definitions:
|
|||||||
title: >-
|
title: >-
|
||||||
Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already
|
Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already
|
||||||
activated)
|
activated)
|
||||||
<<<<<<< HEAD
|
|
||||||
merge_fork_block:
|
merge_fork_block:
|
||||||
type: string
|
type: string
|
||||||
title: >-
|
title: >-
|
||||||
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in
|
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in
|
||||||
merge proceedings)
|
merge proceedings)
|
||||||
=======
|
|
||||||
gray_glacier_block:
|
|
||||||
type: string
|
|
||||||
title: >-
|
|
||||||
EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already
|
|
||||||
activated)
|
|
||||||
merge_netsplit_block:
|
|
||||||
type: string
|
|
||||||
title: Virtual fork after The Merge to use as a network splitter
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
description: >-
|
description: >-
|
||||||
ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int
|
ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int
|
||||||
values
|
values
|
||||||
@ -14699,11 +14529,7 @@ definitions:
|
|||||||
type: boolean
|
type: boolean
|
||||||
description: >-
|
description: >-
|
||||||
Allow unprotected transactions defines if replay-protected (i.e non
|
Allow unprotected transactions defines if replay-protected (i.e non
|
||||||
<<<<<<< HEAD
|
|
||||||
EIP155
|
EIP155
|
||||||
=======
|
|
||||||
EIP155
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
|
|
||||||
signed) transactions can be executed on the state machine.
|
signed) transactions can be executed on the state machine.
|
||||||
title: Params defines the EVM module parameters
|
title: Params defines the EVM module parameters
|
||||||
@ -14858,22 +14684,11 @@ definitions:
|
|||||||
title: >-
|
title: >-
|
||||||
Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already
|
Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already
|
||||||
activated)
|
activated)
|
||||||
<<<<<<< HEAD
|
|
||||||
merge_fork_block:
|
merge_fork_block:
|
||||||
type: string
|
type: string
|
||||||
title: >-
|
title: >-
|
||||||
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already
|
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already
|
||||||
in merge proceedings)
|
in merge proceedings)
|
||||||
=======
|
|
||||||
gray_glacier_block:
|
|
||||||
type: string
|
|
||||||
title: >-
|
|
||||||
EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already
|
|
||||||
activated)
|
|
||||||
merge_netsplit_block:
|
|
||||||
type: string
|
|
||||||
title: Virtual fork after The Merge to use as a network splitter
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
description: >-
|
description: >-
|
||||||
ChainConfig defines the Ethereum ChainConfig parameters using
|
ChainConfig defines the Ethereum ChainConfig parameters using
|
||||||
*sdk.Int values
|
*sdk.Int values
|
||||||
@ -14883,11 +14698,7 @@ definitions:
|
|||||||
type: boolean
|
type: boolean
|
||||||
description: >-
|
description: >-
|
||||||
Allow unprotected transactions defines if replay-protected (i.e
|
Allow unprotected transactions defines if replay-protected (i.e
|
||||||
<<<<<<< HEAD
|
|
||||||
non EIP155
|
non EIP155
|
||||||
=======
|
|
||||||
non EIP155
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
|
|
||||||
signed) transactions can be executed on the state machine.
|
signed) transactions can be executed on the state machine.
|
||||||
title: Params defines the EVM module parameters
|
title: Params defines the EVM module parameters
|
||||||
@ -15028,22 +14839,11 @@ definitions:
|
|||||||
title: >-
|
title: >-
|
||||||
Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already
|
Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already
|
||||||
activated)
|
activated)
|
||||||
<<<<<<< HEAD
|
|
||||||
merge_fork_block:
|
merge_fork_block:
|
||||||
type: string
|
type: string
|
||||||
title: >-
|
title: >-
|
||||||
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in
|
EIP-3675 (TheMerge) switch block (nil = no fork, 0 = already in
|
||||||
merge proceedings)
|
merge proceedings)
|
||||||
=======
|
|
||||||
gray_glacier_block:
|
|
||||||
type: string
|
|
||||||
title: >-
|
|
||||||
EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already
|
|
||||||
activated)
|
|
||||||
merge_netsplit_block:
|
|
||||||
type: string
|
|
||||||
title: Virtual fork after The Merge to use as a network splitter
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
description: >-
|
description: >-
|
||||||
ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int
|
ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int
|
||||||
values
|
values
|
||||||
@ -15055,9 +14855,6 @@ definitions:
|
|||||||
enable_return_data:
|
enable_return_data:
|
||||||
type: boolean
|
type: boolean
|
||||||
title: enable return data capture
|
title: enable return data capture
|
||||||
tracer_json_config:
|
|
||||||
type: string
|
|
||||||
title: tracer config
|
|
||||||
description: TraceConfig holds extra parameters to trace functions.
|
description: TraceConfig holds extra parameters to trace functions.
|
||||||
google.protobuf.Any:
|
google.protobuf.Any:
|
||||||
type: object
|
type: object
|
||||||
@ -15161,13 +14958,10 @@ definitions:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15338,13 +15132,10 @@ definitions:
|
|||||||
Example 4: Pack and unpack a message in Go
|
Example 4: Pack and unpack a message in Go
|
||||||
|
|
||||||
foo := &pb.Foo{...}
|
foo := &pb.Foo{...}
|
||||||
any, err := anypb.New(foo)
|
any, err := ptypes.MarshalAny(foo)
|
||||||
if err != nil {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
...
|
||||||
foo := &pb.Foo{}
|
foo := &pb.Foo{}
|
||||||
if err := any.UnmarshalTo(foo); err != nil {
|
if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15394,7 +15185,6 @@ definitions:
|
|||||||
"@type": "type.googleapis.com/google.protobuf.Duration",
|
"@type": "type.googleapis.com/google.protobuf.Duration",
|
||||||
"value": "1.212s"
|
"value": "1.212s"
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
cosmos.auth.v1beta1.Params:
|
cosmos.auth.v1beta1.Params:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -21355,5 +21145,3 @@ definitions:
|
|||||||
application's
|
application's
|
||||||
|
|
||||||
state transition machine.
|
state transition machine.
|
||||||
=======
|
|
||||||
>>>>>>> v0.20.0
|
|
||||||
|
@ -50,32 +50,18 @@ output
|
|||||||
- armor encrypted private key (saved to file)
|
- armor encrypted private key (saved to file)
|
||||||
*/
|
*/
|
||||||
func RunAddCmd(ctx client.Context, cmd *cobra.Command, args []string, inBuf *bufio.Reader) error {
|
func RunAddCmd(ctx client.Context, cmd *cobra.Command, args []string, inBuf *bufio.Reader) error {
|
||||||
var (
|
var err error
|
||||||
algo keyring.SignatureAlgo
|
|
||||||
err error
|
|
||||||
)
|
|
||||||
|
|
||||||
name := args[0]
|
name := args[0]
|
||||||
|
|
||||||
interactive, _ := cmd.Flags().GetBool(flagInteractive)
|
interactive, _ := cmd.Flags().GetBool(flagInteractive)
|
||||||
noBackup, _ := cmd.Flags().GetBool(flagNoBackup)
|
noBackup, _ := cmd.Flags().GetBool(flagNoBackup)
|
||||||
useLedger, _ := cmd.Flags().GetBool(flags.FlagUseLedger)
|
|
||||||
algoStr, _ := cmd.Flags().GetString(flags.FlagKeyAlgorithm)
|
|
||||||
|
|
||||||
showMnemonic := !noBackup
|
showMnemonic := !noBackup
|
||||||
kb := ctx.Keyring
|
kb := ctx.Keyring
|
||||||
outputFormat := ctx.OutputFormat
|
outputFormat := ctx.OutputFormat
|
||||||
|
|
||||||
keyringAlgos, ledgerAlgos := kb.SupportedAlgorithms()
|
keyringAlgos, _ := kb.SupportedAlgorithms()
|
||||||
|
algoStr, _ := cmd.Flags().GetString(flags.FlagKeyAlgorithm)
|
||||||
// check if the provided signing algorithm is supported by the keyring or
|
algo, err := keyring.NewSigningAlgoFromString(algoStr, keyringAlgos)
|
||||||
// ledger
|
|
||||||
if useLedger {
|
|
||||||
algo, err = keyring.NewSigningAlgoFromString(algoStr, ledgerAlgos)
|
|
||||||
} else {
|
|
||||||
algo, err = keyring.NewSigningAlgoFromString(algoStr, keyringAlgos)
|
|
||||||
}
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -158,6 +144,7 @@ func RunAddCmd(ctx client.Context, cmd *cobra.Command, args []string, inBuf *buf
|
|||||||
account, _ := cmd.Flags().GetUint32(flagAccount)
|
account, _ := cmd.Flags().GetUint32(flagAccount)
|
||||||
index, _ := cmd.Flags().GetUint32(flagIndex)
|
index, _ := cmd.Flags().GetUint32(flagIndex)
|
||||||
hdPath, _ := cmd.Flags().GetString(flagHDPath)
|
hdPath, _ := cmd.Flags().GetString(flagHDPath)
|
||||||
|
useLedger, _ := cmd.Flags().GetBool(flags.FlagUseLedger)
|
||||||
|
|
||||||
if len(hdPath) == 0 {
|
if len(hdPath) == 0 {
|
||||||
hdPath = hd.CreateHDPath(coinType, account, index).String()
|
hdPath = hd.CreateHDPath(coinType, account, index).String()
|
||||||
@ -168,9 +155,7 @@ func RunAddCmd(ctx client.Context, cmd *cobra.Command, args []string, inBuf *buf
|
|||||||
// If we're using ledger, only thing we need is the path and the bech32 prefix.
|
// If we're using ledger, only thing we need is the path and the bech32 prefix.
|
||||||
if useLedger {
|
if useLedger {
|
||||||
bech32PrefixAccAddr := sdk.GetConfig().GetBech32AccountAddrPrefix()
|
bech32PrefixAccAddr := sdk.GetConfig().GetBech32AccountAddrPrefix()
|
||||||
|
k, err := kb.SaveLedgerKey(name, hd.Secp256k1, bech32PrefixAccAddr, coinType, account, index)
|
||||||
// use the provided algo to save the ledger key
|
|
||||||
k, err := kb.SaveLedgerKey(name, algo, bech32PrefixAccAddr, coinType, account, index)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,9 @@ import (
|
|||||||
"github.com/cerc-io/laconicd/version"
|
"github.com/cerc-io/laconicd/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
const flagLong = "long"
|
const (
|
||||||
|
flagLong = "long"
|
||||||
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
infoCmd.Flags().Bool(flagLong, false, "Print full information")
|
infoCmd.Flags().Bool(flagLong, false, "Print full information")
|
||||||
|
@ -32,7 +32,7 @@ const (
|
|||||||
// AddGenesisAccountCmd returns add-genesis-account cobra Command.
|
// AddGenesisAccountCmd returns add-genesis-account cobra Command.
|
||||||
func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command {
|
func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "add-genesis-account ADDRESS_OR_KEY_NAME COIN...",
|
Use: "add-genesis-account [address_or_key_name] [coin][,[coin]]",
|
||||||
Short: "Add a genesis account to genesis.json",
|
Short: "Add a genesis account to genesis.json",
|
||||||
Long: `Add a genesis account to genesis.json. The provided account must specify
|
Long: `Add a genesis account to genesis.json. The provided account must specify
|
||||||
the account address or key name and a list of initial coins. If a key name is given,
|
the account address or key name and a list of initial coins. If a key name is given,
|
||||||
|
@ -37,14 +37,13 @@ import (
|
|||||||
"github.com/cerc-io/laconicd/client/debug"
|
"github.com/cerc-io/laconicd/client/debug"
|
||||||
"github.com/cerc-io/laconicd/crypto/hd"
|
"github.com/cerc-io/laconicd/crypto/hd"
|
||||||
"github.com/cerc-io/laconicd/encoding"
|
"github.com/cerc-io/laconicd/encoding"
|
||||||
"github.com/cerc-io/laconicd/ethereum/eip712"
|
|
||||||
"github.com/cerc-io/laconicd/server"
|
"github.com/cerc-io/laconicd/server"
|
||||||
servercfg "github.com/cerc-io/laconicd/server/config"
|
servercfg "github.com/cerc-io/laconicd/server/config"
|
||||||
srvflags "github.com/cerc-io/laconicd/server/flags"
|
srvflags "github.com/cerc-io/laconicd/server/flags"
|
||||||
ethermint "github.com/cerc-io/laconicd/types"
|
ethermint "github.com/cerc-io/laconicd/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const EnvPrefix = "LACONIC"
|
const EnvPrefix = "ETHERMINT"
|
||||||
|
|
||||||
// NewRootCmd creates a new root command for simd. It is called once in the
|
// NewRootCmd creates a new root command for simd. It is called once in the
|
||||||
// main function.
|
// main function.
|
||||||
@ -62,11 +61,9 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
|
|||||||
WithKeyringOptions(hd.EthSecp256k1Option()).
|
WithKeyringOptions(hd.EthSecp256k1Option()).
|
||||||
WithViper(EnvPrefix)
|
WithViper(EnvPrefix)
|
||||||
|
|
||||||
eip712.SetEncodingConfig(encodingConfig)
|
|
||||||
|
|
||||||
rootCmd := &cobra.Command{
|
rootCmd := &cobra.Command{
|
||||||
Use: "laconicd",
|
Use: "laconicd",
|
||||||
Short: "Laconic Daemon",
|
Short: "Ethermint Daemon",
|
||||||
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
|
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
|
||||||
// set the default command outputs
|
// set the default command outputs
|
||||||
cmd.SetOut(cmd.OutOrStdout())
|
cmd.SetOut(cmd.OutOrStdout())
|
||||||
@ -185,7 +182,6 @@ func txCommand() *cobra.Command {
|
|||||||
authcmd.GetBroadcastCommand(),
|
authcmd.GetBroadcastCommand(),
|
||||||
authcmd.GetEncodeCommand(),
|
authcmd.GetEncodeCommand(),
|
||||||
authcmd.GetDecodeCommand(),
|
authcmd.GetDecodeCommand(),
|
||||||
authcmd.GetAuxToFeeCommand(),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
app.ModuleBasics.AddTxCommands(cmd)
|
app.ModuleBasics.AddTxCommands(cmd)
|
||||||
@ -250,8 +246,6 @@ func (a appCreator) newApp(logger tmlog.Logger, db dbm.DB, traceStore io.Writer,
|
|||||||
baseapp.SetTrace(cast.ToBool(appOpts.Get(sdkserver.FlagTrace))),
|
baseapp.SetTrace(cast.ToBool(appOpts.Get(sdkserver.FlagTrace))),
|
||||||
baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(sdkserver.FlagIndexEvents))),
|
baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(sdkserver.FlagIndexEvents))),
|
||||||
baseapp.SetSnapshot(snapshotStore, snapshotOptions),
|
baseapp.SetSnapshot(snapshotStore, snapshotOptions),
|
||||||
baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(sdkserver.FlagIAVLCacheSize))),
|
|
||||||
baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(sdkserver.FlagDisableIAVLFastNode))),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
return ethermintApp
|
return ethermintApp
|
||||||
|
@ -6,12 +6,11 @@ import (
|
|||||||
"crypto/subtle"
|
"crypto/subtle"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
"github.com/cerc-io/laconicd/ethereum/eip712"
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
|
|
||||||
tmcrypto "github.com/tendermint/tendermint/crypto"
|
tmcrypto "github.com/tendermint/tendermint/crypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -183,7 +182,7 @@ func (pubKey PubKey) MarshalAmino() ([]byte, error) {
|
|||||||
// UnmarshalAmino overrides Amino binary marshaling.
|
// UnmarshalAmino overrides Amino binary marshaling.
|
||||||
func (pubKey *PubKey) UnmarshalAmino(bz []byte) error {
|
func (pubKey *PubKey) UnmarshalAmino(bz []byte) error {
|
||||||
if len(bz) != PubKeySize {
|
if len(bz) != PubKeySize {
|
||||||
return errorsmod.Wrapf(errortypes.ErrInvalidPubKey, "invalid pubkey size, expected %d, got %d", PubKeySize, len(bz))
|
return sdkerrors.Wrapf(sdkerrors.ErrInvalidPubKey, "invalid pubkey size, expected %d, got %d", PubKeySize, len(bz))
|
||||||
}
|
}
|
||||||
pubKey.Key = bz
|
pubKey.Key = bz
|
||||||
|
|
||||||
@ -204,28 +203,10 @@ func (pubKey *PubKey) UnmarshalAminoJSON(bz []byte) error {
|
|||||||
|
|
||||||
// VerifySignature verifies that the ECDSA public key created a given signature over
|
// VerifySignature verifies that the ECDSA public key created a given signature over
|
||||||
// the provided message. It will calculate the Keccak256 hash of the message
|
// the provided message. It will calculate the Keccak256 hash of the message
|
||||||
// prior to verification and approve verification if the signature can be verified
|
// prior to verification.
|
||||||
// from either the original message or its EIP-712 representation.
|
|
||||||
//
|
//
|
||||||
// CONTRACT: The signature should be in [R || S] format.
|
// CONTRACT: The signature should be in [R || S] format.
|
||||||
func (pubKey PubKey) VerifySignature(msg, sig []byte) bool {
|
func (pubKey PubKey) VerifySignature(msg, sig []byte) bool {
|
||||||
return pubKey.verifySignatureECDSA(msg, sig) || pubKey.verifySignatureAsEIP712(msg, sig)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Verifies the signature as an EIP-712 signature by first converting the message payload
|
|
||||||
// to EIP-712 object bytes, then performing ECDSA verification on the hash. This is to support
|
|
||||||
// signing a Cosmos payload using EIP-712.
|
|
||||||
func (pubKey PubKey) verifySignatureAsEIP712(msg, sig []byte) bool {
|
|
||||||
eip712Bytes, err := eip712.GetEIP712BytesForMsg(msg)
|
|
||||||
if err != nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
return pubKey.verifySignatureECDSA(eip712Bytes, sig)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Perform standard ECDSA signature verification for the given raw bytes and signature.
|
|
||||||
func (pubKey PubKey) verifySignatureECDSA(msg, sig []byte) bool {
|
|
||||||
if len(sig) == crypto.SignatureLength {
|
if len(sig) == crypto.SignatureLength {
|
||||||
// remove recovery ID (V) if contained in the signature
|
// remove recovery ID (V) if contained in the signature
|
||||||
sig = sig[:len(sig)-1]
|
sig = sig[:len(sig)-1]
|
||||||
|
4
crypto/ethsecp256k1/keys.pb.go
generated
4
crypto/ethsecp256k1/keys.pb.go
generated
@ -5,7 +5,7 @@ package ethsecp256k1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
_ "github.com/cosmos/gogoproto/gogoproto"
|
_ "github.com/gogo/protobuf/gogoproto"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/gogo/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
@ -27,7 +27,6 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|||||||
// Tendermint's PubKey interface. It represents the 33-byte compressed public
|
// Tendermint's PubKey interface. It represents the 33-byte compressed public
|
||||||
// key format.
|
// key format.
|
||||||
type PubKey struct {
|
type PubKey struct {
|
||||||
// key is the public key in byte form
|
|
||||||
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +72,6 @@ func (m *PubKey) GetKey() []byte {
|
|||||||
// PrivKey defines a type alias for an ecdsa.PrivateKey that implements
|
// PrivKey defines a type alias for an ecdsa.PrivateKey that implements
|
||||||
// Tendermint's PrivateKey interface.
|
// Tendermint's PrivateKey interface.
|
||||||
type PrivKey struct {
|
type PrivKey struct {
|
||||||
// key is the private key in byte form
|
|
||||||
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package hd
|
package hd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@ -11,6 +10,7 @@ import (
|
|||||||
|
|
||||||
hdwallet "github.com/miguelmota/go-ethereum-hdwallet"
|
hdwallet "github.com/miguelmota/go-ethereum-hdwallet"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
amino "github.com/cosmos/cosmos-sdk/codec"
|
amino "github.com/cosmos/cosmos-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
||||||
@ -20,10 +20,10 @@ import (
|
|||||||
ethermint "github.com/cerc-io/laconicd/types"
|
ethermint "github.com/cerc-io/laconicd/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var TestCodec amino.Codec
|
var TestCodec codec.Codec
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
cdc := amino.NewLegacyAmino()
|
cdc := codec.NewLegacyAmino()
|
||||||
cryptocodec.RegisterCrypto(cdc)
|
cryptocodec.RegisterCrypto(cdc)
|
||||||
|
|
||||||
interfaceRegistry := types.NewInterfaceRegistry()
|
interfaceRegistry := types.NewInterfaceRegistry()
|
||||||
@ -31,18 +31,12 @@ func init() {
|
|||||||
enccodec.RegisterInterfaces(interfaceRegistry)
|
enccodec.RegisterInterfaces(interfaceRegistry)
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const mnemonic = "picnic rent average infant boat squirrel federal assault mercy purity very motor fossil wheel verify upset box fresh horse vivid copy predict square regret"
|
||||||
mnemonic = "picnic rent average infant boat squirrel federal assault mercy purity very motor fossil wheel verify upset box fresh horse vivid copy predict square regret"
|
|
||||||
|
|
||||||
// hdWalletFixEnv defines whether the standard (correct) bip39
|
|
||||||
// derivation path was used, or if derivation was affected by
|
|
||||||
// https://github.com/btcsuite/btcutil/issues/172
|
|
||||||
hdWalletFixEnv = "GO_ETHEREUM_HDWALLET_FIX_ISSUE_179"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestKeyring(t *testing.T) {
|
func TestKeyring(t *testing.T) {
|
||||||
dir := t.TempDir()
|
dir := t.TempDir()
|
||||||
mockIn := strings.NewReader("")
|
mockIn := strings.NewReader("")
|
||||||
|
|
||||||
kr, err := keyring.New("ethermint", keyring.BackendTest, dir, mockIn, TestCodec, EthSecp256k1Option())
|
kr, err := keyring.New("ethermint", keyring.BackendTest, dir, mockIn, TestCodec, EthSecp256k1Option())
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
@ -74,9 +68,7 @@ func TestKeyring(t *testing.T) {
|
|||||||
privkey := EthSecp256k1.Generate()(bz)
|
privkey := EthSecp256k1.Generate()(bz)
|
||||||
addr := common.BytesToAddress(privkey.PubKey().Address().Bytes())
|
addr := common.BytesToAddress(privkey.PubKey().Address().Bytes())
|
||||||
|
|
||||||
os.Setenv(hdWalletFixEnv, "true")
|
|
||||||
wallet, err := hdwallet.NewFromMnemonic(mnemonic)
|
wallet, err := hdwallet.NewFromMnemonic(mnemonic)
|
||||||
os.Setenv(hdWalletFixEnv, "")
|
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
path := hdwallet.MustParseDerivationPath(hdPath)
|
path := hdwallet.MustParseDerivationPath(hdPath)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -14,17 +14,34 @@ import (
|
|||||||
"golang.org/x/text/cases"
|
"golang.org/x/text/cases"
|
||||||
"golang.org/x/text/language"
|
"golang.org/x/text/language"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
|
|
||||||
registry "github.com/cerc-io/laconicd/x/registry/types"
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/math"
|
"github.com/ethereum/go-ethereum/common/math"
|
||||||
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/signer/core/apitypes"
|
"github.com/ethereum/go-ethereum/signer/core/apitypes"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ComputeTypedDataHash computes keccak hash of typed data for signing.
|
||||||
|
func ComputeTypedDataHash(typedData apitypes.TypedData) ([]byte, error) {
|
||||||
|
domainSeparator, err := typedData.HashStruct("EIP712Domain", typedData.Domain.Map())
|
||||||
|
if err != nil {
|
||||||
|
err = sdkerrors.Wrap(err, "failed to pack and hash typedData EIP712Domain")
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
typedDataHash, err := typedData.HashStruct(typedData.PrimaryType, typedData.Message)
|
||||||
|
if err != nil {
|
||||||
|
err = sdkerrors.Wrap(err, "failed to pack and hash typedData primary type")
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
rawData := []byte(fmt.Sprintf("\x19\x01%s%s", string(domainSeparator), string(typedDataHash)))
|
||||||
|
return crypto.Keccak256(rawData), nil
|
||||||
|
}
|
||||||
|
|
||||||
// WrapTxToTypedData is an ultimate method that wraps Amino-encoded Cosmos Tx JSON data
|
// WrapTxToTypedData is an ultimate method that wraps Amino-encoded Cosmos Tx JSON data
|
||||||
// into an EIP712-compatible TypedData request.
|
// into an EIP712-compatible TypedData request.
|
||||||
func WrapTxToTypedData(
|
func WrapTxToTypedData(
|
||||||
@ -37,20 +54,7 @@ func WrapTxToTypedData(
|
|||||||
txData := make(map[string]interface{})
|
txData := make(map[string]interface{})
|
||||||
|
|
||||||
if err := json.Unmarshal(data, &txData); err != nil {
|
if err := json.Unmarshal(data, &txData); err != nil {
|
||||||
return apitypes.TypedData{}, errorsmod.Wrap(errortypes.ErrJSONUnmarshal, "failed to JSON unmarshal data")
|
return apitypes.TypedData{}, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, "failed to JSON unmarshal data")
|
||||||
}
|
|
||||||
|
|
||||||
if txData["msgs"].([]interface{})[0].(map[string]interface{})["value"].(map[string]interface{})["payload"] != nil {
|
|
||||||
setRecordMsg := msg.(*registry.MsgSetRecord)
|
|
||||||
var attr []interface{}
|
|
||||||
for _, b := range setRecordMsg.Payload.Record.Attributes.Value {
|
|
||||||
attr = append(attr, fmt.Sprintf("%v", b))
|
|
||||||
}
|
|
||||||
|
|
||||||
txData["msgs"].([]interface{})[0].(map[string]interface{})["value"].(map[string]interface{})["payload"].(map[string]interface{})["record"].(map[string]interface{})["attributes"] = map[string]interface{}{ //nolint:lll
|
|
||||||
"type_url": setRecordMsg.Payload.Record.Attributes.TypeUrl,
|
|
||||||
"value": attr,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
domain := apitypes.TypedDataDomain{
|
domain := apitypes.TypedDataDomain{
|
||||||
@ -66,28 +70,10 @@ func WrapTxToTypedData(
|
|||||||
return apitypes.TypedData{}, err
|
return apitypes.TypedData{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if msgTypes["TypePayloadRecord"] != nil {
|
|
||||||
msgTypes["TypePayloadRecord"] = []apitypes.Type{
|
|
||||||
{Name: "id", Type: "string"},
|
|
||||||
{Name: "bond_id", Type: "string"},
|
|
||||||
{Name: "create_time", Type: "string"},
|
|
||||||
{Name: "expiry_time", Type: "string"},
|
|
||||||
{Name: "deleted", Type: "bool"},
|
|
||||||
{Name: "attributes", Type: "TypePayloadRecordAttributes"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if msgTypes["TypePayloadRecordAttributes"] != nil {
|
|
||||||
msgTypes["TypePayloadRecordAttributes"] = []apitypes.Type{
|
|
||||||
{Name: "type_url", Type: "string"},
|
|
||||||
{Name: "value", Type: "uint8[]"},
|
|
||||||
}
|
|
||||||
delete(msgTypes, "TypePayloadRecordAttributesValue")
|
|
||||||
}
|
|
||||||
|
|
||||||
if feeDelegation != nil {
|
if feeDelegation != nil {
|
||||||
feeInfo, ok := txData["fee"].(map[string]interface{})
|
feeInfo, ok := txData["fee"].(map[string]interface{})
|
||||||
if !ok {
|
if !ok {
|
||||||
return apitypes.TypedData{}, errorsmod.Wrap(errortypes.ErrInvalidType, "cannot parse fee from tx data")
|
return apitypes.TypedData{}, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "cannot parse fee from tx data")
|
||||||
}
|
}
|
||||||
|
|
||||||
feeInfo["feePayer"] = feeDelegation.FeePayer.String()
|
feeInfo["feePayer"] = feeDelegation.FeePayer.String()
|
||||||
@ -220,11 +206,7 @@ func traverseFields(
|
|||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < n; i++ {
|
for i := 0; i < n; i++ {
|
||||||
var (
|
var field reflect.Value
|
||||||
field reflect.Value
|
|
||||||
err error
|
|
||||||
)
|
|
||||||
|
|
||||||
if v.IsValid() {
|
if v.IsValid() {
|
||||||
field = v.Field(i)
|
field = v.Field(i)
|
||||||
}
|
}
|
||||||
@ -233,15 +215,23 @@ func traverseFields(
|
|||||||
fieldName := jsonNameFromTag(t.Field(i).Tag)
|
fieldName := jsonNameFromTag(t.Field(i).Tag)
|
||||||
|
|
||||||
if fieldType == cosmosAnyType {
|
if fieldType == cosmosAnyType {
|
||||||
// Unpack field, value as Any
|
any, ok := field.Interface().(*codectypes.Any)
|
||||||
if fieldType, field, err = unpackAny(cdc, field); err != nil {
|
if !ok {
|
||||||
return err
|
return sdkerrors.Wrapf(sdkerrors.ErrPackAny, "%T", field.Interface())
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If field is an empty value, do not include in types, since it will not be present in the object
|
anyWrapper := &cosmosAnyWrapper{
|
||||||
if field.IsZero() {
|
Type: any.TypeUrl,
|
||||||
continue
|
}
|
||||||
|
|
||||||
|
if err := cdc.UnpackAny(any, &anyWrapper.Value); err != nil {
|
||||||
|
return sdkerrors.Wrap(err, "failed to unpack Any in msg struct")
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldType = reflect.TypeOf(anyWrapper)
|
||||||
|
field = reflect.ValueOf(anyWrapper)
|
||||||
|
|
||||||
|
// then continue as normal
|
||||||
}
|
}
|
||||||
|
|
||||||
// If its a nil pointer, do not include in types
|
// If its a nil pointer, do not include in types
|
||||||
@ -283,12 +273,6 @@ func traverseFields(
|
|||||||
fieldType = fieldType.Elem()
|
fieldType = fieldType.Elem()
|
||||||
field = field.Index(0)
|
field = field.Index(0)
|
||||||
isCollection = true
|
isCollection = true
|
||||||
|
|
||||||
if fieldType == cosmosAnyType {
|
|
||||||
if fieldType, field, err = unpackAny(cdc, field); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
@ -379,27 +363,6 @@ func jsonNameFromTag(tag reflect.StructTag) string {
|
|||||||
return parts[0]
|
return parts[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unpack the given Any value with Type/Value deconstruction
|
|
||||||
func unpackAny(cdc codectypes.AnyUnpacker, field reflect.Value) (reflect.Type, reflect.Value, error) {
|
|
||||||
any, ok := field.Interface().(*codectypes.Any)
|
|
||||||
if !ok {
|
|
||||||
return nil, reflect.Value{}, errorsmod.Wrapf(errortypes.ErrPackAny, "%T", field.Interface())
|
|
||||||
}
|
|
||||||
|
|
||||||
anyWrapper := &cosmosAnyWrapper{
|
|
||||||
Type: any.TypeUrl,
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := cdc.UnpackAny(any, &anyWrapper.Value); err != nil {
|
|
||||||
return nil, reflect.Value{}, errorsmod.Wrap(err, "failed to unpack Any in msg struct")
|
|
||||||
}
|
|
||||||
|
|
||||||
fieldType := reflect.TypeOf(anyWrapper)
|
|
||||||
field = reflect.ValueOf(anyWrapper)
|
|
||||||
|
|
||||||
return fieldType, field, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// _.foo_bar.baz -> TypeFooBarBaz
|
// _.foo_bar.baz -> TypeFooBarBaz
|
||||||
//
|
//
|
||||||
// this is needed for Geth's own signing code which doesn't
|
// this is needed for Geth's own signing code which doesn't
|
||||||
@ -502,7 +465,7 @@ func typToEth(typ reflect.Type) string {
|
|||||||
func doRecover(err *error) {
|
func doRecover(err *error) {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
if e, ok := r.(error); ok {
|
if e, ok := r.(error); ok {
|
||||||
e = errorsmod.Wrap(e, "panicked with error")
|
e = sdkerrors.Wrap(e, "panicked with error")
|
||||||
*err = e
|
*err = e
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -1,432 +0,0 @@
|
|||||||
package eip712_test
|
|
||||||
|
|
||||||
import (
|
|
||||||
"testing"
|
|
||||||
|
|
||||||
"cosmossdk.io/math"
|
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/ethereum/eip712"
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp/params"
|
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
|
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
||||||
|
|
||||||
"github.com/cerc-io/laconicd/app"
|
|
||||||
"github.com/cerc-io/laconicd/encoding"
|
|
||||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
|
||||||
|
|
||||||
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
|
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
|
||||||
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
|
||||||
|
|
||||||
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
|
|
||||||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
|
||||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
|
||||||
"github.com/stretchr/testify/suite"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Unit tests for single-signer EIP-712 signature verification. Multi-signer verification tests are included
|
|
||||||
// in ante_test.go.
|
|
||||||
|
|
||||||
type EIP712TestSuite struct {
|
|
||||||
suite.Suite
|
|
||||||
|
|
||||||
config params.EncodingConfig
|
|
||||||
clientCtx client.Context
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestEIP712TestSuite(t *testing.T) {
|
|
||||||
suite.Run(t, &EIP712TestSuite{})
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set up test env to replicate prod. environment
|
|
||||||
func (suite *EIP712TestSuite) SetupTest() {
|
|
||||||
suite.config = encoding.MakeConfig(app.ModuleBasics)
|
|
||||||
suite.clientCtx = client.Context{}.WithTxConfig(suite.config.TxConfig)
|
|
||||||
|
|
||||||
sdk.GetConfig().SetBech32PrefixForAccount("ethm", "")
|
|
||||||
eip712.SetEncodingConfig(suite.config)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Helper to create random test addresses for messages
|
|
||||||
func (suite *EIP712TestSuite) createTestAddress() sdk.AccAddress {
|
|
||||||
privkey, _ := ethsecp256k1.GenerateKey()
|
|
||||||
key, err := privkey.ToECDSA()
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
addr := crypto.PubkeyToAddress(key.PublicKey)
|
|
||||||
|
|
||||||
return addr.Bytes()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Helper to create random keypair for signing + verification
|
|
||||||
func (suite *EIP712TestSuite) createTestKeyPair() (*ethsecp256k1.PrivKey, *ethsecp256k1.PubKey) {
|
|
||||||
privKey, err := ethsecp256k1.GenerateKey()
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
pubKey := ðsecp256k1.PubKey{
|
|
||||||
Key: privKey.PubKey().Bytes(),
|
|
||||||
}
|
|
||||||
suite.Require().Implements((*cryptotypes.PubKey)(nil), pubKey)
|
|
||||||
|
|
||||||
return privKey, pubKey
|
|
||||||
}
|
|
||||||
|
|
||||||
// Helper to create instance of sdk.Coins[] with single coin
|
|
||||||
func (suite *EIP712TestSuite) makeCoins(denom string, amount math.Int) sdk.Coins {
|
|
||||||
return sdk.NewCoins(
|
|
||||||
sdk.NewCoin(
|
|
||||||
denom,
|
|
||||||
amount,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (suite *EIP712TestSuite) TestEIP712SignatureVerification() {
|
|
||||||
suite.SetupTest()
|
|
||||||
|
|
||||||
signModes := []signing.SignMode{
|
|
||||||
signing.SignMode_SIGN_MODE_DIRECT,
|
|
||||||
signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON,
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fixed test address
|
|
||||||
testAddress := suite.createTestAddress()
|
|
||||||
|
|
||||||
testCases := []struct {
|
|
||||||
title string
|
|
||||||
chainId string
|
|
||||||
fee txtypes.Fee
|
|
||||||
memo string
|
|
||||||
msgs []sdk.Msg
|
|
||||||
accountNumber uint64
|
|
||||||
sequence uint64
|
|
||||||
timeoutHeight uint64
|
|
||||||
expectSuccess bool
|
|
||||||
}{
|
|
||||||
{
|
|
||||||
title: "Succeeds - Standard MsgSend",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
banktypes.NewMsgSend(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
suite.createTestAddress(),
|
|
||||||
suite.makeCoins("photon", math.NewInt(1)),
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 8,
|
|
||||||
sequence: 5,
|
|
||||||
expectSuccess: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Succeeds - Standard MsgVote",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
govtypes.NewMsgVote(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
5,
|
|
||||||
govtypes.OptionNo,
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
expectSuccess: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Succeeds - Standard MsgDelegate",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
stakingtypes.NewMsgDelegate(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
sdk.ValAddress(suite.createTestAddress()),
|
|
||||||
suite.makeCoins("photon", math.NewInt(1))[0],
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
expectSuccess: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Succeeds - Standard MsgWithdrawDelegationReward",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
distributiontypes.NewMsgWithdrawDelegatorReward(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
sdk.ValAddress(suite.createTestAddress()),
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
expectSuccess: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Succeeds - Two Single-Signer MsgDelegate",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
stakingtypes.NewMsgDelegate(
|
|
||||||
testAddress,
|
|
||||||
sdk.ValAddress(suite.createTestAddress()),
|
|
||||||
suite.makeCoins("photon", math.NewInt(1))[0],
|
|
||||||
),
|
|
||||||
stakingtypes.NewMsgDelegate(
|
|
||||||
testAddress,
|
|
||||||
sdk.ValAddress(suite.createTestAddress()),
|
|
||||||
suite.makeCoins("photon", math.NewInt(5))[0],
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
expectSuccess: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Fails - Two MsgVotes with Different Signers",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
govtypes.NewMsgVote(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
5,
|
|
||||||
govtypes.OptionNo,
|
|
||||||
),
|
|
||||||
govtypes.NewMsgVote(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
25,
|
|
||||||
govtypes.OptionAbstain,
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
expectSuccess: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Fails - Empty transaction",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
expectSuccess: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Fails - Single-Signer MsgSend + MsgVote",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
govtypes.NewMsgVote(
|
|
||||||
testAddress,
|
|
||||||
5,
|
|
||||||
govtypes.OptionNo,
|
|
||||||
),
|
|
||||||
banktypes.NewMsgSend(
|
|
||||||
testAddress,
|
|
||||||
suite.createTestAddress(),
|
|
||||||
suite.makeCoins("photon", math.NewInt(50)),
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
expectSuccess: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Fails - Invalid ChainID",
|
|
||||||
chainId: "invalidchainid",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
govtypes.NewMsgVote(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
5,
|
|
||||||
govtypes.OptionNo,
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
expectSuccess: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Fails - Includes TimeoutHeight",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
govtypes.NewMsgVote(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
5,
|
|
||||||
govtypes.OptionNo,
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
timeoutHeight: 1000,
|
|
||||||
expectSuccess: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Fails - Single Message / Multi-Signer",
|
|
||||||
fee: txtypes.Fee{
|
|
||||||
Amount: suite.makeCoins("aphoton", math.NewInt(2000)),
|
|
||||||
GasLimit: 20000,
|
|
||||||
},
|
|
||||||
memo: "",
|
|
||||||
msgs: []sdk.Msg{
|
|
||||||
banktypes.NewMsgMultiSend(
|
|
||||||
[]banktypes.Input{
|
|
||||||
banktypes.NewInput(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
suite.makeCoins("photon", math.NewInt(50)),
|
|
||||||
),
|
|
||||||
banktypes.NewInput(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
suite.makeCoins("photon", math.NewInt(50)),
|
|
||||||
),
|
|
||||||
},
|
|
||||||
[]banktypes.Output{
|
|
||||||
banktypes.NewOutput(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
suite.makeCoins("photon", math.NewInt(50)),
|
|
||||||
),
|
|
||||||
banktypes.NewOutput(
|
|
||||||
suite.createTestAddress(),
|
|
||||||
suite.makeCoins("photon", math.NewInt(50)),
|
|
||||||
),
|
|
||||||
},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
accountNumber: 25,
|
|
||||||
sequence: 78,
|
|
||||||
expectSuccess: false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, tc := range testCases {
|
|
||||||
for _, signMode := range signModes {
|
|
||||||
suite.Run(tc.title, func() {
|
|
||||||
privKey, pubKey := suite.createTestKeyPair()
|
|
||||||
|
|
||||||
// Init tx builder
|
|
||||||
txBuilder := suite.clientCtx.TxConfig.NewTxBuilder()
|
|
||||||
|
|
||||||
// Set gas and fees
|
|
||||||
txBuilder.SetGasLimit(tc.fee.GasLimit)
|
|
||||||
txBuilder.SetFeeAmount(tc.fee.Amount)
|
|
||||||
|
|
||||||
// Set messages
|
|
||||||
err := txBuilder.SetMsgs(tc.msgs...)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
// Set memo
|
|
||||||
txBuilder.SetMemo(tc.memo)
|
|
||||||
|
|
||||||
// Prepare signature field
|
|
||||||
txSigData := signing.SingleSignatureData{
|
|
||||||
SignMode: signMode,
|
|
||||||
Signature: nil,
|
|
||||||
}
|
|
||||||
txSig := signing.SignatureV2{
|
|
||||||
PubKey: pubKey,
|
|
||||||
Data: &txSigData,
|
|
||||||
Sequence: tc.sequence,
|
|
||||||
}
|
|
||||||
|
|
||||||
err = txBuilder.SetSignatures([]signing.SignatureV2{txSig}...)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
chainId := "ethermint_9000-1"
|
|
||||||
if tc.chainId != "" {
|
|
||||||
chainId = tc.chainId
|
|
||||||
}
|
|
||||||
|
|
||||||
if tc.timeoutHeight != 0 {
|
|
||||||
txBuilder.SetTimeoutHeight(tc.timeoutHeight)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Declare signerData
|
|
||||||
signerData := authsigning.SignerData{
|
|
||||||
ChainID: chainId,
|
|
||||||
AccountNumber: tc.accountNumber,
|
|
||||||
Sequence: tc.sequence,
|
|
||||||
PubKey: pubKey,
|
|
||||||
Address: sdk.MustBech32ifyAddressBytes("ethm", pubKey.Bytes()),
|
|
||||||
}
|
|
||||||
|
|
||||||
bz, err := suite.clientCtx.TxConfig.SignModeHandler().GetSignBytes(
|
|
||||||
signMode,
|
|
||||||
signerData,
|
|
||||||
txBuilder.GetTx(),
|
|
||||||
)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
suite.verifyEIP712SignatureVerification(tc.expectSuccess, *privKey, *pubKey, bz)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Verify that the payload passes signature verification if signed as its EIP-712 representation.
|
|
||||||
func (suite *EIP712TestSuite) verifyEIP712SignatureVerification(expectedSuccess bool, privKey ethsecp256k1.PrivKey, pubKey ethsecp256k1.PubKey, signBytes []byte) {
|
|
||||||
// Convert to EIP712 bytes and sign
|
|
||||||
eip712Bytes, err := eip712.GetEIP712BytesForMsg(signBytes)
|
|
||||||
if !expectedSuccess {
|
|
||||||
// Expect failure generating EIP-712 bytes
|
|
||||||
suite.Require().Error(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
sig, err := privKey.Sign(eip712Bytes)
|
|
||||||
suite.Require().NoError(err)
|
|
||||||
|
|
||||||
// Verify against original payload bytes. This should pass, even though it is not
|
|
||||||
// the original message that was signed.
|
|
||||||
res := pubKey.VerifySignature(signBytes, sig)
|
|
||||||
suite.Require().True(res)
|
|
||||||
|
|
||||||
// Verify against the signed EIP-712 bytes. This should pass, since it is the message signed.
|
|
||||||
res = pubKey.VerifySignature(eip712Bytes, sig)
|
|
||||||
suite.Require().True(res)
|
|
||||||
|
|
||||||
// Verify against random bytes to ensure it does not pass unexpectedly (sanity check).
|
|
||||||
randBytes := make([]byte, len(signBytes))
|
|
||||||
copy(randBytes, signBytes)
|
|
||||||
// Change the first element of signBytes to a different value
|
|
||||||
randBytes[0] = (signBytes[0] + 10) % 128
|
|
||||||
res = pubKey.VerifySignature(randBytes, sig)
|
|
||||||
suite.Require().False(res)
|
|
||||||
}
|
|
@ -1,299 +0,0 @@
|
|||||||
package eip712
|
|
||||||
|
|
||||||
import (
|
|
||||||
"encoding/json"
|
|
||||||
"errors"
|
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp/params"
|
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
||||||
txTypes "github.com/cosmos/cosmos-sdk/types/tx"
|
|
||||||
|
|
||||||
ethermint "github.com/cerc-io/laconicd/types"
|
|
||||||
apitypes "github.com/ethereum/go-ethereum/signer/core/apitypes"
|
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
|
||||||
)
|
|
||||||
|
|
||||||
type aminoMessage struct {
|
|
||||||
Type string `json:"type"`
|
|
||||||
Value interface{} `json:"value"`
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
protoCodec codec.ProtoCodecMarshaler
|
|
||||||
aminoCodec *codec.LegacyAmino
|
|
||||||
)
|
|
||||||
|
|
||||||
// SetEncodingConfig set the encoding config to the singleton codecs (Amino and Protobuf).
|
|
||||||
// The process of unmarshaling SignDoc bytes into a SignDoc object requires having a codec
|
|
||||||
// populated with all relevant message types. As a result, we must call this method on app
|
|
||||||
// initialization with the app's encoding config.
|
|
||||||
func SetEncodingConfig(cfg params.EncodingConfig) {
|
|
||||||
aminoCodec = cfg.Amino
|
|
||||||
protoCodec = codec.NewProtoCodec(cfg.InterfaceRegistry)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get the EIP-712 object bytes for the given SignDoc bytes by first decoding the bytes into
|
|
||||||
// an EIP-712 object, then hashing the EIP-712 object to create the bytes to be signed.
|
|
||||||
// See https://eips.ethereum.org/EIPS/eip-712 for more.
|
|
||||||
func GetEIP712BytesForMsg(signDocBytes []byte) ([]byte, error) {
|
|
||||||
typedData, err := GetEIP712TypedDataForMsg(signDocBytes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
_, rawData, err := apitypes.TypedDataAndHash(typedData)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("could not get EIP-712 object bytes: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return []byte(rawData), nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetEIP712TypedDataForMsg returns the EIP-712 TypedData representation for either
|
|
||||||
// Amino or Protobuf encoded signature doc bytes.
|
|
||||||
func GetEIP712TypedDataForMsg(signDocBytes []byte) (apitypes.TypedData, error) {
|
|
||||||
// Attempt to decode as both Amino and Protobuf since the message format is unknown.
|
|
||||||
// If either decode works, we can move forward with the corresponding typed data.
|
|
||||||
typedDataAmino, errAmino := decodeAminoSignDoc(signDocBytes)
|
|
||||||
if errAmino == nil && isValidEIP712Payload(typedDataAmino) {
|
|
||||||
return typedDataAmino, nil
|
|
||||||
}
|
|
||||||
typedDataProtobuf, errProtobuf := decodeProtobufSignDoc(signDocBytes)
|
|
||||||
if errProtobuf == nil && isValidEIP712Payload(typedDataProtobuf) {
|
|
||||||
return typedDataProtobuf, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return apitypes.TypedData{}, fmt.Errorf("could not decode sign doc as either Amino or Protobuf.\n amino: %v\n protobuf: %v", errAmino, errProtobuf)
|
|
||||||
}
|
|
||||||
|
|
||||||
// isValidEIP712Payload ensures that the given TypedData does not contain empty fields from
|
|
||||||
// an improper initialization.
|
|
||||||
func isValidEIP712Payload(typedData apitypes.TypedData) bool {
|
|
||||||
return len(typedData.Message) != 0 && len(typedData.Types) != 0 && typedData.PrimaryType != "" && typedData.Domain != apitypes.TypedDataDomain{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// decodeAminoSignDoc attempts to decode the provided sign doc (bytes) as an Amino payload
|
|
||||||
// and returns a signable EIP-712 TypedData object.
|
|
||||||
func decodeAminoSignDoc(signDocBytes []byte) (apitypes.TypedData, error) {
|
|
||||||
// Ensure codecs have been initialized
|
|
||||||
if err := validateCodecInit(); err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
var aminoDoc legacytx.StdSignDoc
|
|
||||||
if err := aminoCodec.UnmarshalJSON(signDocBytes, &aminoDoc); err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
var fees legacytx.StdFee
|
|
||||||
if err := aminoCodec.UnmarshalJSON(aminoDoc.Fee, &fees); err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate payload messages
|
|
||||||
msgs := make([]sdk.Msg, len(aminoDoc.Msgs))
|
|
||||||
for i, jsonMsg := range aminoDoc.Msgs {
|
|
||||||
var m sdk.Msg
|
|
||||||
if err := aminoCodec.UnmarshalJSON(jsonMsg, &m); err != nil {
|
|
||||||
return apitypes.TypedData{}, fmt.Errorf("failed to unmarshal sign doc message: %w", err)
|
|
||||||
}
|
|
||||||
msgs[i] = m
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := validatePayloadMessages(msgs); err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use first message for fee payer and type inference
|
|
||||||
msg := msgs[0]
|
|
||||||
|
|
||||||
// By convention, the fee payer is the first address in the list of signers.
|
|
||||||
feePayer := msg.GetSigners()[0]
|
|
||||||
feeDelegation := &FeeDelegationOptions{
|
|
||||||
FeePayer: feePayer,
|
|
||||||
}
|
|
||||||
|
|
||||||
chainID, err := ethermint.ParseChainID(aminoDoc.ChainID)
|
|
||||||
if err != nil {
|
|
||||||
return apitypes.TypedData{}, errors.New("invalid chain ID passed as argument")
|
|
||||||
}
|
|
||||||
|
|
||||||
typedData, err := WrapTxToTypedData(
|
|
||||||
protoCodec,
|
|
||||||
chainID.Uint64(),
|
|
||||||
msg,
|
|
||||||
signDocBytes,
|
|
||||||
feeDelegation,
|
|
||||||
)
|
|
||||||
if err != nil {
|
|
||||||
return apitypes.TypedData{}, fmt.Errorf("could not convert to EIP712 representation: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return typedData, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// decodeProtobufSignDoc attempts to decode the provided sign doc (bytes) as a Protobuf payload
|
|
||||||
// and returns a signable EIP-712 TypedData object.
|
|
||||||
func decodeProtobufSignDoc(signDocBytes []byte) (apitypes.TypedData, error) {
|
|
||||||
// Ensure codecs have been initialized
|
|
||||||
if err := validateCodecInit(); err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
signDoc := &txTypes.SignDoc{}
|
|
||||||
if err := signDoc.Unmarshal(signDocBytes); err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
authInfo := &txTypes.AuthInfo{}
|
|
||||||
if err := authInfo.Unmarshal(signDoc.AuthInfoBytes); err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
body := &txTypes.TxBody{}
|
|
||||||
if err := body.Unmarshal(signDoc.BodyBytes); err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Until support for these fields is added, throw an error at their presence
|
|
||||||
if body.TimeoutHeight != 0 || len(body.ExtensionOptions) != 0 || len(body.NonCriticalExtensionOptions) != 0 {
|
|
||||||
return apitypes.TypedData{}, errors.New("body contains unsupported fields: TimeoutHeight, ExtensionOptions, or NonCriticalExtensionOptions")
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(authInfo.SignerInfos) != 1 {
|
|
||||||
return apitypes.TypedData{}, fmt.Errorf("invalid number of signer infos provided, expected 1 got %v", len(authInfo.SignerInfos))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate payload messages
|
|
||||||
msgs := make([]sdk.Msg, len(body.Messages))
|
|
||||||
for i, protoMsg := range body.Messages {
|
|
||||||
var m sdk.Msg
|
|
||||||
if err := protoCodec.UnpackAny(protoMsg, &m); err != nil {
|
|
||||||
return apitypes.TypedData{}, fmt.Errorf("could not unpack message object with error %w", err)
|
|
||||||
}
|
|
||||||
msgs[i] = m
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := validatePayloadMessages(msgs); err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use first message for fee payer and type inference
|
|
||||||
msg := msgs[0]
|
|
||||||
|
|
||||||
signerInfo := authInfo.SignerInfos[0]
|
|
||||||
|
|
||||||
chainID, err := ethermint.ParseChainID(signDoc.ChainId)
|
|
||||||
if err != nil {
|
|
||||||
return apitypes.TypedData{}, fmt.Errorf("invalid chain ID passed as argument: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
stdFee := &legacytx.StdFee{
|
|
||||||
Amount: authInfo.Fee.Amount,
|
|
||||||
Gas: authInfo.Fee.GasLimit,
|
|
||||||
}
|
|
||||||
|
|
||||||
feePayer := msg.GetSigners()[0]
|
|
||||||
feeDelegation := &FeeDelegationOptions{
|
|
||||||
FeePayer: feePayer,
|
|
||||||
}
|
|
||||||
|
|
||||||
tip := authInfo.Tip
|
|
||||||
|
|
||||||
// WrapTxToTypedData expects the payload as an Amino Sign Doc
|
|
||||||
signBytes := legacytx.StdSignBytes(
|
|
||||||
signDoc.ChainId,
|
|
||||||
signDoc.AccountNumber,
|
|
||||||
signerInfo.Sequence,
|
|
||||||
body.TimeoutHeight,
|
|
||||||
*stdFee,
|
|
||||||
msgs,
|
|
||||||
body.Memo,
|
|
||||||
tip,
|
|
||||||
)
|
|
||||||
|
|
||||||
typedData, err := WrapTxToTypedData(
|
|
||||||
protoCodec,
|
|
||||||
chainID.Uint64(),
|
|
||||||
msg,
|
|
||||||
signBytes,
|
|
||||||
feeDelegation,
|
|
||||||
)
|
|
||||||
if err != nil {
|
|
||||||
return apitypes.TypedData{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return typedData, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// validateCodecInit ensures that both Amino and Protobuf encoding codecs have been set on app init,
|
|
||||||
// so the module does not panic if either codec is not found.
|
|
||||||
func validateCodecInit() error {
|
|
||||||
if aminoCodec == nil || protoCodec == nil {
|
|
||||||
return errors.New("missing codec: codecs have not been properly initialized using SetEncodingConfig")
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// validatePayloadMessages ensures that the transaction messages can be represented in an EIP-712
|
|
||||||
// encoding by checking that messages exist, are of the same type, and share a single signer.
|
|
||||||
func validatePayloadMessages(msgs []sdk.Msg) error {
|
|
||||||
if len(msgs) == 0 {
|
|
||||||
return errors.New("unable to build EIP-712 payload: transaction does contain any messages")
|
|
||||||
}
|
|
||||||
|
|
||||||
var msgType string
|
|
||||||
var msgSigner sdk.AccAddress
|
|
||||||
|
|
||||||
for i, m := range msgs {
|
|
||||||
t, err := getMsgType(m)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(m.GetSigners()) != 1 {
|
|
||||||
return errors.New("unable to build EIP-712 payload: expect exactly 1 signer")
|
|
||||||
}
|
|
||||||
|
|
||||||
if i == 0 {
|
|
||||||
msgType = t
|
|
||||||
msgSigner = m.GetSigners()[0]
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if t != msgType {
|
|
||||||
return errors.New("unable to build EIP-712 payload: different types of messages detected")
|
|
||||||
}
|
|
||||||
|
|
||||||
if !msgSigner.Equals(m.GetSigners()[0]) {
|
|
||||||
return errors.New("unable to build EIP-712 payload: multiple signers detected")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// getMsgType returns the message type prefix for the given Cosmos SDK Msg
|
|
||||||
func getMsgType(msg sdk.Msg) (string, error) {
|
|
||||||
jsonBytes, err := aminoCodec.MarshalJSON(msg)
|
|
||||||
if err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
|
|
||||||
var jsonMsg aminoMessage
|
|
||||||
if err := json.Unmarshal(jsonBytes, &jsonMsg); err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Verify Type was successfully filled in
|
|
||||||
if jsonMsg.Type == "" {
|
|
||||||
return "", errors.New("could not decode message: type is missing")
|
|
||||||
}
|
|
||||||
|
|
||||||
return jsonMsg.Type, nil
|
|
||||||
}
|
|
125
go.mod
125
go.mod
@ -1,22 +1,19 @@
|
|||||||
module github.com/cerc-io/laconicd
|
module github.com/cerc-io/laconicd
|
||||||
|
|
||||||
go 1.19
|
go 1.18
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cosmossdk.io/errors v1.0.0-beta.7
|
cosmossdk.io/math v1.0.0-beta.3
|
||||||
cosmossdk.io/math v1.0.0-beta.4
|
github.com/99designs/gqlgen v0.17.20
|
||||||
github.com/99designs/gqlgen v0.17.22
|
|
||||||
github.com/armon/go-metrics v0.4.1
|
github.com/armon/go-metrics v0.4.1
|
||||||
github.com/btcsuite/btcd v0.22.1
|
github.com/btcsuite/btcd v0.22.1
|
||||||
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
|
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
|
||||||
github.com/cosmos/cosmos-proto v1.0.0-beta.1
|
github.com/cosmos/cosmos-sdk v0.46.2-0.20220920160224-9454b97ccb77
|
||||||
github.com/cosmos/cosmos-sdk v0.46.7
|
|
||||||
github.com/cosmos/go-bip39 v1.0.0
|
github.com/cosmos/go-bip39 v1.0.0
|
||||||
github.com/cosmos/gogoproto v1.4.3
|
github.com/cosmos/ibc-go/v5 v5.0.0
|
||||||
github.com/cosmos/ibc-go/v5 v5.2.0
|
|
||||||
github.com/davecgh/go-spew v1.1.1
|
github.com/davecgh/go-spew v1.1.1
|
||||||
github.com/deckarep/golang-set v1.8.0
|
github.com/deckarep/golang-set v1.8.0
|
||||||
github.com/ethereum/go-ethereum v1.10.26
|
github.com/ethereum/go-ethereum v1.10.19
|
||||||
github.com/gibson042/canonicaljson-go v1.0.3
|
github.com/gibson042/canonicaljson-go v1.0.3
|
||||||
github.com/go-chi/chi/v5 v5.0.7
|
github.com/go-chi/chi/v5 v5.0.7
|
||||||
github.com/gogo/protobuf v1.3.3
|
github.com/gogo/protobuf v1.3.3
|
||||||
@ -27,37 +24,40 @@ require (
|
|||||||
github.com/holiman/uint256 v1.2.1
|
github.com/holiman/uint256 v1.2.1
|
||||||
github.com/improbable-eng/grpc-web v0.15.0
|
github.com/improbable-eng/grpc-web v0.15.0
|
||||||
github.com/ipfs/go-cid v0.3.2
|
github.com/ipfs/go-cid v0.3.2
|
||||||
github.com/ipld/go-ipld-prime v0.19.0
|
github.com/ipfs/go-ipld-cbor v0.0.6
|
||||||
|
github.com/ipld/go-ipld-prime v0.18.0
|
||||||
github.com/miguelmota/go-ethereum-hdwallet v0.1.1
|
github.com/miguelmota/go-ethereum-hdwallet v0.1.1
|
||||||
github.com/onsi/ginkgo/v2 v2.5.1
|
github.com/multiformats/go-multihash v0.2.1
|
||||||
github.com/onsi/gomega v1.24.1
|
github.com/onsi/ginkgo/v2 v2.2.0
|
||||||
|
github.com/onsi/gomega v1.20.2
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
github.com/rakyll/statik v0.1.7
|
github.com/rakyll/statik v0.1.7
|
||||||
|
github.com/regen-network/cosmos-proto v0.3.1
|
||||||
github.com/rs/cors v1.8.2
|
github.com/rs/cors v1.8.2
|
||||||
github.com/spf13/cast v1.5.0
|
github.com/spf13/cast v1.5.0
|
||||||
github.com/spf13/cobra v1.6.1
|
github.com/spf13/cobra v1.5.0
|
||||||
github.com/spf13/viper v1.14.0
|
github.com/spf13/viper v1.13.0
|
||||||
github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969
|
github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969
|
||||||
github.com/stretchr/testify v1.8.1
|
github.com/stretchr/testify v1.8.0
|
||||||
github.com/tendermint/tendermint v0.34.24
|
github.com/tendermint/tendermint v0.34.21
|
||||||
github.com/tendermint/tm-db v0.6.7
|
github.com/tendermint/tm-db v0.6.7
|
||||||
github.com/tyler-smith/go-bip39 v1.1.0
|
github.com/tyler-smith/go-bip39 v1.1.0
|
||||||
github.com/vektah/gqlparser/v2 v2.5.1
|
github.com/vektah/gqlparser/v2 v2.5.1
|
||||||
golang.org/x/net v0.7.0
|
golang.org/x/net v0.0.0-20220909164309-bea034e7d591
|
||||||
golang.org/x/text v0.7.0
|
golang.org/x/text v0.3.7
|
||||||
google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c
|
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a
|
||||||
google.golang.org/grpc v1.51.0
|
google.golang.org/grpc v1.50.0
|
||||||
google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8
|
google.golang.org/protobuf v1.28.1
|
||||||
gopkg.in/yaml.v3 v3.0.1
|
gopkg.in/yaml.v3 v3.0.1
|
||||||
sigs.k8s.io/yaml v1.3.0
|
sigs.k8s.io/yaml v1.3.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go v0.105.0 // indirect
|
cloud.google.com/go v0.102.1 // indirect
|
||||||
cloud.google.com/go/compute v1.13.0 // indirect
|
cloud.google.com/go/compute v1.7.0 // indirect
|
||||||
cloud.google.com/go/compute/metadata v0.2.1 // indirect
|
cloud.google.com/go/iam v0.4.0 // indirect
|
||||||
cloud.google.com/go/iam v0.8.0 // indirect
|
cloud.google.com/go/storage v1.22.1 // indirect
|
||||||
cloud.google.com/go/storage v1.27.0 // indirect
|
cosmossdk.io/errors v1.0.0-beta.7 // indirect
|
||||||
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
|
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
|
||||||
github.com/99designs/keyring v1.2.1 // indirect
|
github.com/99designs/keyring v1.2.1 // indirect
|
||||||
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
|
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
|
||||||
@ -65,11 +65,11 @@ require (
|
|||||||
github.com/VictoriaMetrics/fastcache v1.6.0 // indirect
|
github.com/VictoriaMetrics/fastcache v1.6.0 // indirect
|
||||||
github.com/Workiva/go-datastructures v1.0.53 // indirect
|
github.com/Workiva/go-datastructures v1.0.53 // indirect
|
||||||
github.com/agnivade/levenshtein v1.1.1 // indirect
|
github.com/agnivade/levenshtein v1.1.1 // indirect
|
||||||
github.com/aws/aws-sdk-go v1.44.122 // indirect
|
github.com/aws/aws-sdk-go v1.40.45 // indirect
|
||||||
github.com/beorn7/perks v1.0.1 // indirect
|
github.com/beorn7/perks v1.0.1 // indirect
|
||||||
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
|
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
|
||||||
github.com/bgentry/speakeasy v0.1.0 // indirect
|
github.com/bgentry/speakeasy v0.1.0 // indirect
|
||||||
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
|
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
|
||||||
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
|
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
|
||||||
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
|
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
|
||||||
github.com/cespare/xxhash v1.1.0 // indirect
|
github.com/cespare/xxhash v1.1.0 // indirect
|
||||||
@ -77,11 +77,13 @@ require (
|
|||||||
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
|
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
|
||||||
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
|
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
|
||||||
github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect
|
github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect
|
||||||
github.com/confio/ics23/go v0.9.0 // indirect
|
github.com/confio/ics23/go v0.7.0 // indirect
|
||||||
github.com/cosmos/btcutil v1.0.5 // indirect
|
github.com/cosmos/btcutil v1.0.4 // indirect
|
||||||
|
github.com/cosmos/cosmos-proto v1.0.0-alpha7 // indirect
|
||||||
github.com/cosmos/gorocksdb v1.2.0 // indirect
|
github.com/cosmos/gorocksdb v1.2.0 // indirect
|
||||||
github.com/cosmos/iavl v0.19.4 // indirect
|
github.com/cosmos/iavl v0.19.2-0.20220916140702-9b6be3095313 // indirect
|
||||||
github.com/cosmos/ledger-cosmos-go v0.12.1 // indirect
|
github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect
|
||||||
|
github.com/cosmos/ledger-go v0.9.2 // indirect
|
||||||
github.com/creachadair/taskgroup v0.3.2 // indirect
|
github.com/creachadair/taskgroup v0.3.2 // indirect
|
||||||
github.com/danieljoos/wincred v1.1.2 // indirect
|
github.com/danieljoos/wincred v1.1.2 // indirect
|
||||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
|
||||||
@ -95,12 +97,11 @@ require (
|
|||||||
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
|
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
|
||||||
github.com/edsrzf/mmap-go v1.0.0 // indirect
|
github.com/edsrzf/mmap-go v1.0.0 // indirect
|
||||||
github.com/felixge/httpsnoop v1.0.1 // indirect
|
github.com/felixge/httpsnoop v1.0.1 // indirect
|
||||||
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
github.com/fsnotify/fsnotify v1.5.4 // indirect
|
||||||
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
|
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
|
||||||
github.com/go-kit/kit v0.12.0 // indirect
|
github.com/go-kit/kit v0.12.0 // indirect
|
||||||
github.com/go-kit/log v0.2.1 // indirect
|
github.com/go-kit/log v0.2.1 // indirect
|
||||||
github.com/go-logfmt/logfmt v0.5.1 // indirect
|
github.com/go-logfmt/logfmt v0.5.1 // indirect
|
||||||
github.com/go-logr/logr v1.2.3 // indirect
|
|
||||||
github.com/go-ole/go-ole v1.2.6 // indirect
|
github.com/go-ole/go-ole v1.2.6 // indirect
|
||||||
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
|
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
|
||||||
github.com/go-stack/stack v1.8.0 // indirect
|
github.com/go-stack/stack v1.8.0 // indirect
|
||||||
@ -110,18 +111,19 @@ require (
|
|||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||||
github.com/golang/snappy v0.0.4 // indirect
|
github.com/golang/snappy v0.0.4 // indirect
|
||||||
github.com/google/btree v1.0.1 // indirect
|
github.com/google/btree v1.0.1 // indirect
|
||||||
github.com/google/go-cmp v0.5.9 // indirect
|
github.com/google/go-cmp v0.5.8 // indirect
|
||||||
github.com/google/orderedcode v0.0.1 // indirect
|
github.com/google/orderedcode v0.0.1 // indirect
|
||||||
github.com/google/uuid v1.3.0 // indirect
|
github.com/google/uuid v1.3.0 // indirect
|
||||||
github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect
|
github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect
|
||||||
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
|
github.com/googleapis/gax-go/v2 v2.4.0 // indirect
|
||||||
|
github.com/googleapis/go-type-adapters v1.0.0 // indirect
|
||||||
github.com/gorilla/handlers v1.5.1 // indirect
|
github.com/gorilla/handlers v1.5.1 // indirect
|
||||||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
||||||
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
|
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
|
||||||
github.com/gtank/merlin v0.1.1 // indirect
|
github.com/gtank/merlin v0.1.1 // indirect
|
||||||
github.com/gtank/ristretto255 v0.1.2 // indirect
|
github.com/gtank/ristretto255 v0.1.2 // indirect
|
||||||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
||||||
github.com/hashicorp/go-getter v1.7.0 // indirect
|
github.com/hashicorp/go-getter v1.6.1 // indirect
|
||||||
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
||||||
github.com/hashicorp/go-safetemp v1.0.0 // indirect
|
github.com/hashicorp/go-safetemp v1.0.0 // indirect
|
||||||
github.com/hashicorp/go-version v1.6.0 // indirect
|
github.com/hashicorp/go-version v1.6.0 // indirect
|
||||||
@ -130,13 +132,15 @@ require (
|
|||||||
github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect
|
github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect
|
||||||
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
|
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
|
||||||
github.com/huin/goupnp v1.0.3 // indirect
|
github.com/huin/goupnp v1.0.3 // indirect
|
||||||
github.com/inconshreveable/mousetrap v1.0.1 // indirect
|
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
||||||
|
github.com/ipfs/go-block-format v0.0.2 // indirect
|
||||||
|
github.com/ipfs/go-ipfs-util v0.0.1 // indirect
|
||||||
|
github.com/ipfs/go-ipld-format v0.0.1 // indirect
|
||||||
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
|
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
|
||||||
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
||||||
github.com/jmhodges/levigo v1.0.0 // indirect
|
github.com/jmhodges/levigo v1.0.0 // indirect
|
||||||
github.com/kevinburke/go-bindata v3.24.0+incompatible // indirect
|
|
||||||
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d // indirect
|
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d // indirect
|
||||||
github.com/klauspost/compress v1.15.11 // indirect
|
github.com/klauspost/compress v1.15.9 // indirect
|
||||||
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
|
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
|
||||||
github.com/lib/pq v1.10.6 // indirect
|
github.com/lib/pq v1.10.6 // indirect
|
||||||
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
|
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
|
||||||
@ -146,18 +150,17 @@ require (
|
|||||||
github.com/mattn/go-isatty v0.0.16 // indirect
|
github.com/mattn/go-isatty v0.0.16 // indirect
|
||||||
github.com/mattn/go-runewidth v0.0.9 // indirect
|
github.com/mattn/go-runewidth v0.0.9 // indirect
|
||||||
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
|
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
|
||||||
github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect
|
github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643 // indirect
|
||||||
github.com/minio/highwayhash v1.0.2 // indirect
|
github.com/minio/highwayhash v1.0.2 // indirect
|
||||||
github.com/minio/sha256-simd v1.0.0 // indirect
|
github.com/minio/sha256-simd v1.0.0 // indirect
|
||||||
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
||||||
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
|
github.com/mitchellh/go-testing-interface v1.0.0 // indirect
|
||||||
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
||||||
github.com/mr-tron/base58 v1.2.0 // indirect
|
github.com/mr-tron/base58 v1.2.0 // indirect
|
||||||
github.com/mtibben/percent v0.2.1 // indirect
|
github.com/mtibben/percent v0.2.1 // indirect
|
||||||
github.com/multiformats/go-base32 v0.0.3 // indirect
|
github.com/multiformats/go-base32 v0.0.3 // indirect
|
||||||
github.com/multiformats/go-base36 v0.1.0 // indirect
|
github.com/multiformats/go-base36 v0.1.0 // indirect
|
||||||
github.com/multiformats/go-multibase v0.0.3 // indirect
|
github.com/multiformats/go-multibase v0.0.3 // indirect
|
||||||
github.com/multiformats/go-multihash v0.2.1 // indirect
|
|
||||||
github.com/multiformats/go-varint v0.0.6 // indirect
|
github.com/multiformats/go-varint v0.0.6 // indirect
|
||||||
github.com/olekukonko/tablewriter v0.0.5 // indirect
|
github.com/olekukonko/tablewriter v0.0.5 // indirect
|
||||||
github.com/pelletier/go-toml v1.9.5 // indirect
|
github.com/pelletier/go-toml v1.9.5 // indirect
|
||||||
@ -168,19 +171,18 @@ require (
|
|||||||
github.com/prometheus/client_golang v1.12.2 // indirect
|
github.com/prometheus/client_golang v1.12.2 // indirect
|
||||||
github.com/prometheus/client_model v0.2.0 // indirect
|
github.com/prometheus/client_model v0.2.0 // indirect
|
||||||
github.com/prometheus/common v0.34.0 // indirect
|
github.com/prometheus/common v0.34.0 // indirect
|
||||||
github.com/prometheus/procfs v0.8.0 // indirect
|
github.com/prometheus/procfs v0.7.3 // indirect
|
||||||
github.com/prometheus/tsdb v0.7.1 // indirect
|
github.com/prometheus/tsdb v0.7.1 // indirect
|
||||||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
|
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
|
||||||
github.com/regen-network/cosmos-proto v0.3.1 // indirect
|
|
||||||
github.com/rjeczalik/notify v0.9.1 // indirect
|
github.com/rjeczalik/notify v0.9.1 // indirect
|
||||||
github.com/rs/zerolog v1.27.0 // indirect
|
github.com/rs/zerolog v1.27.0 // indirect
|
||||||
github.com/sasha-s/go-deadlock v0.3.1 // indirect
|
github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa // indirect
|
||||||
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
|
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
|
||||||
github.com/spaolacci/murmur3 v1.1.0 // indirect
|
github.com/spaolacci/murmur3 v1.1.0 // indirect
|
||||||
github.com/spf13/afero v1.9.2 // indirect
|
github.com/spf13/afero v1.9.2 // indirect
|
||||||
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
||||||
github.com/spf13/pflag v1.0.5 // indirect
|
github.com/spf13/pflag v1.0.5 // indirect
|
||||||
github.com/stretchr/objx v0.5.0 // indirect
|
github.com/stretchr/objx v0.4.0 // indirect
|
||||||
github.com/subosito/gotenv v1.4.1 // indirect
|
github.com/subosito/gotenv v1.4.1 // indirect
|
||||||
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
|
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
|
||||||
github.com/tendermint/btcd v0.1.1 // indirect
|
github.com/tendermint/btcd v0.1.1 // indirect
|
||||||
@ -188,19 +190,19 @@ require (
|
|||||||
github.com/tendermint/go-amino v0.16.0 // indirect
|
github.com/tendermint/go-amino v0.16.0 // indirect
|
||||||
github.com/tklauser/go-sysconf v0.3.10 // indirect
|
github.com/tklauser/go-sysconf v0.3.10 // indirect
|
||||||
github.com/tklauser/numcpus v0.4.0 // indirect
|
github.com/tklauser/numcpus v0.4.0 // indirect
|
||||||
github.com/ulikunitz/xz v0.5.10 // indirect
|
github.com/ulikunitz/xz v0.5.8 // indirect
|
||||||
github.com/zondax/hid v0.9.1 // indirect
|
github.com/whyrusleeping/cbor-gen v0.0.0-20200123233031-1cdf64d27158 // indirect
|
||||||
github.com/zondax/ledger-go v0.14.0 // indirect
|
github.com/zondax/hid v0.9.1-0.20220302062450-5552068d2266 // indirect
|
||||||
go.etcd.io/bbolt v1.3.6 // indirect
|
go.etcd.io/bbolt v1.3.6 // indirect
|
||||||
go.opencensus.io v0.24.0 // indirect
|
go.opencensus.io v0.23.0 // indirect
|
||||||
golang.org/x/crypto v0.4.0 // indirect
|
golang.org/x/crypto v0.0.0-20221012134737-56aed061732a // indirect
|
||||||
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
|
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
|
||||||
golang.org/x/oauth2 v0.1.0 // indirect
|
golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect
|
||||||
golang.org/x/sync v0.1.0 // indirect
|
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
|
||||||
golang.org/x/sys v0.5.0 // indirect
|
golang.org/x/sys v0.0.0-20220913175220-63ea55921009 // indirect
|
||||||
golang.org/x/term v0.5.0 // indirect
|
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 // indirect
|
||||||
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
|
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
|
||||||
google.golang.org/api v0.103.0 // indirect
|
google.golang.org/api v0.93.0 // indirect
|
||||||
google.golang.org/appengine v1.6.7 // indirect
|
google.golang.org/appengine v1.6.7 // indirect
|
||||||
gopkg.in/ini.v1 v1.67.0 // indirect
|
gopkg.in/ini.v1 v1.67.0 // indirect
|
||||||
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
|
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
|
||||||
@ -210,13 +212,10 @@ require (
|
|||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
// use cosmos keyring
|
|
||||||
github.com/99designs/keyring => github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76
|
github.com/99designs/keyring => github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76
|
||||||
// ics23 patch for dragonberry
|
|
||||||
github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0
|
|
||||||
// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
|
// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
|
||||||
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
|
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
|
||||||
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0
|
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0
|
||||||
// use cosmos flavored protobufs
|
|
||||||
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
|
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
|
||||||
)
|
)
|
||||||
|
426
go.sum
426
go.sum
@ -32,176 +32,51 @@ cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Ud
|
|||||||
cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA=
|
cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA=
|
||||||
cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A=
|
cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A=
|
||||||
cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc=
|
cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc=
|
||||||
|
cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0=
|
||||||
cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU=
|
cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU=
|
||||||
cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA=
|
|
||||||
cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y=
|
|
||||||
cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM=
|
|
||||||
cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw=
|
|
||||||
cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY=
|
|
||||||
cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI=
|
|
||||||
cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4=
|
|
||||||
cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4=
|
|
||||||
cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0=
|
|
||||||
cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ=
|
|
||||||
cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk=
|
|
||||||
cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o=
|
|
||||||
cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s=
|
|
||||||
cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0=
|
|
||||||
cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY=
|
|
||||||
cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw=
|
|
||||||
cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI=
|
|
||||||
cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0=
|
|
||||||
cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8=
|
|
||||||
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
|
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
|
||||||
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
|
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
|
||||||
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
|
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
|
||||||
cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
|
cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
|
||||||
cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
|
cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
|
||||||
cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
|
cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
|
||||||
cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA=
|
|
||||||
cloud.google.com/go/bigtable v1.2.0/go.mod h1:JcVAOl45lrTmQfLj7T6TxyMzIN/3FGGcFm+2xVAli2o=
|
cloud.google.com/go/bigtable v1.2.0/go.mod h1:JcVAOl45lrTmQfLj7T6TxyMzIN/3FGGcFm+2xVAli2o=
|
||||||
cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY=
|
|
||||||
cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s=
|
|
||||||
cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM=
|
|
||||||
cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI=
|
|
||||||
cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY=
|
|
||||||
cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI=
|
|
||||||
cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow=
|
cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow=
|
||||||
cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM=
|
cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM=
|
||||||
cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M=
|
cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M=
|
||||||
cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s=
|
cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s=
|
||||||
cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU=
|
cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU=
|
||||||
|
cloud.google.com/go/compute v1.7.0 h1:v/k9Eueb8aAJ0vZuxKMrgm6kPhCLZU9HxFU+AFDs9Uk=
|
||||||
cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U=
|
cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U=
|
||||||
cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU=
|
|
||||||
cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU=
|
|
||||||
cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE=
|
|
||||||
cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48=
|
|
||||||
cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM=
|
|
||||||
cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I=
|
|
||||||
cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4=
|
|
||||||
cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0=
|
|
||||||
cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs=
|
|
||||||
cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc=
|
|
||||||
cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM=
|
|
||||||
cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ=
|
|
||||||
cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo=
|
|
||||||
cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE=
|
|
||||||
cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I=
|
|
||||||
cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ=
|
|
||||||
cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo=
|
|
||||||
cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA=
|
|
||||||
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
|
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
|
||||||
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
|
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
|
||||||
cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo=
|
|
||||||
cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ=
|
|
||||||
cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4=
|
|
||||||
cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0=
|
|
||||||
cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8=
|
|
||||||
cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU=
|
|
||||||
cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU=
|
|
||||||
cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y=
|
|
||||||
cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg=
|
|
||||||
cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk=
|
|
||||||
cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w=
|
|
||||||
cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk=
|
|
||||||
cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg=
|
|
||||||
cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM=
|
|
||||||
cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA=
|
|
||||||
cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o=
|
|
||||||
cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A=
|
|
||||||
cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0=
|
|
||||||
cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0=
|
|
||||||
cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc=
|
|
||||||
cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY=
|
cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY=
|
||||||
cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc=
|
cloud.google.com/go/iam v0.4.0 h1:YBYU00SCDzZJdHqVc4I5d6lsklcYIjQZa1YmEz4jlSE=
|
||||||
cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk=
|
cloud.google.com/go/iam v0.4.0/go.mod h1:cbaZxyScUhxl7ZAkNWiALgihfP75wS/fUsVNaa1r3vA=
|
||||||
cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE=
|
|
||||||
cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic=
|
|
||||||
cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI=
|
|
||||||
cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8=
|
|
||||||
cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08=
|
|
||||||
cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs=
|
|
||||||
cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4=
|
|
||||||
cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w=
|
|
||||||
cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE=
|
|
||||||
cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM=
|
|
||||||
cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY=
|
|
||||||
cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s=
|
|
||||||
cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA=
|
|
||||||
cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o=
|
|
||||||
cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ=
|
|
||||||
cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU=
|
|
||||||
cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY=
|
|
||||||
cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34=
|
|
||||||
cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs=
|
|
||||||
cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg=
|
|
||||||
cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E=
|
|
||||||
cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU=
|
|
||||||
cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0=
|
|
||||||
cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA=
|
|
||||||
cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0=
|
|
||||||
cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI=
|
|
||||||
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
|
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
|
||||||
cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
|
cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
|
||||||
cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
|
cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
|
||||||
cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
|
cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
|
||||||
cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4=
|
|
||||||
cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o=
|
|
||||||
cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk=
|
|
||||||
cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo=
|
|
||||||
cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg=
|
|
||||||
cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4=
|
|
||||||
cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg=
|
|
||||||
cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c=
|
|
||||||
cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y=
|
|
||||||
cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A=
|
|
||||||
cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4=
|
|
||||||
cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY=
|
|
||||||
cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s=
|
|
||||||
cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI=
|
|
||||||
cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA=
|
|
||||||
cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4=
|
|
||||||
cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0=
|
|
||||||
cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU=
|
|
||||||
cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU=
|
|
||||||
cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc=
|
|
||||||
cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs=
|
|
||||||
cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg=
|
|
||||||
cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM=
|
|
||||||
cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ=
|
|
||||||
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
|
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
|
||||||
cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
|
cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
|
||||||
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
|
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
|
||||||
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
|
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
|
||||||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||||
cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
|
cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
|
||||||
|
cloud.google.com/go/storage v1.22.1 h1:F6IlQJZrZM++apn9V5/VfS3gbTUYg98PS3EMQAzqtfg=
|
||||||
cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y=
|
cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y=
|
||||||
cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc=
|
|
||||||
cloud.google.com/go/storage v1.27.0 h1:YOO045NZI9RKfCj1c5A/ZtuuENUc8OAW+gHdGnDgyMQ=
|
|
||||||
cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s=
|
|
||||||
cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw=
|
|
||||||
cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g=
|
|
||||||
cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU=
|
|
||||||
cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4=
|
|
||||||
cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0=
|
|
||||||
cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo=
|
|
||||||
cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo=
|
|
||||||
cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE=
|
|
||||||
cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg=
|
|
||||||
cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0=
|
|
||||||
cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M=
|
|
||||||
collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE=
|
collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE=
|
||||||
cosmossdk.io/errors v1.0.0-beta.7 h1:gypHW76pTQGVnHKo6QBkb4yFOJjC+sUGRc5Al3Odj1w=
|
cosmossdk.io/errors v1.0.0-beta.7 h1:gypHW76pTQGVnHKo6QBkb4yFOJjC+sUGRc5Al3Odj1w=
|
||||||
cosmossdk.io/errors v1.0.0-beta.7/go.mod h1:mz6FQMJRku4bY7aqS/Gwfcmr/ue91roMEKAmDUDpBfE=
|
cosmossdk.io/errors v1.0.0-beta.7/go.mod h1:mz6FQMJRku4bY7aqS/Gwfcmr/ue91roMEKAmDUDpBfE=
|
||||||
cosmossdk.io/math v1.0.0-beta.4 h1:JtKedVLGzA0vv84xjYmZ75RKG35Kf2WwcFu8IjRkIIw=
|
cosmossdk.io/math v1.0.0-beta.3 h1:TbZxSopz2LqjJ7aXYfn7nJSb8vNaBklW6BLpcei1qwM=
|
||||||
cosmossdk.io/math v1.0.0-beta.4/go.mod h1:An0MllWJY6PxibUpnwGk8jOm+a/qIxlKmL5Zyp9NnaM=
|
cosmossdk.io/math v1.0.0-beta.3/go.mod h1:3LYasri3Zna4XpbrTNdKsWmD5fHHkaNAod/mNT9XdE4=
|
||||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||||
filippo.io/edwards25519 v1.0.0-rc.1 h1:m0VOOB23frXZvAOK44usCgLWvtsxIoMCTBGJZlpmGfU=
|
filippo.io/edwards25519 v1.0.0-rc.1 h1:m0VOOB23frXZvAOK44usCgLWvtsxIoMCTBGJZlpmGfU=
|
||||||
filippo.io/edwards25519 v1.0.0-rc.1/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns=
|
filippo.io/edwards25519 v1.0.0-rc.1/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns=
|
||||||
git.sr.ht/~sircmpwn/getopt v0.0.0-20191230200459-23622cc906b3/go.mod h1:wMEGFFFNuPos7vHmWXfszqImLppbc0wEhh6JBfJIUgw=
|
git.sr.ht/~sircmpwn/getopt v0.0.0-20191230200459-23622cc906b3/go.mod h1:wMEGFFFNuPos7vHmWXfszqImLppbc0wEhh6JBfJIUgw=
|
||||||
git.sr.ht/~sircmpwn/go-bare v0.0.0-20210406120253-ab86bc2846d9/go.mod h1:BVJwbDfVjCjoFiKrhkei6NdGcZYpkDkdyCdg1ukytRA=
|
git.sr.ht/~sircmpwn/go-bare v0.0.0-20210406120253-ab86bc2846d9/go.mod h1:BVJwbDfVjCjoFiKrhkei6NdGcZYpkDkdyCdg1ukytRA=
|
||||||
github.com/99designs/gqlgen v0.17.22 h1:TOcrF8t0T3I0za9JD3CB6ehq7dDEMjR9Onikf8Lc/04=
|
github.com/99designs/gqlgen v0.17.20 h1:O7WzccIhKB1dm+7g6dhQcULINftfiLSBg2l/mwbpJMw=
|
||||||
github.com/99designs/gqlgen v0.17.22/go.mod h1:BMhYIhe4bp7OlCo5I2PnowSK/Wimpv/YlxfNkqZGwLo=
|
github.com/99designs/gqlgen v0.17.20/go.mod h1:Mja2HI23kWT1VRH09hvWshFgOzKswpO20o4ScpJIES4=
|
||||||
github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4=
|
github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4=
|
||||||
github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc=
|
github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc=
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM=
|
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM=
|
||||||
@ -228,7 +103,7 @@ github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q
|
|||||||
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
|
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
|
||||||
github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw=
|
github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw=
|
||||||
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
|
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
|
||||||
github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg=
|
github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA=
|
||||||
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw=
|
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw=
|
||||||
github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
|
github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
|
||||||
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
|
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
|
||||||
@ -274,9 +149,10 @@ github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+
|
|||||||
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
|
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
|
||||||
github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A=
|
github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A=
|
||||||
github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
|
github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
|
||||||
|
github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM=
|
||||||
github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
|
github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
|
||||||
github.com/aws/aws-sdk-go v1.44.122 h1:p6mw01WBaNpbdP2xrisz5tIkcNwzj/HysobNoaAHjgo=
|
github.com/aws/aws-sdk-go v1.40.45 h1:QN1nsY27ssD/JmW4s83qmSb+uL6DG4GmCDzjmJB4xUI=
|
||||||
github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
|
github.com/aws/aws-sdk-go v1.40.45/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
|
||||||
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
|
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
|
||||||
github.com/aws/aws-sdk-go-v2 v1.2.0/go.mod h1:zEQs02YRBw1DjK0PoJv3ygDYOFTre1ejlJWl8FwAuQo=
|
github.com/aws/aws-sdk-go-v2 v1.2.0/go.mod h1:zEQs02YRBw1DjK0PoJv3ygDYOFTre1ejlJWl8FwAuQo=
|
||||||
github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y=
|
github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y=
|
||||||
@ -297,6 +173,7 @@ github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQ
|
|||||||
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
|
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
|
||||||
github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c=
|
github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c=
|
||||||
github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
|
github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
|
||||||
|
github.com/btcsuite/btcd v0.0.0-20190115013929-ed77733ec07d/go.mod h1:d3C0AkH6BRcvO8T0UEPu53cnw4IbV63x1bEjildYhO0=
|
||||||
github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8=
|
github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8=
|
||||||
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
|
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
|
||||||
github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94=
|
github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94=
|
||||||
@ -304,12 +181,13 @@ github.com/btcsuite/btcd v0.21.0-beta.0.20201114000516-e9c7a5ac6401/go.mod h1:Sv
|
|||||||
github.com/btcsuite/btcd v0.22.1 h1:CnwP9LM/M9xuRrGSCGeMVs9iv09uMqwsVX7EeIpgV2c=
|
github.com/btcsuite/btcd v0.22.1 h1:CnwP9LM/M9xuRrGSCGeMVs9iv09uMqwsVX7EeIpgV2c=
|
||||||
github.com/btcsuite/btcd v0.22.1/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y=
|
github.com/btcsuite/btcd v0.22.1/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y=
|
||||||
github.com/btcsuite/btcd/btcec/v2 v2.1.2/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE=
|
github.com/btcsuite/btcd/btcec/v2 v2.1.2/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE=
|
||||||
github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U=
|
github.com/btcsuite/btcd/btcec/v2 v2.2.0 h1:fzn1qaOt32TuLjFlkzYSsBC35Q3KUjT1SwPxiMSCF5k=
|
||||||
github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04=
|
github.com/btcsuite/btcd/btcec/v2 v2.2.0/go.mod h1:U7MHm051Al6XmscBQ0BoNydpOTsFAn707034b5nY8zU=
|
||||||
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc=
|
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc=
|
||||||
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U=
|
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U=
|
||||||
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc=
|
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc=
|
||||||
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
|
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
|
||||||
|
github.com/btcsuite/btcutil v0.0.0-20180706230648-ab6388e0c60a/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
|
||||||
github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
|
github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
|
||||||
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
|
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
|
||||||
github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts=
|
github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts=
|
||||||
@ -366,6 +244,8 @@ github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE
|
|||||||
github.com/coinbase/kryptology v1.8.0/go.mod h1:RYXOAPdzOGUe3qlSFkMGn58i3xUA8hmxYHksuq+8ciI=
|
github.com/coinbase/kryptology v1.8.0/go.mod h1:RYXOAPdzOGUe3qlSFkMGn58i3xUA8hmxYHksuq+8ciI=
|
||||||
github.com/coinbase/rosetta-sdk-go v0.7.9 h1:lqllBjMnazTjIqYrOGv8h8jxjg9+hJazIGZr9ZvoCcA=
|
github.com/coinbase/rosetta-sdk-go v0.7.9 h1:lqllBjMnazTjIqYrOGv8h8jxjg9+hJazIGZr9ZvoCcA=
|
||||||
github.com/coinbase/rosetta-sdk-go v0.7.9/go.mod h1:0/knutI7XGVqXmmH4OQD8OckFrbQ8yMsUZTG7FXCR2M=
|
github.com/coinbase/rosetta-sdk-go v0.7.9/go.mod h1:0/knutI7XGVqXmmH4OQD8OckFrbQ8yMsUZTG7FXCR2M=
|
||||||
|
github.com/confio/ics23/go v0.7.0 h1:00d2kukk7sPoHWL4zZBZwzxnpA2pec1NPdwbSokJ5w8=
|
||||||
|
github.com/confio/ics23/go v0.7.0/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg=
|
||||||
github.com/consensys/bavard v0.1.8-0.20210406032232-f3452dc9b572/go.mod h1:Bpd0/3mZuaj6Sj+PqrmIquiOKy397AKGThQPaGzNXAQ=
|
github.com/consensys/bavard v0.1.8-0.20210406032232-f3452dc9b572/go.mod h1:Bpd0/3mZuaj6Sj+PqrmIquiOKy397AKGThQPaGzNXAQ=
|
||||||
github.com/consensys/bavard v0.1.8-0.20210915155054-088da2f7f54a/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI=
|
github.com/consensys/bavard v0.1.8-0.20210915155054-088da2f7f54a/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI=
|
||||||
github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q=
|
github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q=
|
||||||
@ -377,34 +257,30 @@ github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3Ee
|
|||||||
github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
||||||
github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||||
github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
|
github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
|
||||||
github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk=
|
github.com/cosmos/btcutil v1.0.4 h1:n7C2ngKXo7UC9gNyMNLbzqz7Asuf+7Qv4gnX/rOdQ44=
|
||||||
github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis=
|
github.com/cosmos/btcutil v1.0.4/go.mod h1:Ffqc8Hn6TJUdDgHBwIZLtrLQC1KdJ9jGJl/TvgUaxbU=
|
||||||
github.com/cosmos/cosmos-proto v1.0.0-beta.1 h1:iDL5qh++NoXxG8hSy93FdYJut4XfgbShIocllGaXx/0=
|
github.com/cosmos/cosmos-proto v1.0.0-alpha7 h1:yqYUOHF2jopwZh4dVQp3xgqwftE5/2hkrwIV6vkUbO0=
|
||||||
github.com/cosmos/cosmos-proto v1.0.0-beta.1/go.mod h1:8k2GNZghi5sDRFw/scPL8gMSowT1vDA+5ouxL8GjaUE=
|
github.com/cosmos/cosmos-proto v1.0.0-alpha7/go.mod h1:dosO4pSAbJF8zWCzCoTWP7nNsjcvSUBQmniFxDg5daw=
|
||||||
github.com/cosmos/cosmos-sdk v0.46.7 h1:dkGy9y2ewgqvawrUOuWb2oz3MdotVduokyreXC4bS0s=
|
github.com/cosmos/cosmos-sdk v0.46.2-0.20220920160224-9454b97ccb77 h1:uYNxojyADGcjw5zg7PFyUJ8wxT9rWB4e30CDDy0yicE=
|
||||||
github.com/cosmos/cosmos-sdk v0.46.7/go.mod h1:fqKqz39U5IlEFb4nbQ72951myztsDzFKKDtffYJ63nk=
|
github.com/cosmos/cosmos-sdk v0.46.2-0.20220920160224-9454b97ccb77/go.mod h1:0aUPGPU6PWaDEaHNjtgrpNhgxo9bAUrQ7BO7XCvFOfs=
|
||||||
github.com/cosmos/cosmos-sdk/ics23/go v0.8.0 h1:iKclrn3YEOwk4jQHT2ulgzuXyxmzmPczUalMwW4XH9k=
|
|
||||||
github.com/cosmos/cosmos-sdk/ics23/go v0.8.0/go.mod h1:2a4dBq88TUoqoWAU5eu0lGvpFP3wWDPgdHPargtyw30=
|
|
||||||
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
|
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
|
||||||
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
|
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
|
||||||
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
|
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
|
||||||
github.com/cosmos/gogoproto v1.4.3 h1:RP3yyVREh9snv/lsOvmsAPQt8f44LgL281X0IOIhhcI=
|
|
||||||
github.com/cosmos/gogoproto v1.4.3/go.mod h1:0hLIG5TR7IvV1fme1HCFKjfzW9X2x0Mo+RooWXCnOWU=
|
|
||||||
github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4Y=
|
github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4Y=
|
||||||
github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw=
|
github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw=
|
||||||
github.com/cosmos/iavl v0.19.4 h1:t82sN+Y0WeqxDLJRSpNd8YFX5URIrT+p8n6oJbJ2Dok=
|
github.com/cosmos/iavl v0.19.2-0.20220916140702-9b6be3095313 h1:R7CnaI/0OLwOusy7n9750n8fqQ3yCQ8OJQI2L3ws9RA=
|
||||||
github.com/cosmos/iavl v0.19.4/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw=
|
github.com/cosmos/iavl v0.19.2-0.20220916140702-9b6be3095313/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw=
|
||||||
github.com/cosmos/ibc-go/v5 v5.2.0 h1:LxwttRQqdUJpQ3/Gc3XPg5lkRo3pcbzx65dxFIY6ONE=
|
github.com/cosmos/ibc-go/v5 v5.0.0 h1:MkObdarpoICPHXoRg/Ne9NRix4j7eQlJZq74/uzH3Zc=
|
||||||
github.com/cosmos/ibc-go/v5 v5.2.0/go.mod h1:MhDUMDVSboK5JW2pEWHNcw0wJHaHqKV/vwwP7awGhzI=
|
github.com/cosmos/ibc-go/v5 v5.0.0/go.mod h1:Wqsguq98Iuns8tgTv8+xaGYbC+Q8zJfbpjzT6IgMJbs=
|
||||||
github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76 h1:DdzS1m6o/pCqeZ8VOAit/gyATedRgjvkVI+UCrLpyuU=
|
github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76 h1:DdzS1m6o/pCqeZ8VOAit/gyATedRgjvkVI+UCrLpyuU=
|
||||||
github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76/go.mod h1:0mkLWIoZuQ7uBoospo5Q9zIpqq6rYCPJDSUdeCJvPM8=
|
github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76/go.mod h1:0mkLWIoZuQ7uBoospo5Q9zIpqq6rYCPJDSUdeCJvPM8=
|
||||||
github.com/cosmos/ledger-cosmos-go v0.12.1 h1:sMBxza5p/rNK/06nBSNmsI/WDqI0pVJFVNihy1Y984w=
|
github.com/cosmos/ledger-cosmos-go v0.11.1 h1:9JIYsGnXP613pb2vPjFeMMjBI5lEDsEaF6oYorTy6J4=
|
||||||
github.com/cosmos/ledger-cosmos-go v0.12.1/go.mod h1:dhO6kj+Y+AHIOgAe4L9HL/6NDdyyth4q238I9yFpD2g=
|
github.com/cosmos/ledger-cosmos-go v0.11.1/go.mod h1:J8//BsAGTo3OC/vDLjMRFLW6q0WAaXvHnVc7ZmE8iUY=
|
||||||
github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk=
|
github.com/cosmos/ledger-go v0.9.2 h1:Nnao/dLwaVTk1Q5U9THldpUMMXU94BOTWPddSmVB6pI=
|
||||||
|
github.com/cosmos/ledger-go v0.9.2/go.mod h1:oZJ2hHAZROdlHiwTg4t7kP+GKIIkBT+o6c9QWFanOyI=
|
||||||
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
|
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
|
||||||
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.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
|
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||||
github.com/creachadair/taskgroup v0.3.2 h1:zlfutDS+5XG40AOxcHDSThxKzns8Tnr9jnr6VqkYlkM=
|
github.com/creachadair/taskgroup v0.3.2 h1:zlfutDS+5XG40AOxcHDSThxKzns8Tnr9jnr6VqkYlkM=
|
||||||
github.com/creachadair/taskgroup v0.3.2/go.mod h1:wieWwecHVzsidg2CsUnFinW1faVN4+kq+TDlRJQ0Wbk=
|
github.com/creachadair/taskgroup v0.3.2/go.mod h1:wieWwecHVzsidg2CsUnFinW1faVN4+kq+TDlRJQ0Wbk=
|
||||||
@ -452,7 +328,7 @@ github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/
|
|||||||
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
|
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
|
||||||
github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||||
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
|
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
|
||||||
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
|
github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw=
|
||||||
github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA=
|
github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA=
|
||||||
github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk=
|
github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk=
|
||||||
github.com/dop251/goja v0.0.0-20220405120441-9037c2b61cbf h1:Yt+4K30SdjOkRoRRm3vYNQgR+/ZIy0RmeUDZo7Y8zeQ=
|
github.com/dop251/goja v0.0.0-20220405120441-9037c2b61cbf h1:Yt+4K30SdjOkRoRRm3vYNQgR+/ZIy0RmeUDZo7Y8zeQ=
|
||||||
@ -483,8 +359,8 @@ 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 v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||||
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
|
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
|
||||||
github.com/ethereum/go-ethereum v1.10.17/go.mod h1:Lt5WzjM07XlXc95YzrhosmR4J9Ahd6X2wyEV2SvGhk0=
|
github.com/ethereum/go-ethereum v1.10.17/go.mod h1:Lt5WzjM07XlXc95YzrhosmR4J9Ahd6X2wyEV2SvGhk0=
|
||||||
github.com/ethereum/go-ethereum v1.10.26 h1:i/7d9RBBwiXCEuyduBQzJw/mKmnvzsN14jqBmytw72s=
|
github.com/ethereum/go-ethereum v1.10.19 h1:EOR5JbL4MD5yeOqv8W2iC1s4NximrTjqFccUz8lyBRA=
|
||||||
github.com/ethereum/go-ethereum v1.10.26/go.mod h1:EYFyF19u3ezGLD4RqOkLq+ZCXzYbLoNDdZlMt7kyKFg=
|
github.com/ethereum/go-ethereum v1.10.19/go.mod h1:IJBNMtzKcNHPtllYihy6BL2IgK1u+32JriaTbdt4v+w=
|
||||||
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c h1:8ISkoahWXwZR41ois5lSJBSVw4D0OV19Ht/JSTzvSv0=
|
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c h1:8ISkoahWXwZR41ois5lSJBSVw4D0OV19Ht/JSTzvSv0=
|
||||||
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 h1:JWuenKqqX8nojtoVVWjGfOF9635RETekkoH6Cc9SX0A=
|
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 h1:JWuenKqqX8nojtoVVWjGfOF9635RETekkoH6Cc9SX0A=
|
||||||
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 h1:7HZCaLC5+BZpmbhCOZJ293Lz68O7PYrF2EzeiFMwCLk=
|
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 h1:7HZCaLC5+BZpmbhCOZJ293Lz68O7PYrF2EzeiFMwCLk=
|
||||||
@ -501,8 +377,8 @@ github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2
|
|||||||
github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=
|
github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=
|
||||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
||||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||||
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
|
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
|
||||||
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
|
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
|
||||||
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff h1:tY80oXqGNY4FhTFhk+o9oFHGINQ/+vhlm8HFzi6znCI=
|
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff h1:tY80oXqGNY4FhTFhk+o9oFHGINQ/+vhlm8HFzi6znCI=
|
||||||
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww=
|
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww=
|
||||||
github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4=
|
github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4=
|
||||||
@ -536,8 +412,6 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V
|
|||||||
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
|
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
|
||||||
github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA=
|
github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA=
|
||||||
github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
|
github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
|
||||||
github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0=
|
|
||||||
github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
|
||||||
github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8=
|
github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8=
|
||||||
github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
|
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.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
|
||||||
@ -636,9 +510,8 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
|
|||||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
|
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
|
||||||
|
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
|
||||||
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||||
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
|
|
||||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
|
||||||
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
|
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
|
||||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||||
github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa h1:Q75Upo5UN4JbPFURXZ8nLKYUvF85dyFRop/vQ0Rv+64=
|
github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa h1:Q75Upo5UN4JbPFURXZ8nLKYUvF85dyFRop/vQ0Rv+64=
|
||||||
@ -675,20 +548,17 @@ github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
|
|||||||
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
|
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
|
||||||
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
|
github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
|
||||||
|
github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw=
|
||||||
github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
|
github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
|
||||||
github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs=
|
|
||||||
github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg=
|
|
||||||
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
||||||
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
||||||
github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0=
|
github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0=
|
||||||
github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM=
|
github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM=
|
||||||
github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM=
|
github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM=
|
||||||
github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM=
|
github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM=
|
||||||
|
github.com/googleapis/gax-go/v2 v2.4.0 h1:dS9eYAjhrE2RjmzYw2XAPvcXfmcQLtFEQWn0CR82awk=
|
||||||
github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c=
|
github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c=
|
||||||
github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo=
|
github.com/googleapis/go-type-adapters v1.0.0 h1:9XdMn+d/G57qq1s8dNc5IesGCXHf6V2HZ2JwRxfA2tA=
|
||||||
github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY=
|
|
||||||
github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ=
|
|
||||||
github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8=
|
|
||||||
github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4=
|
github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4=
|
||||||
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
|
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
|
||||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
|
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
|
||||||
@ -723,6 +593,8 @@ github.com/gtank/merlin v0.1.1 h1:eQ90iG7K9pOhtereWsmyRJ6RAwcP4tHTDBHXNg+u5is=
|
|||||||
github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s=
|
github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s=
|
||||||
github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc=
|
github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc=
|
||||||
github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o=
|
github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o=
|
||||||
|
github.com/gxed/hashland/keccakpg v0.0.1/go.mod h1:kRzw3HkwxFU1mpmPP8v1WyQzwdGfmKFJ6tItnhQ67kU=
|
||||||
|
github.com/gxed/hashland/murmur3 v0.0.1/go.mod h1:KjXop02n4/ckmZSnY2+HKcLud/tcmvhST0bie/0lS48=
|
||||||
github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE=
|
github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE=
|
||||||
github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
||||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||||
@ -732,8 +604,8 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng
|
|||||||
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||||
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
|
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
|
||||||
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
|
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
|
||||||
github.com/hashicorp/go-getter v1.7.0 h1:bzrYP+qu/gMrL1au7/aDvkoOVGUJpeKBgbqRHACAFDY=
|
github.com/hashicorp/go-getter v1.6.1 h1:NASsgP4q6tL94WH6nJxKWj8As2H/2kop/bB1d8JMyRY=
|
||||||
github.com/hashicorp/go-getter v1.7.0/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744=
|
github.com/hashicorp/go-getter v1.6.1/go.mod h1:IZCrswsZPeWv9IkVnLElzRU/gz/QPi6pZHn4tv6vbwA=
|
||||||
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||||
github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=
|
github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=
|
||||||
github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||||
@ -748,6 +620,7 @@ github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdv
|
|||||||
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||||
github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=
|
github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=
|
||||||
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||||
|
github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
||||||
github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
||||||
github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek=
|
github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek=
|
||||||
github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
||||||
@ -781,9 +654,8 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:
|
|||||||
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||||
github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ=
|
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/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8=
|
||||||
|
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
|
||||||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
||||||
github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=
|
|
||||||
github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
|
||||||
github.com/influxdata/flux v0.65.1/go.mod h1:J754/zds0vvpfwuq7Gc2wRdVwEodfpCFM7mYlOw2LqY=
|
github.com/influxdata/flux v0.65.1/go.mod h1:J754/zds0vvpfwuq7Gc2wRdVwEodfpCFM7mYlOw2LqY=
|
||||||
github.com/influxdata/influxdb v1.8.3/go.mod h1:JugdFhsvvI8gadxOI6noqNeeBHvWNTbfYGtiAn+2jhI=
|
github.com/influxdata/influxdb v1.8.3/go.mod h1:JugdFhsvvI8gadxOI6noqNeeBHvWNTbfYGtiAn+2jhI=
|
||||||
github.com/influxdata/influxdb-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8=
|
github.com/influxdata/influxdb-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8=
|
||||||
@ -796,10 +668,20 @@ github.com/influxdata/promql/v2 v2.12.0/go.mod h1:fxOPu+DY0bqCTCECchSRtWfc+0X19y
|
|||||||
github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6/go.mod h1:bSgUQ7q5ZLSO+bKBGqJiCBGAl+9DxyW63zLTujjUlOE=
|
github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6/go.mod h1:bSgUQ7q5ZLSO+bKBGqJiCBGAl+9DxyW63zLTujjUlOE=
|
||||||
github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9/go.mod h1:Js0mqiSBE6Ffsg94weZZ2c+v/ciT8QRHFOap7EKDrR0=
|
github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9/go.mod h1:Js0mqiSBE6Ffsg94weZZ2c+v/ciT8QRHFOap7EKDrR0=
|
||||||
github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368/go.mod h1:Wbbw6tYNvwa5dlB6304Sd+82Z3f7PmVZHVKU637d4po=
|
github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368/go.mod h1:Wbbw6tYNvwa5dlB6304Sd+82Z3f7PmVZHVKU637d4po=
|
||||||
|
github.com/ipfs/go-block-format v0.0.2 h1:qPDvcP19izTjU8rgo6p7gTXZlkMkF5bz5G3fqIsSCPE=
|
||||||
|
github.com/ipfs/go-block-format v0.0.2/go.mod h1:AWR46JfpcObNfg3ok2JHDUfdiHRgWhJgCQF+KIgOPJY=
|
||||||
|
github.com/ipfs/go-cid v0.0.1/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM=
|
||||||
|
github.com/ipfs/go-cid v0.0.3/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM=
|
||||||
github.com/ipfs/go-cid v0.3.2 h1:OGgOd+JCFM+y1DjWPmVH+2/4POtpDzwcr7VgnB7mZXc=
|
github.com/ipfs/go-cid v0.3.2 h1:OGgOd+JCFM+y1DjWPmVH+2/4POtpDzwcr7VgnB7mZXc=
|
||||||
github.com/ipfs/go-cid v0.3.2/go.mod h1:gQ8pKqT/sUxGY+tIwy1RPpAojYu7jAyCp5Tz1svoupw=
|
github.com/ipfs/go-cid v0.3.2/go.mod h1:gQ8pKqT/sUxGY+tIwy1RPpAojYu7jAyCp5Tz1svoupw=
|
||||||
github.com/ipld/go-ipld-prime v0.19.0 h1:5axC7rJmPc17Emw6TelxGwnzALk0PdupZ2oj2roDj04=
|
github.com/ipfs/go-ipfs-util v0.0.1 h1:Wz9bL2wB2YBJqggkA4dD7oSmqB4cAnpNbGrlHJulv50=
|
||||||
github.com/ipld/go-ipld-prime v0.19.0/go.mod h1:Q9j3BaVXwaA3o5JUDNvptDDr/x8+F7FG6XJ8WI3ILg4=
|
github.com/ipfs/go-ipfs-util v0.0.1/go.mod h1:spsl5z8KUnrve+73pOhSVZND1SIxPW5RyBCNzQxlJBc=
|
||||||
|
github.com/ipfs/go-ipld-cbor v0.0.6 h1:pYuWHyvSpIsOOLw4Jy7NbBkCyzLDcl64Bf/LZW7eBQ0=
|
||||||
|
github.com/ipfs/go-ipld-cbor v0.0.6/go.mod h1:ssdxxaLJPXH7OjF5V4NSjBbcfh+evoR4ukuru0oPXMA=
|
||||||
|
github.com/ipfs/go-ipld-format v0.0.1 h1:HCu4eB/Gh+KD/Q0M8u888RFkorTWNIL3da4oc5dwc80=
|
||||||
|
github.com/ipfs/go-ipld-format v0.0.1/go.mod h1:kyJtbkDALmFHv3QR6et67i35QzO3S0dCDnkOJhcZkms=
|
||||||
|
github.com/ipld/go-ipld-prime v0.18.0 h1:xUk7NUBSWHEXdjiOu2sLXouFJOMs0yoYzeI5RAqhYQo=
|
||||||
|
github.com/ipld/go-ipld-prime v0.18.0/go.mod h1:735yXW548CKrLwVCYXzqx90p5deRJMVVxM9eJ4Qe+qE=
|
||||||
github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
|
github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
|
||||||
github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus=
|
github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus=
|
||||||
github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
|
github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
|
||||||
@ -807,6 +689,7 @@ github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1C
|
|||||||
github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
|
github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
|
||||||
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
|
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
|
||||||
github.com/jhump/protoreflect v1.12.1-0.20220721211354-060cc04fc18b h1:izTof8BKh/nE1wrKOrloNA5q4odOarjf+Xpe+4qow98=
|
github.com/jhump/protoreflect v1.12.1-0.20220721211354-060cc04fc18b h1:izTof8BKh/nE1wrKOrloNA5q4odOarjf+Xpe+4qow98=
|
||||||
|
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
|
||||||
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
|
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
|
||||||
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
|
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
|
||||||
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
|
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
|
||||||
@ -828,6 +711,7 @@ github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHm
|
|||||||
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
|
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
|
||||||
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
|
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
|
||||||
github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o=
|
github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o=
|
||||||
|
github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
||||||
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
|
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
|
||||||
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
||||||
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
||||||
@ -836,12 +720,6 @@ github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E
|
|||||||
github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0=
|
github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0=
|
||||||
github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU=
|
github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU=
|
||||||
github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU=
|
github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU=
|
||||||
github.com/kevinburke/go-bindata v1.1.0 h1:JZ8XIdxtkAszuYkgf17qwQzcU/RgsGSVLSULJdN+5bU=
|
|
||||||
github.com/kevinburke/go-bindata v1.1.0/go.mod h1:UJ72WTOoRKzbz+vwtKgARJwsy+1ZGUukVBUCc197TJo=
|
|
||||||
github.com/kevinburke/go-bindata v3.22.0+incompatible h1:/JmqEhIWQ7GRScV0WjX/0tqBrC5D21ALg0H0U/KZ/ts=
|
|
||||||
github.com/kevinburke/go-bindata v3.22.0+incompatible/go.mod h1:/pEEZ72flUW2p0yi30bslSp9YqD9pysLxunQDdb2CPM=
|
|
||||||
github.com/kevinburke/go-bindata v3.24.0+incompatible h1:qajFA3D0pH94OTLU4zcCCKCDgR+Zr2cZK/RPJHDdFoY=
|
|
||||||
github.com/kevinburke/go-bindata v3.24.0+incompatible/go.mod h1:/pEEZ72flUW2p0yi30bslSp9YqD9pysLxunQDdb2CPM=
|
|
||||||
github.com/kevinmbeaulieu/eq-go v1.0.0/go.mod h1:G3S8ajA56gKBZm4UB9AOyoOS37JO3roToPzKNM8dtdM=
|
github.com/kevinmbeaulieu/eq-go v1.0.0/go.mod h1:G3S8ajA56gKBZm4UB9AOyoOS37JO3roToPzKNM8dtdM=
|
||||||
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d h1:Z+RDyXzjKE0i2sTjZ/b1uxiGtPhFy34Ou/Tk0qwN0kM=
|
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d h1:Z+RDyXzjKE0i2sTjZ/b1uxiGtPhFy34Ou/Tk0qwN0kM=
|
||||||
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc=
|
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc=
|
||||||
@ -850,10 +728,11 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o
|
|||||||
github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4=
|
github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4=
|
||||||
github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
|
github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
|
||||||
github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
||||||
|
github.com/klauspost/compress v1.11.2/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
||||||
github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
||||||
github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
|
github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
|
||||||
github.com/klauspost/compress v1.15.11 h1:Lcadnb3RKGin4FYM/orgq0qde+nc15E5Cbqg4B9Sx9c=
|
github.com/klauspost/compress v1.15.9 h1:wKRjX6JRtDdrE9qwa4b/Cip7ACOshUI4smpCQanqjSY=
|
||||||
github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM=
|
github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU=
|
||||||
github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
|
github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
|
||||||
github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
|
github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
|
||||||
github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4=
|
github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4=
|
||||||
@ -929,24 +808,26 @@ github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182aff
|
|||||||
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
||||||
github.com/miguelmota/go-ethereum-hdwallet v0.1.1 h1:zdXGlHao7idpCBjEGTXThVAtMKs+IxAgivZ75xqkWK0=
|
github.com/miguelmota/go-ethereum-hdwallet v0.1.1 h1:zdXGlHao7idpCBjEGTXThVAtMKs+IxAgivZ75xqkWK0=
|
||||||
github.com/miguelmota/go-ethereum-hdwallet v0.1.1/go.mod h1:f9m9uXokAHA6WNoYOPjj4AqjJS5pquQRiYYj/XSyPYc=
|
github.com/miguelmota/go-ethereum-hdwallet v0.1.1/go.mod h1:f9m9uXokAHA6WNoYOPjj4AqjJS5pquQRiYYj/XSyPYc=
|
||||||
|
github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643 h1:hLDRPB66XQT/8+wG9WsDpiCvZf1yKO7sz7scAjSlBa0=
|
||||||
github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM=
|
github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM=
|
||||||
github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 h1:QRUSJEgZn2Snx0EmT/QLXibWjSUDjKWvXIT19NBVp94=
|
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ=
|
||||||
github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM=
|
|
||||||
github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g=
|
github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g=
|
||||||
github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
|
github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
|
||||||
|
github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U=
|
||||||
|
github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM=
|
||||||
github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g=
|
github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g=
|
||||||
github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM=
|
github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM=
|
||||||
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
|
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
|
||||||
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||||
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
|
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
|
||||||
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||||
|
github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0=
|
||||||
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
|
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
|
||||||
github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU=
|
|
||||||
github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8=
|
|
||||||
github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
|
github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
|
||||||
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
|
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
|
||||||
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||||
|
github.com/mitchellh/mapstructure v1.3.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||||
github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||||
github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||||
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
|
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
|
||||||
@ -962,6 +843,7 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
|
|||||||
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
||||||
github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8=
|
github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8=
|
||||||
github.com/mr-tron/base58 v1.1.0/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8=
|
github.com/mr-tron/base58 v1.1.0/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8=
|
||||||
|
github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
|
||||||
github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o=
|
github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o=
|
||||||
github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
|
github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
|
||||||
github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg=
|
github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg=
|
||||||
@ -971,9 +853,12 @@ github.com/multiformats/go-base32 v0.0.3 h1:tw5+NhuwaOjJCC5Pp82QuXbrmLzWg7uxlMFp
|
|||||||
github.com/multiformats/go-base32 v0.0.3/go.mod h1:pLiuGC8y0QR3Ue4Zug5UzK9LjgbkL8NSQj0zQ5Nz/AA=
|
github.com/multiformats/go-base32 v0.0.3/go.mod h1:pLiuGC8y0QR3Ue4Zug5UzK9LjgbkL8NSQj0zQ5Nz/AA=
|
||||||
github.com/multiformats/go-base36 v0.1.0 h1:JR6TyF7JjGd3m6FbLU2cOxhC0Li8z8dLNGQ89tUg4F4=
|
github.com/multiformats/go-base36 v0.1.0 h1:JR6TyF7JjGd3m6FbLU2cOxhC0Li8z8dLNGQ89tUg4F4=
|
||||||
github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoRdUUOENyW/Vv6sM=
|
github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoRdUUOENyW/Vv6sM=
|
||||||
|
github.com/multiformats/go-multibase v0.0.1/go.mod h1:bja2MqRZ3ggyXtZSEDKpl0uO/gviWFaSteVbWT51qgs=
|
||||||
github.com/multiformats/go-multibase v0.0.3 h1:l/B6bJDQjvQ5G52jw4QGSYeOTZoAwIO77RblWplfIqk=
|
github.com/multiformats/go-multibase v0.0.3 h1:l/B6bJDQjvQ5G52jw4QGSYeOTZoAwIO77RblWplfIqk=
|
||||||
github.com/multiformats/go-multibase v0.0.3/go.mod h1:5+1R4eQrT3PkYZ24C3W2Ue2tPwIdYQD509ZjSb5y9Oc=
|
github.com/multiformats/go-multibase v0.0.3/go.mod h1:5+1R4eQrT3PkYZ24C3W2Ue2tPwIdYQD509ZjSb5y9Oc=
|
||||||
github.com/multiformats/go-multicodec v0.6.0 h1:KhH2kSuCARyuJraYMFxrNO3DqIaYhOdS039kbhgVwpE=
|
github.com/multiformats/go-multicodec v0.5.0 h1:EgU6cBe/D7WRwQb1KmnBvU7lrcFGMggZVTPtOW9dDHs=
|
||||||
|
github.com/multiformats/go-multihash v0.0.1/go.mod h1:w/5tugSrLEbWqlcgJabL3oHFKTwfvkofsjW2Qa1ct4U=
|
||||||
|
github.com/multiformats/go-multihash v0.0.10/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew=
|
||||||
github.com/multiformats/go-multihash v0.2.1 h1:aem8ZT0VA2nCHHk7bPJ1BjUbHNciqZC/d16Vve9l108=
|
github.com/multiformats/go-multihash v0.2.1 h1:aem8ZT0VA2nCHHk7bPJ1BjUbHNciqZC/d16Vve9l108=
|
||||||
github.com/multiformats/go-multihash v0.2.1/go.mod h1:WxoMcYG85AZVQUyRyo9s4wULvW5qrI9vb2Lt6evduFc=
|
github.com/multiformats/go-multihash v0.2.1/go.mod h1:WxoMcYG85AZVQUyRyo9s4wULvW5qrI9vb2Lt6evduFc=
|
||||||
github.com/multiformats/go-varint v0.0.6 h1:gk85QWKxh3TazbLxED/NlDVv8+q+ReFJk7Y2W/KhfNY=
|
github.com/multiformats/go-varint v0.0.6 h1:gk85QWKxh3TazbLxED/NlDVv8+q+ReFJk7Y2W/KhfNY=
|
||||||
@ -1006,17 +891,17 @@ github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W
|
|||||||
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
|
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
|
||||||
github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA=
|
github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA=
|
||||||
github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
|
github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
|
||||||
github.com/onsi/ginkgo/v2 v2.5.1 h1:auzK7OI497k6x4OvWq+TKAcpcSAlod0doAH72oIN0Jw=
|
github.com/onsi/ginkgo/v2 v2.2.0 h1:3ZNA3L1c5FYDFTTxbFeVGGD8jYvjYauHD30YgLxVsNI=
|
||||||
github.com/onsi/ginkgo/v2 v2.5.1/go.mod h1:63DOGlLAH8+REH8jUGdL3YpCpu7JODesutUjdENfUAc=
|
github.com/onsi/ginkgo/v2 v2.2.0/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk=
|
||||||
github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
|
github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
|
||||||
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
||||||
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
||||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
||||||
github.com/onsi/gomega v1.24.1 h1:KORJXNNTzJXzu4ScJWssJfJMnJ+2QJqhoQSRwNlze9E=
|
github.com/onsi/gomega v1.20.2 h1:8uQq0zMgLEfa0vRrrBgaJF2gyW9Da9BmfGV+OyUzfkY=
|
||||||
github.com/onsi/gomega v1.24.1/go.mod h1:3AOiACssS3/MajrniINInwbfOOtfZvplPzuRSmvt1jM=
|
github.com/onsi/gomega v1.20.2/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc=
|
||||||
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk=
|
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk=
|
||||||
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
||||||
github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034=
|
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799 h1:rc3tiVYb5z54aKaDfakKn0dDjIyPpTtszkjuMzyt7ec=
|
||||||
github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w=
|
github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w=
|
||||||
github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis=
|
github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis=
|
||||||
github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74=
|
github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74=
|
||||||
@ -1057,6 +942,7 @@ github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qR
|
|||||||
github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ=
|
github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ=
|
||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
|
github.com/polydawn/refmt v0.0.0-20190221155625-df39d6c2d992/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o=
|
||||||
github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e h1:ZOcivgkkFRnjfoTcGsDq3UQYiBmekwLA+qg0OjyB/ls=
|
github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e h1:ZOcivgkkFRnjfoTcGsDq3UQYiBmekwLA+qg0OjyB/ls=
|
||||||
github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o=
|
github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o=
|
||||||
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
||||||
@ -1096,16 +982,15 @@ github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+Gx
|
|||||||
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
|
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
|
||||||
github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
|
github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
|
||||||
github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
|
github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
|
||||||
|
github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU=
|
||||||
github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
|
github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
|
||||||
github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo=
|
|
||||||
github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4=
|
|
||||||
github.com/prometheus/tsdb v0.7.1 h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA=
|
github.com/prometheus/tsdb v0.7.1 h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA=
|
||||||
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
|
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
|
||||||
github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ=
|
github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ=
|
||||||
github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc=
|
github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc=
|
||||||
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
|
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-20200313005456-10cdbea86bc0 h1:MkV+77GLUNo5oJ0jf870itWm3D0Sjh7+Za9gazKc5LQ=
|
||||||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
|
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
|
||||||
github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzywPxOvwMdxcg=
|
github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzywPxOvwMdxcg=
|
||||||
github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM=
|
github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM=
|
||||||
github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4=
|
github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4=
|
||||||
@ -1116,22 +1001,20 @@ github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRr
|
|||||||
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
|
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/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
||||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||||
github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg=
|
github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
|
||||||
github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
|
github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
|
||||||
github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U=
|
github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U=
|
||||||
github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
|
github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
|
||||||
github.com/rs/xid v1.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
|
github.com/rs/xid v1.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
|
||||||
github.com/rs/zerolog v1.27.0 h1:1T7qCieN22GVc8S4Q2yuexzBb1EqjbgjSH9RohbMjKs=
|
github.com/rs/zerolog v1.27.0 h1:1T7qCieN22GVc8S4Q2yuexzBb1EqjbgjSH9RohbMjKs=
|
||||||
github.com/rs/zerolog v1.27.0/go.mod h1:7frBqO0oezxmnO7GF86FY++uy8I0Tk/If5ni1G9Qc0U=
|
github.com/rs/zerolog v1.27.0/go.mod h1:7frBqO0oezxmnO7GF86FY++uy8I0Tk/If5ni1G9Qc0U=
|
||||||
github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
|
|
||||||
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
|
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
|
||||||
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||||
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
|
|
||||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||||
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
|
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
|
||||||
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
|
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
|
||||||
github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0=
|
github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa h1:0U2s5loxrTy6/VgfVoLuVLFJcURKLH49ie0zSch7gh4=
|
||||||
github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM=
|
github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM=
|
||||||
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
|
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
|
||||||
github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY=
|
github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY=
|
||||||
github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo=
|
github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo=
|
||||||
@ -1149,6 +1032,7 @@ github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic
|
|||||||
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
|
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
|
||||||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
|
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
|
||||||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
|
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
|
||||||
|
github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa/go.mod h1:2RVY1rIf+2J2o/IM9+vPq9RzmHDSseB7FoXiSNIUsoU=
|
||||||
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
|
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
|
||||||
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
||||||
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
|
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
|
||||||
@ -1164,8 +1048,8 @@ github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
|
|||||||
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
|
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
|
||||||
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
|
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
|
||||||
github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
|
github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
|
||||||
github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA=
|
github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU=
|
||||||
github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY=
|
github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM=
|
||||||
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
|
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
|
||||||
github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
|
github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
|
||||||
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
|
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
|
||||||
@ -1174,8 +1058,8 @@ github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn
|
|||||||
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||||
github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
|
github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
|
||||||
github.com/spf13/viper v1.14.0 h1:Rg7d3Lo706X9tHsJMUjdiwMpHB7W8WnSVOssIY+JElU=
|
github.com/spf13/viper v1.13.0 h1:BWSJ/M+f+3nmdz9bxB+bWX28kkALN2ok11D0rSo8EJU=
|
||||||
github.com/spf13/viper v1.14.0/go.mod h1:WT//axPky3FdvXHzGw33dNdXXXfFQqmEalje+egj8As=
|
github.com/spf13/viper v1.13.0/go.mod h1:Icm2xNL3/8uyh/wFuB1jI7TiTNKp8632Nwegu+zgdYw=
|
||||||
github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q=
|
github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q=
|
||||||
github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969 h1:Oo2KZNP70KE0+IUJSidPj/BFS/RXNHmKIJOdckzml2E=
|
github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969 h1:Oo2KZNP70KE0+IUJSidPj/BFS/RXNHmKIJOdckzml2E=
|
||||||
github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q=
|
github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q=
|
||||||
@ -1185,9 +1069,8 @@ github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5J
|
|||||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
|
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
|
||||||
|
github.com/stretchr/objx v0.4.0 h1:M2gUjqZET1qApGOWNSnZ49BAIMX4F/1plDv3+l31EJ4=
|
||||||
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
|
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
|
||||||
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
|
|
||||||
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
|
|
||||||
github.com/stretchr/testify v1.2.0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
github.com/stretchr/testify v1.2.0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||||
@ -1196,9 +1079,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
|
|||||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
|
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
|
||||||
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
|
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
|
||||||
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
|
|
||||||
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
|
|
||||||
github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs=
|
github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs=
|
||||||
github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0=
|
github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0=
|
||||||
github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954/go.mod h1:u2MKkTVTVJWe5D1rCvame8WqhBd88EuIwODJZ1VHCPM=
|
github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954/go.mod h1:u2MKkTVTVJWe5D1rCvame8WqhBd88EuIwODJZ1VHCPM=
|
||||||
@ -1210,8 +1092,8 @@ github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 h1:hqAk8riJvK4RM
|
|||||||
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15/go.mod h1:z4YtwM70uOnk8h0pjJYlj3zdYwi9l03By6iAIF5j/Pk=
|
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15/go.mod h1:z4YtwM70uOnk8h0pjJYlj3zdYwi9l03By6iAIF5j/Pk=
|
||||||
github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E=
|
github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E=
|
||||||
github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME=
|
github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME=
|
||||||
github.com/tendermint/tendermint v0.34.24 h1:879MKKJWYYPJEMMKME+DWUTY4V9f/FBpnZDI82ky+4k=
|
github.com/tendermint/tendermint v0.34.21 h1:UiGGnBFHVrZhoQVQ7EfwSOLuCtarqCSsRf8VrklqB7s=
|
||||||
github.com/tendermint/tendermint v0.34.24/go.mod h1:rXVrl4OYzmIa1I91av3iLv2HS0fGSiucyW9J4aMTpKI=
|
github.com/tendermint/tendermint v0.34.21/go.mod h1:XDvfg6U7grcFTDx7VkzxnhazQ/bspGJAn4DZ6DcLLjQ=
|
||||||
github.com/tendermint/tm-db v0.6.7 h1:fE00Cbl0jayAoqlExN6oyQJ7fR/ZtoVOmvPJ//+shu8=
|
github.com/tendermint/tm-db v0.6.7 h1:fE00Cbl0jayAoqlExN6oyQJ7fR/ZtoVOmvPJ//+shu8=
|
||||||
github.com/tendermint/tm-db v0.6.7/go.mod h1:byQDzFkZV1syXr/ReXS808NxA2xvyuuVgXOJ/088L6I=
|
github.com/tendermint/tm-db v0.6.7/go.mod h1:byQDzFkZV1syXr/ReXS808NxA2xvyuuVgXOJ/088L6I=
|
||||||
github.com/tidwall/gjson v1.12.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
github.com/tidwall/gjson v1.12.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
||||||
@ -1239,14 +1121,12 @@ github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVM
|
|||||||
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
|
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
|
||||||
github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
|
github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
|
||||||
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
|
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
|
||||||
github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8=
|
github.com/ulikunitz/xz v0.5.8 h1:ERv8V6GKqVi23rgu5cj9pVfVzJbOqAY2Ntl88O6c2nQ=
|
||||||
github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
|
github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
|
||||||
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
|
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 v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
|
||||||
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
|
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
|
||||||
github.com/urfave/cli/v2 v2.8.1/go.mod h1:Z41J9TPoffeoqP0Iza0YbAhGvymRdZAd2uPmZ5JxRdY=
|
github.com/urfave/cli/v2 v2.8.1/go.mod h1:Z41J9TPoffeoqP0Iza0YbAhGvymRdZAd2uPmZ5JxRdY=
|
||||||
github.com/urfave/cli/v2 v2.10.2 h1:x3p8awjp/2arX+Nl/G2040AZpOCHS/eMJJ1/a+mye4Y=
|
|
||||||
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
|
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
|
||||||
github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
|
github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
|
||||||
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
|
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
|
||||||
@ -1254,12 +1134,14 @@ github.com/vektah/gqlparser/v2 v2.5.1 h1:ZGu+bquAY23jsxDRcYpWjttRZrUz07LbiY77gUO
|
|||||||
github.com/vektah/gqlparser/v2 v2.5.1/go.mod h1:mPgqFBu/woKTVYWyNk8cO3kh4S/f4aRFZrvOnp3hmCs=
|
github.com/vektah/gqlparser/v2 v2.5.1/go.mod h1:mPgqFBu/woKTVYWyNk8cO3kh4S/f4aRFZrvOnp3hmCs=
|
||||||
github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
|
github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
|
||||||
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
|
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
|
||||||
|
github.com/warpfork/go-wish v0.0.0-20180510122957-5ad1f5abf436/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw=
|
||||||
github.com/warpfork/go-wish v0.0.0-20200122115046-b9ea61034e4a h1:G++j5e0OC488te356JvdhaM8YS6nMsjLAYF7JxCv07w=
|
github.com/warpfork/go-wish v0.0.0-20200122115046-b9ea61034e4a h1:G++j5e0OC488te356JvdhaM8YS6nMsjLAYF7JxCv07w=
|
||||||
|
github.com/whyrusleeping/cbor-gen v0.0.0-20200123233031-1cdf64d27158 h1:WXhVOwj2USAXB5oMDwRl3piOux2XMV9TANaYxXHdkoE=
|
||||||
|
github.com/whyrusleeping/cbor-gen v0.0.0-20200123233031-1cdf64d27158/go.mod h1:Xj/M2wWU+QdTdRbu/L/1dIZY8/Wb2K9pAhtroQuxJJI=
|
||||||
github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4=
|
github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4=
|
||||||
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
|
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
|
||||||
github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg=
|
github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg=
|
||||||
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
|
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=
|
|
||||||
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
|
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
|
||||||
github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE=
|
github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE=
|
||||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
@ -1269,10 +1151,9 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec
|
|||||||
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||||
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||||
github.com/zondax/hid v0.9.1 h1:gQe66rtmyZ8VeGFcOpbuH3r7erYtNEAezCAYu8LdkJo=
|
github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM=
|
||||||
github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM=
|
github.com/zondax/hid v0.9.1-0.20220302062450-5552068d2266 h1:O9XLFXGkVswDFmH9LaYpqu+r/AAFWqr0DL6V00KEVFg=
|
||||||
github.com/zondax/ledger-go v0.14.0 h1:dlMC7aO8Wss1CxBq2I96kZ69Nh1ligzbs8UWOtq/AsA=
|
github.com/zondax/hid v0.9.1-0.20220302062450-5552068d2266/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM=
|
||||||
github.com/zondax/ledger-go v0.14.0/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320=
|
|
||||||
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
||||||
go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=
|
go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=
|
||||||
go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4=
|
go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4=
|
||||||
@ -1285,9 +1166,8 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
|||||||
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
|
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
|
||||||
|
go.opencensus.io v0.23.0 h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M=
|
||||||
go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
|
go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
|
||||||
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
|
|
||||||
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
|
|
||||||
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
|
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
|
||||||
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
||||||
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
||||||
@ -1302,10 +1182,12 @@ golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnf
|
|||||||
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
|
golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
|
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
@ -1321,8 +1203,8 @@ golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm
|
|||||||
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.4.0 h1:UVQgzMY87xqpKNgb+kDsll2Igd33HszWHFLmpaRMq/8=
|
golang.org/x/crypto v0.0.0-20221012134737-56aed061732a h1:NmSIgad6KjE6VvHciPZuNRTKxGhlPfD6OA87W/PLkqg=
|
||||||
golang.org/x/crypto v0.4.0/go.mod h1:3quD/ATkf6oY+rnes5c3ExXTbLc8mueNue5/DoinL80=
|
golang.org/x/crypto v0.0.0-20221012134737-56aed061732a/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||||
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
@ -1367,7 +1249,6 @@ golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|||||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
||||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||||
golang.org/x/mod v0.6.0 h1:b9gGHsz9/HhJ3HF5DHQytPpuwocVTChQJK3AvoLRD5I=
|
|
||||||
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
@ -1421,6 +1302,7 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|||||||
golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
|
golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||||
@ -1429,14 +1311,10 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su
|
|||||||
golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||||
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||||
golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||||
golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
|
||||||
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||||
|
golang.org/x/net v0.0.0-20220909164309-bea034e7d591 h1:D0B/7al0LLrVC8aWF4+oxpv/m8bc7ViFfVS8/gXGdqI=
|
||||||
golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
|
golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
|
||||||
golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
|
|
||||||
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
|
|
||||||
golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
|
|
||||||
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
|
||||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
@ -1457,12 +1335,8 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j
|
|||||||
golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc=
|
golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc=
|
||||||
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc=
|
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc=
|
||||||
golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE=
|
golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0=
|
||||||
golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE=
|
golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE=
|
||||||
golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
|
|
||||||
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
|
|
||||||
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
|
|
||||||
golang.org/x/oauth2 v0.1.0 h1:isLCZuhj4v+tYv7eskaN4v/TM+A1begWWgyVJDdl1+Y=
|
|
||||||
golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A=
|
|
||||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
@ -1475,10 +1349,8 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ
|
|||||||
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw=
|
||||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
||||||
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
||||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
||||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
@ -1490,6 +1362,7 @@ golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5h
|
|||||||
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
golang.org/x/sys v0.0.0-20190219092855-153ac476189d/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
@ -1579,23 +1452,19 @@ golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBc
|
|||||||
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
||||||
golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
||||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220913175220-63ea55921009 h1:PuvuRMeLWqsf/ZdT1UUZz0syhioyv1mzuFZsXs4fvhw=
|
||||||
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220913175220-63ea55921009/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
|
|
||||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
||||||
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||||
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 h1:Q5284mrmYTpACcm+eAKjKJH48BBwSyfJqmmGDTtT8Vc=
|
||||||
golang.org/x/term v0.5.0 h1:n2a8QNdAb0sZNpU9R1ALUXBbY+w51fCQDN+7EdxNBsY=
|
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
|
||||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
@ -1604,18 +1473,15 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|||||||
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
|
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
||||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||||
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
|
|
||||||
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
|
||||||
golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
|
|
||||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
|
||||||
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20220609170525-579cf78fd858 h1:Dpdu/EMxGMFgq0CeYMh4fazTD2vtlZRYE7wyynxJb9U=
|
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs=
|
||||||
golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
@ -1681,7 +1547,6 @@ golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|||||||
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||||
golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
||||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||||
golang.org/x/tools v0.2.0 h1:G6AHpWxTMGY1KyEYoAQ5WTtIekUUvDNjan3ugu60JvE=
|
|
||||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
@ -1734,20 +1599,11 @@ google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/S
|
|||||||
google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8=
|
google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8=
|
||||||
google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs=
|
google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs=
|
||||||
google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA=
|
google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA=
|
||||||
google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA=
|
|
||||||
google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw=
|
google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw=
|
||||||
google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg=
|
google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg=
|
||||||
google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o=
|
google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o=
|
||||||
google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g=
|
google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M=
|
||||||
google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw=
|
|
||||||
google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw=
|
google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw=
|
||||||
google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI=
|
|
||||||
google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
|
|
||||||
google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
|
|
||||||
google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
|
|
||||||
google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70=
|
|
||||||
google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ=
|
|
||||||
google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0=
|
|
||||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||||
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||||
@ -1839,7 +1695,6 @@ google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX
|
|||||||
google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
|
google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
|
||||||
google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
|
google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
|
||||||
google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
|
google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
|
||||||
google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
|
|
||||||
google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
|
google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
|
||||||
google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
|
google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
|
||||||
google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
|
google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
|
||||||
@ -1847,28 +1702,8 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW
|
|||||||
google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
|
google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
|
||||||
google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
|
google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
|
||||||
google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
|
google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
|
||||||
google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
|
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a h1:GH6UPn3ixhWcKDhpnEC55S75cerLPdpp3hrhfKYjZgw=
|
||||||
google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE=
|
|
||||||
google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc=
|
|
||||||
google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
|
|
||||||
google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
|
|
||||||
google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
|
|
||||||
google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
|
|
||||||
google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
|
|
||||||
google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
|
|
||||||
google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
|
|
||||||
google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
|
|
||||||
google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
|
|
||||||
google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
|
|
||||||
google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw=
|
|
||||||
google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI=
|
|
||||||
google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI=
|
|
||||||
google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U=
|
|
||||||
google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
|
|
||||||
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
|
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
|
||||||
google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s=
|
|
||||||
google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg=
|
|
||||||
google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
|
|
||||||
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
||||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||||
google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||||
@ -1907,12 +1742,8 @@ google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11
|
|||||||
google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
|
google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
|
||||||
google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
|
google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
|
||||||
google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
|
google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
|
||||||
google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
|
google.golang.org/grpc v1.50.0 h1:fPVVDxY9w++VjTZsYvXWqEf9Rqar/e+9zYfxKK+W+YU=
|
||||||
google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
|
|
||||||
google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
|
google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
|
||||||
google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
|
|
||||||
google.golang.org/grpc v1.51.0 h1:E1eGv1FTqoLIdnBCZufiSHgKjlqG6fKFf6pPWtMTh8U=
|
|
||||||
google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww=
|
|
||||||
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
|
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
|
||||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||||
@ -1928,9 +1759,8 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0
|
|||||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||||
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||||
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||||
|
google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
|
||||||
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||||
google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8 h1:KR8+MyP7/qOlV+8Af01LtjL04bu7on42eVsxT4EyBQk=
|
|
||||||
google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
|
||||||
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
@ -1951,6 +1781,7 @@ gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJ
|
|||||||
gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
|
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 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
||||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
|
||||||
|
gopkg.in/urfave/cli.v1 v1.20.0 h1:NdAVW6RYxDif9DhDHaAortIu956m2c0v+09AZBPTbE0=
|
||||||
gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0=
|
gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0=
|
||||||
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
|
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
|
||||||
gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
|
gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
|
||||||
@ -1981,7 +1812,8 @@ lukechampine.com/blake3 v1.1.6 h1:H3cROdztr7RCfoaTpGZFQsrqvweFLrqS73j7L7cmR5c=
|
|||||||
lukechampine.com/blake3 v1.1.6/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA=
|
lukechampine.com/blake3 v1.1.6/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA=
|
||||||
nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k=
|
nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k=
|
||||||
nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0=
|
nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0=
|
||||||
pgregory.net/rapid v0.5.3 h1:163N50IHFqr1phZens4FQOdPgfJscR7a562mjQqeo4M=
|
pgregory.net/rapid v0.4.7 h1:MTNRktPuv5FNqOO151TM9mDTa+XHcX6ypYeISDVD14g=
|
||||||
|
pgregory.net/rapid v0.4.7/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
|
||||||
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||||
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
|
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
|
||||||
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"Linters": {
|
|
||||||
"vet": "go tool vet -composites=false :PATH:LINE:MESSAGE"
|
|
||||||
},
|
|
||||||
"Enable": [
|
|
||||||
"golint",
|
|
||||||
"vet",
|
|
||||||
"ineffassign",
|
|
||||||
"unparam",
|
|
||||||
"unconvert",
|
|
||||||
"misspell"
|
|
||||||
],
|
|
||||||
"Deadline": "500s",
|
|
||||||
"Vendor": true,
|
|
||||||
"Cyclo": 11
|
|
||||||
}
|
|
269
gomod2nix.toml
269
gomod2nix.toml
@ -2,32 +2,26 @@ schema = 3
|
|||||||
|
|
||||||
[mod]
|
[mod]
|
||||||
[mod."cloud.google.com/go"]
|
[mod."cloud.google.com/go"]
|
||||||
version = "v0.105.0"
|
version = "v0.102.1"
|
||||||
hash = "sha256-2nYtHjuN9ghGcM6aPlOxyNNarHebHtj0Xec48sWwdaI="
|
hash = "sha256-rv3MHFvIrN6AcrmWcWGSQwgaZLbjJMmJFi3bsfHoiO4="
|
||||||
[mod."cloud.google.com/go/compute"]
|
[mod."cloud.google.com/go/compute"]
|
||||||
version = "v1.12.1"
|
version = "v1.7.0"
|
||||||
hash = "sha256-mMsdL+6R1KuFeAFqEJv8oq/cmRc9hSluEisCpGP0GTc="
|
hash = "sha256-g+n7L36LC+NP4KaiEu9fCMn6S9fkxjp4PCLOp/oXV38="
|
||||||
[mod."cloud.google.com/go/compute/metadata"]
|
|
||||||
version = "v0.2.1"
|
|
||||||
hash = "sha256-gqjkb6y5POkTWXGQtCvgygvXqoLkESB+cykKp7Mp3jI="
|
|
||||||
[mod."cloud.google.com/go/iam"]
|
[mod."cloud.google.com/go/iam"]
|
||||||
version = "v0.7.0"
|
version = "v0.4.0"
|
||||||
hash = "sha256-2UTJ/BbZ+YMGJhyo3HRPUYVDXW6+B5znFdqiutboYtA="
|
hash = "sha256-sPtj6QPPC/QrkDXJW4Y7rMIHk5l1y9XV/DgM47eEtvg="
|
||||||
[mod."cloud.google.com/go/storage"]
|
[mod."cloud.google.com/go/storage"]
|
||||||
version = "v1.27.0"
|
version = "v1.22.1"
|
||||||
hash = "sha256-V4B6A1Ms8cemB5Cs6nAtUe1N1ldaI9oqTdzGU2FUhrc="
|
hash = "sha256-YZt05wru0kacyi6moTgvocavActKpXx7FlLh+o0HGDs="
|
||||||
[mod."cosmossdk.io/errors"]
|
[mod."cosmossdk.io/errors"]
|
||||||
version = "v1.0.0-beta.7"
|
version = "v1.0.0-beta.7"
|
||||||
hash = "sha256-XblGvIx6Wvvq6wggXjp+KbeJGXoe7AZH7hXEdauCezU="
|
hash = "sha256-XblGvIx6Wvvq6wggXjp+KbeJGXoe7AZH7hXEdauCezU="
|
||||||
[mod."cosmossdk.io/math"]
|
[mod."cosmossdk.io/math"]
|
||||||
version = "v1.0.0-beta.4"
|
version = "v1.0.0-beta.3"
|
||||||
hash = "sha256-UYdq/46EubyjxkldGike8FlwJLWGCB576VB7th285ao="
|
hash = "sha256-lTQ27ZlL+kWlc+S//sJmyiOwaf9qS+YLv61I4OXi9XE="
|
||||||
[mod."filippo.io/edwards25519"]
|
[mod."filippo.io/edwards25519"]
|
||||||
version = "v1.0.0-rc.1"
|
version = "v1.0.0-rc.1"
|
||||||
hash = "sha256-3DboBqby2ejRU33FG96Z8JF5AJ8HP2rC/v++VyoQ2LQ="
|
hash = "sha256-3DboBqby2ejRU33FG96Z8JF5AJ8HP2rC/v++VyoQ2LQ="
|
||||||
[mod."github.com/99designs/gqlgen"]
|
|
||||||
version = "v0.17.22"
|
|
||||||
hash = "sha256-Cu3nAqFbsV7DH+4UZvX83ScxJtPlvOyD7ptUPXnwGng="
|
|
||||||
[mod."github.com/99designs/keyring"]
|
[mod."github.com/99designs/keyring"]
|
||||||
version = "v1.1.7-0.20210622111912-ef00f8ac3d76"
|
version = "v1.1.7-0.20210622111912-ef00f8ac3d76"
|
||||||
hash = "sha256-oCalyOZWegRgKHZ1GvYHNkrMKh51j8cOE/K4yBPM5Oc="
|
hash = "sha256-oCalyOZWegRgKHZ1GvYHNkrMKh51j8cOE/K4yBPM5Oc="
|
||||||
@ -44,9 +38,6 @@ schema = 3
|
|||||||
[mod."github.com/Workiva/go-datastructures"]
|
[mod."github.com/Workiva/go-datastructures"]
|
||||||
version = "v1.0.53"
|
version = "v1.0.53"
|
||||||
hash = "sha256-W6qOvqu8sokMlZrpOF1SWG138H0/BotywKNLlDF8Zug="
|
hash = "sha256-W6qOvqu8sokMlZrpOF1SWG138H0/BotywKNLlDF8Zug="
|
||||||
[mod."github.com/agnivade/levenshtein"]
|
|
||||||
version = "v1.1.1"
|
|
||||||
hash = "sha256-tgv2s8XIcWjscv1pP87TOIUV4vADT2px1Lo/MQCTBjM="
|
|
||||||
[mod."github.com/armon/go-metrics"]
|
[mod."github.com/armon/go-metrics"]
|
||||||
version = "v0.4.1"
|
version = "v0.4.1"
|
||||||
hash = "sha256-usxTUHA0QQMdM6sHi2z51nmnEKMbA0qUilxJFpWHlYE="
|
hash = "sha256-usxTUHA0QQMdM6sHi2z51nmnEKMbA0qUilxJFpWHlYE="
|
||||||
@ -66,8 +57,8 @@ schema = 3
|
|||||||
version = "v0.22.1"
|
version = "v0.22.1"
|
||||||
hash = "sha256-hBU+roIELcmbW2Gz7eGZzL9qNA1bakq5wNxqCgs4TKc="
|
hash = "sha256-hBU+roIELcmbW2Gz7eGZzL9qNA1bakq5wNxqCgs4TKc="
|
||||||
[mod."github.com/btcsuite/btcd/btcec/v2"]
|
[mod."github.com/btcsuite/btcd/btcec/v2"]
|
||||||
version = "v2.3.2"
|
version = "v2.2.0"
|
||||||
hash = "sha256-natWs+yIAuD1UI07iZtjPilroQLfXizFn3lNOiOT83U="
|
hash = "sha256-cwoIqi0SiAaGEBtuQKip9OVirKIeJw5fUoWo7x/xfOc="
|
||||||
[mod."github.com/btcsuite/btcd/chaincfg/chainhash"]
|
[mod."github.com/btcsuite/btcd/chaincfg/chainhash"]
|
||||||
version = "v1.0.1"
|
version = "v1.0.1"
|
||||||
hash = "sha256-vix0j/KGNvoKjhlKgVeSLY6un2FHeIEoZWMC4z3yvZ4="
|
hash = "sha256-vix0j/KGNvoKjhlKgVeSLY6un2FHeIEoZWMC4z3yvZ4="
|
||||||
@ -93,36 +84,35 @@ schema = 3
|
|||||||
version = "v0.7.9"
|
version = "v0.7.9"
|
||||||
hash = "sha256-ZWIXIXcHGjeCNgMrpXymry8/8esDDauGFfF/+gEoO1Y="
|
hash = "sha256-ZWIXIXcHGjeCNgMrpXymry8/8esDDauGFfF/+gEoO1Y="
|
||||||
[mod."github.com/confio/ics23/go"]
|
[mod."github.com/confio/ics23/go"]
|
||||||
version = "v0.8.0"
|
version = "v0.7.0"
|
||||||
hash = "sha256-mFKxFHp7RaE1L5NdtH9H9px2Cy6I5uOZVnFOgE8Nrew="
|
hash = "sha256-FjUQfDKtX+/13+UjJzbYPAkgM4GPZ0vk+dKz7/iRetw="
|
||||||
replaced = "github.com/cosmos/cosmos-sdk/ics23/go"
|
|
||||||
[mod."github.com/cosmos/btcutil"]
|
[mod."github.com/cosmos/btcutil"]
|
||||||
version = "v1.0.5"
|
version = "v1.0.4"
|
||||||
hash = "sha256-t572Sr5iiHcuMKLMWa2i+LBAt192oa+G1oA371tG/eI="
|
hash = "sha256-JvcBXBdjdmnaW/nyf/tw/uaOAGn1b78yxrtl2/Rs3kA="
|
||||||
[mod."github.com/cosmos/cosmos-proto"]
|
[mod."github.com/cosmos/cosmos-proto"]
|
||||||
version = "v1.0.0-beta.1"
|
version = "v1.0.0-alpha7"
|
||||||
hash = "sha256-oATkuj+fM5eBn+ywO+w/tL0AFSIEkx0J3Yz+VhVe0QA="
|
hash = "sha256-2wCH+toTF2A6MfFjOa13muEH5oBCcxAhZEqirNOrBA0="
|
||||||
[mod."github.com/cosmos/cosmos-sdk"]
|
[mod."github.com/cosmos/cosmos-sdk"]
|
||||||
version = "v0.46.7"
|
version = "v0.46.2-0.20220920160224-9454b97ccb77"
|
||||||
hash = "sha256-54DCF8lrnA1oUmBJlbUlWXOP5UbenRInUROn5P5I9qI="
|
hash = "sha256-zwOsdcoPbEzn+q/UmW6/CauW65V6a4z/7k8DXPCvKb0="
|
||||||
[mod."github.com/cosmos/go-bip39"]
|
[mod."github.com/cosmos/go-bip39"]
|
||||||
version = "v1.0.0"
|
version = "v1.0.0"
|
||||||
hash = "sha256-Qm2aC2vaS8tjtMUbHmlBSagOSqbduEEDwc51qvQaBmA="
|
hash = "sha256-Qm2aC2vaS8tjtMUbHmlBSagOSqbduEEDwc51qvQaBmA="
|
||||||
[mod."github.com/cosmos/gogoproto"]
|
|
||||||
version = "v1.4.3"
|
|
||||||
hash = "sha256-Y/NL76ay/oAl8mS3skkK5ula0/xudqbwW1o22lZjKRg="
|
|
||||||
[mod."github.com/cosmos/gorocksdb"]
|
[mod."github.com/cosmos/gorocksdb"]
|
||||||
version = "v1.2.0"
|
version = "v1.2.0"
|
||||||
hash = "sha256-209TcVuXc5s/TcOvNlaQ1HEJAUDTEK3nxPhs+d8TEcY="
|
hash = "sha256-209TcVuXc5s/TcOvNlaQ1HEJAUDTEK3nxPhs+d8TEcY="
|
||||||
[mod."github.com/cosmos/iavl"]
|
[mod."github.com/cosmos/iavl"]
|
||||||
version = "v0.19.4"
|
version = "v0.19.2-0.20220916140702-9b6be3095313"
|
||||||
hash = "sha256-EmpRZ48pjPFq/fIHneut9Vyo5QJATfb3ZO7KzWnqs9g="
|
hash = "sha256-49xr/7/4L1wZ45eW5lE7C4SlcbGf4gBY+662SfJiWPQ="
|
||||||
[mod."github.com/cosmos/ibc-go/v5"]
|
[mod."github.com/cosmos/ibc-go/v5"]
|
||||||
version = "v5.2.0"
|
version = "v5.0.0"
|
||||||
hash = "sha256-Gfqhdz9ZKEgb7LCkHiXCwYZYUYluQ+vMew/GkssfVj8="
|
hash = "sha256-sDZdmuGohaaBF7bxrjo9PWJnmoF+VOkjySYhsFixPz4="
|
||||||
[mod."github.com/cosmos/ledger-cosmos-go"]
|
[mod."github.com/cosmos/ledger-cosmos-go"]
|
||||||
version = "v0.12.1"
|
version = "v0.11.1"
|
||||||
hash = "sha256-9+nr+/r4MyiogddS0JcXOuriPqXP4nxln8ts+mYQRcg="
|
hash = "sha256-yli+VvVtZmHo2LPvCY6lYVUfcCDn3sBLDL+a8KIlqDA="
|
||||||
|
[mod."github.com/cosmos/ledger-go"]
|
||||||
|
version = "v0.9.2"
|
||||||
|
hash = "sha256-0YI+0A6wFBjiebBwzWOQjkgXkTakCrf7Gjg2xEaQdoM="
|
||||||
[mod."github.com/creachadair/taskgroup"]
|
[mod."github.com/creachadair/taskgroup"]
|
||||||
version = "v0.3.2"
|
version = "v0.3.2"
|
||||||
hash = "sha256-Y261IO/d9xjV0UScqHvo31broxvnKn4IQQC9Mu6jNkE="
|
hash = "sha256-Y261IO/d9xjV0UScqHvo31broxvnKn4IQQC9Mu6jNkE="
|
||||||
@ -166,20 +156,17 @@ schema = 3
|
|||||||
version = "v1.0.0"
|
version = "v1.0.0"
|
||||||
hash = "sha256-k1DYvCqO3BKNcGEve/nMW0RxzMkK2tGfXbUbycqcVSo="
|
hash = "sha256-k1DYvCqO3BKNcGEve/nMW0RxzMkK2tGfXbUbycqcVSo="
|
||||||
[mod."github.com/ethereum/go-ethereum"]
|
[mod."github.com/ethereum/go-ethereum"]
|
||||||
version = "v1.10.26"
|
version = "v1.10.19"
|
||||||
hash = "sha256-gkMEwJ4rOgn12amD4QpZ4th/10uyTTeoFmpseuKDQPs="
|
hash = "sha256-7FPnTGcCb8Xd1QVR+6PmGTaHdTY1mm/8osFTW1JLuG8="
|
||||||
[mod."github.com/felixge/httpsnoop"]
|
[mod."github.com/felixge/httpsnoop"]
|
||||||
version = "v1.0.1"
|
version = "v1.0.1"
|
||||||
hash = "sha256-TNXnnC/ZGNY9lInAcES1cBGqIdEljKuh5LH/khVFjVk="
|
hash = "sha256-TNXnnC/ZGNY9lInAcES1cBGqIdEljKuh5LH/khVFjVk="
|
||||||
[mod."github.com/fsnotify/fsnotify"]
|
[mod."github.com/fsnotify/fsnotify"]
|
||||||
version = "v1.6.0"
|
version = "v1.5.4"
|
||||||
hash = "sha256-DQesOCweQPEwmAn6s7DCP/Dwy8IypC+osbpfsvpkdP0="
|
hash = "sha256-iPuInpDAJvDeSTr6to713J/fTOWdQIWlLXWAuWIs2Bw="
|
||||||
[mod."github.com/gballet/go-libpcsclite"]
|
[mod."github.com/gballet/go-libpcsclite"]
|
||||||
version = "v0.0.0-20190607065134-2772fd86a8ff"
|
version = "v0.0.0-20190607065134-2772fd86a8ff"
|
||||||
hash = "sha256-Nr5ocU9s1F2Lhx/Zq6/nIo+KkKEqMjDYOEs3yWRC48g="
|
hash = "sha256-Nr5ocU9s1F2Lhx/Zq6/nIo+KkKEqMjDYOEs3yWRC48g="
|
||||||
[mod."github.com/gibson042/canonicaljson-go"]
|
|
||||||
version = "v1.0.3"
|
|
||||||
hash = "sha256-CZc2lBZ5ivP0o7K+Cz3ermWOahY6C27rVrI+UI+XCS4="
|
|
||||||
[mod."github.com/go-kit/kit"]
|
[mod."github.com/go-kit/kit"]
|
||||||
version = "v0.12.0"
|
version = "v0.12.0"
|
||||||
hash = "sha256-5RkXo6s0oye8etgD5qy+AvkkkNsQ6jc0kWJj6flA4GM="
|
hash = "sha256-5RkXo6s0oye8etgD5qy+AvkkkNsQ6jc0kWJj6flA4GM="
|
||||||
@ -189,9 +176,6 @@ schema = 3
|
|||||||
[mod."github.com/go-logfmt/logfmt"]
|
[mod."github.com/go-logfmt/logfmt"]
|
||||||
version = "v0.5.1"
|
version = "v0.5.1"
|
||||||
hash = "sha256-t50m9ffvW8PiGvO+2svnLI+N/XaWaBS+ZlhwrEQn2gU="
|
hash = "sha256-t50m9ffvW8PiGvO+2svnLI+N/XaWaBS+ZlhwrEQn2gU="
|
||||||
[mod."github.com/go-logr/logr"]
|
|
||||||
version = "v1.2.3"
|
|
||||||
hash = "sha256-2L7k6GfrcW3GXXYr1FYIu20aZBjIF0cTKdte6D4riH8="
|
|
||||||
[mod."github.com/go-ole/go-ole"]
|
[mod."github.com/go-ole/go-ole"]
|
||||||
version = "v1.2.6"
|
version = "v1.2.6"
|
||||||
hash = "sha256-+oxitLeJxYF19Z6g+6CgmCHJ1Y5D8raMi2Cb3M6nXCs="
|
hash = "sha256-+oxitLeJxYF19Z6g+6CgmCHJ1Y5D8raMi2Cb3M6nXCs="
|
||||||
@ -227,8 +211,8 @@ schema = 3
|
|||||||
version = "v1.0.1"
|
version = "v1.0.1"
|
||||||
hash = "sha256-1PIeFGgUL4BK/StL/D12pg9bEQ5HfMT/fMLdus4pZTs="
|
hash = "sha256-1PIeFGgUL4BK/StL/D12pg9bEQ5HfMT/fMLdus4pZTs="
|
||||||
[mod."github.com/google/go-cmp"]
|
[mod."github.com/google/go-cmp"]
|
||||||
version = "v0.5.9"
|
version = "v0.5.8"
|
||||||
hash = "sha256-lQc4O00R3QSMGs9LP8Sy7A9kj0cqV5rrUdpnGeipIyg="
|
hash = "sha256-8zkIo+Sr1NXMnj3PNmvjX2sZKnAKWXOFvmnX7D9bwxQ="
|
||||||
[mod."github.com/google/orderedcode"]
|
[mod."github.com/google/orderedcode"]
|
||||||
version = "v0.0.1"
|
version = "v0.0.1"
|
||||||
hash = "sha256-KrExYovtUQrHGI1mPQf57jGw8soz7eWOC2xqEaV0uGk="
|
hash = "sha256-KrExYovtUQrHGI1mPQf57jGw8soz7eWOC2xqEaV0uGk="
|
||||||
@ -236,11 +220,14 @@ schema = 3
|
|||||||
version = "v1.3.0"
|
version = "v1.3.0"
|
||||||
hash = "sha256-QoR55eBtA94T2tBszyxfDtO7/pjZZSGb5vm7U0Xhs0Y="
|
hash = "sha256-QoR55eBtA94T2tBszyxfDtO7/pjZZSGb5vm7U0Xhs0Y="
|
||||||
[mod."github.com/googleapis/enterprise-certificate-proxy"]
|
[mod."github.com/googleapis/enterprise-certificate-proxy"]
|
||||||
version = "v0.2.0"
|
version = "v0.1.0"
|
||||||
hash = "sha256-5gxsS5kDLqNFBkQ4eK6GS/sNn+aFknm6jjfteO+6jl4="
|
hash = "sha256-fxaElfiGGh1mLmltkFpVFdiuaagrLZLTW9btVpK13wg="
|
||||||
[mod."github.com/googleapis/gax-go/v2"]
|
[mod."github.com/googleapis/gax-go/v2"]
|
||||||
version = "v2.6.0"
|
version = "v2.4.0"
|
||||||
hash = "sha256-sSsncbJmv0n5jB3G7tHY1Zr2ucCusIeTrXZH4A8QqYI="
|
hash = "sha256-zzat4+3iF2XBTQ6RZAUgsCbfK0HgO0nYhM4utA5dqz0="
|
||||||
|
[mod."github.com/googleapis/go-type-adapters"]
|
||||||
|
version = "v1.0.0"
|
||||||
|
hash = "sha256-u3ajruRV/EN2E1WKet/zoe3zmRrAy4C5F2Dx8bpQwoc="
|
||||||
[mod."github.com/gorilla/handlers"]
|
[mod."github.com/gorilla/handlers"]
|
||||||
version = "v1.5.1"
|
version = "v1.5.1"
|
||||||
hash = "sha256-GnBAARgOx1E+hDMQ63SI17hdhGtLQxb31lZOmn5j/pU="
|
hash = "sha256-GnBAARgOx1E+hDMQ63SI17hdhGtLQxb31lZOmn5j/pU="
|
||||||
@ -302,26 +289,8 @@ schema = 3
|
|||||||
version = "v0.15.0"
|
version = "v0.15.0"
|
||||||
hash = "sha256-9oqKb5Y3hjleOFE2BczbEzLH6q2Jg7kUTP/M8Yk4Ne4="
|
hash = "sha256-9oqKb5Y3hjleOFE2BczbEzLH6q2Jg7kUTP/M8Yk4Ne4="
|
||||||
[mod."github.com/inconshreveable/mousetrap"]
|
[mod."github.com/inconshreveable/mousetrap"]
|
||||||
version = "v1.0.1"
|
version = "v1.0.0"
|
||||||
hash = "sha256-ZTP9pLgwAAvHYK5A4PqwWCHGt00x5zMSOpCPoomQ3Sg="
|
hash = "sha256-ogTuLrV40FwS4ueo4hh6hi1wPywOI+LyIqfNjsibwNY="
|
||||||
[mod."github.com/ipfs/go-block-format"]
|
|
||||||
version = "v0.0.2"
|
|
||||||
hash = "sha256-bgYso07OxWcHQx0ZxjE/G80798DnhywUSvqBb0jK48g="
|
|
||||||
[mod."github.com/ipfs/go-cid"]
|
|
||||||
version = "v0.3.2"
|
|
||||||
hash = "sha256-S7iT1bGU84EgKvScz4uJL+3o1hJ17nP5ANha1B6MVfg="
|
|
||||||
[mod."github.com/ipfs/go-ipfs-util"]
|
|
||||||
version = "v0.0.1"
|
|
||||||
hash = "sha256-Wht/WTcDwoPEwzyZZm1XoFhn3h8fWmg3xuUqBDvmB8k="
|
|
||||||
[mod."github.com/ipfs/go-ipld-cbor"]
|
|
||||||
version = "v0.0.6"
|
|
||||||
hash = "sha256-bb7jO2s1Wy0V9Uu9U3jON9E1BJh6IKYbEEfB/oglvpU="
|
|
||||||
[mod."github.com/ipfs/go-ipld-format"]
|
|
||||||
version = "v0.0.1"
|
|
||||||
hash = "sha256-LZjVFuwSwHzwxl7ZTskSFQr3kXD/qUWAmVVRCcblZFE="
|
|
||||||
[mod."github.com/ipld/go-ipld-prime"]
|
|
||||||
version = "v0.18.0"
|
|
||||||
hash = "sha256-wHkeWxIwyaKku0J8bzQ2gggWJls1ORHhHewY092BA3c="
|
|
||||||
[mod."github.com/jackpal/go-nat-pmp"]
|
[mod."github.com/jackpal/go-nat-pmp"]
|
||||||
version = "v1.0.2"
|
version = "v1.0.2"
|
||||||
hash = "sha256-L1D4Yoxnzihs795GZ+Q3AZsFP5c4iqyjTeyrudzPXtw="
|
hash = "sha256-L1D4Yoxnzihs795GZ+Q3AZsFP5c4iqyjTeyrudzPXtw="
|
||||||
@ -335,11 +304,8 @@ schema = 3
|
|||||||
version = "v0.0.0-20190712205309-48d3d31d256d"
|
version = "v0.0.0-20190712205309-48d3d31d256d"
|
||||||
hash = "sha256-bn04wkDnhQ0tb/YzmPf7MNJlApOl+z6+EAbUqH7Ti5Q="
|
hash = "sha256-bn04wkDnhQ0tb/YzmPf7MNJlApOl+z6+EAbUqH7Ti5Q="
|
||||||
[mod."github.com/klauspost/compress"]
|
[mod."github.com/klauspost/compress"]
|
||||||
version = "v1.15.11"
|
version = "v1.15.9"
|
||||||
hash = "sha256-9MXm0TObg6DyqnYMIw3IChrorHc2ILf5djZYoM0e1J0="
|
hash = "sha256-ctPxlVq0c/SoNPVsP66RjxUjTHys3diW2Apxjyc9WdE="
|
||||||
[mod."github.com/klauspost/cpuid/v2"]
|
|
||||||
version = "v2.0.9"
|
|
||||||
hash = "sha256-0rHlHzEVaDdkVbRJDhnAJjfJUmAHOYjXN5u7VoCi5uk="
|
|
||||||
[mod."github.com/lib/pq"]
|
[mod."github.com/lib/pq"]
|
||||||
version = "v1.10.6"
|
version = "v1.10.6"
|
||||||
hash = "sha256-8EhFwY/9YH5L/fd6l2beOnC3VvpegRAmCCsnDVJBqBM="
|
hash = "sha256-8EhFwY/9YH5L/fd6l2beOnC3VvpegRAmCCsnDVJBqBM="
|
||||||
@ -353,8 +319,8 @@ schema = 3
|
|||||||
version = "v0.9.0"
|
version = "v0.9.0"
|
||||||
hash = "sha256-Fe2OPoyRExZejwtUBivKhfJAJW7o9b1eyYpgDlWQ1No="
|
hash = "sha256-Fe2OPoyRExZejwtUBivKhfJAJW7o9b1eyYpgDlWQ1No="
|
||||||
[mod."github.com/mattn/go-colorable"]
|
[mod."github.com/mattn/go-colorable"]
|
||||||
version = "v0.1.13"
|
version = "v0.1.12"
|
||||||
hash = "sha256-qb3Qbo0CELGRIzvw7NVM1g/aayaz4Tguppk9MD2/OI8="
|
hash = "sha256-Y1vCt0ShrCz4wSmwsppCfeLPLKrWusc2zM2lUFwDMyI="
|
||||||
[mod."github.com/mattn/go-isatty"]
|
[mod."github.com/mattn/go-isatty"]
|
||||||
version = "v0.0.16"
|
version = "v0.0.16"
|
||||||
hash = "sha256-YMaPZvShDfA98vqw1+zWWl7M1IT4nHPGBrAt7kHo8Iw="
|
hash = "sha256-YMaPZvShDfA98vqw1+zWWl7M1IT4nHPGBrAt7kHo8Iw="
|
||||||
@ -368,14 +334,11 @@ schema = 3
|
|||||||
version = "v0.1.1"
|
version = "v0.1.1"
|
||||||
hash = "sha256-SoKy4Mwkbm0J2yQLDcIcBbo/J6auTNdlZslTvJrSknM="
|
hash = "sha256-SoKy4Mwkbm0J2yQLDcIcBbo/J6auTNdlZslTvJrSknM="
|
||||||
[mod."github.com/mimoo/StrobeGo"]
|
[mod."github.com/mimoo/StrobeGo"]
|
||||||
version = "v0.0.0-20210601165009-122bf33a46e0"
|
version = "v0.0.0-20181016162300-f8f6d4d2b643"
|
||||||
hash = "sha256-rmw70RHsbeOnema++aFCPdswADMVKtb7KGF3msOI7ak="
|
hash = "sha256-ih5WfC48IniPuAHUpC6upOabZA1/DssTAcxhZe6A/dE="
|
||||||
[mod."github.com/minio/highwayhash"]
|
[mod."github.com/minio/highwayhash"]
|
||||||
version = "v1.0.2"
|
version = "v1.0.2"
|
||||||
hash = "sha256-UeHeepKtToyA5e/w3KdmpbCn+4medesZG0cAcU6P2cY="
|
hash = "sha256-UeHeepKtToyA5e/w3KdmpbCn+4medesZG0cAcU6P2cY="
|
||||||
[mod."github.com/minio/sha256-simd"]
|
|
||||||
version = "v1.0.0"
|
|
||||||
hash = "sha256-oEo/BoMqSLdwSjrhHTiFjl5Om4MVLNQXDJINk6Z110Y="
|
|
||||||
[mod."github.com/mitchellh/go-homedir"]
|
[mod."github.com/mitchellh/go-homedir"]
|
||||||
version = "v1.1.0"
|
version = "v1.1.0"
|
||||||
hash = "sha256-oduBKXHAQG8X6aqLEpqZHs5DOKe84u6WkBwi4W6cv3k="
|
hash = "sha256-oduBKXHAQG8X6aqLEpqZHs5DOKe84u6WkBwi4W6cv3k="
|
||||||
@ -385,36 +348,18 @@ schema = 3
|
|||||||
[mod."github.com/mitchellh/mapstructure"]
|
[mod."github.com/mitchellh/mapstructure"]
|
||||||
version = "v1.5.0"
|
version = "v1.5.0"
|
||||||
hash = "sha256-ztVhGQXs67MF8UadVvG72G3ly0ypQW0IRDdOOkjYwoE="
|
hash = "sha256-ztVhGQXs67MF8UadVvG72G3ly0ypQW0IRDdOOkjYwoE="
|
||||||
[mod."github.com/mr-tron/base58"]
|
|
||||||
version = "v1.2.0"
|
|
||||||
hash = "sha256-8FzMu3kHUbBX10pUdtGf59Ag7BNupx8ZHeUaodR1/Vk="
|
|
||||||
[mod."github.com/mtibben/percent"]
|
[mod."github.com/mtibben/percent"]
|
||||||
version = "v0.2.1"
|
version = "v0.2.1"
|
||||||
hash = "sha256-Zj1lpCP6mKQ0UUTMs2By4LC414ou+iJzKkK+eBHfEcc="
|
hash = "sha256-Zj1lpCP6mKQ0UUTMs2By4LC414ou+iJzKkK+eBHfEcc="
|
||||||
[mod."github.com/multiformats/go-base32"]
|
|
||||||
version = "v0.0.3"
|
|
||||||
hash = "sha256-L18a2v2c5XenmJcwB1BmN0XzDFY45H0ougcZwrGVl7g="
|
|
||||||
[mod."github.com/multiformats/go-base36"]
|
|
||||||
version = "v0.1.0"
|
|
||||||
hash = "sha256-QGoZm4HrdKWwmbJNbaTW0PvDdvPYrhx10znwhIFnFNM="
|
|
||||||
[mod."github.com/multiformats/go-multibase"]
|
|
||||||
version = "v0.0.3"
|
|
||||||
hash = "sha256-yH1bl+jSJlAvPSqg9Z7xF4JS2fpoNUqH8wCDbU87ZDA="
|
|
||||||
[mod."github.com/multiformats/go-multihash"]
|
|
||||||
version = "v0.2.0"
|
|
||||||
hash = "sha256-4pBq4HNCgos2Ic0FDw2WhoPOL5VL1FHLbiHvnO8oZSc="
|
|
||||||
[mod."github.com/multiformats/go-varint"]
|
|
||||||
version = "v0.0.6"
|
|
||||||
hash = "sha256-QlY6AzrSB/8IrlINPi8J8uw1J0SOa2UMTtlo79fg9gM="
|
|
||||||
[mod."github.com/olekukonko/tablewriter"]
|
[mod."github.com/olekukonko/tablewriter"]
|
||||||
version = "v0.0.5"
|
version = "v0.0.5"
|
||||||
hash = "sha256-/5i70IkH/qSW5KjGzv8aQNKh9tHoz98tqtL0K2DMFn4="
|
hash = "sha256-/5i70IkH/qSW5KjGzv8aQNKh9tHoz98tqtL0K2DMFn4="
|
||||||
[mod."github.com/onsi/ginkgo/v2"]
|
[mod."github.com/onsi/ginkgo/v2"]
|
||||||
version = "v2.5.1"
|
version = "v2.2.0"
|
||||||
hash = "sha256-VB29+H9k7l6il63oXJvsjamSUhsw/e99iI/BeTCderA="
|
hash = "sha256-+VzAN6pB5DwEqT/KHdhgfPnWBtyIIcHi1J4HQkqCvvU="
|
||||||
[mod."github.com/onsi/gomega"]
|
[mod."github.com/onsi/gomega"]
|
||||||
version = "v1.24.1"
|
version = "v1.20.2"
|
||||||
hash = "sha256-REfxQTDRcO23GnmJfOW8/MmPJf9oE2grVvvGiC1eSbo="
|
hash = "sha256-3SGyvhWVlR3tYojnRSDr2SRToontAtw4hbZX+agn/Hs="
|
||||||
[mod."github.com/pelletier/go-toml"]
|
[mod."github.com/pelletier/go-toml"]
|
||||||
version = "v1.9.5"
|
version = "v1.9.5"
|
||||||
hash = "sha256-RJ9K1BTId0Mled7S66iGgxHkZ5JKEIsrrNaEfM8aImc="
|
hash = "sha256-RJ9K1BTId0Mled7S66iGgxHkZ5JKEIsrrNaEfM8aImc="
|
||||||
@ -430,9 +375,6 @@ schema = 3
|
|||||||
[mod."github.com/pmezard/go-difflib"]
|
[mod."github.com/pmezard/go-difflib"]
|
||||||
version = "v1.0.0"
|
version = "v1.0.0"
|
||||||
hash = "sha256-/FtmHnaGjdvEIKAJtrUfEhV7EVo5A/eYrtdnUkuxLDA="
|
hash = "sha256-/FtmHnaGjdvEIKAJtrUfEhV7EVo5A/eYrtdnUkuxLDA="
|
||||||
[mod."github.com/polydawn/refmt"]
|
|
||||||
version = "v0.0.0-20201211092308-30ac6d18308e"
|
|
||||||
hash = "sha256-oicfIWyK51U0LaNW0qgg5enH866TM6vsJExw98whjio="
|
|
||||||
[mod."github.com/prometheus/client_golang"]
|
[mod."github.com/prometheus/client_golang"]
|
||||||
version = "v1.12.2"
|
version = "v1.12.2"
|
||||||
hash = "sha256-d8xHyML/FImuPmFOy7UGW/y85NPLzJYL6IFhR3s7XzE="
|
hash = "sha256-d8xHyML/FImuPmFOy7UGW/y85NPLzJYL6IFhR3s7XzE="
|
||||||
@ -443,8 +385,8 @@ schema = 3
|
|||||||
version = "v0.34.0"
|
version = "v0.34.0"
|
||||||
hash = "sha256-M+v+7DntUBmiQNzfNmG3aLLufbl0XBQOubtYoNTzJDA="
|
hash = "sha256-M+v+7DntUBmiQNzfNmG3aLLufbl0XBQOubtYoNTzJDA="
|
||||||
[mod."github.com/prometheus/procfs"]
|
[mod."github.com/prometheus/procfs"]
|
||||||
version = "v0.8.0"
|
version = "v0.7.3"
|
||||||
hash = "sha256-hgrilokQsXCOCCvwgOSfuErxoFAQpXM/+zNJKcMVHyM="
|
hash = "sha256-ik0WpnpSjMwifPYfQTfu/eb5ilNj+eLJF0d5Dftp8A8="
|
||||||
[mod."github.com/prometheus/tsdb"]
|
[mod."github.com/prometheus/tsdb"]
|
||||||
version = "v0.7.1"
|
version = "v0.7.1"
|
||||||
hash = "sha256-BPz7YJbfMZgeR+u9YaeWeipVzHIS73EdgXD7VSJSLbA="
|
hash = "sha256-BPz7YJbfMZgeR+u9YaeWeipVzHIS73EdgXD7VSJSLbA="
|
||||||
@ -452,8 +394,8 @@ schema = 3
|
|||||||
version = "v0.1.7"
|
version = "v0.1.7"
|
||||||
hash = "sha256-/bfnXHBmN8vviPL7D85IzcEVXCaWyjbPPNyauzEcQ8Q="
|
hash = "sha256-/bfnXHBmN8vviPL7D85IzcEVXCaWyjbPPNyauzEcQ8Q="
|
||||||
[mod."github.com/rcrowley/go-metrics"]
|
[mod."github.com/rcrowley/go-metrics"]
|
||||||
version = "v0.0.0-20201227073835-cf1acfcdf475"
|
version = "v0.0.0-20200313005456-10cdbea86bc0"
|
||||||
hash = "sha256-10ytHQ1SpMKYTiKuOPdEMuOVa8HVvv9ryYSIF9BHEBI="
|
hash = "sha256-xHqWWd4/RyAxqb80zjnrqHnHtWPfVTyByE+vDfbT52E="
|
||||||
[mod."github.com/regen-network/cosmos-proto"]
|
[mod."github.com/regen-network/cosmos-proto"]
|
||||||
version = "v0.3.1"
|
version = "v0.3.1"
|
||||||
hash = "sha256-Bchbq/Hg72EA7Hevs8+PNuENuQaZAzk3qeVjMqFMUxc="
|
hash = "sha256-Bchbq/Hg72EA7Hevs8+PNuENuQaZAzk3qeVjMqFMUxc="
|
||||||
@ -467,23 +409,20 @@ schema = 3
|
|||||||
version = "v1.27.0"
|
version = "v1.27.0"
|
||||||
hash = "sha256-BxQtP2TROeSSpj9l1irocuSfxn55UL4ugzB/og7r8eE="
|
hash = "sha256-BxQtP2TROeSSpj9l1irocuSfxn55UL4ugzB/og7r8eE="
|
||||||
[mod."github.com/sasha-s/go-deadlock"]
|
[mod."github.com/sasha-s/go-deadlock"]
|
||||||
version = "v0.3.1"
|
version = "v0.2.1-0.20190427202633-1595213edefa"
|
||||||
hash = "sha256-2CBEi9/iN/OMt7wEIG+hRjgDH6CRWIgibGGGy1dQ78I="
|
hash = "sha256-BBOohTR+ktgJHAoYWh39/ui8MczcJECloc7tvxVBE50="
|
||||||
[mod."github.com/shirou/gopsutil"]
|
[mod."github.com/shirou/gopsutil"]
|
||||||
version = "v3.21.4-0.20210419000835-c7a38de76ee5+incompatible"
|
version = "v3.21.4-0.20210419000835-c7a38de76ee5+incompatible"
|
||||||
hash = "sha256-oqIqyFquWabIE6DID6uTEc8oFEmM1rVu2ATn3toiCEg="
|
hash = "sha256-oqIqyFquWabIE6DID6uTEc8oFEmM1rVu2ATn3toiCEg="
|
||||||
[mod."github.com/spaolacci/murmur3"]
|
|
||||||
version = "v1.1.0"
|
|
||||||
hash = "sha256-RWD4PPrlAsZZ8Xy356MBxpj+/NZI7w2XOU14Ob7/Y9M="
|
|
||||||
[mod."github.com/spf13/afero"]
|
[mod."github.com/spf13/afero"]
|
||||||
version = "v1.9.2"
|
version = "v1.8.2"
|
||||||
hash = "sha256-R1mir7Fu95QK+YL99U14RGbLJzxqWRH5rSFpssgJvzA="
|
hash = "sha256-ERuG4GK1LOn72DRbT9URpo1QoVIm2A3mPtlf+xSPgx8="
|
||||||
[mod."github.com/spf13/cast"]
|
[mod."github.com/spf13/cast"]
|
||||||
version = "v1.5.0"
|
version = "v1.5.0"
|
||||||
hash = "sha256-Pdp+wC5FWqyJKzyYHb7JCcV9BoJk/sxQw6nLyuLJvuQ="
|
hash = "sha256-Pdp+wC5FWqyJKzyYHb7JCcV9BoJk/sxQw6nLyuLJvuQ="
|
||||||
[mod."github.com/spf13/cobra"]
|
[mod."github.com/spf13/cobra"]
|
||||||
version = "v1.6.1"
|
version = "v1.5.0"
|
||||||
hash = "sha256-80B5HcYdFisz6QLYkTyka7f9Dr6AfcVyPwp3QChoXwU="
|
hash = "sha256-rcyHWrxshA5DVpxrSba5X4NjppqOGrJ64QkUKKnfW2E="
|
||||||
[mod."github.com/spf13/jwalterweatherman"]
|
[mod."github.com/spf13/jwalterweatherman"]
|
||||||
version = "v1.1.0"
|
version = "v1.1.0"
|
||||||
hash = "sha256-62BQtqTLF/eVrTOr7pUXE7AiHRjOVC8jQs3/Ehmflfs="
|
hash = "sha256-62BQtqTLF/eVrTOr7pUXE7AiHRjOVC8jQs3/Ehmflfs="
|
||||||
@ -491,17 +430,17 @@ schema = 3
|
|||||||
version = "v1.0.5"
|
version = "v1.0.5"
|
||||||
hash = "sha256-w9LLYzxxP74WHT4ouBspH/iQZXjuAh2WQCHsuvyEjAw="
|
hash = "sha256-w9LLYzxxP74WHT4ouBspH/iQZXjuAh2WQCHsuvyEjAw="
|
||||||
[mod."github.com/spf13/viper"]
|
[mod."github.com/spf13/viper"]
|
||||||
version = "v1.14.0"
|
version = "v1.13.0"
|
||||||
hash = "sha256-qn3VzD339HZIub5QP4aWVciSufAfVb9llbmQZ8pfDEs="
|
hash = "sha256-yHviS3lMo1hB6jwyiU3zpyGtxP6v9AsyZUKiLeCVz+k="
|
||||||
[mod."github.com/status-im/keycard-go"]
|
[mod."github.com/status-im/keycard-go"]
|
||||||
version = "v0.0.0-20200402102358-957c09536969"
|
version = "v0.0.0-20200402102358-957c09536969"
|
||||||
hash = "sha256-yddXXuu6mEFEO2/K6c1tWymeBKzOcvLQnNsFGRjtfXk="
|
hash = "sha256-yddXXuu6mEFEO2/K6c1tWymeBKzOcvLQnNsFGRjtfXk="
|
||||||
[mod."github.com/stretchr/objx"]
|
[mod."github.com/stretchr/objx"]
|
||||||
version = "v0.5.0"
|
version = "v0.4.0"
|
||||||
hash = "sha256-nY4mvP0f0Ry1IKMKQAYNuioA5h4red4mmQqeGZw6EF0="
|
hash = "sha256-W6ycaeD/okr4udpCAGDsByr3OmiR0fuBzJUXHaHEFC0="
|
||||||
[mod."github.com/stretchr/testify"]
|
[mod."github.com/stretchr/testify"]
|
||||||
version = "v1.8.1"
|
version = "v1.8.0"
|
||||||
hash = "sha256-3e0vOJLgCMAan+GfaGN8RGZdarh5iCavM6flf6YMNPk="
|
hash = "sha256-LDxBAebK+A06y4vbH7cd1sVBOameIY81Xm8/9OPZh7o="
|
||||||
[mod."github.com/subosito/gotenv"]
|
[mod."github.com/subosito/gotenv"]
|
||||||
version = "v1.4.1"
|
version = "v1.4.1"
|
||||||
hash = "sha256-aHAUs8Gh+BREUulljWr7vBZQg1BLu/M/8UfNK8CWSn8="
|
hash = "sha256-aHAUs8Gh+BREUulljWr7vBZQg1BLu/M/8UfNK8CWSn8="
|
||||||
@ -518,8 +457,8 @@ schema = 3
|
|||||||
version = "v0.16.0"
|
version = "v0.16.0"
|
||||||
hash = "sha256-JW4zO/0vMzf1dXLePOqaMtiLUZgNbuIseh9GV+jQlf0="
|
hash = "sha256-JW4zO/0vMzf1dXLePOqaMtiLUZgNbuIseh9GV+jQlf0="
|
||||||
[mod."github.com/tendermint/tendermint"]
|
[mod."github.com/tendermint/tendermint"]
|
||||||
version = "v0.34.24"
|
version = "v0.34.21"
|
||||||
hash = "sha256-3HFTv4XgN535RDaJ5OwUS+fnJHgkmLTwU7CNU2ilxEQ="
|
hash = "sha256-C1KW6Wd4TwsFC09IHt8Jo3dozEk/Q2ZVdTapM8btEJ0="
|
||||||
[mod."github.com/tendermint/tm-db"]
|
[mod."github.com/tendermint/tm-db"]
|
||||||
version = "v0.6.7"
|
version = "v0.6.7"
|
||||||
hash = "sha256-hl/3RrBrpkk2zA6dmrNlIYKs1/GfqegSscDSkA5Pjlo="
|
hash = "sha256-hl/3RrBrpkk2zA6dmrNlIYKs1/GfqegSscDSkA5Pjlo="
|
||||||
@ -535,18 +474,9 @@ schema = 3
|
|||||||
[mod."github.com/ulikunitz/xz"]
|
[mod."github.com/ulikunitz/xz"]
|
||||||
version = "v0.5.8"
|
version = "v0.5.8"
|
||||||
hash = "sha256-bfG3dssBUn+mSOAuKL+a/DTGGLUA+eASgLoGv/Gkqs0="
|
hash = "sha256-bfG3dssBUn+mSOAuKL+a/DTGGLUA+eASgLoGv/Gkqs0="
|
||||||
[mod."github.com/vektah/gqlparser/v2"]
|
|
||||||
version = "v2.5.1"
|
|
||||||
hash = "sha256-sfwSSafdEXEv/ca/EOjgaPEdezewuqdE+5AuwhsHxYU="
|
|
||||||
[mod."github.com/whyrusleeping/cbor-gen"]
|
|
||||||
version = "v0.0.0-20200123233031-1cdf64d27158"
|
|
||||||
hash = "sha256-E+9b4eXoLe95J6/n2Y12z15tMnxPoxdJtHe9B4mLFDA="
|
|
||||||
[mod."github.com/zondax/hid"]
|
[mod."github.com/zondax/hid"]
|
||||||
version = "v0.9.1"
|
version = "v0.9.1-0.20220302062450-5552068d2266"
|
||||||
hash = "sha256-hSVmN/f/lQHFhF60o6ej78ELC0MMoqQgqIX2hHjdTXg="
|
hash = "sha256-IZea8SHuLQxlltm1avieRVI054TWZg2jEoplodvNtwk="
|
||||||
[mod."github.com/zondax/ledger-go"]
|
|
||||||
version = "v0.14.0"
|
|
||||||
hash = "sha256-RozTPSNs4RerZ4DQMBcGmvREjoRtH1G69xjhccYjIOk="
|
|
||||||
[mod."go.etcd.io/bbolt"]
|
[mod."go.etcd.io/bbolt"]
|
||||||
version = "v1.3.6"
|
version = "v1.3.6"
|
||||||
hash = "sha256-DenVAmyN22xUiivk6fdJp4C9ZnUJXCMDUf8E0goRRV4="
|
hash = "sha256-DenVAmyN22xUiivk6fdJp4C9ZnUJXCMDUf8E0goRRV4="
|
||||||
@ -554,47 +484,47 @@ schema = 3
|
|||||||
version = "v0.23.0"
|
version = "v0.23.0"
|
||||||
hash = "sha256-R3O9GyNtv6j0ic7s+2xkLLaLzbJEop0Otj1nJDFBjsg="
|
hash = "sha256-R3O9GyNtv6j0ic7s+2xkLLaLzbJEop0Otj1nJDFBjsg="
|
||||||
[mod."golang.org/x/crypto"]
|
[mod."golang.org/x/crypto"]
|
||||||
version = "v0.3.0"
|
version = "v0.0.0-20220622213112-05595931fe9d"
|
||||||
hash = "sha256-Un9wPqz8u/xpV98T4IqE6RMXIPhGCIm2prsNkHP3cjg="
|
hash = "sha256-2c4wvwiQ0DJSJsApfmNoxCxx1siRCiJvW9hhrGlcvds="
|
||||||
[mod."golang.org/x/exp"]
|
[mod."golang.org/x/exp"]
|
||||||
version = "v0.0.0-20220722155223-a9213eeb770e"
|
version = "v0.0.0-20220722155223-a9213eeb770e"
|
||||||
hash = "sha256-kNgzydWRpjm0sZl4uXEs3LX5L0xjJtJRAFf/CTlYUN4="
|
hash = "sha256-kNgzydWRpjm0sZl4uXEs3LX5L0xjJtJRAFf/CTlYUN4="
|
||||||
[mod."golang.org/x/net"]
|
[mod."golang.org/x/net"]
|
||||||
version = "v0.4.0"
|
version = "v0.0.0-20220726230323-06994584191e"
|
||||||
hash = "sha256-7IwGZh/xg4mQz88cJio2Ov5d3jGRXKj1itlAja/EAbQ="
|
hash = "sha256-VFJB2BjvFZnp0zoJLX4iinV/P6Cn7XUlsKwBGCdVjlU="
|
||||||
[mod."golang.org/x/oauth2"]
|
[mod."golang.org/x/oauth2"]
|
||||||
version = "v0.0.0-20221014153046-6fdb5e3db783"
|
version = "v0.0.0-20220622183110-fd043fe589d2"
|
||||||
hash = "sha256-IoygidVNqyAZmN+3macDeIefK8hhJToygpcqlwehdYQ="
|
hash = "sha256-VLffpTpx3DlUzXB8mKiJfFzm4ZmgnLSUuLB5Ir0WQUg="
|
||||||
[mod."golang.org/x/sync"]
|
[mod."golang.org/x/sync"]
|
||||||
version = "v0.1.0"
|
version = "v0.0.0-20220722155255-886fb9371eb4"
|
||||||
hash = "sha256-Hygjq9euZ0qz6TvHYQwOZEjNiTbTh1nSLRAWZ6KFGR8="
|
hash = "sha256-ZZyIlxh+nqsOiWHstW7eHXN7RhHnbSL2eDIzcve07Q0="
|
||||||
[mod."golang.org/x/sys"]
|
[mod."golang.org/x/sys"]
|
||||||
version = "v0.3.0"
|
version = "v0.0.0-20220811171246-fbc7d0a398ab"
|
||||||
hash = "sha256-TIHhfYbZ99sCU1ZMikxwomXH5AEtD/lA1VMMW+UAhbU="
|
hash = "sha256-acnc9aKY/SyebObLasV+gowfB0S+6ehz3hnUgAmQmSU="
|
||||||
[mod."golang.org/x/term"]
|
[mod."golang.org/x/term"]
|
||||||
version = "v0.3.0"
|
version = "v0.0.0-20220722155259-a9ba230a4035"
|
||||||
hash = "sha256-NKv2o8wz8DB/2W2h/muGEIHb+S06mBXZxhG254RpQ5s="
|
hash = "sha256-9uM1OONzbsa6bz2iKk767hAaCuafi58bdTF7at03fWY="
|
||||||
[mod."golang.org/x/text"]
|
[mod."golang.org/x/text"]
|
||||||
version = "v0.5.0"
|
version = "v0.3.7"
|
||||||
hash = "sha256-ztH+xQyM/clOcQl+y/UEPcfNKbc3xApMbEPDDZ9up0o="
|
hash = "sha256-XH2pUzzQx95O0rak00grQvfACfL+EmZiV7ZzJBkX+XY="
|
||||||
[mod."golang.org/x/xerrors"]
|
[mod."golang.org/x/xerrors"]
|
||||||
version = "v0.0.0-20220907171357-04be3eba64a2"
|
version = "v0.0.0-20220609144429-65e65417b02f"
|
||||||
hash = "sha256-6+zueutgefIYmgXinOflz8qGDDDj0Zhv+2OkGhBTKno="
|
hash = "sha256-tl8pv3oddbz2+KoIp7PFDKsxjQF8ocjPF8XPsY3sw38="
|
||||||
[mod."google.golang.org/api"]
|
[mod."google.golang.org/api"]
|
||||||
version = "v0.102.0"
|
version = "v0.93.0"
|
||||||
hash = "sha256-q8t08Wu0qzOQOmhY4GSoUrhqLTW/TeXiKhio+5ONfe4="
|
hash = "sha256-W17B79osAhObMbrCHlgywEPg9yIPx0ZISDhp9JwFE5A="
|
||||||
[mod."google.golang.org/appengine"]
|
[mod."google.golang.org/appengine"]
|
||||||
version = "v1.6.7"
|
version = "v1.6.7"
|
||||||
hash = "sha256-zIxGRHiq4QBvRqkrhMGMGCaVL4iM4TtlYpAi/hrivS4="
|
hash = "sha256-zIxGRHiq4QBvRqkrhMGMGCaVL4iM4TtlYpAi/hrivS4="
|
||||||
[mod."google.golang.org/genproto"]
|
[mod."google.golang.org/genproto"]
|
||||||
version = "v0.0.0-20221116193143-41c2ba794472"
|
version = "v0.0.0-20220815135757-37a418bb8959"
|
||||||
hash = "sha256-uQuxuOvWRsdMii5M5QresisVd1E+Ss8s2WfR2n7QSXk="
|
hash = "sha256-uS60VVZDdn6kNV24bmOmSTuwz4lBqVM+9XK176GGL2s="
|
||||||
[mod."google.golang.org/grpc"]
|
[mod."google.golang.org/grpc"]
|
||||||
version = "v1.51.0"
|
version = "v1.49.0"
|
||||||
hash = "sha256-RzH5DU13D/ulxxOouIKpdNt8eHdff7mrEnB+JUupbLU="
|
hash = "sha256-x4+/XjxI2HY8fZYMiEV7Kv+2SrnlmaTJX3tBl+dPUoI="
|
||||||
[mod."google.golang.org/protobuf"]
|
[mod."google.golang.org/protobuf"]
|
||||||
version = "v1.28.2-0.20220831092852-f930b1dc76e8"
|
version = "v1.28.1"
|
||||||
hash = "sha256-li5hXlXwTJ5LIZ8bVki1AZ6UFI2gXHl33JwdX1dOrtM="
|
hash = "sha256-sTJYgvlv5is7vHNxcuigF2lNASp0QonhUgnrguhfHSU="
|
||||||
[mod."gopkg.in/ini.v1"]
|
[mod."gopkg.in/ini.v1"]
|
||||||
version = "v1.67.0"
|
version = "v1.67.0"
|
||||||
hash = "sha256-V10ahGNGT+NLRdKUyRg1dos5RxLBXBk1xutcnquc/+4="
|
hash = "sha256-V10ahGNGT+NLRdKUyRg1dos5RxLBXBk1xutcnquc/+4="
|
||||||
@ -607,9 +537,6 @@ schema = 3
|
|||||||
[mod."gopkg.in/yaml.v3"]
|
[mod."gopkg.in/yaml.v3"]
|
||||||
version = "v3.0.1"
|
version = "v3.0.1"
|
||||||
hash = "sha256-FqL9TKYJ0XkNwJFnq9j0VvJ5ZUU1RvH/52h/f5bkYAU="
|
hash = "sha256-FqL9TKYJ0XkNwJFnq9j0VvJ5ZUU1RvH/52h/f5bkYAU="
|
||||||
[mod."lukechampine.com/blake3"]
|
|
||||||
version = "v1.1.6"
|
|
||||||
hash = "sha256-pKVTpuCcqGSn8s11Jq33yrXewQLvycuAoxKJEdbZ7rA="
|
|
||||||
[mod."nhooyr.io/websocket"]
|
[mod."nhooyr.io/websocket"]
|
||||||
version = "v1.8.6"
|
version = "v1.8.6"
|
||||||
hash = "sha256-DyaiCc/1iELrl6JSpz6WYMtFwUiSCOSoNF8IhSyP1ag="
|
hash = "sha256-DyaiCc/1iELrl6JSpz6WYMtFwUiSCOSoNF8IhSyP1ag="
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package gql
|
package gql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
@ -10,10 +12,23 @@ import (
|
|||||||
//
|
//
|
||||||
// For more information, see https://github.com/graphql/graphiql.
|
// For more information, see https://github.com/graphql/graphiql.
|
||||||
|
|
||||||
|
func respond(w http.ResponseWriter, body []byte, code int) {
|
||||||
|
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
||||||
|
w.Header().Set("X-Content-Type-Options", "nosniff")
|
||||||
|
w.WriteHeader(code)
|
||||||
|
_, _ = w.Write(body)
|
||||||
|
}
|
||||||
|
|
||||||
|
func errorJSON(msg string) []byte {
|
||||||
|
buf := bytes.Buffer{}
|
||||||
|
fmt.Fprintf(&buf, `{"error": "%s"}`, msg)
|
||||||
|
return buf.Bytes()
|
||||||
|
}
|
||||||
|
|
||||||
func PlaygroundHandler(apiURL string) http.HandlerFunc {
|
func PlaygroundHandler(apiURL string) http.HandlerFunc {
|
||||||
return func(w http.ResponseWriter, r *http.Request) {
|
return func(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.Method != "GET" {
|
if r.Method != "GET" {
|
||||||
http.Error(w, "only GET requests are supported", http.StatusMethodNotAllowed)
|
respond(w, errorJSON("only GET requests are supported"), http.StatusMethodNotAllowed)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.Header().Set("Content-Type", "text/html")
|
w.Header().Set("Content-Type", "text/html")
|
||||||
@ -143,6 +158,7 @@ var page = template.Must(template.New("graphiql").Parse(`
|
|||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
React.createElement(GraphiQL, {
|
React.createElement(GraphiQL, {
|
||||||
fetcher: GraphiQL.createFetcher({
|
fetcher: GraphiQL.createFetcher({
|
||||||
|
// subscriptionUrl: 'ws://localhost:8081/subscriptions',
|
||||||
url: {{.apiURL}}
|
url: {{.apiURL}}
|
||||||
}),
|
}),
|
||||||
query: parameters.query,
|
query: parameters.query,
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
auctiontypes "github.com/cerc-io/laconicd/x/auction/types"
|
auctiontypes "github.com/cerc-io/laconicd/x/auction/types"
|
||||||
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
|
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
|
||||||
registrytypes "github.com/cerc-io/laconicd/x/registry/types"
|
nstypes "github.com/cerc-io/laconicd/x/nameservice/types"
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||||
@ -32,12 +32,12 @@ func (r *Resolver) Query() QueryResolver {
|
|||||||
type queryResolver struct{ *Resolver }
|
type queryResolver struct{ *Resolver }
|
||||||
|
|
||||||
func (q queryResolver) LookupAuthorities(ctx context.Context, names []string) ([]*AuthorityRecord, error) {
|
func (q queryResolver) LookupAuthorities(ctx context.Context, names []string) ([]*AuthorityRecord, error) {
|
||||||
nsQueryClient := registrytypes.NewQueryClient(q.ctx)
|
nsQueryClient := nstypes.NewQueryClient(q.ctx)
|
||||||
auctionQueryClient := auctiontypes.NewQueryClient(q.ctx)
|
auctionQueryClient := auctiontypes.NewQueryClient(q.ctx)
|
||||||
gqlResponse := []*AuthorityRecord{}
|
gqlResponse := []*AuthorityRecord{}
|
||||||
|
|
||||||
for _, name := range names {
|
for _, name := range names {
|
||||||
res, err := nsQueryClient.Whois(context.Background(), ®istrytypes.QueryWhoisRequest{Name: name})
|
res, err := nsQueryClient.Whois(context.Background(), &nstypes.QueryWhoisRequest{Name: name})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -73,10 +73,10 @@ func (q queryResolver) LookupAuthorities(ctx context.Context, names []string) ([
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (q queryResolver) ResolveNames(ctx context.Context, names []string) ([]*Record, error) {
|
func (q queryResolver) ResolveNames(ctx context.Context, names []string) ([]*Record, error) {
|
||||||
nsQueryClient := registrytypes.NewQueryClient(q.ctx)
|
nsQueryClient := nstypes.NewQueryClient(q.ctx)
|
||||||
var gqlResponse []*Record
|
var gqlResponse []*Record
|
||||||
for _, name := range names {
|
for _, name := range names {
|
||||||
res, err := nsQueryClient.ResolveCrn(context.Background(), ®istrytypes.QueryResolveCrn{Crn: name})
|
res, err := nsQueryClient.ResolveCrn(context.Background(), &nstypes.QueryResolveCrn{Crn: name})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Return nil for record not found.
|
// Return nil for record not found.
|
||||||
gqlResponse = append(gqlResponse, nil)
|
gqlResponse = append(gqlResponse, nil)
|
||||||
@ -94,11 +94,11 @@ func (q queryResolver) ResolveNames(ctx context.Context, names []string) ([]*Rec
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (q queryResolver) LookupNames(ctx context.Context, names []string) ([]*NameRecord, error) {
|
func (q queryResolver) LookupNames(ctx context.Context, names []string) ([]*NameRecord, error) {
|
||||||
nsQueryClient := registrytypes.NewQueryClient(q.ctx)
|
nsQueryClient := nstypes.NewQueryClient(q.ctx)
|
||||||
var gqlResponse []*NameRecord
|
var gqlResponse []*NameRecord
|
||||||
|
|
||||||
for _, name := range names {
|
for _, name := range names {
|
||||||
res, err := nsQueryClient.LookupCrn(context.Background(), ®istrytypes.QueryLookupCrn{Crn: name})
|
res, err := nsQueryClient.LookupCrn(context.Background(), &nstypes.QueryLookupCrn{Crn: name})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Return nil for name not found.
|
// Return nil for name not found.
|
||||||
gqlResponse = append(gqlResponse, nil)
|
gqlResponse = append(gqlResponse, nil)
|
||||||
@ -116,11 +116,11 @@ func (q queryResolver) LookupNames(ctx context.Context, names []string) ([]*Name
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (q queryResolver) QueryRecords(ctx context.Context, attributes []*KeyValueInput, all *bool) ([]*Record, error) {
|
func (q queryResolver) QueryRecords(ctx context.Context, attributes []*KeyValueInput, all *bool) ([]*Record, error) {
|
||||||
nsQueryClient := registrytypes.NewQueryClient(q.ctx)
|
nsQueryClient := nstypes.NewQueryClient(q.ctx)
|
||||||
|
|
||||||
res, err := nsQueryClient.ListRecords(
|
res, err := nsQueryClient.ListRecords(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
®istrytypes.QueryListRecordsRequest{
|
&nstypes.QueryListRecordsRequest{
|
||||||
Attributes: parseRequestAttributes(attributes),
|
Attributes: parseRequestAttributes(attributes),
|
||||||
All: (all != nil && *all),
|
All: (all != nil && *all),
|
||||||
},
|
},
|
||||||
@ -144,11 +144,11 @@ func (q queryResolver) QueryRecords(ctx context.Context, attributes []*KeyValueI
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (q queryResolver) GetRecordsByIds(ctx context.Context, ids []string) ([]*Record, error) {
|
func (q queryResolver) GetRecordsByIds(ctx context.Context, ids []string) ([]*Record, error) {
|
||||||
nsQueryClient := registrytypes.NewQueryClient(q.ctx)
|
nsQueryClient := nstypes.NewQueryClient(q.ctx)
|
||||||
gqlResponse := make([]*Record, len(ids))
|
gqlResponse := make([]*Record, len(ids))
|
||||||
|
|
||||||
for i, id := range ids {
|
for i, id := range ids {
|
||||||
res, err := nsQueryClient.GetRecord(context.Background(), ®istrytypes.QueryRecordByIDRequest{Id: id})
|
res, err := nsQueryClient.GetRecord(context.Background(), &nstypes.QueryRecordByIDRequest{Id: id})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Return nil for record not found.
|
// Return nil for record not found.
|
||||||
gqlResponse[i] = nil
|
gqlResponse[i] = nil
|
||||||
@ -186,7 +186,7 @@ func (q queryResolver) GetStatus(ctx context.Context) (*Status, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return &Status{
|
return &Status{
|
||||||
Version: RegistryVersion,
|
Version: NameServiceVersion,
|
||||||
Node: nodeInfo,
|
Node: nodeInfo,
|
||||||
Sync: syncInfo,
|
Sync: syncInfo,
|
||||||
Validator: validatorInfo,
|
Validator: validatorInfo,
|
||||||
|
24
gql/util.go
24
gql/util.go
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
auctiontypes "github.com/cerc-io/laconicd/x/auction/types"
|
auctiontypes "github.com/cerc-io/laconicd/x/auction/types"
|
||||||
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
|
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
|
||||||
registrytypes "github.com/cerc-io/laconicd/x/registry/types"
|
nstypes "github.com/cerc-io/laconicd/x/nameservice/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ func getGQLCoins(coins sdk.Coins) []*Coin {
|
|||||||
return gqlCoins
|
return gqlCoins
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetGQLNameAuthorityRecord(record *registrytypes.NameAuthority) (*AuthorityRecord, error) {
|
func GetGQLNameAuthorityRecord(record *nstypes.NameAuthority) (*AuthorityRecord, error) {
|
||||||
if record == nil {
|
if record == nil {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
@ -55,7 +55,7 @@ func GetGQLNameAuthorityRecord(record *registrytypes.NameAuthority) (*AuthorityR
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getGQLRecord(ctx context.Context, resolver QueryResolver, record registrytypes.Record) (*Record, error) {
|
func getGQLRecord(ctx context.Context, resolver QueryResolver, record nstypes.Record) (*Record, error) {
|
||||||
// Nil record.
|
// Nil record.
|
||||||
if record.Deleted {
|
if record.Deleted {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
@ -84,7 +84,7 @@ func getGQLRecord(ctx context.Context, resolver QueryResolver, record registryty
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getGQLNameRecord(record *registrytypes.NameRecord) (*NameRecord, error) {
|
func getGQLNameRecord(record *nstypes.NameRecord) (*NameRecord, error) {
|
||||||
if record == nil {
|
if record == nil {
|
||||||
return nil, fmt.Errorf("got nil record")
|
return nil, fmt.Errorf("got nil record")
|
||||||
}
|
}
|
||||||
@ -100,7 +100,7 @@ func getGQLNameRecord(record *registrytypes.NameRecord) (*NameRecord, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getNameRecordEntry(record *registrytypes.NameRecordEntry) *NameRecordEntry {
|
func getNameRecordEntry(record *nstypes.NameRecordEntry) *NameRecordEntry {
|
||||||
return &NameRecordEntry{
|
return &NameRecordEntry{
|
||||||
ID: record.Id,
|
ID: record.Id,
|
||||||
Height: strconv.FormatUint(record.Height, 10),
|
Height: strconv.FormatUint(record.Height, 10),
|
||||||
@ -163,7 +163,7 @@ func GetGQLAuction(auction *auctiontypes.Auction, bids []*auctiontypes.Bid) (*Au
|
|||||||
return &gqlAuction, nil
|
return &gqlAuction, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getReferences(ctx context.Context, resolver QueryResolver, r *registrytypes.RecordType) ([]*Record, error) {
|
func getReferences(ctx context.Context, resolver QueryResolver, r *nstypes.RecordType) ([]*Record, error) {
|
||||||
var ids []string
|
var ids []string
|
||||||
|
|
||||||
// #nosec G705
|
// #nosec G705
|
||||||
@ -184,7 +184,7 @@ func getReferences(ctx context.Context, resolver QueryResolver, r *registrytypes
|
|||||||
return resolver.GetRecordsByIds(ctx, ids)
|
return resolver.GetRecordsByIds(ctx, ids)
|
||||||
}
|
}
|
||||||
|
|
||||||
func getAttributes(r *registrytypes.RecordType) ([]*KeyValue, error) {
|
func getAttributes(r *nstypes.RecordType) ([]*KeyValue, error) {
|
||||||
return mapToKeyValuePairs(r.Attributes)
|
return mapToKeyValuePairs(r.Attributes)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,13 +253,13 @@ func mapToKeyValuePairs(attrs map[string]interface{}) ([]*KeyValue, error) {
|
|||||||
return kvPairs, nil
|
return kvPairs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseRequestAttributes(attrs []*KeyValueInput) []*registrytypes.QueryListRecordsRequest_KeyValueInput {
|
func parseRequestAttributes(attrs []*KeyValueInput) []*nstypes.QueryListRecordsRequest_KeyValueInput {
|
||||||
kvPairs := []*registrytypes.QueryListRecordsRequest_KeyValueInput{}
|
kvPairs := []*nstypes.QueryListRecordsRequest_KeyValueInput{}
|
||||||
|
|
||||||
for _, value := range attrs {
|
for _, value := range attrs {
|
||||||
kvPair := ®istrytypes.QueryListRecordsRequest_KeyValueInput{
|
kvPair := &nstypes.QueryListRecordsRequest_KeyValueInput{
|
||||||
Key: value.Key,
|
Key: value.Key,
|
||||||
Value: ®istrytypes.QueryListRecordsRequest_ValueInput{},
|
Value: &nstypes.QueryListRecordsRequest_ValueInput{},
|
||||||
}
|
}
|
||||||
|
|
||||||
if value.Value.String != nil {
|
if value.Value.String != nil {
|
||||||
@ -283,7 +283,7 @@ func parseRequestAttributes(attrs []*KeyValueInput) []*registrytypes.QueryListRe
|
|||||||
}
|
}
|
||||||
|
|
||||||
if value.Value.Reference != nil {
|
if value.Value.Reference != nil {
|
||||||
reference := ®istrytypes.QueryListRecordsRequest_ReferenceInput{
|
reference := &nstypes.QueryListRecordsRequest_ReferenceInput{
|
||||||
Id: value.Value.Reference.ID,
|
Id: value.Value.Reference.ID,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package gql
|
package gql
|
||||||
|
|
||||||
// RegistryVersion is the registry API version.
|
// NameServiceVersion is the registry API version.
|
||||||
const RegistryVersion = "0.3.0"
|
const NameServiceVersion = "0.3.0"
|
||||||
|
@ -3,11 +3,11 @@ package indexer
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
|
||||||
rpctypes "github.com/cerc-io/laconicd/rpc/types"
|
rpctypes "github.com/cerc-io/laconicd/rpc/types"
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
@ -110,12 +110,12 @@ func (kv *KVIndexer) IndexBlock(block *tmtypes.Block, txResults []*abci.Response
|
|||||||
ethTxIndex++
|
ethTxIndex++
|
||||||
|
|
||||||
if err := saveTxResult(kv.clientCtx.Codec, batch, txHash, &txResult); err != nil {
|
if err := saveTxResult(kv.clientCtx.Codec, batch, txHash, &txResult); err != nil {
|
||||||
return errorsmod.Wrapf(err, "IndexBlock %d", height)
|
return sdkerrors.Wrapf(err, "IndexBlock %d", height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := batch.Write(); err != nil {
|
if err := batch.Write(); err != nil {
|
||||||
return errorsmod.Wrapf(err, "IndexBlock %d, write batch", block.Height)
|
return sdkerrors.Wrapf(err, "IndexBlock %d, write batch", block.Height)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -134,14 +134,14 @@ func (kv *KVIndexer) FirstIndexedBlock() (int64, error) {
|
|||||||
func (kv *KVIndexer) GetByTxHash(hash common.Hash) (*ethermint.TxResult, error) {
|
func (kv *KVIndexer) GetByTxHash(hash common.Hash) (*ethermint.TxResult, error) {
|
||||||
bz, err := kv.db.Get(TxHashKey(hash))
|
bz, err := kv.db.Get(TxHashKey(hash))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errorsmod.Wrapf(err, "GetByTxHash %s", hash.Hex())
|
return nil, sdkerrors.Wrapf(err, "GetByTxHash %s", hash.Hex())
|
||||||
}
|
}
|
||||||
if len(bz) == 0 {
|
if len(bz) == 0 {
|
||||||
return nil, fmt.Errorf("tx not found, hash: %s", hash.Hex())
|
return nil, fmt.Errorf("tx not found, hash: %s", hash.Hex())
|
||||||
}
|
}
|
||||||
var txKey ethermint.TxResult
|
var txKey ethermint.TxResult
|
||||||
if err := kv.clientCtx.Codec.Unmarshal(bz, &txKey); err != nil {
|
if err := kv.clientCtx.Codec.Unmarshal(bz, &txKey); err != nil {
|
||||||
return nil, errorsmod.Wrapf(err, "GetByTxHash %s", hash.Hex())
|
return nil, sdkerrors.Wrapf(err, "GetByTxHash %s", hash.Hex())
|
||||||
}
|
}
|
||||||
return &txKey, nil
|
return &txKey, nil
|
||||||
}
|
}
|
||||||
@ -150,7 +150,7 @@ func (kv *KVIndexer) GetByTxHash(hash common.Hash) (*ethermint.TxResult, error)
|
|||||||
func (kv *KVIndexer) GetByBlockAndIndex(blockNumber int64, txIndex int32) (*ethermint.TxResult, error) {
|
func (kv *KVIndexer) GetByBlockAndIndex(blockNumber int64, txIndex int32) (*ethermint.TxResult, error) {
|
||||||
bz, err := kv.db.Get(TxIndexKey(blockNumber, txIndex))
|
bz, err := kv.db.Get(TxIndexKey(blockNumber, txIndex))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errorsmod.Wrapf(err, "GetByBlockAndIndex %d %d", blockNumber, txIndex)
|
return nil, sdkerrors.Wrapf(err, "GetByBlockAndIndex %d %d", blockNumber, txIndex)
|
||||||
}
|
}
|
||||||
if len(bz) == 0 {
|
if len(bz) == 0 {
|
||||||
return nil, fmt.Errorf("tx not found, block: %d, eth-index: %d", blockNumber, txIndex)
|
return nil, fmt.Errorf("tx not found, block: %d, eth-index: %d", blockNumber, txIndex)
|
||||||
@ -174,7 +174,7 @@ func TxIndexKey(blockNumber int64, txIndex int32) []byte {
|
|||||||
func LoadLastBlock(db dbm.DB) (int64, error) {
|
func LoadLastBlock(db dbm.DB) (int64, error) {
|
||||||
it, err := db.ReverseIterator([]byte{KeyPrefixTxIndex}, []byte{KeyPrefixTxIndex + 1})
|
it, err := db.ReverseIterator([]byte{KeyPrefixTxIndex}, []byte{KeyPrefixTxIndex + 1})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, errorsmod.Wrap(err, "LoadLastBlock")
|
return 0, sdkerrors.Wrap(err, "LoadLastBlock")
|
||||||
}
|
}
|
||||||
defer it.Close()
|
defer it.Close()
|
||||||
if !it.Valid() {
|
if !it.Valid() {
|
||||||
@ -187,7 +187,7 @@ func LoadLastBlock(db dbm.DB) (int64, error) {
|
|||||||
func LoadFirstBlock(db dbm.DB) (int64, error) {
|
func LoadFirstBlock(db dbm.DB) (int64, error) {
|
||||||
it, err := db.Iterator([]byte{KeyPrefixTxIndex}, []byte{KeyPrefixTxIndex + 1})
|
it, err := db.Iterator([]byte{KeyPrefixTxIndex}, []byte{KeyPrefixTxIndex + 1})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, errorsmod.Wrap(err, "LoadFirstBlock")
|
return 0, sdkerrors.Wrap(err, "LoadFirstBlock")
|
||||||
}
|
}
|
||||||
defer it.Close()
|
defer it.Close()
|
||||||
if !it.Valid() {
|
if !it.Valid() {
|
||||||
@ -213,10 +213,10 @@ func isEthTx(tx sdk.Tx) bool {
|
|||||||
func saveTxResult(codec codec.Codec, batch dbm.Batch, txHash common.Hash, txResult *ethermint.TxResult) error {
|
func saveTxResult(codec codec.Codec, batch dbm.Batch, txHash common.Hash, txResult *ethermint.TxResult) error {
|
||||||
bz := codec.MustMarshal(txResult)
|
bz := codec.MustMarshal(txResult)
|
||||||
if err := batch.Set(TxHashKey(txHash), bz); err != nil {
|
if err := batch.Set(TxHashKey(txHash), bz); err != nil {
|
||||||
return errorsmod.Wrap(err, "set tx-hash key")
|
return sdkerrors.Wrap(err, "set tx-hash key")
|
||||||
}
|
}
|
||||||
if err := batch.Set(TxIndexKey(txResult.Height, txResult.EthTxIndex), txHash.Bytes()); err != nil {
|
if err := batch.Set(TxIndexKey(txResult.Height, txResult.EthTxIndex), txHash.Bytes()); err != nil {
|
||||||
return errorsmod.Wrap(err, "set tx-index key")
|
return sdkerrors.Wrap(err, "set tx-index key")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
2
init.bat
2
init.bat
@ -9,7 +9,7 @@ rem 3. add path C:\msys64\mingw64\bin
|
|||||||
rem C:\msys64\usr\bin
|
rem C:\msys64\usr\bin
|
||||||
|
|
||||||
set KEY="mykey"
|
set KEY="mykey"
|
||||||
set CHAINID="laconic_9000-1"
|
set CHAINID="ethermint_9000-1"
|
||||||
set MONIKER="localtestnet"
|
set MONIKER="localtestnet"
|
||||||
set KEYRING="test"
|
set KEYRING="test"
|
||||||
set KEYALGO="eth_secp256k1"
|
set KEYALGO="eth_secp256k1"
|
||||||
|
115
init.sh
115
init.sh
@ -1,80 +1,76 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
KEY="mykey"
|
KEY="mykey"
|
||||||
CHAINID="laconic_9000-1"
|
CHAINID="ethermint_9000-1"
|
||||||
MONIKER="localtestnet"
|
MONIKER="localtestnet"
|
||||||
KEYRING="test"
|
KEYRING="test"
|
||||||
KEYALGO="eth_secp256k1"
|
KEYALGO="eth_secp256k1"
|
||||||
LOGLEVEL="info"
|
LOGLEVEL="info"
|
||||||
# trace evm
|
# to trace evm
|
||||||
TRACE="--trace"
|
TRACE="--trace"
|
||||||
# TRACE=""
|
# TRACE=""
|
||||||
|
|
||||||
if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
|
# validate dependencies are installed
|
||||||
# validate dependencies are installed
|
command -v jq > /dev/null 2>&1 || { echo >&2 "jq not installed. More info: https://stedolan.github.io/jq/download/"; exit 1; }
|
||||||
command -v jq > /dev/null 2>&1 || { echo >&2 "jq not installed. More info: https://stedolan.github.io/jq/download/"; exit 1; }
|
|
||||||
|
|
||||||
# remove existing daemon and client
|
# remove existing daemon and client
|
||||||
rm -rf $HOME/.laconicd/*
|
rm -rf ~/.laconic*
|
||||||
rm -rf $HOME/.laconic/*
|
|
||||||
|
|
||||||
if [ -n "`which make`" ]; then
|
make install
|
||||||
make install
|
|
||||||
fi
|
|
||||||
|
|
||||||
laconicd config keyring-backend $KEYRING
|
laconicd config keyring-backend $KEYRING
|
||||||
laconicd config chain-id $CHAINID
|
laconicd config chain-id $CHAINID
|
||||||
|
|
||||||
# if $KEY exists it should be deleted
|
# if $KEY exists it should be deleted
|
||||||
laconicd keys add $KEY --keyring-backend $KEYRING --algo $KEYALGO
|
laconicd keys add $KEY --keyring-backend $KEYRING --algo $KEYALGO
|
||||||
|
|
||||||
# Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer)
|
# Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer)
|
||||||
laconicd init $MONIKER --chain-id $CHAINID
|
laconicd init $MONIKER --chain-id $CHAINID
|
||||||
|
|
||||||
# Change parameter token denominations to aphoton
|
# Change parameter token denominations to aphoton
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
# Custom modules
|
# Custom modules
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["record_rent"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["record_rent"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_rent"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_rent"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_auction_commit_fee"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_auction_commit_fee"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_auction_reveal_fee"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_auction_reveal_fee"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_auction_minimum_bid"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_auction_minimum_bid"]["denom"]="aphoton"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
|
|
||||||
if [[ "$TEST_REGISTRY_EXPIRY" == "true" ]]; then
|
if [[ "$TEST_NAMESERVICE_EXPIRY" == "true" ]]; then
|
||||||
echo "Setting timers for expiry tests."
|
echo "Setting timers for expiry tests."
|
||||||
|
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["record_rent_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["record_rent_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_grace_period"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_grace_period"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_rent_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_rent_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$TEST_AUCTION_ENABLED" == "true" ]]; then
|
if [[ "$TEST_AUCTION_ENABLED" == "true" ]]; then
|
||||||
echo "Enabling auction and setting timers."
|
echo "Enabling auction and setting timers."
|
||||||
|
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_auction_enabled"]=true' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_auction_enabled"]=true' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_rent_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_rent_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_grace_period"]="300s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_grace_period"]="300s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_auction_commits_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_auction_commits_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["registry"]["params"]["authority_auction_reveals_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_auction_reveals_duration"]="60s"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# increase block time (?)
|
# increase block time (?)
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.consensus_params["block"]["time_iota_ms"]="1000"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.consensus_params["block"]["time_iota_ms"]="1000"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
|
|
||||||
# Set gas limit in genesis
|
# Set gas limit in genesis
|
||||||
cat $HOME/.laconicd/config/genesis.json | jq '.consensus_params["block"]["max_gas"]="10000000"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
cat $HOME/.laconicd/config/genesis.json | jq '.consensus_params["block"]["max_gas"]="10000000"' > $HOME/.laconicd/config/tmp_genesis.json && mv $HOME/.laconicd/config/tmp_genesis.json $HOME/.laconicd/config/genesis.json
|
||||||
|
|
||||||
# disable produce empty block
|
# disable produce empty block
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
sed -i '' 's/create_empty_blocks = true/create_empty_blocks = false/g' $HOME/.laconicd/config/config.toml
|
sed -i '' 's/create_empty_blocks = true/create_empty_blocks = false/g' $HOME/.laconicd/config/config.toml
|
||||||
else
|
else
|
||||||
sed -i 's/create_empty_blocks = true/create_empty_blocks = false/g' $HOME/.laconicd/config/config.toml
|
sed -i 's/create_empty_blocks = true/create_empty_blocks = false/g' $HOME/.laconicd/config/config.toml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $1 == "pending" ]]; then
|
if [[ $1 == "pending" ]]; then
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
sed -i '' 's/create_empty_blocks_interval = "0s"/create_empty_blocks_interval = "30s"/g' $HOME/.laconicd/config/config.toml
|
sed -i '' 's/create_empty_blocks_interval = "0s"/create_empty_blocks_interval = "30s"/g' $HOME/.laconicd/config/config.toml
|
||||||
sed -i '' 's/timeout_propose = "3s"/timeout_propose = "30s"/g' $HOME/.laconicd/config/config.toml
|
sed -i '' 's/timeout_propose = "3s"/timeout_propose = "30s"/g' $HOME/.laconicd/config/config.toml
|
||||||
@ -96,25 +92,22 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
|
|||||||
sed -i 's/timeout_commit = "5s"/timeout_commit = "150s"/g' $HOME/.laconicd/config/config.toml
|
sed -i 's/timeout_commit = "5s"/timeout_commit = "150s"/g' $HOME/.laconicd/config/config.toml
|
||||||
sed -i 's/timeout_broadcast_tx_commit = "10s"/timeout_broadcast_tx_commit = "150s"/g' $HOME/.laconicd/config/config.toml
|
sed -i 's/timeout_broadcast_tx_commit = "10s"/timeout_broadcast_tx_commit = "150s"/g' $HOME/.laconicd/config/config.toml
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Allocate genesis accounts (cosmos formatted addresses)
|
# Allocate genesis accounts (cosmos formatted addresses)
|
||||||
laconicd add-genesis-account $KEY 100000000000000000000000000aphoton --keyring-backend $KEYRING
|
laconicd add-genesis-account $KEY 100000000000000000000000000aphoton --keyring-backend $KEYRING
|
||||||
|
|
||||||
# Sign genesis transaction
|
# Sign genesis transaction
|
||||||
laconicd gentx $KEY 1000000000000000000000aphoton --keyring-backend $KEYRING --chain-id $CHAINID
|
laconicd gentx $KEY 1000000000000000000000aphoton --keyring-backend $KEYRING --chain-id $CHAINID
|
||||||
|
|
||||||
# Collect genesis tx
|
# Collect genesis tx
|
||||||
laconicd collect-gentxs
|
laconicd collect-gentxs
|
||||||
|
|
||||||
# Run this to ensure everything worked and that the genesis file is setup correctly
|
# Run this to ensure everything worked and that the genesis file is setup correctly
|
||||||
laconicd validate-genesis
|
laconicd validate-genesis
|
||||||
|
|
||||||
if [[ $1 == "pending" ]]; then
|
if [[ $1 == "pending" ]]; then
|
||||||
echo "pending mode is on, please wait for the first block committed."
|
echo "pending mode is on, please wait for the first block committed."
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Using existing database at $HOME/.laconicd. To replace, run '`basename $0` clean'"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start the node (remove the --pruning=nothing flag if historical queries are not needed)
|
# Start the node (remove the --pruning=nothing flag if historical queries are not needed)
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"retryOn429": true,
|
|
||||||
"retryCount": 3,
|
|
||||||
"fallbackRetryDelay": "20s"
|
|
||||||
}
|
|
@ -15,7 +15,7 @@ COPY . .
|
|||||||
RUN make build-linux
|
RUN make build-linux
|
||||||
|
|
||||||
# Final image
|
# Final image
|
||||||
FROM golang:1.19 as final
|
FROM golang:1.18 as final
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ import sources.nixpkgs {
|
|||||||
dotenv = builtins.path { name = "dotenv"; path = ../scripts/.env; };
|
dotenv = builtins.path { name = "dotenv"; path = ../scripts/.env; };
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
(_: pkgs: { test-env = pkgs.callPackage ./testenv.nix { }; })
|
(_: pkgs: { test-env = import ./testenv.nix { inherit pkgs; }; })
|
||||||
(_: pkgs: {
|
(_: pkgs: {
|
||||||
cosmovisor = pkgs.buildGo118Module rec {
|
cosmovisor = pkgs.buildGo118Module rec {
|
||||||
name = "cosmovisor";
|
name = "cosmovisor";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit, nixosTests }:
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# A list of binaries to put into separate outputs
|
# A list of binaries to put into separate outputs
|
||||||
@ -7,18 +7,19 @@ let
|
|||||||
"clef"
|
"clef"
|
||||||
];
|
];
|
||||||
|
|
||||||
in buildGoModule rec {
|
in
|
||||||
|
buildGoModule rec {
|
||||||
pname = "go-ethereum";
|
pname = "go-ethereum";
|
||||||
version = "1.10.25";
|
version = "1.10.19";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ethereum";
|
owner = "ethereum";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-mnf0kMfQEEQMricZJfyF7ZB/2F1dyPBx9iT2v/rGh1U=";
|
sha256 = "0f6n9rg42ph47mvykc9f0lf99yzwqy4jm7mlzyks4l6i6fl1g3q1";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-Dj+xN8lr98LJyYr2FwJ7yUIJkUeUrr1fkcbj4hShJI0=";
|
vendorSha256 = "1s5yfpk2yn7f3zwjl2fdrh6c63ki2b8rlmnlss27yxibsidaj0yd";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
@ -46,19 +47,14 @@ in buildGoModule rec {
|
|||||||
"cmd/utils"
|
"cmd/utils"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Following upstream: https://github.com/ethereum/go-ethereum/blob/v1.10.25/build/ci.go#L218
|
|
||||||
tags = [ "urfave_cli_no_docs" ];
|
|
||||||
|
|
||||||
# Fix for usb-related segmentation faults on darwin
|
# Fix for usb-related segmentation faults on darwin
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
lib.optionals stdenv.isDarwin [ libobjc IOKit ];
|
lib.optionals stdenv.isDarwin [ libobjc IOKit ];
|
||||||
|
|
||||||
passthru.tests = { inherit (nixosTests) geth; };
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://geth.ethereum.org/";
|
homepage = "https://geth.ethereum.org/";
|
||||||
description = "Official golang implementation of the Ethereum protocol";
|
description = "Official golang implementation of the Ethereum protocol";
|
||||||
license = with licenses; [ lgpl3Plus gpl3Plus ];
|
license = with licenses; [ lgpl3Plus gpl3Plus ];
|
||||||
maintainers = with maintainers; [ adisbladis RaghavSood ];
|
maintainers = with maintainers; [ adisbladis lionello RaghavSood ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
"cosmos-sdk": {
|
|
||||||
"branch": "main",
|
|
||||||
"description": ":chains: A Framework for Building High Value Public Blockchains :sparkles:",
|
|
||||||
"homepage": "https://cosmos.network/",
|
|
||||||
"owner": "cosmos",
|
|
||||||
"repo": "cosmos-sdk",
|
|
||||||
"rev": "b6c77e6c819f8a51166649eaef125d1bfb276f04",
|
|
||||||
"sha256": "09ns4yfxyfi7c7n5g69zv32m1rdssdl48c1akmv1y2vz6ayz4v02",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/cosmos/cosmos-sdk/archive/b6c77e6c819f8a51166649eaef125d1bfb276f04.tar.gz",
|
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
|
||||||
},
|
|
||||||
"gomod2nix": {
|
|
||||||
"branch": "master",
|
|
||||||
"description": "Convert applications using Go modules to Nix expressions",
|
|
||||||
"homepage": null,
|
|
||||||
"owner": "tweag",
|
|
||||||
"repo": "gomod2nix",
|
|
||||||
"rev": "40d32f82fc60d66402eb0972e6e368aeab3faf58",
|
|
||||||
"sha256": "0li17ynbg2wg0xqy655m5rmcw905sbv7d4ir35z7s5pg1yhhzxkp",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/tweag/gomod2nix/archive/40d32f82fc60d66402eb0972e6e368aeab3faf58.tar.gz",
|
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
|
||||||
},
|
|
||||||
"niv": {
|
|
||||||
"branch": "master",
|
|
||||||
"description": "Easy dependency management for Nix projects",
|
|
||||||
"homepage": "https://github.com/nmattia/niv",
|
|
||||||
"owner": "nmattia",
|
|
||||||
"repo": "niv",
|
|
||||||
"rev": "e0ca65c81a2d7a4d82a189f1e23a48d59ad42070",
|
|
||||||
"sha256": "1pq9nh1d8nn3xvbdny8fafzw87mj7gsmp6pxkdl65w2g18rmcmzx",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/nmattia/niv/archive/e0ca65c81a2d7a4d82a189f1e23a48d59ad42070.tar.gz",
|
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"branch": "master",
|
|
||||||
"description": "Nix Packages collection",
|
|
||||||
"homepage": "",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "ea2c6a6dda1aa35a80139a512a9dee375b0946e7",
|
|
||||||
"sha256": "0nd4nn9ryqa80ssw3j2kmr8wa73p2xz1hyxp280cdzqlmdfgw1lm",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/ea2c6a6dda1aa35a80139a512a9dee375b0946e7.tar.gz",
|
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,38 +1,18 @@
|
|||||||
{ poetry2nix, lib, python310 }:
|
{ pkgs }:
|
||||||
poetry2nix.mkPoetryEnv {
|
pkgs.poetry2nix.mkPoetryEnv {
|
||||||
projectDir = ../tests/integration_tests;
|
projectDir = ../tests/integration_tests;
|
||||||
python = python310;
|
python = pkgs.python39;
|
||||||
overrides = poetry2nix.overrides.withDefaults (lib.composeManyExtensions [
|
overrides = pkgs.poetry2nix.overrides.withDefaults (self: super: {
|
||||||
(self: super:
|
|
||||||
let
|
|
||||||
buildSystems = {
|
|
||||||
eth-bloom = [ "setuptools" ];
|
|
||||||
pystarport = [ "poetry" ];
|
|
||||||
durations = [ "setuptools" ];
|
|
||||||
multitail2 = [ "setuptools" ];
|
|
||||||
pytest-github-actions-annotate-failures = [ "setuptools" ];
|
|
||||||
flake8-black = [ "setuptools" ];
|
|
||||||
multiaddr = [ "setuptools" ];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
lib.mapAttrs
|
|
||||||
(attr: systems: super.${attr}.overridePythonAttrs
|
|
||||||
(old: {
|
|
||||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ map (a: self.${a}) systems;
|
|
||||||
}))
|
|
||||||
buildSystems
|
|
||||||
)
|
|
||||||
(self: super: {
|
|
||||||
eth-bloom = super.eth-bloom.overridePythonAttrs {
|
eth-bloom = super.eth-bloom.overridePythonAttrs {
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace setup.py --replace \'setuptools-markdown\' ""
|
substituteInPlace setup.py --replace \'setuptools-markdown\' ""
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
pyyaml-include = super.pyyaml-include.overridePythonAttrs {
|
|
||||||
preConfigure = ''
|
pystarport = super.pystarport.overridePythonAttrs (
|
||||||
substituteInPlace setup.py --replace "setup()" "setup(version=\"1.3\")"
|
old: {
|
||||||
'';
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.poetry ];
|
||||||
};
|
}
|
||||||
})
|
);
|
||||||
]);
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
version: v1
|
|
||||||
plugins:
|
|
||||||
- name: gocosmos
|
|
||||||
out: .
|
|
||||||
opt: plugins=grpc,google/protobuf/duration.proto=google/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mcosmos/orm/v1alpha1/orm.proto=github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1
|
|
||||||
- name: grpc-gateway
|
|
||||||
out: .
|
|
||||||
opt: logtostderr=true,allow_colon_final_segments=true
|
|
@ -1,15 +0,0 @@
|
|||||||
version: v1
|
|
||||||
plugins:
|
|
||||||
- name: gocosmos
|
|
||||||
out: .
|
|
||||||
opt: plugins=grpc,google/protobuf/duration.proto=google/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mcosmos/orm/v1alpha1/orm.proto=github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1
|
|
||||||
- name: grpc-gateway
|
|
||||||
out: .
|
|
||||||
opt: logtostderr=true
|
|
||||||
- name: swagger
|
|
||||||
out: ./tmp-swagger-gen
|
|
||||||
opt:
|
|
||||||
- logtostderr=true
|
|
||||||
- fqn_for_swagger_name=true
|
|
||||||
- simple_operation_ids=true
|
|
||||||
strategy: all
|
|
@ -1,19 +0,0 @@
|
|||||||
# Generated by buf. DO NOT EDIT.
|
|
||||||
version: v1
|
|
||||||
deps:
|
|
||||||
- remote: buf.build
|
|
||||||
owner: cosmos
|
|
||||||
repository: cosmos-proto
|
|
||||||
commit: 1935555c206d4afb9e94615dfd0fad31
|
|
||||||
- remote: buf.build
|
|
||||||
owner: cosmos
|
|
||||||
repository: cosmos-sdk
|
|
||||||
commit: 508e19f5f37549e3a471a2a59b903c00
|
|
||||||
- remote: buf.build
|
|
||||||
owner: cosmos
|
|
||||||
repository: gogo-proto
|
|
||||||
commit: 34d970b699f84aa382f3c29773a60836
|
|
||||||
- remote: buf.build
|
|
||||||
owner: googleapis
|
|
||||||
repository: googleapis
|
|
||||||
commit: 783e4b5374fa488ab068d08af9658438
|
|
@ -1,10 +1,4 @@
|
|||||||
version: v1
|
version: v1
|
||||||
name: buf.build/cerc-io/laconicd
|
|
||||||
deps:
|
|
||||||
- buf.build/cosmos/cosmos-sdk
|
|
||||||
- buf.build/cosmos/cosmos-proto
|
|
||||||
- buf.build/cosmos/gogo-proto
|
|
||||||
- buf.build/googleapis/googleapis
|
|
||||||
lint:
|
lint:
|
||||||
use:
|
use:
|
||||||
- DEFAULT
|
- DEFAULT
|
||||||
|
@ -11,13 +11,11 @@ option go_package = "github.com/cerc-io/laconicd/crypto/ethsecp256k1";
|
|||||||
message PubKey {
|
message PubKey {
|
||||||
option (gogoproto.goproto_stringer) = false;
|
option (gogoproto.goproto_stringer) = false;
|
||||||
|
|
||||||
// key is the public key in byte form
|
|
||||||
bytes key = 1;
|
bytes key = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrivKey defines a type alias for an ecdsa.PrivateKey that implements
|
// PrivKey defines a type alias for an ecdsa.PrivateKey that implements
|
||||||
// Tendermint's PrivateKey interface.
|
// Tendermint's PrivateKey interface.
|
||||||
message PrivKey {
|
message PrivKey {
|
||||||
// key is the private key in byte form
|
|
||||||
bytes key = 1;
|
bytes key = 1;
|
||||||
}
|
}
|
||||||
|
@ -7,18 +7,18 @@ option go_package = "github.com/cerc-io/laconicd/x/evm/types";
|
|||||||
|
|
||||||
// Params defines the EVM module parameters
|
// Params defines the EVM module parameters
|
||||||
message Params {
|
message Params {
|
||||||
// evm_denom represents the token denomination used to run the EVM state
|
// evm denom represents the token denomination used to run the EVM state
|
||||||
// transitions.
|
// transitions.
|
||||||
string evm_denom = 1 [(gogoproto.moretags) = "yaml:\"evm_denom\""];
|
string evm_denom = 1 [(gogoproto.moretags) = "yaml:\"evm_denom\""];
|
||||||
// enable_create toggles state transitions that use the vm.Create function
|
// enable create toggles state transitions that use the vm.Create function
|
||||||
bool enable_create = 2 [(gogoproto.moretags) = "yaml:\"enable_create\""];
|
bool enable_create = 2 [(gogoproto.moretags) = "yaml:\"enable_create\""];
|
||||||
// enable_call toggles state transitions that use the vm.Call function
|
// enable call toggles state transitions that use the vm.Call function
|
||||||
bool enable_call = 3 [(gogoproto.moretags) = "yaml:\"enable_call\""];
|
bool enable_call = 3 [(gogoproto.moretags) = "yaml:\"enable_call\""];
|
||||||
// extra_eips defines the additional EIPs for the vm.Config
|
// extra eips defines the additional EIPs for the vm.Config
|
||||||
repeated int64 extra_eips = 4 [(gogoproto.customname) = "ExtraEIPs", (gogoproto.moretags) = "yaml:\"extra_eips\""];
|
repeated int64 extra_eips = 4 [(gogoproto.customname) = "ExtraEIPs", (gogoproto.moretags) = "yaml:\"extra_eips\""];
|
||||||
// chain_config defines the EVM chain configuration parameters
|
// chain config defines the EVM chain configuration parameters
|
||||||
ChainConfig chain_config = 5 [(gogoproto.moretags) = "yaml:\"chain_config\"", (gogoproto.nullable) = false];
|
ChainConfig chain_config = 5 [(gogoproto.moretags) = "yaml:\"chain_config\"", (gogoproto.nullable) = false];
|
||||||
// allow_unprotected_txs defines if replay-protected (i.e non EIP155
|
// Allow unprotected transactions defines if replay-protected (i.e non EIP155
|
||||||
// signed) transactions can be executed on the state machine.
|
// signed) transactions can be executed on the state machine.
|
||||||
bool allow_unprotected_txs = 6;
|
bool allow_unprotected_txs = 6;
|
||||||
}
|
}
|
||||||
@ -26,67 +26,67 @@ message Params {
|
|||||||
// ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values
|
// ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values
|
||||||
// instead of *big.Int.
|
// instead of *big.Int.
|
||||||
message ChainConfig {
|
message ChainConfig {
|
||||||
// homestead_block switch (nil no fork, 0 = already homestead)
|
// Homestead switch block (nil no fork, 0 = already homestead)
|
||||||
string homestead_block = 1 [
|
string homestead_block = 1 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"homestead_block\""
|
(gogoproto.moretags) = "yaml:\"homestead_block\""
|
||||||
];
|
];
|
||||||
// dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork)
|
// TheDAO hard-fork switch block (nil no fork)
|
||||||
string dao_fork_block = 2 [
|
string dao_fork_block = 2 [
|
||||||
(gogoproto.customname) = "DAOForkBlock",
|
(gogoproto.customname) = "DAOForkBlock",
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"dao_fork_block\""
|
(gogoproto.moretags) = "yaml:\"dao_fork_block\""
|
||||||
];
|
];
|
||||||
// dao_fork_support defines whether the nodes supports or opposes the DAO hard-fork
|
// Whether the nodes supports or opposes the DAO hard-fork
|
||||||
bool dao_fork_support = 3
|
bool dao_fork_support = 3
|
||||||
[(gogoproto.customname) = "DAOForkSupport", (gogoproto.moretags) = "yaml:\"dao_fork_support\""];
|
[(gogoproto.customname) = "DAOForkSupport", (gogoproto.moretags) = "yaml:\"dao_fork_support\""];
|
||||||
// eip150_block: EIP150 implements the Gas price changes
|
// EIP150 implements the Gas price changes
|
||||||
// (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork)
|
// (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork)
|
||||||
string eip150_block = 4 [
|
string eip150_block = 4 [
|
||||||
(gogoproto.customname) = "EIP150Block",
|
(gogoproto.customname) = "EIP150Block",
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"eip150_block\""
|
(gogoproto.moretags) = "yaml:\"eip150_block\""
|
||||||
];
|
];
|
||||||
// eip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed)
|
// EIP150 HF hash (needed for header only clients as only gas pricing changed)
|
||||||
string eip150_hash = 5 [(gogoproto.customname) = "EIP150Hash", (gogoproto.moretags) = "yaml:\"byzantium_block\""];
|
string eip150_hash = 5 [(gogoproto.customname) = "EIP150Hash", (gogoproto.moretags) = "yaml:\"byzantium_block\""];
|
||||||
// eip155_block: EIP155Block HF block
|
// EIP155Block HF block
|
||||||
string eip155_block = 6 [
|
string eip155_block = 6 [
|
||||||
(gogoproto.customname) = "EIP155Block",
|
(gogoproto.customname) = "EIP155Block",
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"eip155_block\""
|
(gogoproto.moretags) = "yaml:\"eip155_block\""
|
||||||
];
|
];
|
||||||
// eip158_block: EIP158 HF block
|
// EIP158 HF block
|
||||||
string eip158_block = 7 [
|
string eip158_block = 7 [
|
||||||
(gogoproto.customname) = "EIP158Block",
|
(gogoproto.customname) = "EIP158Block",
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"eip158_block\""
|
(gogoproto.moretags) = "yaml:\"eip158_block\""
|
||||||
];
|
];
|
||||||
// byzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium)
|
// Byzantium switch block (nil no fork, 0 = already on byzantium)
|
||||||
string byzantium_block = 8 [
|
string byzantium_block = 8 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"byzantium_block\""
|
(gogoproto.moretags) = "yaml:\"byzantium_block\""
|
||||||
];
|
];
|
||||||
// constantinople_block: Constantinople switch block (nil no fork, 0 = already activated)
|
// Constantinople switch block (nil no fork, 0 = already activated)
|
||||||
string constantinople_block = 9 [
|
string constantinople_block = 9 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"constantinople_block\""
|
(gogoproto.moretags) = "yaml:\"constantinople_block\""
|
||||||
];
|
];
|
||||||
// petersburg_block: Petersburg switch block (nil same as Constantinople)
|
// Petersburg switch block (nil same as Constantinople)
|
||||||
string petersburg_block = 10 [
|
string petersburg_block = 10 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"petersburg_block\""
|
(gogoproto.moretags) = "yaml:\"petersburg_block\""
|
||||||
];
|
];
|
||||||
// istanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul)
|
// Istanbul switch block (nil no fork, 0 = already on istanbul)
|
||||||
string istanbul_block = 11 [
|
string istanbul_block = 11 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"istanbul_block\""
|
(gogoproto.moretags) = "yaml:\"istanbul_block\""
|
||||||
];
|
];
|
||||||
// muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated)
|
// Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated)
|
||||||
string muir_glacier_block = 12 [
|
string muir_glacier_block = 12 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"muir_glacier_block\""
|
(gogoproto.moretags) = "yaml:\"muir_glacier_block\""
|
||||||
];
|
];
|
||||||
// berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin)
|
// Berlin switch block (nil = no fork, 0 = already on berlin)
|
||||||
string berlin_block = 13 [
|
string berlin_block = 13 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"berlin_block\""
|
(gogoproto.moretags) = "yaml:\"berlin_block\""
|
||||||
@ -94,12 +94,12 @@ message ChainConfig {
|
|||||||
// DEPRECATED: EWASM, YOLOV3 and Catalyst block have been deprecated
|
// DEPRECATED: EWASM, YOLOV3 and Catalyst block have been deprecated
|
||||||
reserved 14, 15, 16;
|
reserved 14, 15, 16;
|
||||||
reserved "yolo_v3_block", "ewasm_block", "catalyst_block";
|
reserved "yolo_v3_block", "ewasm_block", "catalyst_block";
|
||||||
// london_block: London switch block (nil = no fork, 0 = already on london)
|
// London switch block (nil = no fork, 0 = already on london)
|
||||||
string london_block = 17 [
|
string london_block = 17 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"london_block\""
|
(gogoproto.moretags) = "yaml:\"london_block\""
|
||||||
];
|
];
|
||||||
// arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated)
|
// Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated)
|
||||||
string arrow_glacier_block = 18 [
|
string arrow_glacier_block = 18 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"arrow_glacier_block\""
|
(gogoproto.moretags) = "yaml:\"arrow_glacier_block\""
|
||||||
@ -107,34 +107,21 @@ message ChainConfig {
|
|||||||
// DEPRECATED: merge fork block was deprecated: https://github.com/ethereum/go-ethereum/pull/24904
|
// DEPRECATED: merge fork block was deprecated: https://github.com/ethereum/go-ethereum/pull/24904
|
||||||
reserved 19;
|
reserved 19;
|
||||||
reserved "merge_fork_block";
|
reserved "merge_fork_block";
|
||||||
// gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated)
|
// EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated)
|
||||||
string gray_glacier_block = 20 [
|
string gray_glacier_block = 20 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"gray_glacier_block\""
|
(gogoproto.moretags) = "yaml:\"gray_glacier_block\""
|
||||||
];
|
];
|
||||||
// merge_netsplit_block: Virtual fork after The Merge to use as a network splitter
|
// Virtual fork after The Merge to use as a network splitter
|
||||||
string merge_netsplit_block = 21 [
|
string merge_netsplit_block = 21 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.moretags) = "yaml:\"merge_netsplit_block\""
|
(gogoproto.moretags) = "yaml:\"merge_netsplit_block\""
|
||||||
];
|
];
|
||||||
// shanghai_block switch block (nil = no fork, 0 = already on shanghai)
|
|
||||||
string shanghai_block = 22 [
|
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
|
||||||
(gogoproto.moretags) = "yaml:\"shanghai_block\""
|
|
||||||
];
|
|
||||||
// cancun_block switch block (nil = no fork, 0 = already on cancun)
|
|
||||||
string cancun_block = 23 [
|
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
|
||||||
(gogoproto.moretags) = "yaml:\"cancun_block\""
|
|
||||||
];
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// State represents a single Storage key value pair item.
|
// State represents a single Storage key value pair item.
|
||||||
message State {
|
message State {
|
||||||
// key is the stored key
|
|
||||||
string key = 1;
|
string key = 1;
|
||||||
// value is the stored value for the given key
|
|
||||||
string value = 2;
|
string value = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,38 +129,38 @@ message State {
|
|||||||
// with a given hash. It it used for import/export data as transactions are not
|
// with a given hash. It it used for import/export data as transactions are not
|
||||||
// persisted on blockchain state after an upgrade.
|
// persisted on blockchain state after an upgrade.
|
||||||
message TransactionLogs {
|
message TransactionLogs {
|
||||||
// hash of the transaction
|
|
||||||
string hash = 1;
|
string hash = 1;
|
||||||
// logs is an array of Logs for the given transaction hash
|
|
||||||
repeated Log logs = 2;
|
repeated Log logs = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log represents an protobuf compatible Ethereum Log that defines a contract
|
// Log represents an protobuf compatible Ethereum Log that defines a contract
|
||||||
// log event. These events are generated by the LOG opcode and stored/indexed by
|
// log event. These events are generated by the LOG opcode and stored/indexed by
|
||||||
// the node.
|
// the node.
|
||||||
//
|
|
||||||
// NOTE: address, topics and data are consensus fields. The rest of the fields
|
|
||||||
// are derived, i.e. filled in by the nodes, but not secured by consensus.
|
|
||||||
message Log {
|
message Log {
|
||||||
|
// Consensus fields:
|
||||||
|
|
||||||
// address of the contract that generated the event
|
// address of the contract that generated the event
|
||||||
string address = 1;
|
string address = 1;
|
||||||
// topics is a list of topics provided by the contract.
|
// list of topics provided by the contract.
|
||||||
repeated string topics = 2;
|
repeated string topics = 2;
|
||||||
// data which is supplied by the contract, usually ABI-encoded
|
// supplied by the contract, usually ABI-encoded
|
||||||
bytes data = 3;
|
bytes data = 3;
|
||||||
|
|
||||||
// block_number of the block in which the transaction was included
|
// 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 [(gogoproto.jsontag) = "blockNumber"];
|
uint64 block_number = 4 [(gogoproto.jsontag) = "blockNumber"];
|
||||||
// tx_hash is the transaction hash
|
// hash of the transaction
|
||||||
string tx_hash = 5 [(gogoproto.jsontag) = "transactionHash"];
|
string tx_hash = 5 [(gogoproto.jsontag) = "transactionHash"];
|
||||||
// tx_index of the transaction in the block
|
// index of the transaction in the block
|
||||||
uint64 tx_index = 6 [(gogoproto.jsontag) = "transactionIndex"];
|
uint64 tx_index = 6 [(gogoproto.jsontag) = "transactionIndex"];
|
||||||
// block_hash of the block in which the transaction was included
|
// hash of the block in which the transaction was included
|
||||||
string block_hash = 7 [(gogoproto.jsontag) = "blockHash"];
|
string block_hash = 7 [(gogoproto.jsontag) = "blockHash"];
|
||||||
// index of the log in the block
|
// index of the log in the block
|
||||||
uint64 index = 8 [(gogoproto.jsontag) = "logIndex"];
|
uint64 index = 8 [(gogoproto.jsontag) = "logIndex"];
|
||||||
|
|
||||||
// removed is true if this log was reverted due to a chain
|
// 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
|
// reorganisation. You must pay attention to this field if you receive logs
|
||||||
// through a filter query.
|
// through a filter query.
|
||||||
bool removed = 9;
|
bool removed = 9;
|
||||||
@ -204,9 +191,9 @@ message TxResult {
|
|||||||
message AccessTuple {
|
message AccessTuple {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// address is a hex formatted ethereum address
|
// hex formatted ethereum address
|
||||||
string address = 1;
|
string address = 1;
|
||||||
// storage_keys are hex formatted hashes of the storage keys
|
// hex formatted hashes of the storage keys
|
||||||
repeated string storage_keys = 2 [(gogoproto.jsontag) = "storageKeys"];
|
repeated string storage_keys = 2 [(gogoproto.jsontag) = "storageKeys"];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,27 +204,25 @@ message TraceConfig {
|
|||||||
reserved 4, 7;
|
reserved 4, 7;
|
||||||
reserved "disable_memory", "disable_return_data";
|
reserved "disable_memory", "disable_return_data";
|
||||||
|
|
||||||
// tracer is a custom javascript tracer
|
// custom javascript tracer
|
||||||
string tracer = 1;
|
string tracer = 1;
|
||||||
// timeout overrides the default timeout of 5 seconds for JavaScript-based tracing
|
// overrides the default timeout of 5 seconds for JavaScript-based tracing
|
||||||
// calls
|
// calls
|
||||||
string timeout = 2;
|
string timeout = 2;
|
||||||
// reexec defines the number of blocks the tracer is willing to go back
|
// number of blocks the tracer is willing to go back
|
||||||
uint64 reexec = 3;
|
uint64 reexec = 3;
|
||||||
// disable_stack switches stack capture
|
// disable stack capture
|
||||||
bool disable_stack = 5 [(gogoproto.jsontag) = "disableStack"];
|
bool disable_stack = 5 [(gogoproto.jsontag) = "disableStack"];
|
||||||
// disable_storage switches storage capture
|
// disable storage capture
|
||||||
bool disable_storage = 6 [(gogoproto.jsontag) = "disableStorage"];
|
bool disable_storage = 6 [(gogoproto.jsontag) = "disableStorage"];
|
||||||
// debug can be used to print output during capture end
|
// print output during capture end
|
||||||
bool debug = 8;
|
bool debug = 8;
|
||||||
// limit defines the maximum length of output, but zero means unlimited
|
// maximum length of output, but zero means unlimited
|
||||||
int32 limit = 9;
|
int32 limit = 9;
|
||||||
// overrides can be used to execute a trace using future fork rules
|
// Chain overrides, can be used to execute a trace using future fork rules
|
||||||
ChainConfig overrides = 10;
|
ChainConfig overrides = 10;
|
||||||
// enable_memory switches memory capture
|
// enable memory capture
|
||||||
bool enable_memory = 11 [(gogoproto.jsontag) = "enableMemory"];
|
bool enable_memory = 11 [(gogoproto.jsontag) = "enableMemory"];
|
||||||
// enable_return_data switches the capture of return data
|
// enable return data capture
|
||||||
bool enable_return_data = 12 [(gogoproto.jsontag) = "enableReturnData"];
|
bool enable_return_data = 12 [(gogoproto.jsontag) = "enableReturnData"];
|
||||||
// tracer_json_config configures the tracer using a JSON string
|
|
||||||
string tracer_json_config = 13 [(gogoproto.jsontag) = "tracerConfig"];
|
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package ethermint.evm.v1;
|
package ethermint.evm.v1;
|
||||||
|
|
||||||
import "ethermint/evm/v1/evm.proto";
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
|
import "ethermint/evm/v1/evm.proto";
|
||||||
|
|
||||||
option go_package = "github.com/cerc-io/laconicd/x/evm/types";
|
option go_package = "github.com/cerc-io/laconicd/x/evm/types";
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package ethermint.evm.v1;
|
package ethermint.evm.v1;
|
||||||
|
|
||||||
|
import "gogoproto/gogo.proto";
|
||||||
import "cosmos/base/query/v1beta1/pagination.proto";
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
||||||
|
import "google/api/annotations.proto";
|
||||||
import "ethermint/evm/v1/evm.proto";
|
import "ethermint/evm/v1/evm.proto";
|
||||||
import "ethermint/evm/v1/tx.proto";
|
import "ethermint/evm/v1/tx.proto";
|
||||||
import "gogoproto/gogo.proto";
|
|
||||||
import "google/api/annotations.proto";
|
|
||||||
import "google/protobuf/timestamp.proto";
|
import "google/protobuf/timestamp.proto";
|
||||||
|
|
||||||
option go_package = "github.com/cerc-io/laconicd/x/evm/types";
|
option go_package = "github.com/cerc-io/laconicd/x/evm/types";
|
||||||
@ -89,7 +89,7 @@ message QueryAccountRequest {
|
|||||||
message QueryAccountResponse {
|
message QueryAccountResponse {
|
||||||
// balance is the balance of the EVM denomination.
|
// balance is the balance of the EVM denomination.
|
||||||
string balance = 1;
|
string balance = 1;
|
||||||
// code_hash is the hex-formatted code bytes from the EOA.
|
// code hash is the hex-formatted code bytes from the EOA.
|
||||||
string code_hash = 2;
|
string code_hash = 2;
|
||||||
// nonce is the account's sequence number.
|
// nonce is the account's sequence number.
|
||||||
uint64 nonce = 3;
|
uint64 nonce = 3;
|
||||||
@ -112,7 +112,7 @@ message QueryCosmosAccountResponse {
|
|||||||
string cosmos_address = 1;
|
string cosmos_address = 1;
|
||||||
// sequence is the account's sequence number.
|
// sequence is the account's sequence number.
|
||||||
uint64 sequence = 2;
|
uint64 sequence = 2;
|
||||||
// account_number is the account number
|
// account_number is the account numbert
|
||||||
uint64 account_number = 3;
|
uint64 account_number = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,7 +157,7 @@ message QueryStorageRequest {
|
|||||||
option (gogoproto.equal) = false;
|
option (gogoproto.equal) = false;
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// address is the ethereum hex address to query the storage state for.
|
/// address is the ethereum hex address to query the storage state for.
|
||||||
string address = 1;
|
string address = 1;
|
||||||
|
|
||||||
// key defines the key of the storage state
|
// key defines the key of the storage state
|
||||||
@ -167,7 +167,7 @@ message QueryStorageRequest {
|
|||||||
// QueryStorageResponse is the response type for the Query/Storage RPC
|
// QueryStorageResponse is the response type for the Query/Storage RPC
|
||||||
// method.
|
// method.
|
||||||
message QueryStorageResponse {
|
message QueryStorageResponse {
|
||||||
// value defines the storage state value hash associated with the given key.
|
// key defines the storage state value hash associated with the given key.
|
||||||
string value = 1;
|
string value = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ message QueryTxLogsRequest {
|
|||||||
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryTxLogsResponse is the response type for the Query/TxLogs RPC method.
|
// QueryTxLogs is the response type for the Query/TxLogs RPC method.
|
||||||
message QueryTxLogsResponse {
|
message QueryTxLogsResponse {
|
||||||
// logs represents the ethereum logs generated from the given transaction.
|
// logs represents the ethereum logs generated from the given transaction.
|
||||||
repeated Log logs = 1;
|
repeated Log logs = 1;
|
||||||
@ -217,73 +217,60 @@ message QueryParamsResponse {
|
|||||||
|
|
||||||
// EthCallRequest defines EthCall request
|
// EthCallRequest defines EthCall request
|
||||||
message EthCallRequest {
|
message EthCallRequest {
|
||||||
// args uses the same json format as the json rpc api.
|
// same json format as the json rpc api.
|
||||||
bytes args = 1;
|
bytes args = 1;
|
||||||
// gas_cap defines the default gas cap to be used
|
// the default gas cap to be used
|
||||||
uint64 gas_cap = 2;
|
uint64 gas_cap = 2;
|
||||||
// proposer_address of the requested block in hex format
|
|
||||||
bytes proposer_address = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"];
|
|
||||||
// chain_id is the eip155 chain id parsed from the requested block header
|
|
||||||
int64 chain_id = 4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// EstimateGasResponse defines EstimateGas response
|
// EstimateGasResponse defines EstimateGas response
|
||||||
message EstimateGasResponse {
|
message EstimateGasResponse {
|
||||||
// gas returns the estimated gas
|
// the estimated gas
|
||||||
uint64 gas = 1;
|
uint64 gas = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryTraceTxRequest defines TraceTx request
|
// QueryTraceTxRequest defines TraceTx request
|
||||||
message QueryTraceTxRequest {
|
message QueryTraceTxRequest {
|
||||||
// msg is the MsgEthereumTx for the requested transaction
|
// msgEthereumTx for the requested transaction
|
||||||
MsgEthereumTx msg = 1;
|
MsgEthereumTx msg = 1;
|
||||||
// tx_index is not necessary anymore
|
// tx_index is not necessary anymore
|
||||||
reserved 2;
|
reserved 2;
|
||||||
reserved "tx_index";
|
reserved "tx_index";
|
||||||
// trace_config holds extra parameters to trace functions.
|
// TraceConfig holds extra parameters to trace functions.
|
||||||
TraceConfig trace_config = 3;
|
TraceConfig trace_config = 3;
|
||||||
// predecessors is an array of transactions included in the same block
|
// the predecessor transactions included in the same block
|
||||||
// need to be replayed first to get correct context for tracing.
|
// need to be replayed first to get correct context for tracing.
|
||||||
repeated MsgEthereumTx predecessors = 4;
|
repeated MsgEthereumTx predecessors = 4;
|
||||||
// block_number of requested transaction
|
// block number of requested transaction
|
||||||
int64 block_number = 5;
|
int64 block_number = 5;
|
||||||
// block_hash of requested transaction
|
// block hex hash of requested transaction
|
||||||
string block_hash = 6;
|
string block_hash = 6;
|
||||||
// block_time of requested transaction
|
// block time of requested transaction
|
||||||
google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
||||||
// proposer_address is the proposer of the requested block
|
|
||||||
bytes proposer_address = 8 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"];
|
|
||||||
// chain_id is the the eip155 chain id parsed from the requested block header
|
|
||||||
int64 chain_id = 9;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryTraceTxResponse defines TraceTx response
|
// QueryTraceTxResponse defines TraceTx response
|
||||||
message QueryTraceTxResponse {
|
message QueryTraceTxResponse {
|
||||||
// data is the response serialized in bytes
|
// response serialized in bytes
|
||||||
bytes data = 1;
|
bytes data = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryTraceBlockRequest defines TraceTx request
|
// QueryTraceBlockRequest defines TraceTx request
|
||||||
message QueryTraceBlockRequest {
|
message QueryTraceBlockRequest {
|
||||||
// txs is an array of messages in the block
|
// txs messages in the block
|
||||||
repeated MsgEthereumTx txs = 1;
|
repeated MsgEthereumTx txs = 1;
|
||||||
// trace_config holds extra parameters to trace functions.
|
// TraceConfig holds extra parameters to trace functions.
|
||||||
TraceConfig trace_config = 3;
|
TraceConfig trace_config = 3;
|
||||||
// block_number of the traced block
|
// block number
|
||||||
int64 block_number = 5;
|
int64 block_number = 5;
|
||||||
// block_hash (hex) of the traced block
|
// block hex hash
|
||||||
string block_hash = 6;
|
string block_hash = 6;
|
||||||
// block_time of the traced block
|
// block time
|
||||||
google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
||||||
// proposer_address is the address of the requested block
|
|
||||||
bytes proposer_address = 8 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"];
|
|
||||||
// chain_id is the eip155 chain id parsed from the requested block header
|
|
||||||
int64 chain_id = 9;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryTraceBlockResponse defines TraceBlock response
|
// QueryTraceBlockResponse defines TraceBlock response
|
||||||
message QueryTraceBlockResponse {
|
message QueryTraceBlockResponse {
|
||||||
// data is the response serialized in bytes
|
|
||||||
bytes data = 1;
|
bytes data = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -291,8 +278,7 @@ message QueryTraceBlockResponse {
|
|||||||
// fee.
|
// fee.
|
||||||
message QueryBaseFeeRequest {}
|
message QueryBaseFeeRequest {}
|
||||||
|
|
||||||
// QueryBaseFeeResponse returns the EIP1559 base fee.
|
// BaseFeeResponse returns the EIP1559 base fee.
|
||||||
message QueryBaseFeeResponse {
|
message QueryBaseFeeResponse {
|
||||||
// base_fee is the EIP1559 base fee
|
|
||||||
string base_fee = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
string base_fee = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package ethermint.evm.v1;
|
package ethermint.evm.v1;
|
||||||
|
|
||||||
import "cosmos_proto/cosmos.proto";
|
|
||||||
import "ethermint/evm/v1/evm.proto";
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
import "google/api/annotations.proto";
|
import "google/api/annotations.proto";
|
||||||
import "google/protobuf/any.proto";
|
import "google/protobuf/any.proto";
|
||||||
|
import "cosmos_proto/cosmos.proto";
|
||||||
|
import "ethermint/evm/v1/evm.proto";
|
||||||
|
|
||||||
option go_package = "github.com/cerc-io/laconicd/x/evm/types";
|
option go_package = "github.com/cerc-io/laconicd/x/evm/types";
|
||||||
|
|
||||||
@ -21,14 +21,15 @@ service Msg {
|
|||||||
message MsgEthereumTx {
|
message MsgEthereumTx {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// data is inner transaction data of the Ethereum transaction
|
// inner transaction data
|
||||||
google.protobuf.Any data = 1;
|
google.protobuf.Any data = 1;
|
||||||
|
// caches
|
||||||
|
|
||||||
// size is the encoded storage size of the transaction (DEPRECATED)
|
// DEPRECATED: encoded storage size of the transaction
|
||||||
double size = 2 [(gogoproto.jsontag) = "-"];
|
double size = 2 [(gogoproto.jsontag) = "-"];
|
||||||
// hash of the transaction in hex format
|
// transaction hash in hex format
|
||||||
string hash = 3 [(gogoproto.moretags) = "rlp:\"-\""];
|
string hash = 3 [(gogoproto.moretags) = "rlp:\"-\""];
|
||||||
// from is the ethereum signer address in hex format. This address value is checked
|
// ethereum signer address in hex format. This address value is checked
|
||||||
// against the address derived from the signature (V, R, S) using the
|
// against the address derived from the signature (V, R, S) using the
|
||||||
// secp256k1 elliptic curve
|
// secp256k1 elliptic curve
|
||||||
string from = 4;
|
string from = 4;
|
||||||
@ -43,16 +44,16 @@ message LegacyTx {
|
|||||||
|
|
||||||
// nonce corresponds to the account nonce (transaction sequence).
|
// nonce corresponds to the account nonce (transaction sequence).
|
||||||
uint64 nonce = 1;
|
uint64 nonce = 1;
|
||||||
// gas_price defines the value for each gas unit
|
// gas price defines the value for each gas unit
|
||||||
string gas_price = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
string gas_price = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
||||||
// gas defines the gas limit defined for the transaction.
|
// gas defines the gas limit defined for the transaction.
|
||||||
uint64 gas = 3 [(gogoproto.customname) = "GasLimit"];
|
uint64 gas = 3 [(gogoproto.customname) = "GasLimit"];
|
||||||
// to is the hex formatted address of the recipient
|
// hex formatted address of the recipient
|
||||||
string to = 4;
|
string to = 4;
|
||||||
// value defines the unsigned integer value of the transaction amount.
|
// value defines the unsigned integer value of the transaction amount.
|
||||||
string value = 5
|
string value = 5
|
||||||
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customname) = "Amount"];
|
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customname) = "Amount"];
|
||||||
// data is the data payload bytes of the transaction.
|
// input defines the data payload bytes of the transaction.
|
||||||
bytes data = 6;
|
bytes data = 6;
|
||||||
// v defines the signature value
|
// v defines the signature value
|
||||||
bytes v = 7;
|
bytes v = 7;
|
||||||
@ -67,7 +68,7 @@ message AccessListTx {
|
|||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
option (cosmos_proto.implements_interface) = "TxData";
|
option (cosmos_proto.implements_interface) = "TxData";
|
||||||
|
|
||||||
// chain_id of the destination EVM chain
|
// destination EVM chain ID
|
||||||
string chain_id = 1 [
|
string chain_id = 1 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.customname) = "ChainID",
|
(gogoproto.customname) = "ChainID",
|
||||||
@ -75,18 +76,17 @@ message AccessListTx {
|
|||||||
];
|
];
|
||||||
// nonce corresponds to the account nonce (transaction sequence).
|
// nonce corresponds to the account nonce (transaction sequence).
|
||||||
uint64 nonce = 2;
|
uint64 nonce = 2;
|
||||||
// gas_price defines the value for each gas unit
|
// gas price defines the value for each gas unit
|
||||||
string gas_price = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
string gas_price = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
||||||
// gas defines the gas limit defined for the transaction.
|
// gas defines the gas limit defined for the transaction.
|
||||||
uint64 gas = 4 [(gogoproto.customname) = "GasLimit"];
|
uint64 gas = 4 [(gogoproto.customname) = "GasLimit"];
|
||||||
// to is the recipient address in hex format
|
// hex formatted address of the recipient
|
||||||
string to = 5;
|
string to = 5;
|
||||||
// value defines the unsigned integer value of the transaction amount.
|
// value defines the unsigned integer value of the transaction amount.
|
||||||
string value = 6
|
string value = 6
|
||||||
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customname) = "Amount"];
|
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customname) = "Amount"];
|
||||||
// data is the data payload bytes of the transaction.
|
// input defines the data payload bytes of the transaction.
|
||||||
bytes data = 7;
|
bytes data = 7;
|
||||||
// accesses is an array of access tuples
|
|
||||||
repeated AccessTuple accesses = 8
|
repeated AccessTuple accesses = 8
|
||||||
[(gogoproto.castrepeated) = "AccessList", (gogoproto.jsontag) = "accessList", (gogoproto.nullable) = false];
|
[(gogoproto.castrepeated) = "AccessList", (gogoproto.jsontag) = "accessList", (gogoproto.nullable) = false];
|
||||||
// v defines the signature value
|
// v defines the signature value
|
||||||
@ -102,7 +102,7 @@ message DynamicFeeTx {
|
|||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
option (cosmos_proto.implements_interface) = "TxData";
|
option (cosmos_proto.implements_interface) = "TxData";
|
||||||
|
|
||||||
// chain_id of the destination EVM chain
|
// destination EVM chain ID
|
||||||
string chain_id = 1 [
|
string chain_id = 1 [
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
(gogoproto.customname) = "ChainID",
|
(gogoproto.customname) = "ChainID",
|
||||||
@ -110,20 +110,19 @@ message DynamicFeeTx {
|
|||||||
];
|
];
|
||||||
// nonce corresponds to the account nonce (transaction sequence).
|
// nonce corresponds to the account nonce (transaction sequence).
|
||||||
uint64 nonce = 2;
|
uint64 nonce = 2;
|
||||||
// gas_tip_cap defines the max value for the gas tip
|
// gas tip cap defines the max value for the gas tip
|
||||||
string gas_tip_cap = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
string gas_tip_cap = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
||||||
// gas_fee_cap defines the max value for the gas fee
|
// gas fee cap defines the max value for the gas fee
|
||||||
string gas_fee_cap = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
string gas_fee_cap = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
||||||
// gas defines the gas limit defined for the transaction.
|
// gas defines the gas limit defined for the transaction.
|
||||||
uint64 gas = 5 [(gogoproto.customname) = "GasLimit"];
|
uint64 gas = 5 [(gogoproto.customname) = "GasLimit"];
|
||||||
// to is the hex formatted address of the recipient
|
// hex formatted address of the recipient
|
||||||
string to = 6;
|
string to = 6;
|
||||||
// value defines the the transaction amount.
|
// value defines the the transaction amount.
|
||||||
string value = 7
|
string value = 7
|
||||||
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customname) = "Amount"];
|
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customname) = "Amount"];
|
||||||
// data is the data payload bytes of the transaction.
|
// input defines the data payload bytes of the transaction.
|
||||||
bytes data = 8;
|
bytes data = 8;
|
||||||
// accesses is an array of access tuples
|
|
||||||
repeated AccessTuple accesses = 9
|
repeated AccessTuple accesses = 9
|
||||||
[(gogoproto.castrepeated) = "AccessList", (gogoproto.jsontag) = "accessList", (gogoproto.nullable) = false];
|
[(gogoproto.castrepeated) = "AccessList", (gogoproto.jsontag) = "accessList", (gogoproto.nullable) = false];
|
||||||
// v defines the signature value
|
// v defines the signature value
|
||||||
@ -134,7 +133,6 @@ message DynamicFeeTx {
|
|||||||
bytes s = 12;
|
bytes s = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtensionOptionsEthereumTx is an extension option for ethereum transactions
|
|
||||||
message ExtensionOptionsEthereumTx {
|
message ExtensionOptionsEthereumTx {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
}
|
}
|
||||||
@ -143,18 +141,18 @@ message ExtensionOptionsEthereumTx {
|
|||||||
message MsgEthereumTxResponse {
|
message MsgEthereumTxResponse {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// hash of the ethereum transaction in hex format. This hash differs from the
|
// ethereum transaction hash in hex format. This hash differs from the
|
||||||
// Tendermint sha256 hash of the transaction bytes. See
|
// Tendermint sha256 hash of the transaction bytes. See
|
||||||
// https://github.com/tendermint/tendermint/issues/6539 for reference
|
// https://github.com/tendermint/tendermint/issues/6539 for reference
|
||||||
string hash = 1;
|
string hash = 1;
|
||||||
// logs contains the transaction hash and the proto-compatible ethereum
|
// logs contains the transaction hash and the proto-compatible ethereum
|
||||||
// logs.
|
// logs.
|
||||||
repeated Log logs = 2;
|
repeated Log logs = 2;
|
||||||
// ret is the returned data from evm function (result or data supplied with revert
|
// returned data from evm function (result or data supplied with revert
|
||||||
// opcode)
|
// opcode)
|
||||||
bytes ret = 3;
|
bytes ret = 3;
|
||||||
// vm_error is the error returned by vm execution
|
// vm error is the error returned by vm execution
|
||||||
string vm_error = 4;
|
string vm_error = 4;
|
||||||
// gas_used specifies how much gas was consumed by the transaction
|
// gas consumed by the transaction
|
||||||
uint64 gas_used = 5;
|
uint64 gas_used = 5;
|
||||||
}
|
}
|
||||||
|
@ -7,26 +7,26 @@ option go_package = "github.com/cerc-io/laconicd/x/feemarket/types";
|
|||||||
|
|
||||||
// Params defines the EVM module parameters
|
// Params defines the EVM module parameters
|
||||||
message Params {
|
message Params {
|
||||||
// no_base_fee forces the EIP-1559 base fee to 0 (needed for 0 price calls)
|
// no base fee forces the EIP-1559 base fee to 0 (needed for 0 price calls)
|
||||||
bool no_base_fee = 1;
|
bool no_base_fee = 1;
|
||||||
// base_fee_change_denominator bounds the amount the base fee can change
|
// base fee change denominator bounds the amount the base fee can change
|
||||||
// between blocks.
|
// between blocks.
|
||||||
uint32 base_fee_change_denominator = 2;
|
uint32 base_fee_change_denominator = 2;
|
||||||
// elasticity_multiplier bounds the maximum gas limit an EIP-1559 block may
|
// elasticity multiplier bounds the maximum gas limit an EIP-1559 block may
|
||||||
// have.
|
// have.
|
||||||
uint32 elasticity_multiplier = 3;
|
uint32 elasticity_multiplier = 3;
|
||||||
// DEPRECATED: initial base fee for EIP-1559 blocks.
|
// DEPRECATED: initial base fee for EIP-1559 blocks.
|
||||||
reserved 4;
|
reserved 4;
|
||||||
reserved "initial_base_fee";
|
reserved "initial_base_fee";
|
||||||
// enable_height defines at which block height the base fee calculation is enabled.
|
// height at which the base fee calculation is enabled.
|
||||||
int64 enable_height = 5;
|
int64 enable_height = 5;
|
||||||
// base_fee for EIP-1559 blocks.
|
// base fee for EIP-1559 blocks.
|
||||||
string base_fee = 6 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
|
string base_fee = 6 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
|
||||||
// min_gas_price defines the minimum gas price value for cosmos and eth transactions
|
// min_gas_price defines the minimum gas price value for cosmos and eth transactions
|
||||||
string min_gas_price = 7
|
string min_gas_price = 7
|
||||||
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
|
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
|
||||||
// min_gas_multiplier bounds the minimum gas used to be charged
|
// min gas denominator bounds the minimum gasUsed to be charged
|
||||||
// to senders based on gas limit
|
// to senders based on GasLimit
|
||||||
string min_gas_multiplier = 8
|
string min_gas_multiplier = 8
|
||||||
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
|
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package ethermint.feemarket.v1;
|
package ethermint.feemarket.v1;
|
||||||
|
|
||||||
import "ethermint/feemarket/v1/feemarket.proto";
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
|
import "ethermint/feemarket/v1/feemarket.proto";
|
||||||
|
|
||||||
option go_package = "github.com/cerc-io/laconicd/x/feemarket/types";
|
option go_package = "github.com/cerc-io/laconicd/x/feemarket/types";
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ message GenesisState {
|
|||||||
// Zero by default.
|
// Zero by default.
|
||||||
reserved 2;
|
reserved 2;
|
||||||
reserved "base_fee";
|
reserved "base_fee";
|
||||||
// block_gas is the amount of gas wanted on the last block before the upgrade.
|
// block gas is the amount of gas wanted on the last block before the upgrade.
|
||||||
// Zero by default.
|
// Zero by default.
|
||||||
uint64 block_gas = 3;
|
uint64 block_gas = 3;
|
||||||
}
|
}
|
@ -3,8 +3,8 @@ package ethermint.feemarket.v1;
|
|||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
// import "cosmos/base/query/v1beta1/pagination.proto";
|
// import "cosmos/base/query/v1beta1/pagination.proto";
|
||||||
import "ethermint/feemarket/v1/feemarket.proto";
|
|
||||||
import "google/api/annotations.proto";
|
import "google/api/annotations.proto";
|
||||||
|
import "ethermint/feemarket/v1/feemarket.proto";
|
||||||
|
|
||||||
option go_package = "github.com/cerc-io/laconicd/x/feemarket/types";
|
option go_package = "github.com/cerc-io/laconicd/x/feemarket/types";
|
||||||
|
|
||||||
@ -39,9 +39,8 @@ message QueryParamsResponse {
|
|||||||
// fee.
|
// fee.
|
||||||
message QueryBaseFeeRequest {}
|
message QueryBaseFeeRequest {}
|
||||||
|
|
||||||
// QueryBaseFeeResponse returns the EIP1559 base fee.
|
// BaseFeeResponse returns the EIP1559 base fee.
|
||||||
message QueryBaseFeeResponse {
|
message QueryBaseFeeResponse {
|
||||||
// base_fee is the EIP1559 base fee
|
|
||||||
string base_fee = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
string base_fee = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,6 +50,5 @@ message QueryBlockGasRequest {}
|
|||||||
|
|
||||||
// QueryBlockGasResponse returns block gas used for a given height.
|
// QueryBlockGasResponse returns block gas used for a given height.
|
||||||
message QueryBlockGasResponse {
|
message QueryBlockGasResponse {
|
||||||
// gas is the returned block gas
|
|
||||||
int64 gas = 1;
|
int64 gas = 1;
|
||||||
}
|
}
|
@ -16,10 +16,7 @@ message EthAccount {
|
|||||||
|
|
||||||
option (cosmos_proto.implements_interface) = "github.com/cosmos/cosmos-sdk/x/auth/types.AccountI";
|
option (cosmos_proto.implements_interface) = "github.com/cosmos/cosmos-sdk/x/auth/types.AccountI";
|
||||||
|
|
||||||
// base_account is an authtypes.BaseAccount
|
|
||||||
cosmos.auth.v1beta1.BaseAccount base_account = 1
|
cosmos.auth.v1beta1.BaseAccount base_account = 1
|
||||||
[(gogoproto.embed) = true, (gogoproto.moretags) = "yaml:\"base_account\""];
|
[(gogoproto.embed) = true, (gogoproto.moretags) = "yaml:\"base_account\""];
|
||||||
|
|
||||||
// code_hash is the hash calculated from the code contents
|
|
||||||
string code_hash = 2 [(gogoproto.moretags) = "yaml:\"code_hash\""];
|
string code_hash = 2 [(gogoproto.moretags) = "yaml:\"code_hash\""];
|
||||||
}
|
}
|
||||||
|
@ -9,22 +9,21 @@ option go_package = "github.com/cerc-io/laconicd/types";
|
|||||||
message TxResult {
|
message TxResult {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// height of the blockchain
|
// the block height
|
||||||
int64 height = 1;
|
int64 height = 1;
|
||||||
// tx_index of the cosmos transaction
|
// cosmos tx index
|
||||||
uint32 tx_index = 2;
|
uint32 tx_index = 2;
|
||||||
// msg_index in a batch transaction
|
// the msg index in a batch tx
|
||||||
uint32 msg_index = 3;
|
uint32 msg_index = 3;
|
||||||
|
|
||||||
// eth_tx_index is the index in the list of valid eth tx in the block,
|
// eth tx index, the index in the list of valid eth tx in the block,
|
||||||
// aka. the transaction list returned by eth_getBlock api.
|
// aka. the transaction list returned by eth_getBlock api.
|
||||||
int32 eth_tx_index = 4;
|
int32 eth_tx_index = 4;
|
||||||
// failed is true if the eth transaction did not go succeed
|
// if the eth tx is failed
|
||||||
bool failed = 5;
|
bool failed = 5;
|
||||||
// gas_used by the transaction. If it exceeds the block gas limit,
|
// gas used by tx, if exceeds block gas limit,
|
||||||
// it's set to gas limit, which is what's actually deducted by ante handler.
|
// it's set to gas limit which is what's actually deducted by ante handler.
|
||||||
uint64 gas_used = 6;
|
uint64 gas_used = 6;
|
||||||
// cumulative_gas_used specifies the cumulated amount of gas used for all
|
// the cumulative gas used within current batch tx
|
||||||
// processed messages within the current batch transaction.
|
|
||||||
uint64 cumulative_gas_used = 7;
|
uint64 cumulative_gas_used = 7;
|
||||||
}
|
}
|
||||||
|
@ -5,21 +5,19 @@ import "gogoproto/gogo.proto";
|
|||||||
|
|
||||||
option go_package = "github.com/cerc-io/laconicd/types";
|
option go_package = "github.com/cerc-io/laconicd/types";
|
||||||
|
|
||||||
// ExtensionOptionsWeb3Tx is an extension option that specifies the typed chain id,
|
|
||||||
// the fee payer as well as its signature data.
|
|
||||||
message ExtensionOptionsWeb3Tx {
|
message ExtensionOptionsWeb3Tx {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// typed_data_chain_id is used only in EIP712 Domain and should match
|
// typed data chain id used only in EIP712 Domain and should match
|
||||||
// Ethereum network ID in a Web3 provider (e.g. Metamask).
|
// Ethereum network ID in a Web3 provider (e.g. Metamask).
|
||||||
uint64 typed_data_chain_id = 1
|
uint64 typed_data_chain_id = 1
|
||||||
[(gogoproto.jsontag) = "typedDataChainID,omitempty", (gogoproto.customname) = "TypedDataChainID"];
|
[(gogoproto.jsontag) = "typedDataChainID,omitempty", (gogoproto.customname) = "TypedDataChainID"];
|
||||||
|
|
||||||
// fee_payer is an account address for the fee payer. It will be validated
|
// fee payer is an account address for the fee payer. It will be validated
|
||||||
// during EIP712 signature checking.
|
// during EIP712 signature checking.
|
||||||
string fee_payer = 2 [(gogoproto.jsontag) = "feePayer,omitempty"];
|
string fee_payer = 2 [(gogoproto.jsontag) = "feePayer,omitempty"];
|
||||||
|
|
||||||
// fee_payer_sig is a signature data from the fee paying account,
|
// fee payer sig is a signature data from the fee paying account,
|
||||||
// allows to perform fee delegation when using EIP712 Domain.
|
// allows to perform fee delegation when using EIP712 Domain.
|
||||||
bytes fee_payer_sig = 3 [(gogoproto.jsontag) = "feePayerSig,omitempty"];
|
bytes fee_payer_sig = 3 [(gogoproto.jsontag) = "feePayerSig,omitempty"];
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@ syntax = "proto3";
|
|||||||
package vulcanize.auction.v1beta1;
|
package vulcanize.auction.v1beta1;
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
import "google/api/annotations.proto";
|
|
||||||
import "google/protobuf/duration.proto";
|
import "google/protobuf/duration.proto";
|
||||||
import "cosmos/base/v1beta1/coin.proto";
|
import "cosmos/base/v1beta1/coin.proto";
|
||||||
import "vulcanize/auction/v1beta1/types.proto";
|
import "vulcanize/auction/v1beta1/types.proto";
|
||||||
@ -86,17 +85,11 @@ message MsgRevealBidResponse {
|
|||||||
// Tx defines the gRPC tx interface
|
// Tx defines the gRPC tx interface
|
||||||
service Msg {
|
service Msg {
|
||||||
// CreateAuction is the command for creating an auction
|
// CreateAuction is the command for creating an auction
|
||||||
rpc CreateAuction(MsgCreateAuction) returns (MsgCreateAuctionResponse) {
|
rpc CreateAuction(MsgCreateAuction) returns (MsgCreateAuctionResponse);
|
||||||
option (google.api.http).post = "/vulcanize/auction/v1beta1/create_auction";
|
|
||||||
};
|
|
||||||
|
|
||||||
// CommitBid is the command for committing a bid
|
// CommitBid is the command for committing a bid
|
||||||
rpc CommitBid(MsgCommitBid) returns (MsgCommitBidResponse) {
|
rpc CommitBid(MsgCommitBid) returns (MsgCommitBidResponse);
|
||||||
option (google.api.http).post = "/vulcanize/auction/v1beta1/commit_bid";
|
|
||||||
};
|
|
||||||
|
|
||||||
// RevealBid is the command for revealing a bid
|
// RevealBid is the command for revealing a bid
|
||||||
rpc RevealBid(MsgRevealBid) returns (MsgRevealBidResponse) {
|
rpc RevealBid(MsgRevealBid) returns (MsgRevealBidResponse);
|
||||||
option (google.api.http).post = "/vulcanize/auction/v1beta1/reveal_bid";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@ -4,30 +4,21 @@ package vulcanize.bond.v1beta1;
|
|||||||
option go_package = "github.com/cerc-io/laconicd/x/bond/types";
|
option go_package = "github.com/cerc-io/laconicd/x/bond/types";
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
import "google/api/annotations.proto";
|
|
||||||
import "cosmos/base/v1beta1/coin.proto";
|
import "cosmos/base/v1beta1/coin.proto";
|
||||||
|
|
||||||
// Msg defines the bond Msg service.
|
// Msg defines the bond Msg service.
|
||||||
service Msg {
|
service Msg {
|
||||||
// CreateBond defines a method for creating a new bond.
|
// CreateBond defines a method for creating a new bond.
|
||||||
rpc CreateBond(MsgCreateBond) returns (MsgCreateBondResponse) {
|
rpc CreateBond(MsgCreateBond) returns (MsgCreateBondResponse);
|
||||||
option (google.api.http).post = "/vulcanize/bond/v1beta1/create_bond";
|
|
||||||
};
|
|
||||||
|
|
||||||
// RefillBond defines a method for refilling amount for bond.
|
// RefillBond defines a method for refilling amount for bond.
|
||||||
rpc RefillBond(MsgRefillBond) returns (MsgRefillBondResponse) {
|
rpc RefillBond(MsgRefillBond) returns (MsgRefillBondResponse);
|
||||||
option (google.api.http).post = "/vulcanize/bond/v1beta1/refill_bond";
|
|
||||||
};
|
|
||||||
|
|
||||||
// WithdrawBond defines a method for withdrawing amount from bond.
|
// WithdrawBond defines a method for withdrawing amount from bond.
|
||||||
rpc WithdrawBond(MsgWithdrawBond) returns (MsgWithdrawBondResponse) {
|
rpc WithdrawBond(MsgWithdrawBond) returns (MsgWithdrawBondResponse);
|
||||||
option (google.api.http).post = "/vulcanize/bond/v1beta1/withdraw_bond";
|
|
||||||
};
|
|
||||||
|
|
||||||
// CancelBond defines a method for cancelling a bond.
|
// CancelBond defines a method for cancelling a bond.
|
||||||
rpc CancelBond(MsgCancelBond) returns (MsgCancelBondResponse) {
|
rpc CancelBond(MsgCancelBond) returns (MsgCancelBondResponse);
|
||||||
option (google.api.http).post = "/vulcanize/bond/v1beta1/cancel_bond";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgCreateBond defines a SDK message for creating a new bond.
|
// MsgCreateBond defines a SDK message for creating a new bond.
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package vulcanize.registry.v1beta1;
|
package vulcanize.nameservice.v1beta1;
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
import "vulcanize/registry/v1beta1/registry.proto";
|
import "vulcanize/nameservice/v1beta1/nameservice.proto";
|
||||||
|
|
||||||
option go_package = "github.com/cerc-io/laconicd/x/registry/types";
|
option go_package = "github.com/cerc-io/laconicd/x/nameservice/types";
|
||||||
|
|
||||||
// GenesisState defines the registry module's genesis state.
|
// GenesisState defines the nameservice module's genesis state.
|
||||||
message GenesisState {
|
message GenesisState {
|
||||||
// params defines all the params of registry module.
|
// params defines all the params of nameservice module.
|
||||||
Params params = 1 [(gogoproto.nullable) = false];
|
Params params = 1 [(gogoproto.nullable) = false];
|
||||||
// records
|
// records
|
||||||
repeated Record records = 2
|
repeated Record records = 2
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user