From 91ae4cecd52efa1d1d64d7e806107882602c50a8 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:16:03 +0100 Subject: [PATCH 01/29] build(deps): bump versions for cosmos sdk v0.50.1 --- go.mod | 186 +++++++++------- go.sum | 686 +++++++++++++++++++++------------------------------------ 2 files changed, 357 insertions(+), 515 deletions(-) diff --git a/go.mod b/go.mod index 95280480..dd43102a 100644 --- a/go.mod +++ b/go.mod @@ -3,18 +3,24 @@ module github.com/okp4/okp4d go 1.21 require ( - cosmossdk.io/api v0.3.1 - cosmossdk.io/errors v1.0.0-beta.7 - cosmossdk.io/math v1.0.1 - github.com/CosmWasm/wasmd v0.40.2 + cosmossdk.io/api v0.7.2 + cosmossdk.io/errors v1.0.0 + cosmossdk.io/log v1.2.1 + cosmossdk.io/math v1.2.0 + cosmossdk.io/store v1.0.0 + cosmossdk.io/x/evidence v0.1.0 + cosmossdk.io/x/feegrant v0.1.0 + cosmossdk.io/x/upgrade v0.1.0 + github.com/CosmWasm/wasmd v0.50.0 github.com/Masterminds/sprig/v3 v3.2.3 github.com/armon/go-metrics v0.4.1 - github.com/cometbft/cometbft v0.37.2 + github.com/cometbft/cometbft v0.38.1 github.com/cometbft/cometbft-db v0.8.0 - github.com/cosmos/cosmos-proto v1.0.0-beta.2 - github.com/cosmos/cosmos-sdk v0.47.3 - github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-go/v7 v7.1.0 + github.com/cosmos/cosmos-proto v1.0.0-beta.3 + github.com/cosmos/cosmos-sdk v0.50.1 + github.com/cosmos/gogoproto v1.4.11 + github.com/cosmos/ibc-go/modules/capability v1.0.0 + github.com/cosmos/ibc-go/v8 v8.0.0 github.com/dustinxie/ecc v0.0.0-20210511000915-959544187564 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.3 @@ -23,17 +29,18 @@ require ( github.com/ignite/cli v0.27.1 github.com/nuts-foundation/go-did v0.4.0 github.com/princjef/gomarkdoc v1.1.0 - github.com/prometheus/client_golang v1.15.0 + github.com/prometheus/client_golang v1.17.0 github.com/samber/lo v1.38.1 github.com/smartystreets/goconvey v1.8.1 github.com/spf13/cast v1.5.1 - github.com/spf13/cobra v1.7.0 + github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 - github.com/stretchr/testify v1.8.3 - google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 - google.golang.org/grpc v1.55.0 - gotest.tools/v3 v3.4.0 - sigs.k8s.io/yaml v1.3.0 + github.com/stretchr/testify v1.8.4 + golang.org/x/net v0.19.0 + google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a + google.golang.org/grpc v1.59.0 + gotest.tools/v3 v3.5.1 + sigs.k8s.io/yaml v1.4.0 ) replace ( @@ -50,30 +57,31 @@ replace ( ) require ( - cloud.google.com/go v0.110.0 // indirect - cloud.google.com/go/compute v1.19.0 // indirect + cloud.google.com/go v0.110.8 // indirect + cloud.google.com/go/compute v1.23.1 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v0.13.0 // indirect - cloud.google.com/go/storage v1.29.0 // indirect - cosmossdk.io/core v0.5.1 // indirect - cosmossdk.io/depinject v1.0.0-alpha.3 // indirect - cosmossdk.io/log v1.1.0 // indirect - cosmossdk.io/tools/rosetta v0.2.1 // indirect + cloud.google.com/go/iam v1.1.3 // indirect + cloud.google.com/go/storage v1.30.1 // indirect + cosmossdk.io/collections v0.4.0 // indirect + cosmossdk.io/core v0.11.0 // indirect + cosmossdk.io/depinject v1.0.0-alpha.4 // indirect + cosmossdk.io/x/tx v0.12.0 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect - github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect - github.com/CosmWasm/wasmvm v1.2.4 // indirect + github.com/CosmWasm/wasmvm v1.5.0 // indirect + github.com/DataDog/zstd v1.5.5 // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.2.0 // indirect github.com/Microsoft/go-winio v0.6.1 // indirect github.com/ProtonMail/go-crypto v0.0.0-20230518184743-7afd39499903 // indirect github.com/VividCortex/ewma v1.2.0 // indirect github.com/acomagu/bufpipe v1.0.4 // indirect - github.com/aws/aws-sdk-go v1.44.203 // indirect + github.com/aws/aws-sdk-go v1.44.224 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect + github.com/bits-and-blooms/bitset v1.8.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect @@ -82,31 +90,35 @@ require ( github.com/chzyer/readline v1.5.1 // indirect github.com/cloudflare/circl v1.3.3 // indirect github.com/cockroachdb/apd/v2 v2.0.2 // indirect - github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect - github.com/confio/ics23/go v0.9.0 // indirect + github.com/cockroachdb/errors v1.11.1 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/pebble v0.0.0-20231102162011-844f0582c2eb // indirect + github.com/cockroachdb/redact v1.1.5 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect github.com/cosmos/btcutil v1.0.5 // indirect + github.com/cosmos/cosmos-db v1.0.0 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect - github.com/cosmos/iavl v0.20.0 // indirect + github.com/cosmos/iavl v1.0.0 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect - github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect - github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect - github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect - github.com/creachadair/taskgroup v0.4.2 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect github.com/danieljoos/wincred v1.1.2 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect - github.com/docker/distribution v2.8.2+incompatible // indirect + github.com/distribution/reference v0.5.0 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.5.0 // indirect + github.com/emicklei/dot v1.6.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect github.com/fatih/color v1.15.0 // indirect - github.com/felixge/httpsnoop v1.0.2 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/getsentry/sentry-go v0.25.0 // indirect github.com/go-git/gcfg v1.5.0 // indirect github.com/go-git/go-billy/v5 v5.4.1 // indirect github.com/go-git/go-git/v5 v5.6.1 // indirect @@ -117,34 +129,38 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.1.0 // indirect + github.com/golang/glog v1.2.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect - github.com/google/go-cmp v0.5.9 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect - github.com/googleapis/gax-go/v2 v2.7.1 // indirect + github.com/google/s2a-go v0.1.7 // indirect + github.com/google/uuid v1.3.1 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.1 // indirect + github.com/googleapis/gax-go/v2 v2.12.0 // indirect github.com/gopherjs/gopherjs v1.17.2 // indirect - github.com/gorilla/handlers v1.5.1 // indirect - github.com/gorilla/mux v1.8.0 // indirect + github.com/gorilla/handlers v1.5.2 // indirect + github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect - github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect - github.com/gtank/merlin v0.1.1 // indirect - github.com/gtank/ristretto255 v0.1.2 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-getter v1.7.1 // indirect + github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect + github.com/hashicorp/go-metrics v0.5.1 // indirect + github.com/hashicorp/go-plugin v1.5.2 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-version v1.6.0 // indirect - github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect + github.com/hashicorp/golang-lru v1.0.2 // indirect github.com/hashicorp/hcl v1.0.0 // indirect + github.com/hashicorp/yamux v0.1.1 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect github.com/huandu/skiplist v1.2.0 // indirect github.com/huandu/xstrings v1.3.3 // indirect + github.com/iancoleman/strcase v0.3.0 // indirect github.com/imdario/mergo v0.3.15 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect @@ -153,7 +169,9 @@ require ( github.com/jmhodges/levigo v1.0.0 // indirect github.com/jtolds/gls v4.20.0+incompatible // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect - github.com/klauspost/compress v1.16.5 // indirect + github.com/klauspost/compress v1.17.4 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect github.com/lestrrat-go/blackmagic v1.0.0 // indirect github.com/lestrrat-go/httpcc v1.0.1 // indirect @@ -162,15 +180,14 @@ require ( github.com/lestrrat-go/option v1.0.0 // indirect github.com/lib/pq v1.10.9 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect - github.com/linxGnu/grocksdb v1.7.16 // indirect + github.com/linxGnu/grocksdb v1.8.6 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect - github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect github.com/minio/highwayhash v1.0.2 // indirect github.com/mitchellh/copystructure v1.0.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect @@ -178,23 +195,27 @@ require ( github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.0 // indirect github.com/mtibben/percent v0.2.1 // indirect + github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/ockam-network/did v0.1.4-0.20210103172416-02ae01ce06d8 // indirect + github.com/oklog/run v1.1.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect - github.com/pelletier/go-toml/v2 v2.0.8 // indirect - github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect + github.com/pelletier/go-toml/v2 v2.1.0 // indirect + github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/princjef/mageutil v1.0.0 // indirect - github.com/prometheus/client_model v0.3.0 // indirect - github.com/prometheus/common v0.42.0 // indirect - github.com/prometheus/procfs v0.9.0 // indirect - github.com/rakyll/statik v0.1.7 // indirect + github.com/prometheus/client_model v0.5.0 // indirect + github.com/prometheus/common v0.45.0 // indirect + github.com/prometheus/procfs v0.12.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rivo/uniseg v0.4.4 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/rs/cors v1.9.0 // indirect - github.com/rs/zerolog v1.29.1 // indirect + github.com/rs/zerolog v1.31.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect + github.com/sagikazarmark/locafero v0.3.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/sergi/go-diff v1.3.1 // indirect github.com/shengdoushi/base58 v1.0.0 // indirect @@ -202,38 +223,41 @@ require ( github.com/sirupsen/logrus v1.9.2 // indirect github.com/skeema/knownhosts v1.1.1 // indirect github.com/smarty/assertions v1.15.0 // indirect - github.com/spf13/afero v1.9.5 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect - github.com/spf13/viper v1.15.0 // indirect - github.com/subosito/gotenv v1.4.2 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect + github.com/spf13/afero v1.10.0 // indirect + github.com/spf13/viper v1.17.0 // indirect + github.com/subosito/gotenv v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect - github.com/tidwall/btree v1.6.0 // indirect + github.com/tidwall/btree v1.7.0 // indirect github.com/ulikunitz/xz v0.5.11 // indirect github.com/x-cray/logrus-prefixed-formatter v0.5.2 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect - github.com/zondax/hid v0.9.1 // indirect - github.com/zondax/ledger-go v0.14.1 // indirect - go.etcd.io/bbolt v1.3.7 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect + go.etcd.io/bbolt v1.3.8 // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.9.0 // indirect - golang.org/x/exp v0.0.0-20230519143937-03e91628a987 // indirect - golang.org/x/mod v0.10.0 // indirect - golang.org/x/net v0.10.0 // indirect - golang.org/x/oauth2 v0.7.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/term v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect - golang.org/x/tools v0.9.1 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/crypto v0.16.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/mod v0.13.0 // indirect + golang.org/x/oauth2 v0.12.0 // indirect + golang.org/x/sync v0.5.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/term v0.15.0 // indirect + golang.org/x/text v0.14.0 // indirect + golang.org/x/tools v0.14.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect - google.golang.org/api v0.114.0 // indirect + google.golang.org/api v0.143.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.30.0 // indirect + google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect + google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect mvdan.cc/xurls/v2 v2.2.0 // indirect nhooyr.io/websocket v1.8.6 // indirect - pgregory.net/rapid v0.5.5 // indirect + pgregory.net/rapid v1.1.0 // indirect ) diff --git a/go.sum b/go.sum index 9a12ab65..868e190d 100644 --- a/go.sum +++ b/go.sum @@ -1,14 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw= cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= @@ -34,8 +32,8 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= 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.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys= -cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= +cloud.google.com/go v0.110.8 h1:tyNdfIxjzaWctIiLYOTalaLKZ17SI44SKFW26QbOhME= +cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= 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= @@ -59,7 +57,6 @@ cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUM 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.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/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= @@ -73,8 +70,8 @@ cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= 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.19.0 h1:+9zda3WGgW1ZSTlVppLCYFIr48Pa35q1uG2N1itbCEQ= -cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU= +cloud.google.com/go/compute v1.23.1 h1:V97tBoDaZHb6leicZ1G6DLK2BAaZLJ/7+9BB/En3hR0= +cloud.google.com/go/compute v1.23.1/go.mod h1:CqB3xpmPKKt3OJpW2ndFIXnA9A4xAy/F3Xp1ixncW78= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= @@ -114,14 +111,12 @@ cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y97 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.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= -cloud.google.com/go/iam v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k= -cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= +cloud.google.com/go/iam v1.1.3 h1:18tKG7DzydKWUnLjonWcJO6wjSCAtzh4GcRKlH/Hrzc= +cloud.google.com/go/iam v1.1.3/go.mod h1:3khUlaBXfPKKe7huYgEpDn6FtgRyMEqbkvBxrQyY5SE= 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.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM= -cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo= 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= @@ -179,8 +174,8 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f 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/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= -cloud.google.com/go/storage v1.29.0 h1:6weCgzRvMg7lzuUurI4697AqIRPU1SvzHhynwpW31jI= -cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4= +cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= +cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= 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= @@ -192,49 +187,55 @@ cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xX 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= -cosmossdk.io/api v0.3.1 h1:NNiOclKRR0AOlO4KIqeaG6PS6kswOMhHD0ir0SscNXE= -cosmossdk.io/api v0.3.1/go.mod h1:DfHfMkiNA2Uhy8fj0JJlOCYOBp4eWUUJ1te5zBGNyIw= -cosmossdk.io/core v0.5.1 h1:vQVtFrIYOQJDV3f7rw4pjjVqc1id4+mE0L9hHP66pyI= -cosmossdk.io/core v0.5.1/go.mod h1:KZtwHCLjcFuo0nmDc24Xy6CRNEL9Vl/MeimQ2aC7NLE= -cosmossdk.io/depinject v1.0.0-alpha.3 h1:6evFIgj//Y3w09bqOUOzEpFj5tsxBqdc5CfkO7z+zfw= -cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU= -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/log v1.1.0 h1:v0ogPHYeTzPcBTcPR1A3j1hkei4pZama8kz8LKlCMv0= -cosmossdk.io/log v1.1.0/go.mod h1:6zjroETlcDs+mm62gd8Ig7mZ+N+fVOZS91V17H+M4N4= -cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg= -cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= -cosmossdk.io/tools/rosetta v0.2.1 h1:ddOMatOH+pbxWbrGJKRAawdBkPYLfKXutK9IETnjYxw= -cosmossdk.io/tools/rosetta v0.2.1/go.mod h1:Pqdc1FdvkNV3LcNIkYWt2RQY6IP1ge6YWZk8MhhO9Hw= +cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= +cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= +cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= +cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= +cosmossdk.io/collections v0.4.0/go.mod h1:oa5lUING2dP+gdDquow+QjlF45eL1t4TJDypgGd+tv0= +cosmossdk.io/core v0.11.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= +cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= +cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= +cosmossdk.io/log v1.2.1 h1:Xc1GgTCicniwmMiKwDxUjO4eLhPxoVdI9vtMW8Ti/uk= +cosmossdk.io/log v1.2.1/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4= +cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= +cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= +cosmossdk.io/store v1.0.0 h1:6tnPgTpTSIskaTmw/4s5C9FARdgFflycIc9OX8i1tOI= +cosmossdk.io/store v1.0.0/go.mod h1:ABMprwjvx6IpMp8l06TwuMrj6694/QP5NIW+X6jaTYc= +cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= +cosmossdk.io/x/circuit v0.1.0/go.mod h1:YDzblVE8+E+urPYQq5kq5foRY/IzhXovSYXb4nwd39w= +cosmossdk.io/x/evidence v0.1.0 h1:J6OEyDl1rbykksdGynzPKG5R/zm6TacwW2fbLTW4nCk= +cosmossdk.io/x/evidence v0.1.0/go.mod h1:hTaiiXsoiJ3InMz1uptgF0BnGqROllAN8mwisOMMsfw= +cosmossdk.io/x/feegrant v0.1.0 h1:c7s3oAq/8/UO0EiN1H5BIjwVntujVTkYs35YPvvrdQk= +cosmossdk.io/x/feegrant v0.1.0/go.mod h1:4r+FsViJRpcZif/yhTn+E0E6OFfg4n0Lx+6cCtnZElU= +cosmossdk.io/x/nft v0.1.0 h1:VhcsFiEK33ODN27kxKLa0r/CeFd8laBfbDBwYqCyYCM= +cosmossdk.io/x/nft v0.1.0/go.mod h1:ec4j4QAO4mJZ+45jeYRnW7awLHby1JZANqe1hNZ4S3g= +cosmossdk.io/x/tx v0.12.0 h1:Ry2btjQdrfrje9qZ3iZeZSmDArjgxUJMMcLMrX4wj5U= +cosmossdk.io/x/tx v0.12.0/go.mod h1:qTth2coAGkwCwOCjqQ8EAQg+9udXNRzcnSbMgGKGEI0= +cosmossdk.io/x/upgrade v0.1.0 h1:z1ZZG4UL9ICTNbJDYZ6jOnF9GdEK9wyoEFi4BUScHXE= +cosmossdk.io/x/upgrade v0.1.0/go.mod h1:/6jjNGbiPCNtmA1N+rBtP601sr0g4ZXuj3yC6ClPCGY= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.0.0-rc.1/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= -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= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= -github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= -github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= -github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= -github.com/CosmWasm/wasmd v0.40.2 h1:GSDHIaeJI7fcDF5mkzSXQI5IZLtvpNq5t3TjJ9bDpPw= -github.com/CosmWasm/wasmd v0.40.2/go.mod h1:vqI238yb4D6aNuigS8mCqTyyCV9HN5eBEZARKRoK3ts= -github.com/CosmWasm/wasmvm v1.2.4 h1:6OfeZuEcEH/9iqwrg2pkeVtDCkMoj9U6PpKtcrCyVrQ= -github.com/CosmWasm/wasmvm v1.2.4/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= -github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= +github.com/CosmWasm/wasmd v0.50.0 h1:NVaGqCSTRfb9UTDHJwT6nQIWcb6VjlQl88iI+u1+qjE= +github.com/CosmWasm/wasmd v0.50.0/go.mod h1:UjmShW4l9YxaMytwJZ7IB7MWzHiynSZP3DdWrG0FRtk= +github.com/CosmWasm/wasmvm v1.5.0 h1:3hKeT9SfwfLhxTGKH3vXaKFzBz1yuvP8SlfwfQXbQfw= +github.com/CosmWasm/wasmvm v1.5.0/go.mod h1:fXB+m2gyh4v9839zlIXdMZGeLAxqUdYdFQqYsTha2hc= 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.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= +github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= @@ -252,33 +253,24 @@ github.com/ProtonMail/go-crypto v0.0.0-20230518184743-7afd39499903 h1:ZK3C5DtzV2 github.com/ProtonMail/go-crypto v0.0.0-20230518184743-7afd39499903/go.mod h1:8TI4H3IbrackdNgv+92dI+rhpCaLqM0IfpgCgenFvRE= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= -github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw= github.com/VividCortex/ewma v1.1.1/go.mod h1:2Tkkvm3sRDVXaiyucHiACn4cqf7DpdyLvmxzcbUokwA= github.com/VividCortex/ewma v1.2.0 h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1ow= github.com/VividCortex/ewma v1.2.0/go.mod h1:nz4BbCtbLyFDeC9SUHbtcT5644juEuWfUAUnGx7j5l4= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6/go.mod h1:eSYp2T6f0apnuW8TzhV3f6Aff2SE8Dwio++U4ha4yEM= github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ= github.com/acomagu/bufpipe v1.0.4/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= -github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= -github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/alecthomas/participle/v2 v2.0.0-alpha7 h1:cK4vjj0VSgb3lN1nuKA5F7dw+1s1pWBe5bx7nNCnN+c= -github.com/alecthomas/participle/v2 v2.0.0-alpha7/go.mod h1:NumScqsC42o9x+dGj8/YqsIfhrIQjFEOFovxotbBirA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= -github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= @@ -287,23 +279,16 @@ github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmV github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= 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-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.44.203 h1:pcsP805b9acL3wUqa4JR2vg1k2wnItkDYNvfmcy6F+U= -github.com/aws/aws-sdk-go v1.44.203/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.44.224 h1:09CiaaF35nRmxrzWZ2uRq5v6Ghg/d2RiPjZnSgtt+RQ= +github.com/aws/aws-sdk-go v1.44.224/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= 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/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y= -github.com/aws/aws-sdk-go-v2/credentials v1.1.1/go.mod h1:mM2iIjwl7LULWtS6JCACyInboHirisUUdkBPoTHMOUo= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.2/go.mod h1:3hGg3PpiEjHnrkrlasTfxFqUsZ2GCk/fMUn4CbKgSkM= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.2/go.mod h1:45MfaXZ0cNbeuT0KQ1XJylq8A6+OpVV2E5kvY/Kq+u8= -github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1/go.mod h1:rLiOUrPLW/Er5kRcQ7NkwbjlijluLsrIbu/iyl35RO4= -github.com/aws/aws-sdk-go-v2/service/sso v1.1.1/go.mod h1:SuZJxklHxLAXgLTc1iFXbEWkXs7QRTQpCLGaKIprQW0= -github.com/aws/aws-sdk-go-v2/service/sts v1.1.1/go.mod h1:Wi0EBZwiz/K44YliU0EKxqTCJGUfYTWXrrBwkq736bM= -github.com/aws/smithy-go v1.1.0/go.mod h1:EzMw8dbp/YJL4A5/sbhGddag+NPT7q084agLbB9LgIw= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -313,41 +298,20 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/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/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.21.0-beta.0.20201114000516-e9c7a5ac6401/go.mod h1:Sv4JPQ3/M+teHz9Bo5jBpkNcP0x6r7rdihlNL/7tTAs= -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/btcec/v2 v2.1.2/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= +github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= +github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 h1:KdUfX2zKommPRa+PD0sWZUyXe9w277ABlgELO7H04IM= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= -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 v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= -github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= -github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= -github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= -github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= -github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= -github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= -github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= -github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= +github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= +github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= github.com/bytedance/sonic v1.8.0 h1:ea0Xadu+sHlu7x5O3gKhRpQ1IKiMrSiHttPF0ybECuA= github.com/bytedance/sonic v1.8.0/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= -github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= @@ -355,7 +319,6 @@ github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInq github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= @@ -385,7 +348,6 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cloudflare/cloudflare-go v0.14.0/go.mod h1:EnwdgGMaFOruiPZRFSgn+TsQ3hQ7C/YWzIGLeu5c304= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= @@ -397,23 +359,24 @@ github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= -github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= -github.com/cockroachdb/apd/v3 v3.1.0/go.mod h1:6qgPBMXjATAdD/VefbRP9NoSLKjbB4LCoA7gN4LpHs4= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= +github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= +github.com/cockroachdb/errors v1.11.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= +github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/pebble v0.0.0-20231102162011-844f0582c2eb h1:6Po+YYKT5B5ZXN0wd2rwFBaebM0LufPf8p4zxOd48Kg= +github.com/cockroachdb/pebble v0.0.0-20231102162011-844f0582c2eb/go.mod h1:acMRUGd/BK8AUmQNK3spUCCGzFLZU2bSST3NMXSq2Kc= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/coinbase/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/go.mod h1:0/knutI7XGVqXmmH4OQD8OckFrbQ8yMsUZTG7FXCR2M= -github.com/cometbft/cometbft v0.37.2 h1:XB0yyHGT0lwmJlFmM4+rsRnczPlHoAKFX6K8Zgc2/Jc= -github.com/cometbft/cometbft v0.37.2/go.mod h1:Y2MMMN//O5K4YKd8ze4r9jmk4Y7h0ajqILXbH5JQFVs= +github.com/cometbft/cometbft v0.38.1 h1:hflfGk/VrPapfHco3rgCqn2YpOglAqJshSdyrM2zSLk= +github.com/cometbft/cometbft v0.38.1/go.mod h1:PIi48BpzwlHqtV3mzwPyQgOyOnU94BNBimLS2ebBHOg= github.com/cometbft/cometbft-db v0.8.0 h1:vUMDaH3ApkX8m0KZvOFFy9b5DZHBAjsnEuo9AKVZpjo= github.com/cometbft/cometbft-db v0.8.0/go.mod h1:6ASCP4pfhmrCBpfk01/9E1SI29nD3HfVHrY4PG8x5c0= -github.com/confio/ics23/go v0.9.0 h1:cWs+wdbS2KRPZezoaaj+qBleXgUk5WOQFMP3CQFGTr4= -github.com/confio/ics23/go v0.9.0/go.mod h1:4LPZ2NYqnYIVRklaozjNR1FScgDJ2s5Xrp+e/mYVRak= -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/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q= -github.com/consensys/gnark-crypto v0.5.3/go.mod h1:hOdPlWQV1gDLp7faZVeg8Y0iEPFaOUnCc4XeCCk96p0= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= @@ -424,86 +387,65 @@ github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV 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.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= -github.com/cosmos/cosmos-proto v1.0.0-beta.2 h1:X3OKvWgK9Gsejo0F1qs5l8Qn6xJV/AzgIWR2wZ8Nua8= -github.com/cosmos/cosmos-proto v1.0.0-beta.2/go.mod h1:+XRCLJ14pr5HFEHIUcn51IKXD1Fy3rkEQqt4WqmN4V0= -github.com/cosmos/cosmos-sdk v0.47.3 h1:r0hGmZoAzP2D+MaPaFGHwAaTdFQq3pNpHaUp1BsffbM= -github.com/cosmos/cosmos-sdk v0.47.3/go.mod h1:c4OfLdAykA9zsj1CqrxBRqXzVz48I++JSvIMPSPcEmk= -github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= +github.com/cosmos/cosmos-db v1.0.0 h1:EVcQZ+qYag7W6uorBKFPvX6gRjw6Uq2hIh4hCWjuQ0E= +github.com/cosmos/cosmos-db v1.0.0/go.mod h1:iBvi1TtqaedwLdcrZVYRSSCb6eSy61NLj4UNmdIgs0U= +github.com/cosmos/cosmos-proto v1.0.0-beta.3 h1:VitvZ1lPORTVxkmF2fAp3IiA61xVwArQYKXTdEcpW6o= +github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= +github.com/cosmos/cosmos-sdk v0.50.1 h1:2SYwAYqd7ZwtrWxu/J8PwbQV/cDcu90bCr/a78g3lVw= +github.com/cosmos/cosmos-sdk v0.50.1/go.mod h1:fsLSPGstCwn6MMsFDMAQWGJj8E4sYsN9Gnu1bGE5imA= 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/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= -github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoKuI= -github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek= -github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= -github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= -github.com/cosmos/ibc-go/v7 v7.1.0 h1:SCLgs7tqVnzdIDO5MRLgovAnc696vTTKl+8qsTu8IMM= -github.com/cosmos/ibc-go/v7 v7.1.0/go.mod h1:7MptlWeIyqmDiuJeRAFqBvXKY8Hybd+rF8vMSmGd2zg= +github.com/cosmos/gogoproto v1.4.11 h1:LZcMHrx4FjUgrqQSWeaGC1v/TeuVFqSLa43CC6aWR2g= +github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= +github.com/cosmos/iavl v1.0.0 h1:bw6t0Mv/mVCJvlMTOPHWLs5uUE3BRBfVWCRelOzl+so= +github.com/cosmos/iavl v1.0.0/go.mod h1:CmTGqMnRnucjxbjduneZXT+0vPgNElYvdefjX2q9tYc= +github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= +github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= +github.com/cosmos/ibc-go/v8 v8.0.0 h1:QKipnr/NGwc+9L7NZipURvmSIu+nw9jOIWTJuDBqOhg= +github.com/cosmos/ibc-go/v8 v8.0.0/go.mod h1:C6IiJom0F3cIQCD5fKwVPDrDK9j/xTu563AWuOmXois= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo= github.com/cosmos/keyring v1.2.0/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= -github.com/cosmos/ledger-cosmos-go v0.12.2 h1:/XYaBlE2BJxtvpkHiBm97gFGSGmYGKunKyF3nNqAXZA= -github.com/cosmos/ledger-cosmos-go v0.12.2/go.mod h1:ZcqYgnfNJ6lAXe4HPtWgarNEY+B74i+2/8MhZw4ziiI= -github.com/cosmos/rosetta-sdk-go v0.10.0 h1:E5RhTruuoA7KTIXUcMicL76cffyeoyvNybzUGSKFTcM= -github.com/cosmos/rosetta-sdk-go v0.10.0/go.mod h1:SImAZkb96YbwvoRkzSMQB6noNJXFgWl/ENIznEoYQI4= +github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= 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.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8= -github.com/creachadair/taskgroup v0.4.2/go.mod h1:qiXUOSrbwAY3u0JPGTzObbE3yf9hcXHDKBZ2ZjpCbgM= +github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= -github.com/cucumber/common/gherkin/go/v22 v22.0.0/go.mod h1:3mJT10B2GGn3MvVPd3FwR7m2u4tLhSRhWUqJU4KN4Fg= -github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= -github.com/cucumber/common/messages/go/v17 v17.1.1/go.mod h1:bpGxb57tDE385Rb2EohgUadLkAbhoC4IyCFi89u/JQI= -github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= -github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg= -github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d/go.mod h1:tmAIfUFEirG/Y8jhZ9M+h36obRZAk/1fcSpXwAVlfqE= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= -github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= -github.com/deepmap/oapi-codegen v1.6.0/go.mod h1:ryDa9AgbELGeB+YEXE1dR53yAjHwFvE9iAUlWl9Al3M= -github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= -github.com/dgryski/go-bitstream v0.0.0-20180413035011-3522498ce2c8/go.mod h1:VMaSuZ+SZcx/wljOQKvp5srsbCiKDEb6K2wC4+PiBmQ= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= -github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= -github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= -github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= +github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= -github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= @@ -515,8 +457,9 @@ github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/emicklei/dot v1.6.0 h1:vUzuoVE8ipzS7QkES4UfxdpCwdU2U97m2Pb2tQCoYRY= +github.com/emicklei/dot v1.6.0/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= @@ -530,18 +473,14 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ethereum/go-ethereum v1.10.17/go.mod h1:Lt5WzjM07XlXc95YzrhosmR4J9Ahd6X2wyEV2SvGhk0= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= -github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= -github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= -github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= @@ -552,23 +491,23 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo 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.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= -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.61.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= +github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= +github.com/getsentry/sentry-go v0.25.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= github.com/gin-gonic/gin v1.9.0 h1:OjyFBKICoexlu99ctXNR2gg+c5pKrKMuyjgARg9qeY8= github.com/gin-gonic/gin v1.9.0/go.mod h1:W1Me9+hsUSyj3CePGrd1/QrKJMSJ1Tu/0hFEH89961k= +github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY= github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= -github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= -github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= -github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= +github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= +github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= github.com/go-git/go-billy/v5 v5.4.1 h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8ix4= github.com/go-git/go-billy/v5 v5.4.1/go.mod h1:vjbugF6Fz7JIflbVpl1hJsGjSHNltrSw45YK/ukIvQg= +github.com/go-git/go-git-fixtures/v4 v4.3.1 h1:y5z6dd3qi8Hl+stezc8p3JxDkoTRqMAlKnXHuzrfjTQ= github.com/go-git/go-git-fixtures/v4 v4.3.1/go.mod h1:8LHG1a3SRW71ettAD/jW13h8c6AqjVSeL11RAdgaqpo= github.com/go-git/go-git/v5 v5.6.1 h1:q4ZRqQl4pR/ZJHc1L5CFjGA1a10u76aV1iC+nh+bHsk= github.com/go-git/go-git/v5 v5.6.1/go.mod h1:mvyoL6Unz0PiTQrGQfSfiLFhBH1c1e84ylC2MDs4ee8= @@ -580,6 +519,7 @@ github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2 github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= @@ -587,9 +527,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.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= -github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= @@ -597,14 +534,14 @@ github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJn github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= github.com/go-playground/validator/v10 v10.11.2 h1:q3SHpufmypg+erIExEKUmsgmhDTyhcJ38oeKGACXohU= github.com/go-playground/validator/v10 v10.11.2/go.mod h1:NieE624vt4SCTJtD87arVLvdmjPAeV8BQlHtMnw9D7s= -github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= +github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= +github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= +github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= @@ -613,9 +550,6 @@ github.com/goccy/go-json v0.10.0/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MG github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= -github.com/gofrs/uuid v4.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= @@ -626,13 +560,10 @@ github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= -github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= -github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -673,12 +604,10 @@ github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8l github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -693,11 +622,11 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ 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.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/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 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.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= @@ -725,17 +654,19 @@ github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= +github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -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.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= +github.com/google/uuid v1.3.1/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.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= -github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= -github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/enterprise-certificate-proxy v0.3.1 h1:SBWmZhjUDRorQxrN0nwzf+AHBxnbFjViHQS4P0yVpmQ= +github.com/googleapis/enterprise-certificate-proxy v0.3.1/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= 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.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -745,56 +676,54 @@ github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99 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/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= -github.com/googleapis/gax-go/v2 v2.7.1 h1:gF4c0zjUP2H/s/hEGyLA3I0fA2ZWjzYiONAD6cvPr8A= -github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= +github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= +github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= 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/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gopherjs/gopherjs v1.17.2 h1:fQnZVsXk8uxXIStYb0N4bGk7jeyTalG/wsZjQ25dO0g= github.com/gopherjs/gopherjs v1.17.2/go.mod h1:pRRIvn/QzFLrKfvEz3qUuEhtE/zLCWfreZ6J5gM2i+k= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= -github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= -github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= +github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= +github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= +github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= -github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= -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/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc= -github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= 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/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= github.com/hashicorp/go-cleanhttp v0.5.0/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/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-getter v1.7.1 h1:SWiSWN/42qdpR0MdhaOc/bLR48PLuP1ZQtYLRlM69uY= github.com/hashicorp/go-getter v1.7.1/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= 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/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-metrics v0.5.1 h1:rfPwUqFU6uZXNvGl4hzjY8LEBsqFVU4si1H9/Hqck/U= +github.com/hashicorp/go-metrics v0.5.1/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= +github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= @@ -802,26 +731,27 @@ github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoD github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= 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/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 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/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= -github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= +github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= -github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -830,8 +760,8 @@ github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXM github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4= github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= -github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= +github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ichiban/prolog v1.1.0 h1:WAY8lg3qA2UKMySYSDFjArmKI/LuaEZV43ZQWlLGRMQ= @@ -847,27 +777,12 @@ github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPt github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -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-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/influxdata/influxql v1.1.1-0.20200828144457-65d3ef77d385/go.mod h1:gHp9y86a/pxhjJ+zMjNXiQAA197Xk9wLxaz+fGG+kWk= -github.com/influxdata/line-protocol v0.0.0-20180522152040-32c6aa80de5e/go.mod h1:4kt73NQhadE3daL3WhR5EJ/J2ocX0PZzwxQ0gXJ7oFE= -github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= -github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= -github.com/influxdata/promql/v2 v2.12.0/go.mod h1:fxOPu+DY0bqCTCECchSRtWfc+0X19ybifQhZoQNF5D8= -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/usage-client v0.0.0-20160829180054-6d3895376368/go.mod h1:Wbbw6tYNvwa5dlB6304Sd+82Z3f7PmVZHVKU637d4po= -github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= -github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= -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.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= -github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= -github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo= +github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls= +github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k= 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/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= @@ -877,7 +792,6 @@ github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -887,34 +801,24 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 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/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= 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/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= -github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0= -github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -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.10.3/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.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= -github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= -github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5 h1:2U0HzY8BJ8hVwDKIzp7y4voR9CX/nvcfymLmg2UiOio= -github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= +github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= -github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= @@ -928,10 +832,6 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/labstack/echo/v4 v4.2.1/go.mod h1:AA49e0DZ8kk5jTOOCKNuPR6oTnBS0dYiM4FW1e6jwpg= -github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= -github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= github.com/lestrrat-go/backoff/v2 v2.0.8 h1:oNb5E5isby2kiro9AgdHLv5N5tint1AnDVVf2E2un5A= @@ -946,31 +846,27 @@ github.com/lestrrat-go/jwx v1.2.25 h1:tAx93jN2SdPvFn08fHNAhqFJazn5mBBOB8Zli0g0ot github.com/lestrrat-go/jwx v1.2.25/go.mod h1:zoNuZymNl5lgdcu6P7K6ie2QRll5HVfF4xwxBBK1NxY= github.com/lestrrat-go/option v1.0.0 h1:WqAWL8kh8VcSoD6xjSH34/1m8yxluXQbDeKNfvFeEO4= github.com/lestrrat-go/option v1.0.0/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I= -github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linxGnu/grocksdb v1.7.16 h1:Q2co1xrpdkr5Hx3Fp+f+f7fRGhQFQhvi/+226dtLmA8= -github.com/linxGnu/grocksdb v1.7.16/go.mod h1:JkS7pl5qWpGpuVb3bPqTz8nC12X3YtPZT+Xq7+QfQo4= -github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77/go.mod h1:5ELEyG+X8f+meRWHuqUOewBOhvHkl7M76pdGEansxW4= +github.com/linxGnu/grocksdb v1.8.6 h1:O7I6SIGPrypf3f/gmrrLUBQDKfO8uOoYdWf4gLS06tc= +github.com/linxGnu/grocksdb v1.8.6/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/matryer/is v1.3.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= -github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= +github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE= +github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= @@ -979,34 +875,27 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU= github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= -github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= -github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -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/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/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -1022,11 +911,8 @@ github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS4 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 v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -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.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mmcloughlin/avo v0.5.0/go.mod h1:ChHFdoV7ql95Wi7vuq2YT1bwCJqiWdZrQ1im3VujLYM= @@ -1037,16 +923,12 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= 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/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= -github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0= -github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E= github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= @@ -1054,32 +936,32 @@ github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzE github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nuts-foundation/go-did v0.4.0 h1:HyzyDOup3Mwt8t8PESQeipW3y8KHDf/XNlBb7XMe79c= github.com/nuts-foundation/go-did v0.4.0/go.mod h1:FfY394+fFTGXQeYTzIFAHlzGZfPYpL0XygmtHb5Xjdg= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= +github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= github.com/ockam-network/did v0.1.4-0.20210103172416-02ae01ce06d8 h1:s5GFggECXv/KwF37ax4B7ACMOKoUnKvmur4i+7I07UE= github.com/ockam-network/did v0.1.4-0.20210103172416-02ae01ce06d8/go.mod h1:ZsbTIuVGt8OrQEbqWrSztUISN4joeMabdsinbLubbzw= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= +github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= -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.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.20.0 h1:8W0cWlwFkflGPLltQvLRB7ZVD5HuP6ng320w2IS245Q= -github.com/onsi/gomega v1.20.0/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= +github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= +github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= 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/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= @@ -1090,7 +972,6 @@ github.com/opencontainers/runc v1.1.7/go.mod h1:CbUumNnWCuTGFukNXahoo/RFBZvDAgRh 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/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/opentracing/opentracing-go v1.0.3-0.20180606204148-bd9c31933947/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= @@ -1102,21 +983,19 @@ github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIw github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= -github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= -github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= -github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= -github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= -github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 h1:hDSdbBuw3Lefr6R18ax0tZ2BJeNB3NehB3trOwYBsdU= -github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= -github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= +github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= @@ -1126,9 +1005,9 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= -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/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/princjef/gomarkdoc v1.1.0 h1:xtl7mESKQWVuGiFdd1AO3dFA6OenWG86bZu97IqBNPE= github.com/princjef/gomarkdoc v1.1.0/go.mod h1:HI3w0Zv8H03ecak/IqVAcPFTuPt7sn7Top6xbgCs1Qk= @@ -1140,83 +1019,74 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.15.0 h1:5fCgGYogn0hFdhyhLbw7hEsWxufKtY9klyvdNfFlFhM= -github.com/prometheus/client_golang v1.15.0/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= +github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= +github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= -github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= -github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= -github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= +github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= +github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= 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.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= -github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= -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/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= +github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= +github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/regen-network/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= -github.com/regen-network/gocuke v0.6.2/go.mod h1:zYaqIHZobHyd0xOrHGPQjbhGJsuZ1oElx150u2o1xuk= -github.com/retailnext/hllpp v1.0.1-0.20180308014038-101a6d2f8b52/go.mod h1:RDpi1RftBQPUCDRw6SmxeaREsAaRKnOclghuzp/WRzc= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRrjvIXnJho= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.5.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= -github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.9.0 h1:l9HGsTsHJcvW14Nk7J9KFz8bzeAWXn3CG6bgt7LsrAE= github.com/rs/cors v1.9.0/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc= -github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= +github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= 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.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= 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/sagikazarmark/locafero v0.3.0 h1:zT7VEGWC2DTflmccN/5T1etyKvxSxpHsjb9cJvm4SvQ= +github.com/sagikazarmark/locafero v0.3.0/go.mod h1:w+v7UsPNFwzF1cHuOajOOzoq4U7v/ig1mpRjqV+Bu1U= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= github.com/samber/lo v1.38.1 h1:j2XEAqXKb09Am4ebOg31SpvzUTTs6EN3VfgeLUhPdXM= github.com/samber/lo v1.38.1/go.mod h1:+m/ZKRl6ClXCE2Lgf3MsQlWfh4bn1bz6CXEOxnEXnEA= 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.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= 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/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= -github.com/segmentio/kafka-go v0.2.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= github.com/shengdoushi/base58 v1.0.0 h1:tGe4o6TmdXFJWoI31VoSWvuaKxf0Px3gqa3sUWhAxBs= github.com/shengdoushi/base58 v1.0.0/go.mod h1:m5uIILfzcKMw6238iWAhP4l3s5+uXyF3+bJKUNhAL9I= -github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= @@ -1237,31 +1107,30 @@ github.com/smartystreets/goconvey v1.8.1 h1:qGjIddxOk4grTu9JPOU31tVfq3cNdBlNa5sS github.com/smartystreets/goconvey v1.8.1/go.mod h1:+/u4qLyY6x1jReYOp7GOM2FSt8aP9CzCZL03bI28W60= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= -github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/afero v1.10.0 h1:EaGW2JJh15aKOejeuJ+wpFSHnbd7GE6Wvp3TsNhb6LY= +github.com/spf13/afero v1.10.0/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= 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 v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= 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/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 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/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU= -github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= -github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= +github.com/spf13/viper v1.17.0 h1:I5txKw7MJasPL/BrfkbA0Jyo/oELqVmux4pR/UxOMfI= +github.com/spf13/viper v1.17.0/go.mod h1:BmMMMLQXSbcHK6KAOiFLz0l5JHrU89OdIRHvsk0+yVI= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= @@ -1270,7 +1139,6 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ 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.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -1278,68 +1146,51 @@ 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.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.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= -github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tidwall/btree v1.6.0 h1:LDZfKfQIBHGHWSwckhXI0RPSXzlo+KYdjK7FWSqOzzg= -github.com/tidwall/btree v1.6.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= -github.com/tidwall/gjson v1.12.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= -github.com/tidwall/gjson v1.14.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= -github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tidwall/sjson v1.2.4/go.mod h1:098SZ494YoMWPmMO6ct4dcFnqxwj9r/gF0Etp19pSNM= -github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= -github.com/tklauser/go-sysconf v0.3.5/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= -github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= +github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= +github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= -github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= -github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ugorji/go/codec v1.2.9 h1:rmenucSohSTiyL09Y+l2OCk+FrMxGMzho2+tjr5ticU= github.com/ugorji/go/codec v1.2.9/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= +github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= +github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8= github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= 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/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.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -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/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= github.com/x-cray/logrus-prefixed-formatter v0.5.2 h1:00txxvfBM9muc0jiLIEAkAcIMJzfthRT6usrui8uGmg= github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= 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/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -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.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= 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.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= -github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= -github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= +github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= +github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= +github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= -go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= +go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= @@ -1356,36 +1207,31 @@ go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqe 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.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= golang.org/x/arch v0.1.0 h1:oMxhUYsO9VsR1dcoVUjJjIGhx1LXol3989T/yZ59Xsw= golang.org/x/arch v0.1.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= -golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/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-20181203042331-505ab145d0a9/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-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-20190605123033-f99c8df09eb5/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-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -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-20220427172511-eb4f295cb31f/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= @@ -1397,12 +1243,9 @@ golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4 golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU= golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= -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/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= @@ -1413,9 +1256,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20230519143937-03e91628a987 h1:3xJIFvzUFbu4ls0BTBYcgbCGhA63eAOEMxIHugyXJqA= -golang.org/x/exp v0.0.0-20230519143937-03e91628a987/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= -golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1444,9 +1286,8 @@ golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= -golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= 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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1484,21 +1325,17 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/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-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -1518,8 +1355,8 @@ golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= 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-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1545,8 +1382,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri 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/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.7.0 h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g= -golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= +golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= +golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= 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-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1562,6 +1399,8 @@ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJ 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/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 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-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1583,7 +1422,6 @@ golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1596,7 +1434,6 @@ golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1616,7 +1453,6 @@ golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1628,12 +1464,9 @@ golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1644,13 +1477,12 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1680,9 +1512,9 @@ golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= 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-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -1691,8 +1523,8 @@ golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= 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.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1707,21 +1539,17 @@ golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= 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-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-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/tools v0.0.0-20180221164845-07fd8470d635/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-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -1738,6 +1566,7 @@ golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1746,7 +1575,6 @@ golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200108203644-89082a384178/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -1782,8 +1610,8 @@ golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.9.1 h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo= -golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= 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-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1793,12 +1621,6 @@ golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNq golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= -gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= -gonum.org/v1/gonum v0.6.0/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= -gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= @@ -1848,8 +1670,8 @@ google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ 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.114.0 h1:1xQPji6cO2E2vLiI+C/XiFAnsn1WV3mjaEwGLhi3grE= -google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg= +google.golang.org/api v0.143.0 h1:o8cekTkqhywkbZT6p1UHJPZ9+9uuCAJs/KYomxZB8fA= +google.golang.org/api v0.143.0/go.mod h1:FoX9DO9hT7DLNn97OuoZAGSDuNAXdJRuGK98rSUgurk= 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.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1866,7 +1688,6 @@ google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= -google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= @@ -1874,7 +1695,6 @@ google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvx google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200108215221-bd8f9a0ef82f/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= @@ -1969,8 +1789,12 @@ google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqw 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-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A= -google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= +google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b h1:+YaDE2r2OG8t/z5qmsh7Y+XXwCbvadxxZ0YY6mTdrVA= +google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= +google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a h1:myvhA4is3vrit1a6NZCWBIwN0kNEnX21DJOJX/NvIfI= +google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:SUBoKXbI1Efip18FClrQVGjWcyd0QZd8KkvdP34t7ww= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= 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.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -2012,8 +1836,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu 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.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= -google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= +google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= +google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= 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-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -2030,8 +1854,8 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ 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.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= -google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/VividCortex/ewma.v1 v1.1.1/go.mod h1:TekXuFipeiHWiAlO1+wSS23vTcyFau5u3rxXUSXj710= 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= @@ -2053,12 +1877,9 @@ gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/mattn/go-colorable.v0 v0.1.0/go.mod h1:BVJlBXzARQxdi3nZo6f6bnl5yR20/tOL6p+V0KejgSY= gopkg.in/mattn/go-isatty.v0 v0.0.4/go.mod h1:wt691ab7g0X4ilKZNmMII3egK0bTxl37fEn/Fwbd8gc= gopkg.in/mattn/go-runewidth.v0 v0.0.4/go.mod h1:BmXejnxvhwdaATwiJbB1vZ2dtXkQKZGu9yLFCZb4msQ= -gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= -gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJfkITjFhyEEuUfm7bsmCZRbW5WRq8s9EY8HZ6hCns= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= 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= @@ -2076,9 +1897,8 @@ gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= -gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o= -gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g= +gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= +gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= @@ -2087,19 +1907,17 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= mvdan.cc/xurls/v2 v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A= mvdan.cc/xurls/v2 v2.2.0/go.mod h1:EV1RMtya9D6G5DMYPGD8zTQzaHet6Jh8gFlRgGRJeO8= nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= -pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA= -pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= +pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= -sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= +sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= From 8a39efc27918d44a091b491920df5008ddf8041d Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:16:40 +0100 Subject: [PATCH 02/29] feat(app)!: update app for v0.50.x sdk changes --- app/ante.go | 39 +- app/app.go | 826 +++++++++++++++++++++++------------------ app/params/encoding.go | 2 +- app/upgrades.go | 12 +- 4 files changed, 497 insertions(+), 382 deletions(-) diff --git a/app/ante.go b/app/ante.go index 58ba1c7a..e26a34ed 100644 --- a/app/ante.go +++ b/app/ante.go @@ -1,18 +1,17 @@ package app import ( + "errors" + + corestoretypes "cosmossdk.io/core/store" + circuitante "cosmossdk.io/x/circuit/ante" + circuitkeeper "cosmossdk.io/x/circuit/keeper" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmTypes "github.com/CosmWasm/wasmd/x/wasm/types" - - errorsmod "cosmossdk.io/errors" - - storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/auth/ante" - - ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante" - "github.com/cosmos/ibc-go/v7/modules/core/keeper" + ibcante "github.com/cosmos/ibc-go/v8/modules/core/ante" + "github.com/cosmos/ibc-go/v8/modules/core/keeper" ) // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC @@ -20,26 +19,28 @@ import ( type HandlerOptions struct { ante.HandlerOptions - IBCKeeper *keeper.Keeper - WasmConfig *wasmTypes.WasmConfig - TXCounterStoreKey storetypes.StoreKey + IBCKeeper *keeper.Keeper + WasmConfig *wasmTypes.WasmConfig + WasmKeeper *wasmkeeper.Keeper + TXCounterStoreService corestoretypes.KVStoreService + CircuitKeeper *circuitkeeper.Keeper } func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { if options.AccountKeeper == nil { - return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "account keeper is required for AnteHandler") + return nil, errors.New("account keeper is required for AnteHandler") } if options.BankKeeper == nil { - return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "bank keeper is required for AnteHandler") + return nil, errors.New("bank keeper is required for AnteHandler") } if options.SignModeHandler == nil { - return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "sign mode handler is required for ante builder") + return nil, errors.New("sign mode handler is required for ante builder") } if options.WasmConfig == nil { - return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "wasm config is required for ante builder") + return nil, errors.New("wasm config is required for ante builder") } - if options.TXCounterStoreKey == nil { - return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "tx counter key is required for ante builder") + if options.TXCounterStoreService == nil { + return nil, errors.New("wasm store service is required for ante builder") } sigGasConsumer := options.SigGasConsumer @@ -50,7 +51,9 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { anteDecorators := []sdk.AnteDecorator{ ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first wasmkeeper.NewLimitSimulationGasDecorator(options.WasmConfig.SimulationGasLimit), // after setup context to enforce limits early - wasmkeeper.NewCountTXDecorator(options.TXCounterStoreKey), + wasmkeeper.NewCountTXDecorator(options.TXCounterStoreService), + wasmkeeper.NewGasRegisterDecorator(options.WasmKeeper.GetGasRegister()), + circuitante.NewCircuitBreakerDecorator(options.CircuitKeeper), ante.NewExtensionOptionsDecorator(options.ExtensionOptionChecker), ante.NewValidateBasicDecorator(), ante.NewTxTimeoutHeightDecorator(), diff --git a/app/app.go b/app/app.go index 5b7fdc92..e73f442b 100644 --- a/app/app.go +++ b/app/app.go @@ -9,40 +9,70 @@ import ( "net/http" "os" "path/filepath" + "sort" "strings" + "sync" - "github.com/CosmWasm/wasmd/x/wasm" - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - "github.com/ignite/cli/ignite/pkg/openapiconsole" - "github.com/prometheus/client_golang/prometheus" - "github.com/spf13/cast" + "cosmossdk.io/client/v2/autocli" + + "cosmossdk.io/core/appmodule" + + "github.com/cosmos/cosmos-sdk/x/auth/posthandler" + + "github.com/cosmos/cosmos-sdk/types/msgservice" - dbm "github.com/cometbft/cometbft-db" + "cosmossdk.io/x/circuit" + + "github.com/okp4/okp4d/x/mint" + + "github.com/cosmos/cosmos-sdk/runtime" + + "cosmossdk.io/log" + "cosmossdk.io/x/tx/signing" abci "github.com/cometbft/cometbft/abci/types" - "github.com/cometbft/cometbft/libs/log" tmos "github.com/cometbft/cometbft/libs/os" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/codec/address" + "github.com/cosmos/cosmos-sdk/server" + "github.com/cosmos/cosmos-sdk/std" + "github.com/cosmos/gogoproto/proto" + "github.com/ignite/cli/ignite/pkg/openapiconsole" + "github.com/prometheus/client_golang/prometheus" + "github.com/spf13/cast" autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1" + storetypes "cosmossdk.io/store/types" + circuitkeeper "cosmossdk.io/x/circuit/keeper" + circuittypes "cosmossdk.io/x/circuit/types" + "cosmossdk.io/x/evidence" + evidencekeeper "cosmossdk.io/x/evidence/keeper" + evidencetypes "cosmossdk.io/x/evidence/types" + "cosmossdk.io/x/feegrant" + feegrantkeeper "cosmossdk.io/x/feegrant/keeper" + feegrantmodule "cosmossdk.io/x/feegrant/module" + "cosmossdk.io/x/upgrade" + upgradekeeper "cosmossdk.io/x/upgrade/keeper" + upgradetypes "cosmossdk.io/x/upgrade/types" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice" nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node" - "github.com/cosmos/cosmos-sdk/client/grpc/tmservice" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/types" runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services" "github.com/cosmos/cosmos-sdk/server/api" "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" - storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/version" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/ante" + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" @@ -53,9 +83,6 @@ import ( "github.com/cosmos/cosmos-sdk/x/bank" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/capability" - capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" "github.com/cosmos/cosmos-sdk/x/consensus" consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" @@ -65,19 +92,12 @@ import ( distr "github.com/cosmos/cosmos-sdk/x/distribution" distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - "github.com/cosmos/cosmos-sdk/x/evidence" - evidencekeeper "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" - feegrantkeeper "github.com/cosmos/cosmos-sdk/x/feegrant/keeper" - feegrantmodule "github.com/cosmos/cosmos-sdk/x/feegrant/module" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" "github.com/cosmos/cosmos-sdk/x/gov" govclient "github.com/cosmos/cosmos-sdk/x/gov/client" govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" "github.com/cosmos/cosmos-sdk/x/group" groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper" @@ -93,43 +113,42 @@ import ( "github.com/cosmos/cosmos-sdk/x/staking" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/cosmos/cosmos-sdk/x/upgrade" - upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client" - upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - - ica "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts" - icacontroller "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller" - icacontrollerkeeper "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/keeper" - icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" - icahost "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host" - icahostkeeper "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/keeper" - icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" - ibcfee "github.com/cosmos/ibc-go/v7/modules/apps/29-fee" - ibcfeekeeper "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/keeper" - ibcfeetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types" - "github.com/cosmos/ibc-go/v7/modules/apps/transfer" - ibctransferkeeper "github.com/cosmos/ibc-go/v7/modules/apps/transfer/keeper" - ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" - ibc "github.com/cosmos/ibc-go/v7/modules/core" - ibcclient "github.com/cosmos/ibc-go/v7/modules/core/02-client" - ibcclientclient "github.com/cosmos/ibc-go/v7/modules/core/02-client/client" - ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" - ibcporttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" - ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" - ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" - solomachine "github.com/cosmos/ibc-go/v7/modules/light-clients/06-solomachine" - ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" - - appparams "github.com/okp4/okp4d/app/params" + "github.com/cosmos/ibc-go/modules/capability" + + capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + ica "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" + icacontroller "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller" + icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" + icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types" + icahost "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host" + icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper" + icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types" + icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types" + ibcfee "github.com/cosmos/ibc-go/v8/modules/apps/29-fee" + ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper" + ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types" + "github.com/cosmos/ibc-go/v8/modules/apps/transfer" + ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper" + ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" + ibc "github.com/cosmos/ibc-go/v8/modules/core" + ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" + ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types" + ibcporttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" + ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" + ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" + ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint" + + "github.com/CosmWasm/wasmd/x/wasm" + wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + okp4wasm "github.com/okp4/okp4d/app/wasm" "github.com/okp4/okp4d/docs" logicmodule "github.com/okp4/okp4d/x/logic" logicfs "github.com/okp4/okp4d/x/logic/fs" logicmodulekeeper "github.com/okp4/okp4d/x/logic/keeper" logicmoduletypes "github.com/okp4/okp4d/x/logic/types" - "github.com/okp4/okp4d/x/mint" mintkeeper "github.com/okp4/okp4d/x/mint/keeper" minttypes "github.com/okp4/okp4d/x/mint/types" "github.com/okp4/okp4d/x/vesting" @@ -145,45 +164,6 @@ var ( // DefaultNodeHome default home directories for the application daemon. DefaultNodeHome string - // ModuleBasics defines the module BasicManager is in charge of setting up basic, - // non-dependant module elements, such as codec registration - // and genesis verification. - ModuleBasics = module.NewBasicManager( - auth.AppModuleBasic{}, - authzmodule.AppModuleBasic{}, - genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), - bank.AppModuleBasic{}, - capability.AppModuleBasic{}, - staking.AppModuleBasic{}, - mint.AppModuleBasic{}, - distr.AppModuleBasic{}, - gov.NewAppModuleBasic([]govclient.ProposalHandler{ - paramsclient.ProposalHandler, - upgradeclient.LegacyProposalHandler, - upgradeclient.LegacyCancelProposalHandler, - ibcclientclient.UpdateClientProposalHandler, - ibcclientclient.UpgradeProposalHandler, - }), - params.AppModuleBasic{}, - crisis.AppModuleBasic{}, - slashing.AppModuleBasic{}, - feegrantmodule.AppModuleBasic{}, - groupmodule.AppModuleBasic{}, - ibc.AppModuleBasic{}, - ibctm.AppModuleBasic{}, - solomachine.AppModuleBasic{}, - upgrade.AppModuleBasic{}, - evidence.AppModuleBasic{}, - transfer.AppModuleBasic{}, - ica.AppModuleBasic{}, - vesting.AppModuleBasic{}, - consensus.AppModuleBasic{}, - wasm.AppModuleBasic{}, - ica.AppModuleBasic{}, - ibcfee.AppModuleBasic{}, - logicmodule.AppModuleBasic{}, - ) - // module account permissions. maccPerms = map[string][]string{ authtypes.FeeCollectorName: nil, @@ -195,20 +175,8 @@ var ( govtypes.ModuleName: {authtypes.Burner}, ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, ibcfeetypes.ModuleName: nil, - wasm.ModuleName: {authtypes.Burner}, + wasmtypes.ModuleName: {authtypes.Burner}, } - - // WasmProposalsEnabled enables all x/wasm proposals when it's value is "true" - // and EnableSpecificWasmProposals is empty. Otherwise, all x/wasm proposals - // are disabled. - WasmProposalsEnabled = "true" - - // EnableSpecificWasmProposals if set, must be comma-separated list of values - // that are all a subset of "EnableAllProposals", which takes precedence over - // WasmProposalsEnabled. - // - // See: https://github.com/CosmWasm/wasmd/blob/02a54d33ff2c064f3539ae12d75d027d9c665f05/x/wasm/internal/types/proposal.go#L28-L34 - EnableSpecificWasmProposals = "" ) var _ servertypes.Application = (*App)(nil) @@ -222,40 +190,17 @@ func init() { DefaultNodeHome = filepath.Join(userHomeDir, "."+Name) } -// GetWasmEnabledProposals parses the WasmProposalsEnabled and -// EnableSpecificWasmProposals values to produce a list of enabled proposals to -// pass into the application. -func GetWasmEnabledProposals() []wasm.ProposalType { - if EnableSpecificWasmProposals == "" { - if WasmProposalsEnabled == "true" { - return wasm.EnableAllProposals - } - - return wasm.DisableAllProposals - } - - chunks := strings.Split(EnableSpecificWasmProposals, ",") - - proposals, err := wasm.ConvertToProposals(chunks) - if err != nil { - panic(err) - } - - return proposals -} - // App extends an ABCI application, but with most of its parameters exported. // They are exported for convenience in creating helper functions, as object // capabilities aren't needed for testing. type App struct { *baseapp.BaseApp - cdc *codec.LegacyAmino + legacyAmino *codec.LegacyAmino appCodec codec.Codec + txConfig client.TxConfig interfaceRegistry types.InterfaceRegistry - invCheckPeriod uint - // keys to access the substores keys map[string]*storetypes.KVStoreKey tkeys map[string]*storetypes.TransientStoreKey @@ -264,7 +209,7 @@ type App struct { // keepers AccountKeeper authkeeper.AccountKeeper AuthzKeeper authzkeeper.Keeper - BankKeeper bankkeeper.Keeper + BankKeeper bankkeeper.BaseKeeper CapabilityKeeper *capabilitykeeper.Keeper StakingKeeper *stakingkeeper.Keeper SlashingKeeper slashingkeeper.Keeper @@ -283,8 +228,9 @@ type App struct { GroupKeeper groupkeeper.Keeper ICAControllerKeeper icacontrollerkeeper.Keeper ConsensusParamsKeeper consensusparamkeeper.Keeper - WasmKeeper wasm.Keeper + WasmKeeper wasmkeeper.Keeper LogicKeeper logicmodulekeeper.Keeper + CircuitKeeper circuitkeeper.Keeper // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper @@ -295,12 +241,16 @@ type App struct { ScopedIBCFeeKeeper capabilitykeeper.ScopedKeeper ScopedWasmKeeper capabilitykeeper.ScopedKeeper - // mm is the module manager - mm *module.Manager + // the module manager + ModuleManager *module.Manager + BasicModuleManager module.BasicManager // sm is the simulation manager - sm *module.SimulationManager + sm *module.SimulationManager + + // module configurator configurator module.Configurator + once sync.Once } // New returns a reference to an initialized blockchain app. @@ -311,41 +261,58 @@ func New( db dbm.DB, traceStore io.Writer, loadLatest bool, - skipUpgradeHeights map[int64]bool, - homePath string, - invCheckPeriod uint, - encodingConfig appparams.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *App { - appCodec := encodingConfig.Marshaler - cdc := encodingConfig.Amino - interfaceRegistry := encodingConfig.InterfaceRegistry - txConfig := encodingConfig.TxConfig + interfaceRegistry, err := types.NewInterfaceRegistryWithOptions(types.InterfaceRegistryOptions{ + ProtoFiles: proto.HybridResolver, + SigningOptions: signing.Options{ + AddressCodec: address.Bech32Codec{ + Bech32Prefix: sdk.GetConfig().GetBech32AccountAddrPrefix(), + }, + ValidatorAddressCodec: address.Bech32Codec{ + Bech32Prefix: sdk.GetConfig().GetBech32ValidatorAddrPrefix(), + }, + }, + }) + if err != nil { + panic(err) + } + appCodec := codec.NewProtoCodec(interfaceRegistry) + legacyAmino := codec.NewLegacyAmino() + txConfig := authtx.NewTxConfig(appCodec, authtx.DefaultSignModes) + + std.RegisterLegacyAminoCodec(legacyAmino) + std.RegisterInterfaces(interfaceRegistry) - bApp := baseapp.NewBaseApp(Name, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...) + bApp := baseapp.NewBaseApp(Name, logger, db, txConfig.TxDecoder(), baseAppOptions...) bApp.SetCommitMultiStoreTracer(traceStore) bApp.SetVersion(version.Version) bApp.SetInterfaceRegistry(interfaceRegistry) bApp.SetTxEncoder(txConfig.TxEncoder()) - keys := sdk.NewKVStoreKeys( + keys := storetypes.NewKVStoreKeys( authtypes.StoreKey, authz.ModuleName, banktypes.StoreKey, stakingtypes.StoreKey, crisistypes.StoreKey, minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey, govtypes.StoreKey, paramstypes.StoreKey, ibcexported.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, icahosttypes.StoreKey, - capabilitytypes.StoreKey, group.StoreKey, wasm.StoreKey, icacontrollertypes.StoreKey, - consensusparamtypes.StoreKey, logicmoduletypes.StoreKey, ibcfeetypes.StoreKey, + capabilitytypes.StoreKey, group.StoreKey, wasmtypes.StoreKey, icacontrollertypes.StoreKey, + consensusparamtypes.StoreKey, logicmoduletypes.StoreKey, ibcfeetypes.StoreKey, circuittypes.StoreKey, ) - tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) - memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey) + tkeys := storetypes.NewTransientStoreKeys(paramstypes.TStoreKey) + memKeys := storetypes.NewMemoryStoreKeys(capabilitytypes.MemStoreKey) + + // register streaming services + if err := bApp.RegisterStreamingServices(appOpts, keys); err != nil { + panic(err) + } app := &App{ BaseApp: bApp, - cdc: cdc, + legacyAmino: legacyAmino, appCodec: appCodec, + txConfig: txConfig, interfaceRegistry: interfaceRegistry, - invCheckPeriod: invCheckPeriod, keys: keys, tkeys: tkeys, memKeys: memKeys, @@ -353,16 +320,19 @@ func New( app.ParamsKeeper = initParamsKeeper( appCodec, - cdc, + legacyAmino, keys[paramstypes.StoreKey], tkeys[paramstypes.TStoreKey], ) // set the BaseApp's parameter store - app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, - keys[upgradetypes.StoreKey], - authtypes.NewModuleAddress(govtypes.ModuleName).String()) - bApp.SetParamStore(&app.ConsensusParamsKeeper) + app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(keys[consensusparamtypes.StoreKey]), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + runtime.EventService{}, + ) + bApp.SetParamStore(app.ConsensusParamsKeeper.ParamsStore) // add capability keeper and ScopeToModule for ibc module app.CapabilityKeeper = capabilitykeeper.NewKeeper( @@ -376,21 +346,22 @@ func New( scopedTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName) scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName) scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName) - scopedWasmKeeper := app.CapabilityKeeper.ScopeToModule(wasm.ModuleName) + scopedWasmKeeper := app.CapabilityKeeper.ScopeToModule(wasmtypes.ModuleName) app.CapabilityKeeper.Seal() // add keepers app.AccountKeeper = authkeeper.NewAccountKeeper( appCodec, - keys[authtypes.StoreKey], + runtime.NewKVStoreService(keys[authtypes.StoreKey]), authtypes.ProtoBaseAccount, maccPerms, - sdk.Bech32PrefixAccAddr, + authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()), + sdk.GetConfig().GetBech32AccountAddrPrefix(), authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) app.AuthzKeeper = authzkeeper.NewKeeper( - keys[authz.ModuleName], + runtime.NewKVStoreService(keys[authz.ModuleName]), appCodec, app.MsgServiceRouter(), app.AccountKeeper, @@ -398,29 +369,32 @@ func New( app.BankKeeper = bankkeeper.NewBaseKeeper( appCodec, - keys[banktypes.StoreKey], + runtime.NewKVStoreService(keys[banktypes.StoreKey]), app.AccountKeeper, app.BlockedModuleAccountAddrs(), authtypes.NewModuleAddress(govtypes.ModuleName).String(), + logger, ) app.StakingKeeper = stakingkeeper.NewKeeper( appCodec, - keys[stakingtypes.StoreKey], + runtime.NewKVStoreService(keys[stakingtypes.StoreKey]), app.AccountKeeper, app.BankKeeper, authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()), + authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()), ) app.FeeGrantKeeper = feegrantkeeper.NewKeeper( appCodec, - keys[feegrant.StoreKey], + runtime.NewKVStoreService(keys[feegrant.StoreKey]), app.AccountKeeper, ) app.MintKeeper = mintkeeper.NewKeeper( appCodec, - keys[minttypes.StoreKey], + runtime.NewKVStoreService(keys[minttypes.StoreKey]), app.StakingKeeper, app.AccountKeeper, app.BankKeeper, @@ -430,7 +404,7 @@ func New( app.DistrKeeper = distrkeeper.NewKeeper( appCodec, - keys[distrtypes.StoreKey], + runtime.NewKVStoreService(keys[distrtypes.StoreKey]), app.AccountKeeper, app.BankKeeper, app.StakingKeeper, @@ -440,20 +414,36 @@ func New( app.SlashingKeeper = slashingkeeper.NewKeeper( appCodec, - cdc, - keys[slashingtypes.StoreKey], + legacyAmino, + runtime.NewKVStoreService(keys[slashingtypes.StoreKey]), app.StakingKeeper, authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) + invCheckPeriod := cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)) app.CrisisKeeper = crisiskeeper.NewKeeper( appCodec, - keys[crisistypes.StoreKey], + runtime.NewKVStoreService(keys[crisistypes.StoreKey]), invCheckPeriod, app.BankKeeper, authtypes.FeeCollectorName, authtypes.NewModuleAddress(govtypes.ModuleName).String(), + app.AccountKeeper.AddressCodec(), + ) + + // register the staking hooks + // NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks + app.StakingKeeper.SetHooks( + stakingtypes.NewMultiStakingHooks(app.DistrKeeper.Hooks(), app.SlashingKeeper.Hooks()), + ) + + app.CircuitKeeper = circuitkeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(keys[circuittypes.StoreKey]), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + app.AccountKeeper.AddressCodec(), ) + app.BaseApp.SetCircuitBreaker(&app.CircuitKeeper) groupConfig := group.DefaultConfig() /* @@ -468,24 +458,56 @@ func New( groupConfig, ) + // get skipUpgradeHeights from the app options + skipUpgradeHeights := map[int64]bool{} + for _, h := range cast.ToIntSlice(appOpts.Get(server.FlagUnsafeSkipUpgrades)) { + skipUpgradeHeights[int64(h)] = true + } + homePath := cast.ToString(appOpts.Get(flags.FlagHome)) + // set the governance module account as the authority for conducting upgrades app.UpgradeKeeper = upgradekeeper.NewKeeper( skipUpgradeHeights, - keys[upgradetypes.StoreKey], + runtime.NewKVStoreService(keys[upgradetypes.StoreKey]), appCodec, homePath, app.BaseApp, authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) - // ... other modules keepers + govRouter := govv1beta1.NewRouter() + govRouter. + AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler). + AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)) + govConfig := govtypes.DefaultConfig() + govKeeper := govkeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(keys[govtypes.StoreKey]), + app.AccountKeeper, + app.BankKeeper, + app.StakingKeeper, + app.DistrKeeper, + app.MsgServiceRouter(), + govConfig, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + + // Set legacy router for backwards compatibility with gov v1beta1 + app.GovKeeper.SetLegacyRouter(govRouter) + app.GovKeeper = *govKeeper.SetHooks( + govtypes.NewMultiGovHooks( + // register the governance hooks + ), + ) // Create IBC Keeper app.IBCKeeper = ibckeeper.NewKeeper( - appCodec, keys[ibcexported.StoreKey], + appCodec, + keys[ibcexported.StoreKey], app.GetSubspace(ibcexported.ModuleName), app.StakingKeeper, app.UpgradeKeeper, scopedIBCKeeper, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) // Create Transfer Keepers @@ -495,28 +517,34 @@ func New( app.GetSubspace(ibctransfertypes.ModuleName), app.IBCKeeper.ChannelKeeper, app.IBCKeeper.ChannelKeeper, - &app.IBCKeeper.PortKeeper, + app.IBCKeeper.PortKeeper, app.AccountKeeper, app.BankKeeper, scopedTransferKeeper, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) - transferModule := transfer.NewAppModule(app.TransferKeeper) // IBC Fee Module keeper app.IBCFeeKeeper = ibcfeekeeper.NewKeeper( appCodec, keys[ibcfeetypes.StoreKey], app.IBCKeeper.ChannelKeeper, // may be replaced with IBC middleware app.IBCKeeper.ChannelKeeper, - &app.IBCKeeper.PortKeeper, + app.IBCKeeper.PortKeeper, app.AccountKeeper, app.BankKeeper, ) app.ICAHostKeeper = icahostkeeper.NewKeeper( - appCodec, keys[icahosttypes.StoreKey], app.GetSubspace(icahosttypes.SubModuleName), + appCodec, + keys[icahosttypes.StoreKey], + app.GetSubspace(icahosttypes.SubModuleName), app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack - app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper, - app.AccountKeeper, scopedICAHostKeeper, app.MsgServiceRouter(), + app.IBCKeeper.ChannelKeeper, + app.IBCKeeper.PortKeeper, + app.AccountKeeper, + scopedICAHostKeeper, + app.MsgServiceRouter(), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) app.ICAControllerKeeper = icacontrollerkeeper.NewKeeper( @@ -525,19 +553,20 @@ func New( app.GetSubspace(icacontrollertypes.SubModuleName), app.IBCKeeper.ChannelKeeper, // may be replaced with middleware such as ics29 fee app.IBCKeeper.ChannelKeeper, - &app.IBCKeeper.PortKeeper, + app.IBCKeeper.PortKeeper, scopedICAControllerKeeper, app.MsgServiceRouter(), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) - icaModule := ica.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper) - icaHostIBCModule := icahost.NewIBCModule(app.ICAHostKeeper) // Create evidence Keeper for to register the IBC light client misbehaviour evidence route evidenceKeeper := evidencekeeper.NewKeeper( appCodec, - keys[evidencetypes.StoreKey], + runtime.NewKVStoreService(keys[evidencetypes.StoreKey]), app.StakingKeeper, app.SlashingKeeper, + app.AccountKeeper.AddressCodec(), + runtime.ProvideCometInfoService(), ) // If evidence needs to be handled for the app, set routes in router here and seal app.EvidenceKeeper = *evidenceKeeper @@ -558,7 +587,7 @@ func New( panic(fmt.Sprintf("error while reading wasm config: %s", err)) } - var wasmOpts []wasm.Option + var wasmOpts []wasmkeeper.Option if cast.ToBool(appOpts.Get("telemetry.enabled")) { wasmOpts = append(wasmOpts, wasmkeeper.WithVMCacheMetrics(prometheus.DefaultRegisterer)) } @@ -570,14 +599,14 @@ func New( availableCapabilities := strings.Join(okp4wasm.AllCapabilities(), ",") app.WasmKeeper = wasm.NewKeeper( appCodec, - keys[wasm.StoreKey], + runtime.NewKVStoreService(keys[wasmtypes.StoreKey]), app.AccountKeeper, app.BankKeeper, app.StakingKeeper, distrkeeper.NewQuerier(app.DistrKeeper), app.IBCFeeKeeper, // ISC4 Wrapper: fee IBC middleware app.IBCKeeper.ChannelKeeper, - &app.IBCKeeper.PortKeeper, + app.IBCKeeper.PortKeeper, scopedWasmKeeper, app.TransferKeeper, app.MsgServiceRouter(), @@ -589,34 +618,6 @@ func New( wasmOpts..., ) - govRouter := govv1beta1.NewRouter() - govRouter. - AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler). - AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)). - AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper)). - AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper)) - - // The gov proposal types can be individually enabled - enabledProposals := GetWasmEnabledProposals() - if len(enabledProposals) != 0 { - govRouter.AddRoute(wasm.RouterKey, wasm.NewWasmProposalHandler(app.WasmKeeper, enabledProposals)) - } - - govConfig := govtypes.DefaultConfig() - govKeeper := govkeeper.NewKeeper( - appCodec, - keys[govtypes.StoreKey], - app.AccountKeeper, - app.BankKeeper, - app.StakingKeeper, - app.MsgServiceRouter(), - govConfig, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - - // Set legacy router for backwards compatibility with gov v1beta1 - app.GovKeeper.SetLegacyRouter(govRouter) - // Create Transfer Stack var transferStack ibcporttypes.IBCModule transferStack = transfer.NewIBCModule(app.TransferKeeper) @@ -632,6 +633,12 @@ func New( icaControllerStack = icacontroller.NewIBCMiddleware(noAuthzModule, app.ICAControllerKeeper) icaControllerStack = ibcfee.NewIBCMiddleware(icaControllerStack, app.IBCFeeKeeper) + // RecvPacket, message that originates from core IBC and goes down to app, the flow is: + // channel.RecvPacket -> fee.OnRecvPacket -> icaHost.OnRecvPacket + var icaHostStack ibcporttypes.IBCModule + icaHostStack = icahost.NewIBCModule(app.ICAHostKeeper) + icaHostStack = ibcfee.NewIBCMiddleware(icaHostStack, app.IBCFeeKeeper) + // Create fee enabled wasm ibc Stack var wasmStack ibcporttypes.IBCModule wasmStack = wasm.NewIBCHandler(app.WasmKeeper, app.IBCKeeper.ChannelKeeper, app.IBCFeeKeeper) @@ -639,26 +646,12 @@ func New( // Create static IBC router, add transfer route, then set and seal it ibcRouter := ibcporttypes.NewRouter() - ibcRouter.AddRoute(icahosttypes.SubModuleName, icaHostIBCModule). + ibcRouter.AddRoute(icahosttypes.SubModuleName, icaHostStack). AddRoute(ibctransfertypes.ModuleName, transferStack). - AddRoute(wasm.ModuleName, wasmStack). + AddRoute(wasmtypes.ModuleName, wasmStack). AddRoute(icacontrollertypes.SubModuleName, icaControllerStack) app.IBCKeeper.SetRouter(ibcRouter) - /**** Module Hooks ****/ - - // register hooks after all modules have been initialized - - app.GovKeeper = *govKeeper.SetHooks( - govtypes.NewMultiGovHooks( - // register the governance hooks - ), - ) - - app.StakingKeeper.SetHooks( - stakingtypes.NewMultiStakingHooks(app.DistrKeeper.Hooks(), app.SlashingKeeper.Hooks()), - ) - /**** Module Options ****/ // NOTE: we may consider parsing `appOpts` inside module constructors. For the moment @@ -668,154 +661,147 @@ func New( // NOTE: Any module instantiated in the module manager that is later modified // must be passed by reference here. - app.mm = module.NewManager( + app.ModuleManager = module.NewManager( genutil.NewAppModule( app.AccountKeeper, app.StakingKeeper, - app.BaseApp.DeliverTx, - encodingConfig.TxConfig, + app, + txConfig, ), auth.NewAppModule(appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)), authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry), - vesting.NewAppModule(app.AccountKeeper, app.BankKeeper), bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper, app.GetSubspace(banktypes.ModuleName)), - capability.NewAppModule(appCodec, *app.CapabilityKeeper, false), feegrantmodule.NewAppModule(appCodec, app.AccountKeeper, app.BankKeeper, app.FeeGrantKeeper, app.interfaceRegistry), groupmodule.NewAppModule(appCodec, app.GroupKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry), gov.NewAppModule(appCodec, &app.GovKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(govtypes.ModuleName)), - mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper), - slashing.NewAppModule(appCodec, - app.SlashingKeeper, - app.AccountKeeper, - app.BankKeeper, - app.StakingKeeper, - app.GetSubspace(slashingtypes.ModuleName)), - distr.NewAppModule(appCodec, - app.DistrKeeper, - app.AccountKeeper, - app.BankKeeper, - app.StakingKeeper, - app.GetSubspace(distrtypes.ModuleName)), + slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.GetSubspace(slashingtypes.ModuleName), app.interfaceRegistry), + distr.NewAppModule(appCodec, app.DistrKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.GetSubspace(distrtypes.ModuleName)), staking.NewAppModule(appCodec, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(stakingtypes.ModuleName)), - upgrade.NewAppModule(app.UpgradeKeeper), - wasm.NewAppModule(appCodec, - &app.WasmKeeper, - app.StakingKeeper, - app.AccountKeeper, - app.BankKeeper, - app.MsgServiceRouter(), - app.GetSubspace(wasmtypes.ModuleName)), + upgrade.NewAppModule(app.UpgradeKeeper, app.AccountKeeper.AddressCodec()), evidence.NewAppModule(app.EvidenceKeeper), + params.NewAppModule(app.ParamsKeeper), consensus.NewAppModule(appCodec, app.ConsensusParamsKeeper), + circuit.NewAppModule(appCodec, app.CircuitKeeper), + // non sdk modules + capability.NewAppModule(appCodec, *app.CapabilityKeeper, false), ibc.NewAppModule(app.IBCKeeper), - params.NewAppModule(app.ParamsKeeper), - transferModule, - icaModule, + transfer.NewAppModule(app.TransferKeeper), + ibcfee.NewAppModule(app.IBCFeeKeeper), + ica.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper), + ibctm.AppModule{}, + wasm.NewAppModule(appCodec, &app.WasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)), + // our modules + vesting.NewAppModule(app.AccountKeeper, app.BankKeeper), + mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper), logicmodule.NewAppModule(appCodec, app.LogicKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(logicmoduletypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them crisis.NewAppModule(app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), ) + // BasicModuleManager defines the module BasicManager in charge of setting up basic, + // non-dependant module elements, such as codec registration and genesis verification. + // By default it is composed of all the module from the module manager. + // Additionally, app module basics can be overwritten by passing them as argument. + app.BasicModuleManager = module.NewBasicManagerFromManager( + app.ModuleManager, + map[string]module.AppModuleBasic{ + genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), + govtypes.ModuleName: gov.NewAppModuleBasic( + []govclient.ProposalHandler{ + paramsclient.ProposalHandler, + }, + ), + }) + app.BasicModuleManager.RegisterLegacyAminoCodec(legacyAmino) + app.BasicModuleManager.RegisterInterfaces(interfaceRegistry) + + // NOTE: upgrade module is required to be prioritized + app.ModuleManager.SetOrderPreBlockers( + upgradetypes.ModuleName, + ) + // During begin block slashing happens after distr.BeginBlocker so that // there is nothing left over in the validator fee pool, so as to keep the // CanWithdrawInvariant invariant. // NOTE: staking module is required if HistoricalEntries param > 0 - app.mm.SetOrderBeginBlockers( - // upgrades should be run first - upgradetypes.ModuleName, - capabilitytypes.ModuleName, + // NOTE: capability module's beginblocker must come before any modules using capabilities (e.g. IBC) + app.ModuleManager.SetOrderBeginBlockers( minttypes.ModuleName, distrtypes.ModuleName, slashingtypes.ModuleName, evidencetypes.ModuleName, stakingtypes.ModuleName, - authtypes.ModuleName, - banktypes.ModuleName, - govtypes.ModuleName, - crisistypes.ModuleName, + genutiltypes.ModuleName, + authz.ModuleName, + // additional non simd modules + capabilitytypes.ModuleName, ibctransfertypes.ModuleName, ibcexported.ModuleName, icatypes.ModuleName, - genutiltypes.ModuleName, - authz.ModuleName, - feegrant.ModuleName, - group.ModuleName, - paramstypes.ModuleName, - vestingtypes.ModuleName, - consensusparamtypes.ModuleName, - wasm.ModuleName, - logicmoduletypes.ModuleName, + ibcfeetypes.ModuleName, + wasmtypes.ModuleName, ) - app.mm.SetOrderEndBlockers( + app.ModuleManager.SetOrderEndBlockers( crisistypes.ModuleName, govtypes.ModuleName, stakingtypes.ModuleName, - ibctransfertypes.ModuleName, - ibcexported.ModuleName, - icatypes.ModuleName, - capabilitytypes.ModuleName, - authtypes.ModuleName, - banktypes.ModuleName, - distrtypes.ModuleName, - slashingtypes.ModuleName, - minttypes.ModuleName, genutiltypes.ModuleName, - evidencetypes.ModuleName, - authz.ModuleName, feegrant.ModuleName, group.ModuleName, - paramstypes.ModuleName, - upgradetypes.ModuleName, - vestingtypes.ModuleName, - consensusparamtypes.ModuleName, - wasm.ModuleName, - logicmoduletypes.ModuleName, + // additional non simd modules + capabilitytypes.ModuleName, + ibctransfertypes.ModuleName, + ibcexported.ModuleName, + icatypes.ModuleName, + ibcfeetypes.ModuleName, + wasmtypes.ModuleName, ) // NOTE: The genutils module must occur after staking so that pools are // properly initialized with tokens from genesis accounts. + // NOTE: The genutils module must also occur after auth so that it can access the params from auth. // NOTE: Capability module must occur first so that it can initialize any capabilities // so that other modules that want to create or claim capabilities afterwards in InitChain // can do so safely. + // NOTE: wasm module should be at the end as it can call other module functionality direct or via message dispatching during + // genesis phase. For example bank transfer, auth account check, staking, ... genesisModuleOrder := []string{ capabilitytypes.ModuleName, - authtypes.ModuleName, - banktypes.ModuleName, - distrtypes.ModuleName, - stakingtypes.ModuleName, - slashingtypes.ModuleName, - govtypes.ModuleName, - minttypes.ModuleName, - crisistypes.ModuleName, - genutiltypes.ModuleName, + // simd modules + authtypes.ModuleName, banktypes.ModuleName, + distrtypes.ModuleName, stakingtypes.ModuleName, slashingtypes.ModuleName, govtypes.ModuleName, + minttypes.ModuleName, crisistypes.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, authz.ModuleName, + feegrant.ModuleName, group.ModuleName, paramstypes.ModuleName, upgradetypes.ModuleName, + vestingtypes.ModuleName, consensusparamtypes.ModuleName, circuittypes.ModuleName, + // additional non simd modules ibctransfertypes.ModuleName, ibcexported.ModuleName, icatypes.ModuleName, - evidencetypes.ModuleName, - authz.ModuleName, - feegrant.ModuleName, - group.ModuleName, - paramstypes.ModuleName, - upgradetypes.ModuleName, - vestingtypes.ModuleName, - consensusparamtypes.ModuleName, + ibcfeetypes.ModuleName, // wasm after ibc transfer - wasm.ModuleName, + wasmtypes.ModuleName, + // logic logicmoduletypes.ModuleName, } - app.mm.SetOrderInitGenesis(genesisModuleOrder...) - app.mm.SetOrderExportGenesis(genesisModuleOrder...) + app.ModuleManager.SetOrderInitGenesis(genesisModuleOrder...) + app.ModuleManager.SetOrderExportGenesis(genesisModuleOrder...) // Uncomment if you want to set a custom migration order here. // app.mm.SetOrderMigrations(custom order) - app.mm.RegisterInvariants(app.CrisisKeeper) - + app.ModuleManager.RegisterInvariants(app.CrisisKeeper) app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter()) - app.mm.RegisterServices(app.configurator) + err = app.ModuleManager.RegisterServices(app.configurator) + if err != nil { + panic(err) + } + + // RegisterUpgradeHandlers is used for registering any on-chain upgrades. + // Make sure it's called after `app.ModuleManager` and `app.configurator` are set. + app.setupUpgradeHandlers() - autocliv1.RegisterQueryServer(app.GRPCQueryRouter(), runtimeservices.NewAutoCLIQueryService(app.mm.Modules)) + autocliv1.RegisterQueryServer(app.GRPCQueryRouter(), runtimeservices.NewAutoCLIQueryService(app.ModuleManager.Modules)) reflectionSvc, err := runtimeservices.NewReflectionService() if err != nil { panic(err) @@ -824,12 +810,14 @@ func New( // create the simulation manager and define the order of the modules for deterministic simulations overrideModules := map[string]module.AppModuleSimulation{ - authtypes.ModuleName: auth.NewAppModule(app.appCodec, + authtypes.ModuleName: auth.NewAppModule( + app.appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, - app.GetSubspace(authtypes.ModuleName)), + app.GetSubspace(authtypes.ModuleName), + ), } - app.sm = module.NewSimulationManagerFromAppModules(app.mm.Modules, overrideModules) + app.sm = module.NewSimulationManagerFromAppModules(app.ModuleManager.Modules, overrideModules) app.sm.RegisterStoreDecoders() // initialize stores @@ -837,28 +825,12 @@ func New( app.MountTransientStores(tkeys) app.MountMemoryStores(memKeys) - anteHandler, err := NewAnteHandler( - HandlerOptions{ - HandlerOptions: ante.HandlerOptions{ - AccountKeeper: app.AccountKeeper, - BankKeeper: app.BankKeeper, - FeegrantKeeper: app.FeeGrantKeeper, - SignModeHandler: encodingConfig.TxConfig.SignModeHandler(), - SigGasConsumer: ante.DefaultSigVerificationGasConsumer, - }, - IBCKeeper: app.IBCKeeper, - WasmConfig: &wasmConfig, - TXCounterStoreKey: keys[wasm.StoreKey], - }, - ) - if err != nil { - panic(fmt.Errorf("failed to create AnteHandler: %w", err)) - } - - app.SetAnteHandler(anteHandler) + // initialize BaseApp app.SetInitChainer(app.InitChainer) + app.SetPreBlocker(app.PreBlocker) app.SetBeginBlocker(app.BeginBlocker) app.SetEndBlocker(app.EndBlocker) + app.setAnteHandler(txConfig, wasmConfig, keys[wasmtypes.StoreKey]) if manager := app.SnapshotManager(); manager != nil { err := manager.RegisterExtensions( @@ -875,7 +847,33 @@ func New( app.ScopedICAHostKeeper = scopedICAHostKeeper app.ScopedICAControllerKeeper = scopedICAControllerKeeper - app.setupUpgradeHandlers() + // In v0.46, the SDK introduces _postHandlers_. PostHandlers are like + // antehandlers, but are run _after_ the `runMsgs` execution. They are also + // defined as a chain, and have the same signature as antehandlers. + // + // In baseapp, postHandlers are run in the same store branch as `runMsgs`, + // meaning that both `runMsgs` and `postHandler` state will be committed if + // both are successful, and both will be reverted if any of the two fails. + // + // The SDK exposes a default postHandlers chain + // + // Please note that changing any of the anteHandler or postHandler chain is + // likely to be a state-machine breaking change, which needs a coordinated + // upgrade. + app.setPostHandler() + + // At startup, after all modules have been registered, check that all proto + // annotations are correct. + protoFiles, err := proto.MergedRegistry() + if err != nil { + panic(err) + } + err = msgservice.ValidateProtoAnnotations(protoFiles) + if err != nil { + // Once we switch to using protoreflect-based antehandlers, we might + // want to panic here instead of logging a warning. + _, _ = fmt.Fprintln(os.Stderr, err.Error()) + } if loadLatest { if err := app.LoadLatestVersion(); err != nil { @@ -892,27 +890,92 @@ func New( return app } +func (app *App) setAnteHandler(txConfig client.TxConfig, wasmConfig wasmtypes.WasmConfig, txCounterStoreKey *storetypes.KVStoreKey) { + anteHandler, err := NewAnteHandler( + HandlerOptions{ + HandlerOptions: ante.HandlerOptions{ + AccountKeeper: app.AccountKeeper, + BankKeeper: app.BankKeeper, + FeegrantKeeper: app.FeeGrantKeeper, + SignModeHandler: txConfig.SignModeHandler(), + SigGasConsumer: ante.DefaultSigVerificationGasConsumer, + }, + IBCKeeper: app.IBCKeeper, + WasmConfig: &wasmConfig, + WasmKeeper: &app.WasmKeeper, + TXCounterStoreService: runtime.NewKVStoreService(txCounterStoreKey), + CircuitKeeper: &app.CircuitKeeper, + }, + ) + if err != nil { + panic(fmt.Errorf("failed to create AnteHandler: %w", err)) + } + + app.SetAnteHandler(anteHandler) +} + +func (app *App) setPostHandler() { + postHandler, err := posthandler.NewPostHandler( + posthandler.HandlerOptions{}, + ) + if err != nil { + panic(err) + } + + app.SetPostHandler(postHandler) +} + // Name returns the name of the App. func (app *App) Name() string { return app.BaseApp.Name() } +func (app *App) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) { + // when skipping sdk 47 for sdk 50, the upgrade handler is called too late in BaseApp + // this is a hack to ensure that the migration is executed when needed and not panics + app.once.Do(func() { + ctx := app.NewUncachedContext(false, tmproto.Header{}) + if _, err := app.ConsensusParamsKeeper.Params(ctx, &consensusparamtypes.QueryParamsRequest{}); err != nil { + // prevents panic: consensus key is nil: collections: not found: key 'no_key' of type github.com/cosmos/gogoproto/tendermint.types.ConsensusParams + // sdk 47: + // Migrate Tendermint consensus parameters from x/params module to a dedicated x/consensus module. + // see https://github.com/cosmos/cosmos-sdk/blob/v0.47.0/simapp/upgrades.go#L66 + baseAppLegacySS := app.GetSubspace(baseapp.Paramspace) + err := baseapp.MigrateParams(sdk.UnwrapSDKContext(ctx), baseAppLegacySS, app.ConsensusParamsKeeper.ParamsStore) + if err != nil { + panic(err) + } + } + }) + + return app.BaseApp.FinalizeBlock(req) +} + +// PreBlocker application updates every pre block +func (app *App) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { + return app.ModuleManager.PreBlock(ctx) +} + // BeginBlocker application updates every begin block. -func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock { - return app.mm.BeginBlock(ctx, req) +func (app *App) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error) { + return app.ModuleManager.BeginBlock(ctx) } // EndBlocker application updates every end block. -func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock { - return app.mm.EndBlock(ctx, req) +func (app *App) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error) { + return app.ModuleManager.EndBlock(ctx) } // InitChainer application update at chain initialization. -func (app *App) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain { +func (app *App) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { var genesisState GenesisState if err := json.Unmarshal(req.AppStateBytes, &genesisState); err != nil { panic(err) } - app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap()) - return app.mm.InitGenesis(ctx, app.appCodec, genesisState) + err := app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap()) + if err != nil { + panic(err) + } + + return app.ModuleManager.InitGenesis(ctx, app.appCodec, genesisState) } // Configurator get app configurator. @@ -949,7 +1012,7 @@ func (app *App) BlockedModuleAccountAddrs() map[string]bool { // NOTE: This is solely to be used for testing purposes as it may be desirable // for modules to register their own custom testing types. func (app *App) LegacyAmino() *codec.LegacyAmino { - return app.cdc + return app.legacyAmino } // AppCodec returns an app codec. @@ -965,6 +1028,37 @@ func (app *App) InterfaceRegistry() types.InterfaceRegistry { return app.interfaceRegistry } +// TxConfig returns WasmApp's TxConfig +func (app *App) TxConfig() client.TxConfig { + return app.txConfig +} + +// AutoCliOpts returns the autocli options for the app. +func (app *App) AutoCliOpts() autocli.AppOptions { + modules := make(map[string]appmodule.AppModule, 0) + for _, m := range app.ModuleManager.Modules { + if moduleWithName, ok := m.(module.HasName); ok { + moduleName := moduleWithName.Name() + if appModule, ok := moduleWithName.(appmodule.AppModule); ok { + modules[moduleName] = appModule + } + } + } + + return autocli.AppOptions{ + Modules: modules, + ModuleOptions: runtimeservices.ExtractAutoCLIOptions(app.ModuleManager.Modules), + AddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()), + ValidatorAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()), + ConsensusAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()), + } +} + +// DefaultGenesis returns a default genesis from the registered AppModuleBasic's. +func (a *App) DefaultGenesis() map[string]json.RawMessage { + return a.BasicModuleManager.DefaultGenesis(a.appCodec) +} + // GetKey returns the KVStoreKey for the provided store key. // // NOTE: This is solely to be used for testing purposes. @@ -972,6 +1066,18 @@ func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey { return app.keys[storeKey] } +// GetStoreKeys returns all the stored store keys. +func (app *App) GetStoreKeys() []storetypes.StoreKey { + keys := make([]storetypes.StoreKey, 0, len(app.keys)) + for _, key := range app.keys { + keys = append(keys, key) + } + sort.Slice(keys, func(i, j int) bool { + return keys[i].Name() < keys[j].Name() + }) + return keys +} + // GetTKey returns the TransientStoreKey for the provided store key. // // NOTE: This is solely to be used for testing purposes. @@ -1001,10 +1107,10 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, _ config.APIConfig) { // Register new tx routes from grpc-gateway. authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) // Register new tendermint queries routes from grpc-gateway. - tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) + cmtservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) // Register grpc-gateway routes for all modules. - ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) + app.BasicModuleManager.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) // register app's OpenAPI routes. apiSvr.Router.Handle("/static/openapi.yml", http.FileServer(http.FS(docs.Docs))) @@ -1018,17 +1124,18 @@ func (app *App) RegisterTxService(clientCtx client.Context) { // RegisterTendermintService implements the Application.RegisterTendermintService method. func (app *App) RegisterTendermintService(clientCtx client.Context) { - tmservice.RegisterTendermintService( + cmtApp := server.NewCometABCIWrapper(app) + cmtservice.RegisterTendermintService( clientCtx, app.BaseApp.GRPCQueryRouter(), app.interfaceRegistry, - app.Query, + cmtApp.Query, ) } // RegisterNodeService implements the Application.RegisterNodeService method. -func (app *App) RegisterNodeService(clientCtx client.Context) { - nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter()) +func (app *App) RegisterNodeService(clientCtx client.Context, cfg config.Config) { + nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter(), cfg) } // initParamsKeeper init params keeper and its subspaces. @@ -1041,13 +1148,18 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(minttypes.ModuleName) paramsKeeper.Subspace(distrtypes.ModuleName) paramsKeeper.Subspace(slashingtypes.ModuleName) - paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) //nolint:staticcheck + paramsKeeper.Subspace(govtypes.ModuleName) paramsKeeper.Subspace(crisistypes.ModuleName) - paramsKeeper.Subspace(ibctransfertypes.ModuleName) - paramsKeeper.Subspace(ibcexported.ModuleName) - paramsKeeper.Subspace(icahosttypes.SubModuleName) - paramsKeeper.Subspace(icacontrollertypes.SubModuleName) - paramsKeeper.Subspace(wasm.ModuleName) + + // register the IBC key tables for legacy param subspaces + keyTable := ibcclienttypes.ParamKeyTable() + keyTable.RegisterParamSet(&ibcconnectiontypes.Params{}) + paramsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable) + paramsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable()) + paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) + paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) + + paramsKeeper.Subspace(wasmtypes.ModuleName) paramsKeeper.Subspace(logicmoduletypes.ModuleName) return paramsKeeper diff --git a/app/params/encoding.go b/app/params/encoding.go index 3d634abf..8ff9ea04 100644 --- a/app/params/encoding.go +++ b/app/params/encoding.go @@ -10,7 +10,7 @@ import ( // This is provided for compatibility between protobuf and amino implementations. type EncodingConfig struct { InterfaceRegistry types.InterfaceRegistry - Marshaler codec.Codec + Codec codec.Codec TxConfig client.TxConfig Amino *codec.LegacyAmino } diff --git a/app/upgrades.go b/app/upgrades.go index e3819393..2e962448 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -3,8 +3,8 @@ package app import ( "fmt" - storetypes "github.com/cosmos/cosmos-sdk/store/types" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + storetypes "cosmossdk.io/store/types" + upgradetypes "cosmossdk.io/x/upgrade/types" v4 "github.com/okp4/okp4d/app/upgrades/v4" v41 "github.com/okp4/okp4d/app/upgrades/v41" @@ -15,22 +15,22 @@ import ( func (app *App) setupUpgradeHandlers() { app.UpgradeKeeper.SetUpgradeHandler( v4.UpgradeName, - v4.CreateUpgradeHandler(app.mm, app.configurator), + v4.CreateUpgradeHandler(app.ModuleManager, app.configurator), ) app.UpgradeKeeper.SetUpgradeHandler( v41.UpgradeName, - v41.CreateUpgradeHandler(app.mm, app.configurator), + v41.CreateUpgradeHandler(app.ModuleManager, app.configurator), ) app.UpgradeKeeper.SetUpgradeHandler( v5.UpgradeName, - v5.CreateUpgradeHandler(app.ParamsKeeper, &app.ConsensusParamsKeeper, app.mm, app.configurator), + v5.CreateUpgradeHandler(app.ParamsKeeper, &app.ConsensusParamsKeeper, app.ModuleManager, app.configurator), ) app.UpgradeKeeper.SetUpgradeHandler( v6.UpgradeName, - v6.CreateUpgradeHandler(app.mm, app.configurator), + v6.CreateUpgradeHandler(app.ModuleManager, app.configurator), ) upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() From dca3eb2103e751f23c0bd27e05d6af6296214a94 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:18:17 +0100 Subject: [PATCH 03/29] feat(cmd): update cmd wiring --- app/encoding.go | 41 +++-- cmd/okp4d/cmd/root.go | 269 +++++++++++++++----------------- cmd/okp4d/main.go | 15 +- scripts/generate_command_doc.go | 2 +- testutil/network/network.go | 20 +-- 5 files changed, 161 insertions(+), 186 deletions(-) diff --git a/app/encoding.go b/app/encoding.go index 45d1eccf..033678a7 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -1,35 +1,30 @@ package app import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/std" - "github.com/cosmos/cosmos-sdk/x/auth/tx" + "testing" + "cosmossdk.io/log" + + dbm "github.com/cosmos/cosmos-db" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" "github.com/okp4/okp4d/app/params" ) -// makeEncodingConfig creates an EncodingConfig for an amino based test configuration. -func makeEncodingConfig() params.EncodingConfig { - amino := codec.NewLegacyAmino() - interfaceRegistry := types.NewInterfaceRegistry() - marshaler := codec.NewProtoCodec(interfaceRegistry) - txCfg := tx.NewTxConfig(marshaler, tx.DefaultSignModes) - - return params.EncodingConfig{ - InterfaceRegistry: interfaceRegistry, - Marshaler: marshaler, - TxConfig: txCfg, - Amino: amino, +// makeEncodingConfig creates an EncodingConfig test configuration. +func makeEncodingConfig(tempApp *App) params.EncodingConfig { + encodingConfig := params.EncodingConfig{ + InterfaceRegistry: tempApp.InterfaceRegistry(), + Codec: tempApp.AppCodec(), + TxConfig: tempApp.TxConfig(), + Amino: tempApp.LegacyAmino(), } + return encodingConfig } // MakeEncodingConfig creates an EncodingConfig for testing. -func MakeEncodingConfig() params.EncodingConfig { - encodingConfig := makeEncodingConfig() - std.RegisterLegacyAminoCodec(encodingConfig.Amino) - std.RegisterInterfaces(encodingConfig.InterfaceRegistry) - ModuleBasics.RegisterLegacyAminoCodec(encodingConfig.Amino) - ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry) - return encodingConfig +func MakeEncodingConfig(t testing.TB) params.EncodingConfig { + t.Helper() + // we "pre"-instantiate the application for getting the injected/configured encoding configuration + tempApp := New(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(t.TempDir())) + return makeEncodingConfig(tempApp) } diff --git a/cmd/okp4d/cmd/root.go b/cmd/okp4d/cmd/root.go index d95e332e..7b26fcf6 100644 --- a/cmd/okp4d/cmd/root.go +++ b/cmd/okp4d/cmd/root.go @@ -4,50 +4,63 @@ import ( "errors" "io" "os" - "path/filepath" "strings" - "github.com/spf13/cast" "github.com/spf13/cobra" "github.com/spf13/pflag" + "github.com/spf13/viper" - dbm "github.com/cometbft/cometbft-db" - tmcfg "github.com/cometbft/cometbft/config" - tmcli "github.com/cometbft/cometbft/libs/cli" - "github.com/cometbft/cometbft/libs/log" - tmtypes "github.com/cometbft/cometbft/types" + "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/baseapp" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + + confixcmd "cosmossdk.io/tools/confix/cmd" + cmtcfg "github.com/cometbft/cometbft/config" + dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/config" "github.com/cosmos/cosmos-sdk/client/debug" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/keys" + "github.com/cosmos/cosmos-sdk/client/pruning" "github.com/cosmos/cosmos-sdk/client/rpc" + "github.com/cosmos/cosmos-sdk/client/snapshot" + "github.com/cosmos/cosmos-sdk/crypto/keyring" "github.com/cosmos/cosmos-sdk/server" serverconfig "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/snapshots" - snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types" - "github.com/cosmos/cosmos-sdk/store" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + "github.com/cosmos/cosmos-sdk/types/tx/signing" authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" + "github.com/cosmos/cosmos-sdk/x/auth/tx" + txmodule "github.com/cosmos/cosmos-sdk/x/auth/tx/config" "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/cosmos/cosmos-sdk/x/crisis" - "github.com/cosmos/cosmos-sdk/x/genutil" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + + "github.com/CosmWasm/wasmd/x/wasm" + wasmcli "github.com/CosmWasm/wasmd/x/wasm/client/cli" "github.com/okp4/okp4d/app" appparams "github.com/okp4/okp4d/app/params" ) // NewRootCmd creates a new root command for a Cosmos SDK application. -func NewRootCmd() (*cobra.Command, appparams.EncodingConfig) { - encodingConfig := app.MakeEncodingConfig() +func NewRootCmd() *cobra.Command { + // Set config + initSDKConfig() + + // we "pre"-instantiate the application for getting the injected/configured encoding configuration + tempApp := app.New(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(tempDir())) + encodingConfig := appparams.EncodingConfig{ + InterfaceRegistry: tempApp.InterfaceRegistry(), + Codec: tempApp.AppCodec(), + TxConfig: tempApp.TxConfig(), + Amino: tempApp.LegacyAmino(), + } + initClientCtx := client.Context{}. - WithCodec(encodingConfig.Marshaler). + WithCodec(encodingConfig.Codec). WithInterfaceRegistry(encodingConfig.InterfaceRegistry). WithTxConfig(encodingConfig.TxConfig). WithLegacyAmino(encodingConfig.Amino). @@ -69,6 +82,8 @@ Want to lean more about OKP4 network? Complete documentation is available at htt // set the default command outputs cmd.SetOut(cmd.OutOrStdout()) cmd.SetErr(cmd.ErrOrStderr()) + + initClientCtx = initClientCtx.WithCmdContext(cmd.Context()) initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags()) if err != nil { return err @@ -78,83 +93,107 @@ Want to lean more about OKP4 network? Complete documentation is available at htt return err } + // This needs to go after ReadFromClientConfig, as that function + // sets the RPC client needed for SIGN_MODE_TEXTUAL. This sign mode + // is only available if the client is online. + if !initClientCtx.Offline { + enabledSignModes := append(tx.DefaultSignModes, signing.SignMode_SIGN_MODE_TEXTUAL) + txConfigOpts := tx.ConfigOptions{ + EnabledSignModes: enabledSignModes, + TextualCoinMetadataQueryFn: txmodule.NewGRPCCoinMetadataQueryFn(initClientCtx), + } + txConfig, err := tx.NewTxConfigWithOptions( + initClientCtx.Codec, + txConfigOpts, + ) + if err != nil { + return err + } + + initClientCtx = initClientCtx.WithTxConfig(txConfig) + } + if err := client.SetCmdClientContextHandler(initClientCtx, cmd); err != nil { return err } customAppTemplate, customAppConfig := initAppConfig() - customTMConfig := initTendermintConfig() + customCMTConfig := initCometBFTConfig() return server.InterceptConfigsPreRunHandler( - cmd, customAppTemplate, customAppConfig, customTMConfig, + cmd, customAppTemplate, customAppConfig, customCMTConfig, ) }, } - initRootCmd(rootCmd, encodingConfig) + initRootCmd(rootCmd, encodingConfig, tempApp.BasicModuleManager) overwriteFlagDefaults(rootCmd, map[string]string{ flags.FlagChainID: strings.ReplaceAll(app.Name, "-", ""), flags.FlagKeyringBackend: "test", }) - return rootCmd, encodingConfig + // add keyring to autocli opts + autoCliOpts := tempApp.AutoCliOpts() + initClientCtx, _ = config.ReadFromClientConfig(initClientCtx) + autoCliOpts.Keyring, _ = keyring.NewAutoCLIKeyring(initClientCtx.Keyring) + autoCliOpts.ClientCtx = initClientCtx + + if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil { + panic(err) + } + + return rootCmd } -// initTendermintConfig helps to override default Tendermint Config values. -// return tmcfg.DefaultConfig if no custom configuration is required for the application. -func initTendermintConfig() *tmcfg.Config { - cfg := tmcfg.DefaultConfig() +// initCometBFTConfig helps to override default Tendermint Config values. +// return cmtcfg.DefaultConfig if no custom configuration is required for the application. +func initCometBFTConfig() *cmtcfg.Config { + cfg := cmtcfg.DefaultConfig() return cfg } func initRootCmd( rootCmd *cobra.Command, encodingConfig appparams.EncodingConfig, + basicManager module.BasicManager, ) { - // Set config - initSDKConfig() - - gentxModule := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic) - rootCmd.AddCommand( - genutilcli.InitCmd(app.ModuleBasics, app.DefaultNodeHome), - genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome, gentxModule.GenTxValidator), - genutilcli.MigrateGenesisCmd(), - genutilcli.GenTxCmd( - app.ModuleBasics, - encodingConfig.TxConfig, - banktypes.GenesisBalancesIterator{}, - app.DefaultNodeHome, - ), - genutilcli.ValidateGenesisCmd(app.ModuleBasics), - AddGenesisAccountCmd(app.DefaultNodeHome), - tmcli.NewCompletionCmd(rootCmd, true), + genutilcli.InitCmd(basicManager, app.DefaultNodeHome), debug.Cmd(), - config.Cmd(), - // this line is used by starport scaffolding # root/commands + confixcmd.ConfigCommand(), + pruning.Cmd(newApp, app.DefaultNodeHome), + snapshot.Cmd(newApp), ) - a := appCreator{ - encodingConfig, - } - // add server commands server.AddCommands( rootCmd, app.DefaultNodeHome, - a.newApp, - a.appExport, + newApp, + appExport, addModuleInitFlags, ) + wasmcli.ExtendUnsafeResetAllCmd(rootCmd) // add keybase, auxiliary RPC, query, and tx child commands rootCmd.AddCommand( - rpc.StatusCommand(), + server.StatusCommand(), + genesisCommand(encodingConfig.TxConfig, basicManager), queryCommand(), txCommand(), - keys.Commands(app.DefaultNodeHome), + keys.Commands(), ) } +// genesisCommand builds genesis-related command. +func genesisCommand(txConfig client.TxConfig, basicManager module.BasicManager, cmds ...*cobra.Command) *cobra.Command { + cmd := genutilcli.Commands(txConfig, basicManager, app.DefaultNodeHome) + + for _, subCmd := range cmds { + cmd.AddCommand(subCmd) + } + return cmd +} + // queryCommand returns the sub-command to send queries to the app. func queryCommand() *cobra.Command { cmd := &cobra.Command{ @@ -167,16 +206,14 @@ func queryCommand() *cobra.Command { } cmd.AddCommand( - authcmd.GetAccountCmd(), - rpc.ValidatorCommand(), - rpc.BlockCommand(), + rpc.QueryEventForTxCmd(), + server.QueryBlockCmd(), authcmd.QueryTxsByEventsCmd(), + server.QueryBlocksCmd(), authcmd.QueryTxCmd(), + server.QueryBlockResultsCmd(), ) - app.ModuleBasics.AddQueryCommands(cmd) - cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID") - return cmd } @@ -194,22 +231,20 @@ func txCommand() *cobra.Command { authcmd.GetSignCommand(), authcmd.GetSignBatchCommand(), authcmd.GetMultiSignCommand(), + authcmd.GetMultiSignBatchCmd(), authcmd.GetValidateSignaturesCommand(), - flags.LineBreak, authcmd.GetBroadcastCommand(), authcmd.GetEncodeCommand(), authcmd.GetDecodeCommand(), + authcmd.GetSimulateCmd(), ) - app.ModuleBasics.AddTxCommands(cmd) - cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID") - return cmd } func addModuleInitFlags(startCmd *cobra.Command) { crisis.AddModuleInitFlags(startCmd) - // this line is used by starport scaffolding # root/arguments + wasm.AddModuleInitFlags(startCmd) } //nolint:errcheck @@ -229,89 +264,26 @@ func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) { } } -type appCreator struct { - encodingConfig appparams.EncodingConfig -} - // newApp creates a new Cosmos SDK app. // //nolint:funlen -func (a appCreator) newApp( +func newApp( logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts servertypes.AppOptions, ) servertypes.Application { - var cache sdk.MultiStorePersistentCache - - if cast.ToBool(appOpts.Get(server.FlagInterBlockCache)) { - cache = store.NewCommitKVStoreCacheManager() - } - - skipUpgradeHeights := make(map[int64]bool) - for _, h := range cast.ToIntSlice(appOpts.Get(server.FlagUnsafeSkipUpgrades)) { - skipUpgradeHeights[int64(h)] = true - } - - pruningOpts, err := server.GetPruningOptionsFromFlags(appOpts) - if err != nil { - panic(err) - } - - homeDir := cast.ToString(appOpts.Get(flags.FlagHome)) - chainID := cast.ToString(appOpts.Get(flags.FlagChainID)) - if chainID == "" { - // fallback to genesis chain-id - appGenesis, err := tmtypes.GenesisDocFromFile(filepath.Join(homeDir, "config", "genesis.json")) - if err != nil { - panic(err) - } - - chainID = appGenesis.ChainID - } - - snapshotDir := filepath.Join(cast.ToString(appOpts.Get(flags.FlagHome)), "data", "snapshots") - snapshotDB, err := dbm.NewDB("metadata", dbm.GoLevelDBBackend, snapshotDir) - if err != nil { - panic(err) - } - snapshotStore, err := snapshots.NewStore(snapshotDB, snapshotDir) - if err != nil { - panic(err) - } - - snapshotOptions := snapshottypes.NewSnapshotOptions( - cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval)), - cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent)), - ) + baseappOptions := server.DefaultBaseappOptions(appOpts) return app.New( - logger, - db, - traceStore, - true, - skipUpgradeHeights, - cast.ToString(appOpts.Get(flags.FlagHome)), - cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)), - a.encodingConfig, + logger, db, traceStore, true, appOpts, - baseapp.SetPruning(pruningOpts), - baseapp.SetMinGasPrices(cast.ToString(appOpts.Get(server.FlagMinGasPrices))), - baseapp.SetHaltHeight(cast.ToUint64(appOpts.Get(server.FlagHaltHeight))), - baseapp.SetHaltTime(cast.ToUint64(appOpts.Get(server.FlagHaltTime))), - baseapp.SetMinRetainBlocks(cast.ToUint64(appOpts.Get(server.FlagMinRetainBlocks))), - baseapp.SetInterBlockCache(cache), - baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))), - baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))), - baseapp.SetSnapshot(snapshotStore, snapshotOptions), - baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))), - baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(server.FlagDisableIAVLFastNode))), - baseapp.SetChainID(chainID), + baseappOptions..., ) } // appExport creates a new simapp (optionally at a given height). -func (a appCreator) appExport( +func appExport( logger log.Logger, db dbm.DB, traceStore io.Writer, @@ -321,30 +293,37 @@ func (a appCreator) appExport( appOpts servertypes.AppOptions, modulesToExport []string, ) (servertypes.ExportedApp, error) { + var okp4App *app.App + homePath, ok := appOpts.Get(flags.FlagHome).(string) if !ok || homePath == "" { return servertypes.ExportedApp{}, errors.New("application home not set") } - app := app.New( + viperAppOpts, ok := appOpts.(*viper.Viper) + if !ok { + return servertypes.ExportedApp{}, errors.New("appOpts is not viper.Viper") + } + + // overwrite the FlagInvCheckPeriod + viperAppOpts.Set(server.FlagInvCheckPeriod, 1) + appOpts = viperAppOpts + + okp4App = app.New( logger, db, traceStore, - height == -1, // -1: no height provided - map[int64]bool{}, - homePath, - uint(1), - a.encodingConfig, + height == -1, appOpts, ) if height != -1 { - if err := app.LoadHeight(height); err != nil { + if err := okp4App.LoadHeight(height); err != nil { return servertypes.ExportedApp{}, err } } - return app.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport) + return okp4App.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport) } // initAppConfig helps to override default appConfig template and configs. @@ -402,3 +381,13 @@ lru_size = 0` return customAppTemplate, customAppConfig } + +var tempDir = func() string { + dir, err := os.MkdirTemp("", "wasmd") + if err != nil { + panic("failed to create temp dir: " + err.Error()) + } + defer os.RemoveAll(dir) + + return dir +} diff --git a/cmd/okp4d/main.go b/cmd/okp4d/main.go index ac6fef65..45d575f9 100644 --- a/cmd/okp4d/main.go +++ b/cmd/okp4d/main.go @@ -1,10 +1,10 @@ package main import ( - "errors" "os" - "github.com/cosmos/cosmos-sdk/server" + "cosmossdk.io/log" + svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" "github.com/okp4/okp4d/app" @@ -12,14 +12,9 @@ import ( ) func main() { - rootCmd, _ := cmd.NewRootCmd() + rootCmd := cmd.NewRootCmd() if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil { - var codeErr *server.ErrorCode - switch { - case errors.As(err, &codeErr): - os.Exit(codeErr.Code) - default: - os.Exit(1) - } + log.NewLogger(rootCmd.OutOrStderr()).Error("failure when running app", "err", err) + os.Exit(1) } } diff --git a/scripts/generate_command_doc.go b/scripts/generate_command_doc.go index 8c92f98d..532c4fd4 100644 --- a/scripts/generate_command_doc.go +++ b/scripts/generate_command_doc.go @@ -14,7 +14,7 @@ func GenerateCommandDocumentation() error { } targetPath := "docs/command" - rootCmd, _ := cmd.NewRootCmd() + rootCmd := cmd.NewRootCmd() rootCmd.DisableAutoGenTag = true err := os.Mkdir(targetPath, 0o750) diff --git a/testutil/network/network.go b/testutil/network/network.go index b6dea4b5..a6103630 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -7,14 +7,14 @@ import ( "github.com/stretchr/testify/require" - tmdb "github.com/cometbft/cometbft-db" tmrand "github.com/cometbft/cometbft/libs/rand" + dbm "github.com/cosmos/cosmos-db" + pruningtypes "cosmossdk.io/store/pruning/types" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/crypto/hd" "github.com/cosmos/cosmos-sdk/crypto/keyring" servertypes "github.com/cosmos/cosmos-sdk/server/types" - pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" "github.com/cosmos/cosmos-sdk/testutil/network" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" @@ -36,7 +36,7 @@ func New(t *testing.T, configs ...Config) *Network { } var cfg network.Config if len(configs) == 0 { - cfg = DefaultConfig() + cfg = DefaultConfig(t) } else { cfg = configs[0] } @@ -50,13 +50,13 @@ func New(t *testing.T, configs ...Config) *Network { // DefaultConfig will initialize config for the network with custom application, // genesis and single validator. All other parameters are inherited from cosmos-sdk/testutil/network.DefaultConfig. -func DefaultConfig() network.Config { +func DefaultConfig(t *testing.T) network.Config { var ( - encoding = app.MakeEncodingConfig() + encoding = app.MakeEncodingConfig(t) chainID = "chain-" + tmrand.NewRand().Str(6) ) return network.Config{ - Codec: encoding.Marshaler, + Codec: encoding.Codec, TxConfig: encoding.TxConfig, LegacyAmino: encoding.Amino, InterfaceRegistry: encoding.InterfaceRegistry, @@ -64,20 +64,16 @@ func DefaultConfig() network.Config { AppConstructor: func(val network.ValidatorI) servertypes.Application { return app.New( val.GetCtx().Logger, - tmdb.NewMemDB(), + dbm.NewMemDB(), nil, true, - map[int64]bool{}, - val.GetCtx().Config.RootDir, - 0, - encoding, simtestutil.EmptyAppOptions{}, baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), baseapp.SetMinGasPrices(val.GetAppConfig().MinGasPrices), baseapp.SetChainID(chainID), ) }, - GenesisState: app.ModuleBasics.DefaultGenesis(encoding.Marshaler), + GenesisState: app.NewDefaultGenesisState(encoding.Codec), TimeoutCommit: 2 * time.Second, ChainID: chainID, NumValidators: 1, From bb35f38b473a0b9ea4025bf7a7fe9b85056d0a39 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:28:02 +0100 Subject: [PATCH 04/29] fix(test): allow default genesis creation in testutil --- app/genesis.go | 13 ++++++++++--- testutil/network/network.go | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/genesis.go b/app/genesis.go index 5bf0c1da..34edce09 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -2,6 +2,12 @@ package app import ( "encoding/json" + "testing" + + "cosmossdk.io/log" + + dbm "github.com/cosmos/cosmos-db" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" "github.com/cosmos/cosmos-sdk/codec" ) @@ -15,7 +21,8 @@ import ( // object provided to it during init. type GenesisState map[string]json.RawMessage -// NewDefaultGenesisState generates the default state for the application. -func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState { - return ModuleBasics.DefaultGenesis(cdc) +// NewDefaultGenesisState generates the default state for the application, for testing purpose. +func NewDefaultGenesisState(t testing.TB, cdc codec.JSONCodec) GenesisState { + tempApp := New(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(t.TempDir())) + return tempApp.BasicModuleManager.DefaultGenesis(cdc) } diff --git a/testutil/network/network.go b/testutil/network/network.go index a6103630..9f2d5c3d 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -73,7 +73,7 @@ func DefaultConfig(t *testing.T) network.Config { baseapp.SetChainID(chainID), ) }, - GenesisState: app.NewDefaultGenesisState(encoding.Codec), + GenesisState: app.NewDefaultGenesisState(t, encoding.Codec), TimeoutCommit: 2 * time.Second, ChainID: chainID, NumValidators: 1, From e19e0ddea67846f05748bc801832a9716c16e25d Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:28:19 +0100 Subject: [PATCH 05/29] refactor(cmd): remove unused cmd --- cmd/okp4d/cmd/genaccounts.go | 203 ----------------------------------- 1 file changed, 203 deletions(-) delete mode 100644 cmd/okp4d/cmd/genaccounts.go diff --git a/cmd/okp4d/cmd/genaccounts.go b/cmd/okp4d/cmd/genaccounts.go deleted file mode 100644 index c278eff2..00000000 --- a/cmd/okp4d/cmd/genaccounts.go +++ /dev/null @@ -1,203 +0,0 @@ -package cmd - -import ( - "bufio" - "encoding/json" - "errors" - "fmt" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/server" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - - authvesting "github.com/okp4/okp4d/x/vesting/types" -) - -const ( - flagVestingStart = "vesting-start-time" - flagVestingEnd = "vesting-end-time" - flagVestingCliff = "vesting-cliff-time" - flagVestingAmt = "vesting-amount" -) - -// AddGenesisAccountCmd returns add-genesis-account cobra Command. -// -//nolint:funlen,gocognit,cyclop -func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command { - cmd := &cobra.Command{ - Use: "add-genesis-account [address_or_key_name] [coin][,[coin]]", - Short: "Add a genesis account to genesis.json", - 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 address will be looked up in the local Keybase. The list of initial tokens must -contain valid denominations. Accounts may optionally be supplied with vesting parameters. -`, - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - cdc := clientCtx.Codec - - serverCtx := server.GetServerContextFromCmd(cmd) - config := serverCtx.Config - - config.SetRoot(clientCtx.HomeDir) - - coins, err := sdk.ParseCoinsNormalized(args[1]) - if err != nil { - return fmt.Errorf("failed to parse coins: %w", err) - } - - addr, err := sdk.AccAddressFromBech32(args[0]) - if err != nil { - inBuf := bufio.NewReader(cmd.InOrStdin()) - keyringBackend, err := cmd.Flags().GetString(flags.FlagKeyringBackend) - if err != nil { - return err - } - - // attempt to lookup address from Keybase if no address was provided - kb, err := keyring.New(sdk.KeyringServiceName(), keyringBackend, clientCtx.HomeDir, inBuf, cdc) - if err != nil { - return err - } - - info, err := kb.Key(args[0]) - if err != nil { - return fmt.Errorf("failed to get address from Keybase: %w", err) - } - - addr, err = info.GetAddress() - if err != nil { - return fmt.Errorf("failed to get address from Keybase: %w", err) - } - } - - vestingStart, err := cmd.Flags().GetInt64(flagVestingStart) - if err != nil { - return err - } - vestingCliff, err := cmd.Flags().GetInt64(flagVestingCliff) - if err != nil { - return err - } - vestingEnd, err := cmd.Flags().GetInt64(flagVestingEnd) - if err != nil { - return err - } - vestingAmtStr, err := cmd.Flags().GetString(flagVestingAmt) - if err != nil { - return err - } - - vestingAmt, err := sdk.ParseCoinsNormalized(vestingAmtStr) - if err != nil { - return fmt.Errorf("failed to parse vesting amount: %w", err) - } - - // create concrete account type based on input parameters - var genAccount authtypes.GenesisAccount - - balances := banktypes.Balance{Address: addr.String(), Coins: coins.Sort()} - baseAccount := authtypes.NewBaseAccount(addr, nil, 0, 0) - - if !vestingAmt.IsZero() { - baseVestingAccount := authvesting.NewBaseVestingAccount(baseAccount, vestingAmt.Sort(), vestingEnd) - - if (balances.Coins.IsZero() && !baseVestingAccount.OriginalVesting.IsZero()) || - baseVestingAccount.OriginalVesting.IsAnyGT(balances.Coins) { - return errors.New("vesting amount cannot be greater than total amount") - } - - switch { - case vestingStart != 0 && vestingCliff != 0: - genAccount = authvesting.NewCliffVestingAccountRaw(baseVestingAccount, vestingStart, vestingCliff) - case vestingStart != 0 && vestingEnd != 0: - genAccount = authvesting.NewContinuousVestingAccountRaw(baseVestingAccount, vestingStart) - case vestingEnd != 0: - genAccount = authvesting.NewDelayedVestingAccountRaw(baseVestingAccount) - - default: - return errors.New("invalid vesting parameters; must supply start and end time, start and cliff time or end time") - } - } else { - genAccount = baseAccount - } - - if err := genAccount.Validate(); err != nil { - return fmt.Errorf("failed to validate new genesis account: %w", err) - } - - genFile := config.GenesisFile() - appState, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFile) - if err != nil { - return fmt.Errorf("failed to unmarshal genesis state: %w", err) - } - - authGenState := authtypes.GetGenesisStateFromAppState(cdc, appState) - - accs, err := authtypes.UnpackAccounts(authGenState.Accounts) - if err != nil { - return fmt.Errorf("failed to get accounts from any: %w", err) - } - - if accs.Contains(addr) { - return fmt.Errorf("cannot add account at existing address %s", addr) - } - - // Add the new account to the set of genesis accounts and sanitize the - // accounts afterwards. - accs = append(accs, genAccount) - accs = authtypes.SanitizeGenesisAccounts(accs) - - genAccs, err := authtypes.PackAccounts(accs) - if err != nil { - return fmt.Errorf("failed to convert accounts into any's: %w", err) - } - authGenState.Accounts = genAccs - - authGenStateBz, err := cdc.MarshalJSON(&authGenState) - if err != nil { - return fmt.Errorf("failed to marshal auth genesis state: %w", err) - } - - appState[authtypes.ModuleName] = authGenStateBz - - bankGenState := banktypes.GetGenesisStateFromAppState(cdc, appState) - bankGenState.Balances = append(bankGenState.Balances, balances) - bankGenState.Balances = banktypes.SanitizeGenesisBalances(bankGenState.Balances) - - bankGenStateBz, err := cdc.MarshalJSON(bankGenState) - if err != nil { - return fmt.Errorf("failed to marshal bank genesis state: %w", err) - } - - appState[banktypes.ModuleName] = bankGenStateBz - - appStateJSON, err := json.Marshal(appState) - if err != nil { - return fmt.Errorf("failed to marshal application genesis state: %w", err) - } - - genDoc.AppState = appStateJSON - return genutil.ExportGenesisFile(genDoc, genFile) - }, - } - - cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test)") - cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory") - cmd.Flags().String(flagVestingAmt, "", "amount of coins for vesting accounts") - cmd.Flags().Int64(flagVestingStart, 0, "schedule start time (unix epoch) for vesting accounts") - cmd.Flags().Int64(flagVestingEnd, 0, "schedule end time (unix epoch) for vesting accounts") - cmd.Flags().Int64(flagVestingCliff, 0, "schedule cliff time (unix epoch) for vesting accounts") - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} From 85362d4851d68efef88b8bfcaab155e2798d7270 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:37:10 +0100 Subject: [PATCH 06/29] feat(app): re implement app state export --- app/export.go | 132 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 98 insertions(+), 34 deletions(-) diff --git a/app/export.go b/app/export.go index a0eed73e..8e20005e 100644 --- a/app/export.go +++ b/app/export.go @@ -2,9 +2,12 @@ package app import ( "encoding/json" + "fmt" "log" - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + storetypes "cosmossdk.io/store/types" + + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" servertypes "github.com/cosmos/cosmos-sdk/server/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -21,7 +24,7 @@ func (app *App) ExportAppStateAndValidators( modulesToExport []string, ) (servertypes.ExportedApp, error) { // as if they could withdraw from the start of the next block - ctx := app.NewContext(true, tmproto.Header{Height: app.LastBlockHeight()}) + ctx := app.NewContextLegacy(true, cmtproto.Header{Height: app.LastBlockHeight()}) // We export at last height + 1, because that's the height at which // Tendermint will start InitChain. @@ -31,7 +34,11 @@ func (app *App) ExportAppStateAndValidators( app.prepForZeroHeightGenesis(ctx, jailAllowedAddrs) } - genState := app.mm.ExportGenesisForModules(ctx, app.appCodec, modulesToExport) + genState, err := app.ModuleManager.ExportGenesisForModules(ctx, app.appCodec, modulesToExport) + if err != nil { + return servertypes.ExportedApp{}, err + } + appState, err := json.MarshalIndent(genState, "", " ") if err != nil { return servertypes.ExportedApp{}, err @@ -79,21 +86,35 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str /* Handle fee distribution state. */ // withdraw all validator commission - app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { - _, err := app.DistrKeeper.WithdrawValidatorCommission(ctx, val.GetOperator()) + err := app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { + valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator()) if err != nil { panic(err) } + _, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, valBz) return false }) + if err != nil { + panic(err) + } // withdraw all delegator rewards - dels := app.StakingKeeper.GetAllDelegations(ctx) + dels, err := app.StakingKeeper.GetAllDelegations(ctx) + if err != nil { + panic(err) + } + for _, delegation := range dels { - _, err := app.DistrKeeper.WithdrawDelegationRewards(ctx, delegation.GetDelegatorAddr(), delegation.GetValidatorAddr()) + valAddr, err := sdk.ValAddressFromBech32(delegation.ValidatorAddress) if err != nil { panic(err) } + + delAddr := sdk.MustAccAddressFromBech32(delegation.DelegatorAddress) + + if _, err = app.DistrKeeper.WithdrawDelegationRewards(ctx, delAddr, valAddr); err != nil { + panic(err) + } } // clear validator slash events @@ -107,29 +128,50 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str ctx = ctx.WithBlockHeight(0) // reinitialize all validators - app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { + err = app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { + valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator()) + if err != nil { + panic(err) + } // donate any unwithdrawn outstanding reward fraction tokens to the community pool - scraps := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, val.GetOperator()) - feePool := app.DistrKeeper.GetFeePool(ctx) + scraps, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valBz) + if err != nil { + panic(err) + } + feePool, err := app.DistrKeeper.FeePool.Get(ctx) + if err != nil { + panic(err) + } feePool.CommunityPool = feePool.CommunityPool.Add(scraps...) - app.DistrKeeper.SetFeePool(ctx, feePool) + if err := app.DistrKeeper.FeePool.Set(ctx, feePool); err != nil { + panic(err) + } - err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, val.GetOperator()) - if err != nil { + if err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, valBz); err != nil { panic(err) } return false }) + if err != nil { + panic(err) + } // reinitialize all delegations for _, del := range dels { - err := app.DistrKeeper.Hooks().BeforeDelegationCreated(ctx, del.GetDelegatorAddr(), del.GetValidatorAddr()) + valAddr, err := sdk.ValAddressFromBech32(del.ValidatorAddress) if err != nil { panic(err) } - err = app.DistrKeeper.Hooks().AfterDelegationModified(ctx, del.GetDelegatorAddr(), del.GetValidatorAddr()) - if err != nil { - panic(err) + delAddr := sdk.MustAccAddressFromBech32(del.DelegatorAddress) + + if err := app.DistrKeeper.Hooks().BeforeDelegationCreated(ctx, delAddr, valAddr); err != nil { + // never called as BeforeDelegationCreated always returns nil + panic(fmt.Errorf("error while incrementing period: %w", err)) + } + + if err := app.DistrKeeper.Hooks().AfterDelegationModified(ctx, delAddr, valAddr); err != nil { + // never called as AfterDelegationModified always returns nil + panic(fmt.Errorf("error while creating a new delegation period record: %w", err)) } } @@ -139,33 +181,44 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str /* Handle staking state. */ // iterate through redelegations, reset creation height - app.StakingKeeper.IterateRedelegations(ctx, func(_ int64, red stakingtypes.Redelegation) (stop bool) { + err = app.StakingKeeper.IterateRedelegations(ctx, func(_ int64, red stakingtypes.Redelegation) (stop bool) { for i := range red.Entries { red.Entries[i].CreationHeight = 0 } - app.StakingKeeper.SetRedelegation(ctx, red) + err = app.StakingKeeper.SetRedelegation(ctx, red) + if err != nil { + panic(err) + } return false }) + if err != nil { + panic(err) + } // iterate through unbonding delegations, reset creation height - app.StakingKeeper.IterateUnbondingDelegations(ctx, func(_ int64, ubd stakingtypes.UnbondingDelegation) (stop bool) { + err = app.StakingKeeper.IterateUnbondingDelegations(ctx, func(_ int64, ubd stakingtypes.UnbondingDelegation) (stop bool) { for i := range ubd.Entries { ubd.Entries[i].CreationHeight = 0 } - app.StakingKeeper.SetUnbondingDelegation(ctx, ubd) + err = app.StakingKeeper.SetUnbondingDelegation(ctx, ubd) + if err != nil { + panic(err) + } return false }) + if err != nil { + panic(err) + } // Iterate through validators by power descending, reset bond heights, and // update bond intra-tx counters. - store := ctx.KVStore(app.keys[stakingtypes.StoreKey]) - iter := sdk.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey) - counter := int16(0) + store := ctx.KVStore(app.GetKey(stakingtypes.StoreKey)) + iter := storetypes.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey) for ; iter.Valid(); iter.Next() { - addr := sdk.ValAddress(iter.Key()[1:]) - validator, found := app.StakingKeeper.GetValidator(ctx, addr) - if !found { + addr := sdk.ValAddress(stakingtypes.AddressFromValidatorsKey(iter.Key())) + validator, err := app.StakingKeeper.GetValidator(ctx, addr) + if err != nil { panic("expected validator, not found") } @@ -174,25 +227,36 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str validator.Jailed = true } - app.StakingKeeper.SetValidator(ctx, validator) - counter++ + err = app.StakingKeeper.SetValidator(ctx, validator) + if err != nil { + panic(err) + } } - iter.Close() + if err := iter.Close(); err != nil { + app.Logger().Error("error while closing the key-value store reverse prefix iterator: ", err) + return + } - if _, err := app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx); err != nil { - panic(err) + _, err = app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx) + if err != nil { + log.Fatal(err) } /* Handle slashing state. */ // reset start height on signing infos - app.SlashingKeeper.IterateValidatorSigningInfos( + err = app.SlashingKeeper.IterateValidatorSigningInfos( ctx, func(addr sdk.ConsAddress, info slashingtypes.ValidatorSigningInfo) (stop bool) { info.StartHeight = 0 - app.SlashingKeeper.SetValidatorSigningInfo(ctx, addr, info) + if err := app.SlashingKeeper.SetValidatorSigningInfo(ctx, addr, info); err != nil { + panic(err) + } return false }, ) + if err != nil { + panic(err) + } } From ab068fc2039ff63c6e84e49aa0770e4f4f98ee19 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:50:49 +0100 Subject: [PATCH 07/29] feat(app): update old migrations --- app/upgrades/v4/upgrade.go | 10 ++++++---- app/upgrades/v41/upgrade.go | 10 ++++++---- app/upgrades/v5/upgrade.go | 24 +++++++++++++++--------- app/upgrades/v6/upgrade.go | 10 ++++++---- 4 files changed, 33 insertions(+), 21 deletions(-) diff --git a/app/upgrades/v4/upgrade.go b/app/upgrades/v4/upgrade.go index 8a5d47ea..548fdc17 100644 --- a/app/upgrades/v4/upgrade.go +++ b/app/upgrades/v4/upgrade.go @@ -1,10 +1,12 @@ package v4 import ( - storetypes "github.com/cosmos/cosmos-sdk/store/types" + "context" + + storetypes "cosmossdk.io/store/types" + upgradetypes "cosmossdk.io/x/upgrade/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) const UpgradeName = "v4.0.0" @@ -15,8 +17,8 @@ func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, ) upgradetypes.UpgradeHandler { - return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - logger := ctx.Logger().With("upgrade", UpgradeName) + return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + logger := sdk.UnwrapSDKContext(ctx).Logger().With("upgrade", UpgradeName) logger.Debug("running module migrations...") return mm.RunMigrations(ctx, configurator, vm) diff --git a/app/upgrades/v41/upgrade.go b/app/upgrades/v41/upgrade.go index 9e22fb3f..1ded3ed7 100644 --- a/app/upgrades/v41/upgrade.go +++ b/app/upgrades/v41/upgrade.go @@ -1,10 +1,12 @@ package v41 import ( - storetypes "github.com/cosmos/cosmos-sdk/store/types" + "context" + + storetypes "cosmossdk.io/store/types" + upgradetypes "cosmossdk.io/x/upgrade/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) const UpgradeName = "v4.1.0" @@ -15,8 +17,8 @@ func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, ) upgradetypes.UpgradeHandler { - return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - logger := ctx.Logger().With("upgrade", UpgradeName) + return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + logger := sdk.UnwrapSDKContext(ctx).Logger().With("upgrade", UpgradeName) logger.Debug("running module migrations...") return mm.RunMigrations(ctx, configurator, vm) diff --git a/app/upgrades/v5/upgrade.go b/app/upgrades/v5/upgrade.go index 51e1e8b7..56bf1e38 100644 --- a/app/upgrades/v5/upgrade.go +++ b/app/upgrades/v5/upgrade.go @@ -1,10 +1,14 @@ package v5 import ( + "context" + + wasmmigrationtypes "github.com/CosmWasm/wasmd/x/wasm/migrations/v2" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + storetypes "cosmossdk.io/store/types" + upgradetypes "cosmossdk.io/x/upgrade/types" "github.com/cosmos/cosmos-sdk/baseapp" - storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -19,11 +23,10 @@ import ( paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" - icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types" - ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types" + icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types" + ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" ) const UpgradeName = "v5.0.0" @@ -83,7 +86,7 @@ func CreateUpgradeHandler( keyTable = icacontrollertypes.ParamKeyTable() // wasm case wasmtypes.ModuleName: - keyTable = wasmtypes.ParamKeyTable() //nolint:staticcheck + keyTable = wasmmigrationtypes.ParamKeyTable() //nolint:staticcheck default: continue } @@ -95,11 +98,14 @@ func CreateUpgradeHandler( baseAppLegacySS := paramsKeeper.Subspace(baseapp.Paramspace).WithKeyTable(paramstypes.ConsensusParamsKeyTable()) - return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - logger := ctx.Logger().With("upgrade", UpgradeName) + return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + sdkCtx := sdk.UnwrapSDKContext(ctx) + logger := sdkCtx.Logger().With("upgrade", UpgradeName) logger.Debug("migrate consensus params keeper") - baseapp.MigrateParams(ctx, baseAppLegacySS, consensusParamsKeeper) + if err := baseapp.MigrateParams(sdkCtx, baseAppLegacySS, consensusParamsKeeper.ParamsStore); err != nil { + return nil, err + } logger.Debug("running module migrations...") return mm.RunMigrations(ctx, configurator, vm) diff --git a/app/upgrades/v6/upgrade.go b/app/upgrades/v6/upgrade.go index 7f8a5ca7..84c2d0f5 100644 --- a/app/upgrades/v6/upgrade.go +++ b/app/upgrades/v6/upgrade.go @@ -1,10 +1,12 @@ package v6 import ( - storetypes "github.com/cosmos/cosmos-sdk/store/types" + "context" + + storetypes "cosmossdk.io/store/types" + upgradetypes "cosmossdk.io/x/upgrade/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) const UpgradeName = "v6.0.0" @@ -21,8 +23,8 @@ func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, ) upgradetypes.UpgradeHandler { - return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - logger := ctx.Logger().With("upgrade", UpgradeName) + return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + logger := sdk.UnwrapSDKContext(ctx).Logger().With("upgrade", UpgradeName) logger.Debug("running module migrations...") return mm.RunMigrations(ctx, configurator, vm) From 96f970cdf1483e2beefcd00653b27edf52208f88 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 00:32:39 +0100 Subject: [PATCH 08/29] feat(vesting): update module --- x/vesting/module.go | 17 +++++++++++++---- x/vesting/msg_server.go | 2 +- x/vesting/msg_server_test.go | 13 ++++++++++--- x/vesting/testutil/expected_keepers_mocks.go | 10 +++++----- x/vesting/types/expected_keepers.go | 6 ++++-- x/vesting/types/vesting_account.go | 17 +++++++++-------- x/vesting/types/vesting_account_test.go | 2 +- 7 files changed, 43 insertions(+), 24 deletions(-) diff --git a/x/vesting/module.go b/x/vesting/module.go index dcb55bf7..1ca30895 100644 --- a/x/vesting/module.go +++ b/x/vesting/module.go @@ -3,11 +3,14 @@ package vesting import ( "encoding/json" + "google.golang.org/grpc" + "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" abci "github.com/cometbft/cometbft/abci/types" + "cosmossdk.io/core/appmodule" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -20,7 +23,8 @@ import ( ) var ( - _ module.AppModule = AppModule{} + _ appmodule.AppModule = AppModule{} + _ appmodule.HasServices = AppModule{} _ module.AppModuleBasic = AppModuleBasic{} ) @@ -34,7 +38,7 @@ func (AppModuleBasic) Name() string { return types.ModuleName } -// RegisterCodec registers the module's types with the given codec. +// RegisterLegacyAminoCodec registers the module's types with the given codec. func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { types.RegisterLegacyAminoCodec(cdc) } @@ -78,6 +82,10 @@ type AppModule struct { bankKeeper types.BankKeeper } +func (am AppModule) IsOnePerModuleType() {} + +func (am AppModule) IsAppModule() {} + func NewAppModule(ak keeper.AccountKeeper, bk types.BankKeeper) AppModule { return AppModule{ AppModuleBasic: AppModuleBasic{}, @@ -90,8 +98,9 @@ func NewAppModule(ak keeper.AccountKeeper, bk types.BankKeeper) AppModule { func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} // RegisterServices registers module services. -func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterMsgServer(cfg.MsgServer(), NewMsgServerImpl(am.accountKeeper, am.bankKeeper)) +func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error { + types.RegisterMsgServer(registrar, NewMsgServerImpl(am.accountKeeper, am.bankKeeper)) + return nil } // InitGenesis performs a no-op. diff --git a/x/vesting/msg_server.go b/x/vesting/msg_server.go index 592910bb..58f056fe 100644 --- a/x/vesting/msg_server.go +++ b/x/vesting/msg_server.go @@ -3,7 +3,7 @@ package vesting import ( "context" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" errorsmod "cosmossdk.io/errors" diff --git a/x/vesting/msg_server_test.go b/x/vesting/msg_server_test.go index e3efc533..790e9b31 100644 --- a/x/vesting/msg_server_test.go +++ b/x/vesting/msg_server_test.go @@ -4,12 +4,17 @@ import ( "testing" "time" + "github.com/cosmos/cosmos-sdk/runtime" + + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" + "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" tmtime "github.com/cometbft/cometbft/types/time" + storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" @@ -40,8 +45,9 @@ type VestingTestSuite struct { } func (s *VestingTestSuite) SetupTest() { - key := sdk.NewKVStoreKey(authtypes.StoreKey) - testCtx := testutil.DefaultContextWithDB(s.T(), key, sdk.NewTransientStoreKey("transient_test")) + key := storetypes.NewKVStoreKey(authtypes.StoreKey) + storeService := runtime.NewKVStoreService(key) + testCtx := testutil.DefaultContextWithDB(s.T(), key, storetypes.NewTransientStoreKey("transient_test")) s.ctx = testCtx.Ctx.WithBlockHeader(tmproto.Header{Time: tmtime.Now()}) encCfg := moduletestutil.MakeTestEncodingConfig() @@ -51,9 +57,10 @@ func (s *VestingTestSuite) SetupTest() { s.bankKeeper = vestingtestutil.NewMockBankKeeper(ctrl) s.accountKeeper = authkeeper.NewAccountKeeper( encCfg.Codec, - key, + storeService, authtypes.ProtoBaseAccount, maccPerms, + authcodec.NewBech32Codec("cosmos"), "cosmos", authtypes.NewModuleAddress("gov").String(), ) diff --git a/x/vesting/testutil/expected_keepers_mocks.go b/x/vesting/testutil/expected_keepers_mocks.go index 1d4f84f2..1df8f8eb 100644 --- a/x/vesting/testutil/expected_keepers_mocks.go +++ b/x/vesting/testutil/expected_keepers_mocks.go @@ -1,15 +1,15 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: x/vesting/types/expected_keepers.go +// Source: x/auth/vesting/types/expected_keepers.go // Package testutil is a generated GoMock package. package testutil import ( + context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - types "github.com/cosmos/cosmos-sdk/types" + gomock "github.com/golang/mock/gomock" ) // MockBankKeeper is a mock of BankKeeper interface. @@ -50,7 +50,7 @@ func (mr *MockBankKeeperMockRecorder) BlockedAddr(addr interface{}) *gomock.Call } // IsSendEnabledCoins mocks base method. -func (m *MockBankKeeper) IsSendEnabledCoins(ctx types.Context, coins ...types.Coin) error { +func (m *MockBankKeeper) IsSendEnabledCoins(ctx context.Context, coins ...types.Coin) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range coins { @@ -69,7 +69,7 @@ func (mr *MockBankKeeperMockRecorder) IsSendEnabledCoins(ctx interface{}, coins } // SendCoins mocks base method. -func (m *MockBankKeeper) SendCoins(ctx types.Context, fromAddr, toAddr types.AccAddress, amt types.Coins) error { +func (m *MockBankKeeper) SendCoins(ctx context.Context, fromAddr, toAddr types.AccAddress, amt types.Coins) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SendCoins", ctx, fromAddr, toAddr, amt) ret0, _ := ret[0].(error) diff --git a/x/vesting/types/expected_keepers.go b/x/vesting/types/expected_keepers.go index 5705eea3..6c4feaf4 100644 --- a/x/vesting/types/expected_keepers.go +++ b/x/vesting/types/expected_keepers.go @@ -1,13 +1,15 @@ package types import ( + "context" + sdk "github.com/cosmos/cosmos-sdk/types" ) // BankKeeper defines the expected interface contract the vesting module requires // for creating vesting accounts with funds. type BankKeeper interface { - IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error - SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error + IsSendEnabledCoins(ctx context.Context, coins ...sdk.Coin) error + SendCoins(ctx context.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error BlockedAddr(addr sdk.AccAddress) bool } diff --git a/x/vesting/types/vesting_account.go b/x/vesting/types/vesting_account.go index 25bd4b11..0707f629 100644 --- a/x/vesting/types/vesting_account.go +++ b/x/vesting/types/vesting_account.go @@ -6,6 +6,7 @@ import ( "sigs.k8s.io/yaml" + "cosmossdk.io/math" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -71,7 +72,7 @@ func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk // compute x and y per the specification, where: // X := min(max(V - DV, 0), D) // Y := D - X - x := sdk.MinInt(sdk.MaxInt(vestingAmt.Sub(delVestingAmt), sdk.ZeroInt()), coin.Amount) + x := math.MinInt(math.MaxInt(vestingAmt.Sub(delVestingAmt), math.ZeroInt()), coin.Amount) y := coin.Amount.Sub(x) if !x.IsZero() { @@ -108,8 +109,8 @@ func (bva *BaseVestingAccount) TrackUndelegation(amount sdk.Coins) { // compute x and y per the specification, where: // X := min(DF, D) // Y := min(DV, D - X) - x := sdk.MinInt(delegatedFree, coin.Amount) - y := sdk.MinInt(delegatedVesting, coin.Amount.Sub(x)) + x := math.MinInt(delegatedFree, coin.Amount) + y := math.MinInt(delegatedVesting, coin.Amount.Sub(x)) if !x.IsZero() { xCoin := sdk.NewCoin(coin.Denom, x) @@ -243,10 +244,10 @@ func (cva ContinuousVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coin // calculate the vesting scalar x := blockTime.Unix() - cva.StartTime y := cva.EndTime - cva.StartTime - s := sdk.NewDec(x).Quo(sdk.NewDec(y)) + s := math.LegacyNewDec(x).Quo(math.LegacyNewDec(y)) for _, ovc := range cva.OriginalVesting { - vestedAmt := sdk.NewDecFromInt(ovc.Amount).Mul(s).RoundInt() + vestedAmt := math.LegacyNewDecFromInt(ovc.Amount).Mul(s).RoundInt() vestedCoins = append(vestedCoins, sdk.NewCoin(ovc.Denom, vestedAmt)) } @@ -429,7 +430,7 @@ func (pva PeriodicVestingAccount) Validate() error { if endTime != pva.EndTime { return errors.New("vesting end time does not match length of all vesting periods") } - if !originalVesting.IsEqual(pva.OriginalVesting) { + if !originalVesting.Equal(pva.OriginalVesting) { return errors.New("original vesting coins does not match the sum of all coins in vesting periods") } @@ -652,10 +653,10 @@ func (cva CliffVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins { // calculate the vesting scalar x := blockTime.Unix() - cva.StartTime y := cva.EndTime - cva.StartTime - s := sdk.NewDec(x).Quo(sdk.NewDec(y)) + s := math.LegacyNewDec(x).Quo(math.LegacyNewDec(y)) for _, ovc := range cva.OriginalVesting { - vestedAmt := sdk.NewDecFromInt(ovc.Amount).Mul(s).RoundInt() + vestedAmt := math.LegacyNewDecFromInt(ovc.Amount).Mul(s).RoundInt() vestedCoins = append(vestedCoins, sdk.NewCoin(ovc.Denom, vestedAmt)) } diff --git a/x/vesting/types/vesting_account_test.go b/x/vesting/types/vesting_account_test.go index 04d0bad3..f9b6790f 100644 --- a/x/vesting/types/vesting_account_test.go +++ b/x/vesting/types/vesting_account_test.go @@ -10,8 +10,8 @@ import ( cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" tmtime "github.com/cometbft/cometbft/types/time" + storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/testutil" "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" From 7daf645c8326a8a9fe977fff03dfbc19e5dca65e Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:26:21 +0100 Subject: [PATCH 09/29] build(proto): rework protobuf generation --- .editorconfig | 3 + Makefile | 70 ++++---------------- buf.gen.doc.yaml | 7 -- proto/buf.gen.doc.yml | 7 ++ buf.gen.proto.yaml => proto/buf.gen.gogo.yml | 4 +- proto/buf.yaml | 2 +- scripts/protocgen-code.sh | 19 ++++++ scripts/protocgen-doc.sh | 17 +++++ 8 files changed, 62 insertions(+), 67 deletions(-) delete mode 100644 buf.gen.doc.yaml create mode 100644 proto/buf.gen.doc.yml rename buf.gen.proto.yaml => proto/buf.gen.gogo.yml (89%) create mode 100755 scripts/protocgen-code.sh create mode 100755 scripts/protocgen-doc.sh diff --git a/.editorconfig b/.editorconfig index 9cd00547..7dafd52e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -23,5 +23,8 @@ indent_size = 2 [*.proto] indent_size = 2 +[*.sh] +indent_size = 2 + [*.go] indent_style = tab diff --git a/Makefile b/Makefile index f92622d5..6f75c425 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,10 @@ LEDGER_ENABLED ?= true # Docker images DOCKER_IMAGE_GOLANG = golang:1.21-alpine3.17 DOCKER_IMAGE_GOLANG_CI = golangci/golangci-lint:v1.54 -DOCKER_IMAGE_BUF = okp4/buf-cosmos:1.4.7 +DOCKER_IMAGE_PROTO = ghcr.io/cosmos/proto-builder:0.14.0 +DOCKER_IMAGE_BUF = bufbuild/buf:1.4.0 +DOCKER_PROTO_RUN := docker run --rm -v $(HOME)/.cache:/root/.cache -v $(PWD):/workspace --workdir /workspace $(DOCKER_IMAGE_PROTO) +DOCKER_BUF_RUN := docker run --rm -v $(HOME)/.cache:/root/.cache -v $(PWD):/workspace --workdir /workspace $(DOCKER_IMAGE_BUF) DOCKER_BUILDX_BUILDER = okp4-builder DOCKER_IMAGE_MARKDOWNLINT = thegeeklab/markdownlint-cli:0.32.2 DOCKER_IMAGE_GOTEMPLATE = hairyhenderson/gomplate:v3.11.3-alpine @@ -124,18 +127,7 @@ lint-go: ## Lint go source code .PHONY: lint-proto lint-proto: ## Lint proto files @echo "${COLOR_CYAN}🔍️ lint proto${COLOR_RESET}" - @docker run --rm \ - -v ${HOME}/.cache:/root/.cache \ - -v `pwd`:/proto \ - -w /proto \ - ${DOCKER_IMAGE_BUF} \ - lint proto -v - @docker run --rm \ - -v ${HOME}/.cache:/root/.cache \ - -v `pwd`:/proto \ - -w /proto \ - ${DOCKER_IMAGE_BUF} \ - format -d --exit-code + @$(DOCKER_BUF_RUN) lint proto -v ## Format: .PHONY: format @@ -154,12 +146,7 @@ format-go: ## Format go files .PHONY: format-proto format-proto: ## Format proto files @echo "${COLOR_CYAN}📐 Formatting proto files${COLOR_RESET}" - @docker run --rm \ - -v ${HOME}/.cache:/root/.cache \ - -v `pwd`:/proto \ - -w /proto \ - ${DOCKER_IMAGE_BUF} \ - format -w + @$(DOCKER_BUF_RUN) format -w ## Build: .PHONY: build @@ -316,39 +303,13 @@ clean: ## Remove all the files from the target folder ## Proto: .PHONY: proto -proto: proto-format lint-proto proto-build proto-gen doc-proto ## Generate all resources for proto files (go, doc, etc.) - -.PHONY: proto-format -proto-format: ## Format Protobuf files - @echo "${COLOR_CYAN} 📐 Formatting Protobuf files${COLOR_RESET}" - @docker run --rm \ - -v ${HOME}/.cache:/root/.cache \ - -v `pwd`:/proto \ - -w /proto \ - ${DOCKER_IMAGE_BUF} \ - format -w -v - -.PHONY: proto-build -proto-build: ## Build all Protobuf files - @echo "${COLOR_CYAN} 🔨️Build Protobuf files${COLOR_RESET}" - @docker run --rm \ - -v ${HOME}/.cache:/root/.cache \ - -v `pwd`:/proto \ - -w /proto \ - ${DOCKER_IMAGE_BUF} \ - build proto -v +proto: format-proto lint-proto proto-gen doc-proto ## Generate all resources for proto files (go, doc, etc.) .PHONY: proto-gen -proto-gen: proto-build ## Generate all the code from the Protobuf files +proto-gen: ## Generate all the code from the Protobuf files @echo "${COLOR_CYAN} 📝 Generating code from Protobuf files${COLOR_RESET}" - @docker run --rm \ - -v ${HOME}/.cache:/root/.cache \ - -v `pwd`:/proto \ - -w /proto \ - ${DOCKER_IMAGE_BUF} \ - generate proto --template buf.gen.proto.yaml -v - @cp -r github.com/okp4/okp4d/x/* x/ - @sudo rm -rf github.com + @$(DOCKER_PROTO_RUN) sh ./scripts/protocgen-code.sh + ## Documentation: .PHONY: doc @@ -356,14 +317,10 @@ doc: doc-proto doc-command doc-predicate ## Generate all the documentation .PHONY: doc-proto doc-proto: proto-gen ## Generate the documentation from the Protobuf files + @echo "${COLOR_CYAN} 📝 Generating doc from Protobuf files${COLOR_RESET}" + @$(DOCKER_PROTO_RUN) sh ./scripts/protocgen-doc.sh @for MODULE in $(shell find proto -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq | xargs dirname) ; do \ echo "${COLOR_CYAN} 📖 Generate documentation for $${MODULE} module${COLOR_RESET}" ; \ - docker run --rm \ - -v ${HOME}/.cache:/root/.cache \ - -v `pwd`:/proto \ - -w /proto \ - ${DOCKER_IMAGE_BUF} \ - generate --path $${MODULE} --template buf.gen.doc.yaml -v ; \ DEFAULT_DATASOURCE="./docs/proto/templates/default.yaml" ; \ MODULE_DATASOURCE="merge:./$${MODULE}/docs.yaml|$${DEFAULT_DATASOURCE}" ; \ DATASOURCE="docs=`[ -f $${MODULE}/docs.yaml ] && echo $$MODULE_DATASOURCE || echo $${DEFAULT_DATASOURCE}`" ; \ @@ -372,8 +329,7 @@ doc-proto: proto-gen ## Generate the documentation from the Protobuf files -v `pwd`:/usr/src/okp4d \ -w /usr/src/okp4d \ ${DOCKER_IMAGE_GOTEMPLATE} \ - -d $$DATASOURCE -f docs/proto/docs.md -o docs/$${MODULE}.md ; \ - rm -f docs/proto/docs.md ; \ + -d $$DATASOURCE -f docs/$${MODULE}.md -o docs/$${MODULE}.md ; \ done @docker run --rm \ -v `pwd`:/usr/src/okp4d \ diff --git a/buf.gen.doc.yaml b/buf.gen.doc.yaml deleted file mode 100644 index 4d185161..00000000 --- a/buf.gen.doc.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: v1 - -plugins: - - name: doc - out: ./docs/proto - opt: - - ./docs/proto/templates/protodoc-markdown.tmpl,docs.md diff --git a/proto/buf.gen.doc.yml b/proto/buf.gen.doc.yml new file mode 100644 index 00000000..ec865c62 --- /dev/null +++ b/proto/buf.gen.doc.yml @@ -0,0 +1,7 @@ +version: v1 + +plugins: + - name: doc + out: ../docs/proto + opt: + - ../docs/proto/templates/protodoc-markdown.tmpl,docs.md diff --git a/buf.gen.proto.yaml b/proto/buf.gen.gogo.yml similarity index 89% rename from buf.gen.proto.yaml rename to proto/buf.gen.gogo.yml index b071dd1b..9c8ba0a4 100644 --- a/buf.gen.proto.yaml +++ b/proto/buf.gen.gogo.yml @@ -1,8 +1,8 @@ version: v1 plugins: - name: gocosmos - out: . + out: .. opt: plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types - name: grpc-gateway - out: . + out: .. opt: logtostderr=true,allow_colon_final_segments=true diff --git a/proto/buf.yaml b/proto/buf.yaml index b0f000a7..b897f35b 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,7 +1,7 @@ version: v1 name: buf.build/okp4/okp4d deps: - - buf.build/cosmos/cosmos-sdk:v0.47.0 + - buf.build/cosmos/cosmos-sdk:v0.50.1 - buf.build/cosmos/cosmos-proto - buf.build/cosmos/gogo-proto - buf.build/googleapis/googleapis diff --git a/scripts/protocgen-code.sh b/scripts/protocgen-code.sh new file mode 100755 index 00000000..a843e288 --- /dev/null +++ b/scripts/protocgen-code.sh @@ -0,0 +1,19 @@ +#! /bin/bash + +set -eo pipefail + +echo "Generating gogo proto code" +( + cd proto + proto_dirs=$(find . -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) + for dir in $proto_dirs; do + for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do + if grep "option go_package" $file &> /dev/null ; then + buf generate --template buf.gen.gogo.yml $file + fi + done + done +) + +cp -r github.com/okp4/okp4d/x/* x/ +rm -rf github.com diff --git a/scripts/protocgen-doc.sh b/scripts/protocgen-doc.sh new file mode 100755 index 00000000..6bbdd42d --- /dev/null +++ b/scripts/protocgen-doc.sh @@ -0,0 +1,17 @@ +#! /bin/bash + +set -eo pipefail + +protoc_install_proto_gen_doc() { + echo "Installing protobuf protoc-gen-doc plugin" + (go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest 2> /dev/null) +} + +protoc_install_proto_gen_doc + +echo "Generating proto docs" +cd proto +for MODULE in $(find . -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq | xargs -n1 dirname); do + buf generate --path ${MODULE} --template buf.gen.doc.yml -v + mv ../docs/proto/docs.md ../docs/proto/${MODULE}.md +done From 2447dc36cec6cbb32b3cdbd9d1c506b263023978 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:38:21 +0100 Subject: [PATCH 10/29] refactor(proto): update types for v0.50 --- proto/logic/v1beta2/params.proto | 14 +++++++------- proto/mint/v1beta1/mint.proto | 6 +++--- proto/mint/v1beta1/query.proto | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/proto/logic/v1beta2/params.proto b/proto/logic/v1beta2/params.proto index 090e5b01..550684db 100644 --- a/proto/logic/v1beta2/params.proto +++ b/proto/logic/v1beta2/params.proto @@ -41,7 +41,7 @@ message Limits { // nil value remove max gas limitation. string max_gas = 1 [ (gogoproto.moretags) = "yaml:\"max_gas\",omitempty", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", (gogoproto.nullable) = true ]; @@ -49,7 +49,7 @@ message Limits { // nil value remove size limitation. string max_size = 3 [ (gogoproto.moretags) = "yaml:\"max_size\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", (gogoproto.nullable) = true ]; @@ -57,7 +57,7 @@ message Limits { // nil value remove max result count limitation. string max_result_count = 2 [ (gogoproto.moretags) = "yaml:\"max_result_count\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", (gogoproto.nullable) = true ]; @@ -66,7 +66,7 @@ message Limits { // nil value or 0 value means that no user output is used at all. string max_user_output_size = 4 [ (gogoproto.moretags) = "yaml:\"max_user_output_size\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", (gogoproto.nullable) = true ]; } @@ -137,7 +137,7 @@ message GasPolicy { // If not provided or set to 0, the value is set to 1. string weighting_factor = 1 [ (gogoproto.moretags) = "yaml:\"weighting_factor\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", (gogoproto.nullable) = true ]; @@ -145,7 +145,7 @@ message GasPolicy { // If not provided or set to 0, the value is set to 1. string default_predicate_cost = 2 [ (gogoproto.moretags) = "yaml:\"default_predicate_cost\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", (gogoproto.nullable) = true ]; @@ -168,7 +168,7 @@ message PredicateCost { // Cost is the unit cost of the predicate. string cost = 2 [ (gogoproto.moretags) = "yaml:\"cost\",omitempty", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", + (gogoproto.customtype) = "cosmossdk.io/math.Uint", (gogoproto.nullable) = true ]; } diff --git a/proto/mint/v1beta1/mint.proto b/proto/mint/v1beta1/mint.proto index fbd24248..6cb1d292 100644 --- a/proto/mint/v1beta1/mint.proto +++ b/proto/mint/v1beta1/mint.proto @@ -12,13 +12,13 @@ message Minter { // Current annual inflation rate. string inflation = 1 [ (cosmos_proto.scalar) = "cosmos.Dec", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; // Current annual anticipated provisions. string annual_provisions = 2 [ (cosmos_proto.scalar) = "cosmos.Dec", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; } @@ -34,7 +34,7 @@ message Params { // Values range from 0 to 1, with higher values indicating higher inflation. string inflation_coef = 2 [ (cosmos_proto.scalar) = "cosmos.Dec", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; // Estimated number of blocks per year. diff --git a/proto/mint/v1beta1/query.proto b/proto/mint/v1beta1/query.proto index 2e69c627..c5984b6a 100644 --- a/proto/mint/v1beta1/query.proto +++ b/proto/mint/v1beta1/query.proto @@ -47,7 +47,7 @@ message QueryInflationRequest {} message QueryInflationResponse { // inflation is the current minting inflation value. bytes inflation = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; @@ -62,7 +62,7 @@ message QueryAnnualProvisionsRequest {} message QueryAnnualProvisionsResponse { // annual_provisions is the current minting annual provisions value. bytes annual_provisions = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; From 0a3f18dab12f1f9cf2340a7dece9331eae81827d Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:39:41 +0100 Subject: [PATCH 11/29] chore(proto): gen proto --- x/logic/types/genesis.pb.go | 22 ++++- x/logic/types/params.pb.go | 180 +++++++++++++++++++++------------- x/logic/types/query.pb.go | 55 ++++++++--- x/logic/types/query.pb.gw.go | 30 ++---- x/logic/types/tx.pb.go | 42 +++++--- x/logic/types/types.pb.go | 40 +++++++- x/mint/types/genesis.pb.go | 24 +++-- x/mint/types/mint.pb.go | 85 +++++++++------- x/mint/types/query.pb.go | 142 ++++++++++++++++++--------- x/mint/types/query.pb.gw.go | 30 ++---- x/mint/types/tx.pb.go | 42 +++++--- x/vesting/types/tx.pb.go | 92 +++++++++++++---- x/vesting/types/vesting.pb.go | 60 ++++++++++-- 13 files changed, 576 insertions(+), 268 deletions(-) diff --git a/x/logic/types/genesis.pb.go b/x/logic/types/genesis.pb.go index 1c6b7d24..168c5bcf 100644 --- a/x/logic/types/genesis.pb.go +++ b/x/logic/types/genesis.pb.go @@ -5,17 +5,20 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" + + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -35,9 +38,11 @@ func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { return fileDescriptor_712b71f2a5cb208f, []int{0} } + func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) @@ -50,12 +55,15 @@ func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } + func (m *GenesisState) XXX_Merge(src proto.Message) { xxx_messageInfo_GenesisState.Merge(m, src) } + func (m *GenesisState) XXX_Size() int { return m.Size() } + func (m *GenesisState) XXX_DiscardUnknown() { xxx_messageInfo_GenesisState.DiscardUnknown(m) } @@ -135,6 +143,7 @@ func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *GenesisState) Size() (n int) { if m == nil { return 0 @@ -149,9 +158,11 @@ func (m *GenesisState) Size() (n int) { func sovGenesis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozGenesis(x uint64) (n int) { return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *GenesisState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -235,6 +246,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } return nil } + func skipGenesis(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/logic/types/params.pb.go b/x/logic/types/params.pb.go index 41cd8e61..31139789 100644 --- a/x/logic/types/params.pb.go +++ b/x/logic/types/params.pb.go @@ -5,18 +5,22 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" + + cosmossdk_io_math "cosmossdk.io/math" + + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -41,9 +45,11 @@ func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{0} } + func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Params.Marshal(b, m, deterministic) @@ -56,12 +62,15 @@ func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Params) XXX_Merge(src proto.Message) { xxx_messageInfo_Params.Merge(m, src) } + func (m *Params) XXX_Size() int { return m.Size() } + func (m *Params) XXX_DiscardUnknown() { xxx_messageInfo_Params.DiscardUnknown(m) } @@ -95,17 +104,17 @@ type Limits struct { // executing a request by the interpreter. The interpreter calculates the gas consumption based on the number and type // of operations that are executed, as well as, in some cases, the complexity of the processed data. // nil value remove max gas limitation. - MaxGas *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,1,opt,name=max_gas,json=maxGas,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_gas,omitempty" yaml:"max_gas",omitempty` + MaxGas *cosmossdk_io_math.Uint `protobuf:"bytes,1,opt,name=max_gas,json=maxGas,proto3,customtype=cosmossdk.io/math.Uint" json:"max_gas,omitempty" yaml:"max_gas",omitempty` // max_size specifies the maximum size, in bytes, that is accepted for a program. // nil value remove size limitation. - MaxSize *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,3,opt,name=max_size,json=maxSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_size,omitempty" yaml:"max_size"` + MaxSize *cosmossdk_io_math.Uint `protobuf:"bytes,3,opt,name=max_size,json=maxSize,proto3,customtype=cosmossdk.io/math.Uint" json:"max_size,omitempty" yaml:"max_size"` // max_result_count specifies the maximum number of results that can be requested for a query. // nil value remove max result count limitation. - MaxResultCount *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,2,opt,name=max_result_count,json=maxResultCount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_result_count,omitempty" yaml:"max_result_count"` + MaxResultCount *cosmossdk_io_math.Uint `protobuf:"bytes,2,opt,name=max_result_count,json=maxResultCount,proto3,customtype=cosmossdk.io/math.Uint" json:"max_result_count,omitempty" yaml:"max_result_count"` // max_user_output_size specifies the maximum number of bytes to keep in the user output. If the user output exceeds // this size, the interpreter will overwrite the oldest bytes with the new ones to keep the size constant. // nil value or 0 value means that no user output is used at all. - MaxUserOutputSize *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,4,opt,name=max_user_output_size,json=maxUserOutputSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_user_output_size,omitempty" yaml:"max_user_output_size"` + MaxUserOutputSize *cosmossdk_io_math.Uint `protobuf:"bytes,4,opt,name=max_user_output_size,json=maxUserOutputSize,proto3,customtype=cosmossdk.io/math.Uint" json:"max_user_output_size,omitempty" yaml:"max_user_output_size"` } func (m *Limits) Reset() { *m = Limits{} } @@ -114,9 +123,11 @@ func (*Limits) ProtoMessage() {} func (*Limits) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{1} } + func (m *Limits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Limits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Limits.Marshal(b, m, deterministic) @@ -129,12 +140,15 @@ func (m *Limits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Limits) XXX_Merge(src proto.Message) { xxx_messageInfo_Limits.Merge(m, src) } + func (m *Limits) XXX_Size() int { return m.Size() } + func (m *Limits) XXX_DiscardUnknown() { xxx_messageInfo_Limits.DiscardUnknown(m) } @@ -160,9 +174,11 @@ func (*Filter) ProtoMessage() {} func (*Filter) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{2} } + func (m *Filter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Filter.Marshal(b, m, deterministic) @@ -175,12 +191,15 @@ func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Filter) XXX_Merge(src proto.Message) { xxx_messageInfo_Filter.Merge(m, src) } + func (m *Filter) XXX_Size() int { return m.Size() } + func (m *Filter) XXX_DiscardUnknown() { xxx_messageInfo_Filter.DiscardUnknown(m) } @@ -231,9 +250,11 @@ func (*Interpreter) ProtoMessage() {} func (*Interpreter) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{3} } + func (m *Interpreter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Interpreter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Interpreter.Marshal(b, m, deterministic) @@ -246,12 +267,15 @@ func (m *Interpreter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } + func (m *Interpreter) XXX_Merge(src proto.Message) { xxx_messageInfo_Interpreter.Merge(m, src) } + func (m *Interpreter) XXX_Size() int { return m.Size() } + func (m *Interpreter) XXX_DiscardUnknown() { xxx_messageInfo_Interpreter.DiscardUnknown(m) } @@ -286,10 +310,10 @@ type GasPolicy struct { // WeightingFactor is the factor that is applied to the unit cost of each predicate // to yield the gas value. // If not provided or set to 0, the value is set to 1. - WeightingFactor *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,1,opt,name=weighting_factor,json=weightingFactor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"weighting_factor,omitempty" yaml:"weighting_factor"` + WeightingFactor *cosmossdk_io_math.Uint `protobuf:"bytes,1,opt,name=weighting_factor,json=weightingFactor,proto3,customtype=cosmossdk.io/math.Uint" json:"weighting_factor,omitempty" yaml:"weighting_factor"` // DefaultPredicateCost is the default unit cost of a predicate when not specified in the PredicateCosts list. // If not provided or set to 0, the value is set to 1. - DefaultPredicateCost *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,2,opt,name=default_predicate_cost,json=defaultPredicateCost,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"default_predicate_cost,omitempty" yaml:"default_predicate_cost"` + DefaultPredicateCost *cosmossdk_io_math.Uint `protobuf:"bytes,2,opt,name=default_predicate_cost,json=defaultPredicateCost,proto3,customtype=cosmossdk.io/math.Uint" json:"default_predicate_cost,omitempty" yaml:"default_predicate_cost"` // PredicateCosts is the list of predicates and their associated unit costs. PredicateCosts []PredicateCost `protobuf:"bytes,3,rep,name=predicate_costs,json=predicateCosts,proto3" json:"predicate_costs" yaml:"predicate_cost"` } @@ -300,9 +324,11 @@ func (*GasPolicy) ProtoMessage() {} func (*GasPolicy) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{4} } + func (m *GasPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *GasPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GasPolicy.Marshal(b, m, deterministic) @@ -315,12 +341,15 @@ func (m *GasPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *GasPolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_GasPolicy.Merge(m, src) } + func (m *GasPolicy) XXX_Size() int { return m.Size() } + func (m *GasPolicy) XXX_DiscardUnknown() { xxx_messageInfo_GasPolicy.DiscardUnknown(m) } @@ -340,7 +369,7 @@ type PredicateCost struct { // If no arity is specified, the unit cost is applied to all predicates with the same name. Predicate string `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty" yaml:"predicate"` // Cost is the unit cost of the predicate. - Cost *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,2,opt,name=cost,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"cost,omitempty" yaml:"cost",omitempty` + Cost *cosmossdk_io_math.Uint `protobuf:"bytes,2,opt,name=cost,proto3,customtype=cosmossdk.io/math.Uint" json:"cost,omitempty" yaml:"cost",omitempty` } func (m *PredicateCost) Reset() { *m = PredicateCost{} } @@ -349,9 +378,11 @@ func (*PredicateCost) ProtoMessage() {} func (*PredicateCost) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{5} } + func (m *PredicateCost) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *PredicateCost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PredicateCost.Marshal(b, m, deterministic) @@ -364,12 +395,15 @@ func (m *PredicateCost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } + func (m *PredicateCost) XXX_Merge(src proto.Message) { xxx_messageInfo_PredicateCost.Merge(m, src) } + func (m *PredicateCost) XXX_Size() int { return m.Size() } + func (m *PredicateCost) XXX_DiscardUnknown() { xxx_messageInfo_PredicateCost.DiscardUnknown(m) } @@ -395,55 +429,54 @@ func init() { func init() { proto.RegisterFile("logic/v1beta2/params.proto", fileDescriptor_3af0daa241de0fa3) } var fileDescriptor_3af0daa241de0fa3 = []byte{ - // 759 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x4f, 0x6f, 0xd3, 0x48, - 0x14, 0x8f, 0x93, 0x28, 0xbb, 0x9e, 0xa8, 0x6d, 0x3a, 0x4a, 0x77, 0xbd, 0xd9, 0x6d, 0x12, 0xcd, - 0x1e, 0xe8, 0x01, 0x12, 0x51, 0x50, 0x0f, 0x95, 0xb8, 0xb8, 0xa8, 0xe5, 0x9f, 0x20, 0x32, 0xaa, - 0x84, 0x10, 0x28, 0x9a, 0x38, 0x53, 0x77, 0x54, 0x3b, 0x63, 0x79, 0xc6, 0x6d, 0xd2, 0x0b, 0x12, - 0x07, 0xce, 0x1c, 0x39, 0x70, 0xe0, 0xc2, 0x77, 0xa9, 0x38, 0xf5, 0x88, 0x38, 0x44, 0xa8, 0xfd, - 0x04, 0xf4, 0x13, 0x20, 0x8f, 0x27, 0xb6, 0x63, 0x7a, 0x09, 0x97, 0xd6, 0x7a, 0xbf, 0xf7, 0xfb, - 0x33, 0xcf, 0x6f, 0x62, 0xd0, 0x70, 0x99, 0x43, 0xed, 0xee, 0xf1, 0xed, 0x01, 0x11, 0x78, 0xb3, - 0xeb, 0xe3, 0x00, 0x7b, 0xbc, 0xe3, 0x07, 0x4c, 0x30, 0xb8, 0x24, 0xb1, 0x8e, 0xc2, 0x1a, 0x75, - 0x87, 0x39, 0x4c, 0x22, 0xdd, 0xe8, 0x29, 0x6e, 0x42, 0x6f, 0x8b, 0xa0, 0xd2, 0x93, 0x2c, 0xf8, - 0x02, 0x54, 0xe9, 0x48, 0x90, 0xc0, 0x0f, 0x88, 0x20, 0x81, 0xa1, 0xb5, 0xb5, 0x8d, 0xea, 0x66, - 0xa3, 0x33, 0xa7, 0xd2, 0x79, 0x98, 0x76, 0x98, 0x8d, 0xb3, 0x69, 0xab, 0x70, 0x35, 0x6d, 0xc1, - 0x09, 0xf6, 0xdc, 0x6d, 0x94, 0x21, 0x23, 0x2b, 0x2b, 0x05, 0xef, 0x83, 0x8a, 0x4b, 0x3d, 0x2a, - 0xb8, 0x51, 0x94, 0xa2, 0x6b, 0x39, 0xd1, 0x27, 0x12, 0x34, 0xd7, 0x94, 0xde, 0x52, 0xac, 0x17, - 0x53, 0x90, 0xa5, 0xb8, 0xd0, 0x02, 0xc0, 0xc1, 0xbc, 0xef, 0x33, 0x97, 0xda, 0x13, 0xa3, 0x24, - 0x95, 0x8c, 0x9c, 0xd2, 0x1e, 0xe6, 0x3d, 0x89, 0x9b, 0xff, 0x28, 0xb1, 0xd5, 0x58, 0x2c, 0x65, - 0x22, 0x4b, 0x77, 0x66, 0x5d, 0xdb, 0xe5, 0x0f, 0x9f, 0x5a, 0x05, 0xf4, 0xa5, 0x04, 0x2a, 0x71, - 0x06, 0x38, 0x04, 0x7f, 0x78, 0x78, 0xdc, 0x77, 0x30, 0x97, 0x03, 0xd0, 0xcd, 0xc7, 0x67, 0xd3, - 0x96, 0xf6, 0x6d, 0xda, 0xba, 0xe1, 0x50, 0x71, 0x18, 0x0e, 0x3a, 0x36, 0xf3, 0xba, 0x36, 0xe3, - 0x1e, 0xe3, 0xea, 0xdf, 0x2d, 0x3e, 0x3c, 0xea, 0x8a, 0x89, 0x4f, 0x78, 0x67, 0x9f, 0x8e, 0xc4, - 0xd5, 0xb4, 0x65, 0xc4, 0x96, 0x4a, 0x07, 0xdd, 0x64, 0x1e, 0x15, 0xc4, 0xf3, 0xc5, 0xc4, 0xaa, - 0x78, 0x78, 0xbc, 0x87, 0x39, 0x7c, 0x0d, 0xfe, 0x8c, 0x50, 0x4e, 0x4f, 0x89, 0x3c, 0x88, 0x6e, - 0x9a, 0x8b, 0xdb, 0xac, 0xa4, 0x36, 0x91, 0x10, 0xb2, 0xa2, 0xe4, 0xcf, 0xe9, 0x29, 0x81, 0x02, - 0xd4, 0xa2, 0x6a, 0x40, 0x78, 0xe8, 0x8a, 0xbe, 0xcd, 0xc2, 0x91, 0x90, 0x93, 0xd7, 0xcd, 0x47, - 0x8b, 0xdb, 0xfc, 0x9d, 0xda, 0x64, 0x05, 0x91, 0xb5, 0xec, 0xe1, 0xb1, 0x25, 0x2b, 0x3b, 0x51, - 0x01, 0xbe, 0x01, 0xf5, 0xa8, 0x29, 0xe4, 0x24, 0xe8, 0xb3, 0x50, 0xf8, 0xa1, 0x88, 0x0f, 0x58, - 0x96, 0xce, 0x4f, 0x17, 0x77, 0xfe, 0x37, 0x75, 0xce, 0x8b, 0x22, 0x6b, 0xd5, 0xc3, 0xe3, 0x7d, - 0x4e, 0x82, 0x67, 0xb2, 0x18, 0x1d, 0x5b, 0xbe, 0x4c, 0x0d, 0x8d, 0x41, 0x65, 0x97, 0xba, 0xd1, - 0xda, 0x6d, 0x01, 0xfd, 0xe4, 0x90, 0x0a, 0xe2, 0x52, 0x2e, 0x0c, 0xad, 0x5d, 0xda, 0xd0, 0x4d, - 0x23, 0x4a, 0x71, 0x35, 0x6d, 0xd5, 0x62, 0xe9, 0x04, 0x46, 0x56, 0xda, 0x1a, 0xf1, 0x06, 0x2e, - 0xb6, 0x8f, 0x24, 0xaf, 0x78, 0x1d, 0x2f, 0x81, 0x91, 0x95, 0xb6, 0xa2, 0x8f, 0x45, 0x50, 0xcd, - 0xdc, 0x0f, 0x38, 0x04, 0xab, 0x7e, 0x40, 0x86, 0xd4, 0xc6, 0x82, 0xf0, 0xfe, 0x81, 0x0c, 0xa5, - 0xae, 0x55, 0xfe, 0x06, 0xc4, 0x89, 0xcd, 0xb6, 0x5a, 0x5a, 0xb5, 0x41, 0xbf, 0xb0, 0x91, 0x55, - 0x4b, 0x6b, 0xe9, 0x29, 0x07, 0x8c, 0x09, 0x2e, 0x02, 0xec, 0xab, 0x65, 0xca, 0xa7, 0x9d, 0xc1, - 0x51, 0xda, 0xd9, 0x33, 0xa4, 0xa0, 0x7e, 0x4c, 0x03, 0x11, 0x62, 0x37, 0x12, 0x4f, 0x03, 0x96, - 0x17, 0x08, 0x28, 0x89, 0x13, 0x2e, 0x88, 0x97, 0x04, 0x84, 0x4a, 0x74, 0x37, 0x82, 0x62, 0x96, - 0x7a, 0x31, 0x3f, 0x8a, 0x40, 0x4f, 0xee, 0x27, 0x0c, 0x41, 0xed, 0x84, 0x50, 0xe7, 0x50, 0xd0, - 0x91, 0xd3, 0x3f, 0xc0, 0xb6, 0x60, 0x81, 0xba, 0x71, 0xbf, 0xbf, 0xa3, 0x79, 0x41, 0x64, 0xad, - 0x24, 0xa5, 0x5d, 0x59, 0x81, 0xef, 0x34, 0xf0, 0xd7, 0x90, 0x1c, 0xe0, 0x68, 0x8f, 0x93, 0x51, - 0xf6, 0x6d, 0xc6, 0x67, 0x37, 0xa4, 0xb7, 0xb8, 0xfb, 0x7a, 0xec, 0x7e, 0xbd, 0x2c, 0xb2, 0xea, - 0x0a, 0xe8, 0xcd, 0xea, 0x3b, 0x8c, 0x0b, 0x38, 0x04, 0x2b, 0xf3, 0x8d, 0xdc, 0x28, 0xb5, 0x4b, - 0x1b, 0xd5, 0xcd, 0xff, 0x72, 0x93, 0x9f, 0xa3, 0x99, 0xeb, 0xea, 0x05, 0xac, 0xe5, 0x36, 0x44, - 0x79, 0x2d, 0xfb, 0xd9, 0x6e, 0x8e, 0x3e, 0x6b, 0x60, 0x69, 0xde, 0x77, 0x0b, 0xe8, 0x49, 0x8f, - 0x1a, 0x78, 0x6e, 0x5d, 0x12, 0x18, 0x59, 0x69, 0x2b, 0x7c, 0x05, 0xca, 0x99, 0x29, 0x3d, 0x58, - 0x7c, 0x4a, 0x2a, 0xb1, 0xcc, 0x99, 0xf9, 0x49, 0x94, 0xaa, 0xe6, 0xbd, 0xb3, 0x8b, 0xa6, 0x76, - 0x7e, 0xd1, 0xd4, 0xbe, 0x5f, 0x34, 0xb5, 0xf7, 0x97, 0xcd, 0xc2, 0xf9, 0x65, 0xb3, 0xf0, 0xf5, - 0xb2, 0x59, 0x78, 0xf9, 0x7f, 0xc6, 0x81, 0x1d, 0xf9, 0x77, 0xe5, 0x9f, 0x61, 0x77, 0xdc, 0x8d, - 0xbf, 0x7c, 0xd2, 0x62, 0x50, 0x91, 0x1f, 0xb3, 0x3b, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x4a, - 0xe5, 0x9f, 0xfc, 0x0f, 0x07, 0x00, 0x00, + // 750 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x41, 0x6b, 0x13, 0x41, + 0x18, 0xcd, 0x26, 0x21, 0xba, 0x13, 0xda, 0xa6, 0x43, 0x5a, 0xd7, 0x68, 0x93, 0x30, 0x5e, 0x7a, + 0x90, 0x84, 0x56, 0xa9, 0x58, 0x28, 0xc2, 0x56, 0x5a, 0xc4, 0x82, 0x65, 0x4b, 0x41, 0xbc, 0x84, + 0xc9, 0x66, 0xba, 0x19, 0xba, 0x9b, 0x59, 0x76, 0x66, 0xdb, 0xa4, 0x47, 0x0f, 0x9e, 0x3d, 0x78, + 0xf0, 0xe0, 0xc1, 0x9f, 0xd3, 0x93, 0xf4, 0x28, 0x1e, 0x82, 0xb4, 0xff, 0xa0, 0xbf, 0x40, 0x76, + 0x76, 0xb2, 0x9b, 0xac, 0x85, 0xe8, 0x25, 0x2c, 0xdf, 0xfb, 0xde, 0xfb, 0xde, 0x7e, 0xf3, 0x26, + 0x0b, 0x6a, 0x2e, 0x73, 0xa8, 0xdd, 0x3e, 0xdb, 0xe8, 0x12, 0x81, 0x37, 0xdb, 0x3e, 0x0e, 0xb0, + 0xc7, 0x5b, 0x7e, 0xc0, 0x04, 0x83, 0x0b, 0x12, 0x6b, 0x29, 0xac, 0x56, 0x75, 0x98, 0xc3, 0x24, + 0xd2, 0x8e, 0x9e, 0xe2, 0x26, 0xf4, 0x31, 0x0f, 0x4a, 0x87, 0x92, 0x05, 0xdf, 0x83, 0x32, 0x1d, + 0x08, 0x12, 0xf8, 0x01, 0x11, 0x24, 0x30, 0xb4, 0xa6, 0xb6, 0x5e, 0xde, 0xac, 0xb5, 0x66, 0x54, + 0x5a, 0x6f, 0xd2, 0x0e, 0xb3, 0x76, 0x39, 0x6e, 0xe4, 0x6e, 0xc7, 0x0d, 0x38, 0xc2, 0x9e, 0xbb, + 0x8d, 0xa6, 0xc8, 0xc8, 0x9a, 0x96, 0x82, 0xaf, 0x41, 0xc9, 0xa5, 0x1e, 0x15, 0xdc, 0xc8, 0x4b, + 0xd1, 0x95, 0x8c, 0xe8, 0x81, 0x04, 0xcd, 0x15, 0xa5, 0xb7, 0x10, 0xeb, 0xc5, 0x14, 0x64, 0x29, + 0x2e, 0xb4, 0x00, 0x70, 0x30, 0xef, 0xf8, 0xcc, 0xa5, 0xf6, 0xc8, 0x28, 0x48, 0x25, 0x23, 0xa3, + 0xb4, 0x8f, 0xf9, 0xa1, 0xc4, 0xcd, 0x87, 0x4a, 0x6c, 0x39, 0x16, 0x4b, 0x99, 0xc8, 0xd2, 0x9d, + 0x49, 0xd7, 0x76, 0xf1, 0xeb, 0xf7, 0x46, 0x0e, 0x7d, 0x2a, 0x80, 0x52, 0xec, 0x01, 0x1e, 0x81, + 0x7b, 0x1e, 0x1e, 0x76, 0x1c, 0xcc, 0xe5, 0x02, 0x74, 0x73, 0xfb, 0x72, 0xdc, 0xd0, 0x7e, 0x8d, + 0x1b, 0xab, 0x36, 0xe3, 0x1e, 0xe3, 0xbc, 0x77, 0xda, 0xa2, 0xac, 0xed, 0x61, 0xd1, 0x6f, 0x1d, + 0xd3, 0x81, 0xb8, 0x1d, 0x37, 0x8c, 0x78, 0x82, 0xa2, 0xa1, 0xa7, 0xcc, 0xa3, 0x82, 0x78, 0xbe, + 0x18, 0x59, 0x25, 0x0f, 0x0f, 0xf7, 0x31, 0x87, 0x07, 0xe0, 0x7e, 0x84, 0x72, 0x7a, 0x41, 0xa4, + 0x6f, 0xdd, 0xdc, 0x98, 0xab, 0xba, 0x94, 0xaa, 0x46, 0x3c, 0x64, 0x45, 0xbe, 0x8e, 0xe8, 0x05, + 0x81, 0x36, 0xa8, 0x44, 0xd5, 0x80, 0xf0, 0xd0, 0x15, 0x1d, 0x9b, 0x85, 0x03, 0x21, 0xf7, 0xaa, + 0x9b, 0x2f, 0xe7, 0xaa, 0x3e, 0x48, 0x55, 0xa7, 0xf9, 0xc8, 0x5a, 0xf4, 0xf0, 0xd0, 0x92, 0x95, + 0xdd, 0xa8, 0x00, 0x07, 0xa0, 0x1a, 0x35, 0x85, 0x9c, 0x04, 0x1d, 0x16, 0x0a, 0x3f, 0x14, 0xb1, + 0xfd, 0xa2, 0x1c, 0xb4, 0x33, 0x77, 0xd0, 0xa3, 0x74, 0x50, 0x56, 0x03, 0x59, 0xcb, 0x1e, 0x1e, + 0x1e, 0x73, 0x12, 0xbc, 0x93, 0xc5, 0xe8, 0xa5, 0xe4, 0x41, 0x68, 0x68, 0x08, 0x4a, 0x7b, 0xd4, + 0x8d, 0x22, 0xb3, 0x05, 0xf4, 0xf3, 0x3e, 0x15, 0xc4, 0xa5, 0x5c, 0x18, 0x5a, 0xb3, 0xb0, 0xae, + 0x9b, 0x46, 0x34, 0xf4, 0x76, 0xdc, 0xa8, 0xc4, 0xd2, 0x09, 0x8c, 0xac, 0xb4, 0x35, 0xe2, 0x75, + 0x5d, 0x6c, 0x9f, 0x4a, 0x5e, 0xfe, 0x2e, 0x5e, 0x02, 0x23, 0x2b, 0x6d, 0x45, 0xdf, 0xf2, 0xa0, + 0x3c, 0x95, 0x6d, 0xd8, 0x03, 0xcb, 0x7e, 0x40, 0x7a, 0xd4, 0xc6, 0x82, 0xf0, 0xce, 0x89, 0x34, + 0xa5, 0xae, 0x44, 0x36, 0xbd, 0xb1, 0x63, 0xb3, 0xa9, 0x02, 0xa7, 0xe2, 0xf0, 0x17, 0x1b, 0x59, + 0x95, 0xb4, 0x96, 0xbe, 0x65, 0x97, 0x31, 0xc1, 0x45, 0x80, 0x7d, 0x95, 0x8c, 0xac, 0xdb, 0x09, + 0x1c, 0xb9, 0x9d, 0x3c, 0x43, 0x0a, 0xaa, 0x67, 0x34, 0x10, 0x21, 0x76, 0x23, 0xf1, 0xd4, 0x60, + 0xf1, 0x3f, 0x0c, 0x4a, 0xe2, 0x88, 0x0b, 0xe2, 0x25, 0x06, 0xa1, 0x12, 0xdd, 0x8b, 0xa0, 0x98, + 0xa5, 0x0e, 0xe6, 0x47, 0x1e, 0xe8, 0xc9, 0xdd, 0x82, 0x3d, 0x50, 0x39, 0x27, 0xd4, 0xe9, 0x0b, + 0x3a, 0x70, 0x3a, 0x27, 0xd8, 0x16, 0x2c, 0x50, 0xb7, 0xe5, 0x9f, 0x13, 0x98, 0xe5, 0x23, 0x6b, + 0x29, 0x29, 0xed, 0xc9, 0x0a, 0x0c, 0xc1, 0x6a, 0x8f, 0x9c, 0xe0, 0x28, 0xa4, 0xc9, 0xe2, 0x3a, + 0x36, 0xe3, 0x93, 0xb4, 0xbf, 0x9a, 0x3b, 0x6b, 0x2d, 0x9e, 0x75, 0xb7, 0x0a, 0xb2, 0xaa, 0x0a, + 0x38, 0x9c, 0xd4, 0x77, 0x19, 0x17, 0xb0, 0x07, 0x96, 0x66, 0x1b, 0xb9, 0x51, 0x68, 0x16, 0xd6, + 0xcb, 0x9b, 0x8f, 0x33, 0x6b, 0x9d, 0xa1, 0x99, 0x6b, 0x6a, 0xbb, 0x2b, 0x99, 0xe3, 0x57, 0xb3, + 0x16, 0xfd, 0xe9, 0x6e, 0x8e, 0xbe, 0x68, 0x60, 0x61, 0x76, 0xee, 0x16, 0xd0, 0x93, 0x1e, 0xb5, + 0xcd, 0x4c, 0x16, 0x12, 0x18, 0x59, 0x69, 0x2b, 0x7c, 0x0b, 0x8a, 0x53, 0x4b, 0x79, 0x31, 0x77, + 0x29, 0xca, 0xa0, 0xb4, 0x35, 0xf5, 0x5f, 0x25, 0x45, 0xcc, 0x9d, 0xcb, 0xeb, 0xba, 0x76, 0x75, + 0x5d, 0xd7, 0x7e, 0x5f, 0xd7, 0xb5, 0xcf, 0x37, 0xf5, 0xdc, 0xd5, 0x4d, 0x3d, 0xf7, 0xf3, 0xa6, + 0x9e, 0xfb, 0xf0, 0xc4, 0xa1, 0xa2, 0x1f, 0x76, 0x5b, 0x36, 0xf3, 0xda, 0xec, 0xd4, 0x7f, 0x2e, + 0x7f, 0x7a, 0xed, 0x61, 0x3b, 0xfe, 0x02, 0x89, 0x91, 0x4f, 0x78, 0xb7, 0x24, 0x3f, 0x2a, 0xcf, + 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xeb, 0xb1, 0xf2, 0x68, 0x97, 0x06, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -775,6 +808,7 @@ func encodeVarintParams(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *Params) Size() (n int) { if m == nil { return 0 @@ -896,9 +930,11 @@ func (m *PredicateCost) Size() (n int) { func sovParams(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozParams(x uint64) (n int) { return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1048,6 +1084,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } + func (m *Limits) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1107,7 +1144,7 @@ func (m *Limits) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v cosmossdk_io_math.Uint m.MaxGas = &v if err := m.MaxGas.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1143,7 +1180,7 @@ func (m *Limits) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v cosmossdk_io_math.Uint m.MaxResultCount = &v if err := m.MaxResultCount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1179,7 +1216,7 @@ func (m *Limits) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v cosmossdk_io_math.Uint m.MaxSize = &v if err := m.MaxSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1215,7 +1252,7 @@ func (m *Limits) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v cosmossdk_io_math.Uint m.MaxUserOutputSize = &v if err := m.MaxUserOutputSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1242,6 +1279,7 @@ func (m *Limits) Unmarshal(dAtA []byte) error { } return nil } + func (m *Filter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1356,6 +1394,7 @@ func (m *Filter) Unmarshal(dAtA []byte) error { } return nil } + func (m *Interpreter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1504,6 +1543,7 @@ func (m *Interpreter) Unmarshal(dAtA []byte) error { } return nil } + func (m *GasPolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1563,7 +1603,7 @@ func (m *GasPolicy) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v cosmossdk_io_math.Uint m.WeightingFactor = &v if err := m.WeightingFactor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1599,7 +1639,7 @@ func (m *GasPolicy) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v cosmossdk_io_math.Uint m.DefaultPredicateCost = &v if err := m.DefaultPredicateCost.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1660,6 +1700,7 @@ func (m *GasPolicy) Unmarshal(dAtA []byte) error { } return nil } + func (m *PredicateCost) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1751,7 +1792,7 @@ func (m *PredicateCost) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v cosmossdk_io_math.Uint m.Cost = &v if err := m.Cost.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1778,6 +1819,7 @@ func (m *PredicateCost) Unmarshal(dAtA []byte) error { } return nil } + func skipParams(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/logic/types/query.pb.go b/x/logic/types/query.pb.go index 3c71a311..c2046a9e 100644 --- a/x/logic/types/query.pb.go +++ b/x/logic/types/query.pb.go @@ -6,6 +6,10 @@ package types import ( context "context" fmt "fmt" + io "io" + math "math" + math_bits "math/bits" + _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" @@ -13,15 +17,14 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -30,8 +33,7 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // QueryServiceParamsRequest is request type for the QueryService/Params RPC method. -type QueryServiceParamsRequest struct { -} +type QueryServiceParamsRequest struct{} func (m *QueryServiceParamsRequest) Reset() { *m = QueryServiceParamsRequest{} } func (m *QueryServiceParamsRequest) String() string { return proto.CompactTextString(m) } @@ -39,9 +41,11 @@ func (*QueryServiceParamsRequest) ProtoMessage() {} func (*QueryServiceParamsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_008a54e610b23239, []int{0} } + func (m *QueryServiceParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryServiceParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryServiceParamsRequest.Marshal(b, m, deterministic) @@ -54,12 +58,15 @@ func (m *QueryServiceParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } + func (m *QueryServiceParamsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryServiceParamsRequest.Merge(m, src) } + func (m *QueryServiceParamsRequest) XXX_Size() int { return m.Size() } + func (m *QueryServiceParamsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryServiceParamsRequest.DiscardUnknown(m) } @@ -78,9 +85,11 @@ func (*QueryServiceParamsResponse) ProtoMessage() {} func (*QueryServiceParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_008a54e610b23239, []int{1} } + func (m *QueryServiceParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryServiceParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryServiceParamsResponse.Marshal(b, m, deterministic) @@ -93,12 +102,15 @@ func (m *QueryServiceParamsResponse) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } + func (m *QueryServiceParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryServiceParamsResponse.Merge(m, src) } + func (m *QueryServiceParamsResponse) XXX_Size() int { return m.Size() } + func (m *QueryServiceParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryServiceParamsResponse.DiscardUnknown(m) } @@ -126,9 +138,11 @@ func (*QueryServiceAskRequest) ProtoMessage() {} func (*QueryServiceAskRequest) Descriptor() ([]byte, []int) { return fileDescriptor_008a54e610b23239, []int{2} } + func (m *QueryServiceAskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryServiceAskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryServiceAskRequest.Marshal(b, m, deterministic) @@ -141,12 +155,15 @@ func (m *QueryServiceAskRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } + func (m *QueryServiceAskRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryServiceAskRequest.Merge(m, src) } + func (m *QueryServiceAskRequest) XXX_Size() int { return m.Size() } + func (m *QueryServiceAskRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryServiceAskRequest.DiscardUnknown(m) } @@ -186,9 +203,11 @@ func (*QueryServiceAskResponse) ProtoMessage() {} func (*QueryServiceAskResponse) Descriptor() ([]byte, []int) { return fileDescriptor_008a54e610b23239, []int{3} } + func (m *QueryServiceAskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryServiceAskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryServiceAskResponse.Marshal(b, m, deterministic) @@ -201,12 +220,15 @@ func (m *QueryServiceAskResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } + func (m *QueryServiceAskResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryServiceAskResponse.Merge(m, src) } + func (m *QueryServiceAskResponse) XXX_Size() int { return m.Size() } + func (m *QueryServiceAskResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryServiceAskResponse.DiscardUnknown(m) } @@ -288,8 +310,10 @@ var fileDescriptor_008a54e610b23239 = []byte{ } // Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +var ( + _ context.Context + _ grpc.ClientConn +) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -344,12 +368,12 @@ type QueryServiceServer interface { } // UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { -} +type UnimplementedQueryServiceServer struct{} func (*UnimplementedQueryServiceServer) Params(ctx context.Context, req *QueryServiceParamsRequest) (*QueryServiceParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } + func (*UnimplementedQueryServiceServer) Ask(ctx context.Context, req *QueryServiceAskRequest) (*QueryServiceAskResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Ask not implemented") } @@ -567,6 +591,7 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *QueryServiceParamsRequest) Size() (n int) { if m == nil { return 0 @@ -630,9 +655,11 @@ func (m *QueryServiceAskResponse) Size() (n int) { func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *QueryServiceParamsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -683,6 +710,7 @@ func (m *QueryServiceParamsRequest) Unmarshal(dAtA []byte) error { } return nil } + func (m *QueryServiceParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -766,6 +794,7 @@ func (m *QueryServiceParamsResponse) Unmarshal(dAtA []byte) error { } return nil } + func (m *QueryServiceAskRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -880,6 +909,7 @@ func (m *QueryServiceAskRequest) Unmarshal(dAtA []byte) error { } return nil } + func (m *QueryServiceAskResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1036,6 +1066,7 @@ func (m *QueryServiceAskResponse) Unmarshal(dAtA []byte) error { } return nil } + func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/logic/types/query.pb.gw.go b/x/logic/types/query.pb.gw.go index 6e416d9c..f1d5156c 100644 --- a/x/logic/types/query.pb.gw.go +++ b/x/logic/types/query.pb.gw.go @@ -25,13 +25,15 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = descriptor.ForMessage + _ = metadata.Join +) func request_QueryService_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryServiceParamsRequest @@ -39,7 +41,6 @@ func request_QueryService_Params_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_QueryService_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -48,12 +49,9 @@ func local_request_QueryService_Params_0(ctx context.Context, marshaler runtime. msg, err := server.Params(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_QueryService_Ask_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) +var filter_QueryService_Ask_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} func request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Marshaler, client QueryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryServiceAskRequest @@ -68,7 +66,6 @@ func request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Marshaler msg, err := client.Ask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -84,7 +81,6 @@ func local_request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Mar msg, err := server.Ask(ctx, &protoReq) return msg, metadata, err - } // RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". @@ -92,7 +88,6 @@ func local_request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Mar // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryServiceHandlerFromEndpoint instead. func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error { - mux.Handle("GET", pattern_QueryService_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -113,7 +108,6 @@ func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu } forward_QueryService_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_QueryService_Ask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -136,7 +130,6 @@ func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu } forward_QueryService_Ask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -179,7 +172,6 @@ func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, con // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "QueryServiceClient" to call the correct interceptors. func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error { - mux.Handle("GET", pattern_QueryService_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -197,7 +189,6 @@ func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu } forward_QueryService_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_QueryService_Ask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -217,7 +208,6 @@ func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu } forward_QueryService_Ask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/x/logic/types/tx.pb.go b/x/logic/types/tx.pb.go index 263eaf0f..a73c6cf1 100644 --- a/x/logic/types/tx.pb.go +++ b/x/logic/types/tx.pb.go @@ -6,6 +6,10 @@ package types import ( context "context" fmt "fmt" + io "io" + math "math" + math_bits "math/bits" + _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/gogoproto/gogoproto" @@ -14,15 +18,14 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -45,9 +48,11 @@ func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { return fileDescriptor_19bfd5fc1a0735fe, []int{0} } + func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) @@ -60,12 +65,15 @@ func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } + func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParams.Merge(m, src) } + func (m *MsgUpdateParams) XXX_Size() int { return m.Size() } + func (m *MsgUpdateParams) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) } @@ -88,8 +96,7 @@ func (m *MsgUpdateParams) GetParams() Params { // MsgUpdateParamsResponse defines the response structure for executing a // MsgUpdateParams message. -type MsgUpdateParamsResponse struct { -} +type MsgUpdateParamsResponse struct{} func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } @@ -97,9 +104,11 @@ func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_19bfd5fc1a0735fe, []int{1} } + func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) @@ -112,12 +121,15 @@ func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } + func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) } + func (m *MsgUpdateParamsResponse) XXX_Size() int { return m.Size() } + func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) } @@ -156,8 +168,10 @@ var fileDescriptor_19bfd5fc1a0735fe = []byte{ } // Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +var ( + _ context.Context + _ grpc.ClientConn +) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -197,8 +211,7 @@ type MsgServiceServer interface { } // UnimplementedMsgServiceServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServiceServer struct { -} +type UnimplementedMsgServiceServer struct{} func (*UnimplementedMsgServiceServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") @@ -313,6 +326,7 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *MsgUpdateParams) Size() (n int) { if m == nil { return 0 @@ -340,9 +354,11 @@ func (m *MsgUpdateParamsResponse) Size() (n int) { func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -458,6 +474,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } return nil } + func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -508,6 +525,7 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } + func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/logic/types/types.pb.go b/x/logic/types/types.pb.go index 32a2ee93..94137818 100644 --- a/x/logic/types/types.pb.go +++ b/x/logic/types/types.pb.go @@ -5,17 +5,20 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" + + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -37,9 +40,11 @@ func (*Term) ProtoMessage() {} func (*Term) Descriptor() ([]byte, []int) { return fileDescriptor_f3c73c95465ca7a8, []int{0} } + func (m *Term) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Term) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Term.Marshal(b, m, deterministic) @@ -52,12 +57,15 @@ func (m *Term) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Term) XXX_Merge(src proto.Message) { xxx_messageInfo_Term.Merge(m, src) } + func (m *Term) XXX_Size() int { return m.Size() } + func (m *Term) XXX_DiscardUnknown() { xxx_messageInfo_Term.DiscardUnknown(m) } @@ -92,9 +100,11 @@ func (*Substitution) ProtoMessage() {} func (*Substitution) Descriptor() ([]byte, []int) { return fileDescriptor_f3c73c95465ca7a8, []int{1} } + func (m *Substitution) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Substitution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Substitution.Marshal(b, m, deterministic) @@ -107,12 +117,15 @@ func (m *Substitution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } + func (m *Substitution) XXX_Merge(src proto.Message) { xxx_messageInfo_Substitution.Merge(m, src) } + func (m *Substitution) XXX_Size() int { return m.Size() } + func (m *Substitution) XXX_DiscardUnknown() { xxx_messageInfo_Substitution.DiscardUnknown(m) } @@ -145,9 +158,11 @@ func (*Result) ProtoMessage() {} func (*Result) Descriptor() ([]byte, []int) { return fileDescriptor_f3c73c95465ca7a8, []int{2} } + func (m *Result) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Result.Marshal(b, m, deterministic) @@ -160,12 +175,15 @@ func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Result) XXX_Merge(src proto.Message) { xxx_messageInfo_Result.Merge(m, src) } + func (m *Result) XXX_Size() int { return m.Size() } + func (m *Result) XXX_DiscardUnknown() { xxx_messageInfo_Result.DiscardUnknown(m) } @@ -199,9 +217,11 @@ func (*Answer) ProtoMessage() {} func (*Answer) Descriptor() ([]byte, []int) { return fileDescriptor_f3c73c95465ca7a8, []int{3} } + func (m *Answer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Answer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Answer.Marshal(b, m, deterministic) @@ -214,12 +234,15 @@ func (m *Answer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Answer) XXX_Merge(src proto.Message) { xxx_messageInfo_Answer.Merge(m, src) } + func (m *Answer) XXX_Size() int { return m.Size() } + func (m *Answer) XXX_DiscardUnknown() { xxx_messageInfo_Answer.DiscardUnknown(m) } @@ -510,6 +533,7 @@ func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *Term) Size() (n int) { if m == nil { return 0 @@ -593,9 +617,11 @@ func (m *Answer) Size() (n int) { func sovTypes(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozTypes(x uint64) (n int) { return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *Term) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -712,6 +738,7 @@ func (m *Term) Unmarshal(dAtA []byte) error { } return nil } + func (m *Substitution) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -827,6 +854,7 @@ func (m *Substitution) Unmarshal(dAtA []byte) error { } return nil } + func (m *Result) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -911,6 +939,7 @@ func (m *Result) Unmarshal(dAtA []byte) error { } return nil } + func (m *Answer) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1099,6 +1128,7 @@ func (m *Answer) Unmarshal(dAtA []byte) error { } return nil } + func skipTypes(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/mint/types/genesis.pb.go b/x/mint/types/genesis.pb.go index 0fba23d2..a17d76e0 100644 --- a/x/mint/types/genesis.pb.go +++ b/x/mint/types/genesis.pb.go @@ -5,18 +5,21 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" + + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -38,9 +41,11 @@ func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { return fileDescriptor_1dfa75836a5d5f23, []int{0} } + func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) @@ -53,12 +58,15 @@ func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } + func (m *GenesisState) XXX_Merge(src proto.Message) { xxx_messageInfo_GenesisState.Merge(m, src) } + func (m *GenesisState) XXX_Size() int { return m.Size() } + func (m *GenesisState) XXX_DiscardUnknown() { xxx_messageInfo_GenesisState.DiscardUnknown(m) } @@ -157,6 +165,7 @@ func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *GenesisState) Size() (n int) { if m == nil { return 0 @@ -173,9 +182,11 @@ func (m *GenesisState) Size() (n int) { func sovGenesis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozGenesis(x uint64) (n int) { return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *GenesisState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -292,6 +303,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } return nil } + func skipGenesis(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/mint/types/mint.pb.go b/x/mint/types/mint.pb.go index f8625cab..5c50af32 100644 --- a/x/mint/types/mint.pb.go +++ b/x/mint/types/mint.pb.go @@ -5,19 +5,23 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" + + cosmossdk_io_math "cosmossdk.io/math" + + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -28,9 +32,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Minter holds the state of minting within the blockchain. type Minter struct { // Current annual inflation rate. - Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` + Inflation cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation"` // Current annual anticipated provisions. - AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions"` + AnnualProvisions cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"annual_provisions"` } func (m *Minter) Reset() { *m = Minter{} } @@ -39,9 +43,11 @@ func (*Minter) ProtoMessage() {} func (*Minter) Descriptor() ([]byte, []int) { return fileDescriptor_06339c129491fd39, []int{0} } + func (m *Minter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Minter.Marshal(b, m, deterministic) @@ -54,12 +60,15 @@ func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Minter) XXX_Merge(src proto.Message) { xxx_messageInfo_Minter.Merge(m, src) } + func (m *Minter) XXX_Size() int { return m.Size() } + func (m *Minter) XXX_DiscardUnknown() { xxx_messageInfo_Minter.DiscardUnknown(m) } @@ -72,7 +81,7 @@ type Params struct { MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` // Annual inflation coefficient, influencing the inflation rate based on the bonded ratio. // Values range from 0 to 1, with higher values indicating higher inflation. - InflationCoef github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=inflation_coef,json=inflationCoef,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_coef"` + InflationCoef cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=inflation_coef,json=inflationCoef,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation_coef"` // Estimated number of blocks per year. BlocksPerYear uint64 `protobuf:"varint,3,opt,name=blocks_per_year,json=blocksPerYear,proto3" json:"blocks_per_year,omitempty"` } @@ -82,9 +91,11 @@ func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_06339c129491fd39, []int{1} } + func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Params.Marshal(b, m, deterministic) @@ -97,12 +108,15 @@ func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Params) XXX_Merge(src proto.Message) { xxx_messageInfo_Params.Merge(m, src) } + func (m *Params) XXX_Size() int { return m.Size() } + func (m *Params) XXX_DiscardUnknown() { xxx_messageInfo_Params.DiscardUnknown(m) } @@ -131,29 +145,29 @@ func init() { func init() { proto.RegisterFile("mint/v1beta1/mint.proto", fileDescriptor_06339c129491fd39) } var fileDescriptor_06339c129491fd39 = []byte{ - // 337 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcf, 0xcd, 0xcc, 0x2b, - 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x07, 0x71, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, - 0xf2, 0x85, 0x78, 0xc0, 0x6c, 0xa8, 0x84, 0x94, 0x64, 0x72, 0x7e, 0x71, 0x6e, 0x7e, 0x71, 0x3c, - 0x58, 0x4e, 0x1f, 0xc2, 0x81, 0x28, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x87, 0x88, 0x83, 0x58, - 0x10, 0x51, 0xa5, 0xf3, 0x8c, 0x5c, 0x6c, 0xbe, 0x99, 0x79, 0x25, 0xa9, 0x45, 0x42, 0x51, 0x5c, - 0x9c, 0x99, 0x79, 0x69, 0x39, 0x89, 0x25, 0x99, 0xf9, 0x79, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, - 0x4e, 0x36, 0x27, 0xee, 0xc9, 0x33, 0xdc, 0xba, 0x27, 0xaf, 0x96, 0x9e, 0x59, 0x92, 0x51, 0x9a, - 0xa4, 0x97, 0x9c, 0x9f, 0x0b, 0x35, 0x14, 0x4a, 0xe9, 0x16, 0xa7, 0x64, 0xeb, 0x97, 0x54, 0x16, - 0xa4, 0x16, 0xeb, 0xb9, 0xa4, 0x26, 0x5f, 0xda, 0xa2, 0xcb, 0x05, 0xb5, 0xd3, 0x25, 0x35, 0x39, - 0x08, 0x61, 0x9c, 0x50, 0x26, 0x97, 0x60, 0x62, 0x5e, 0x5e, 0x69, 0x62, 0x0e, 0xc8, 0x65, 0x65, - 0x99, 0xc5, 0x99, 0xf9, 0x79, 0xc5, 0x12, 0x4c, 0x54, 0xb0, 0x43, 0x00, 0x62, 0x6c, 0x00, 0xdc, - 0x54, 0xa5, 0x5d, 0x8c, 0x5c, 0x6c, 0x01, 0x89, 0x45, 0x89, 0xb9, 0xc5, 0x42, 0xb2, 0x5c, 0x5c, - 0xa0, 0xd0, 0x89, 0x4f, 0x49, 0xcd, 0xcb, 0xcf, 0x85, 0x78, 0x29, 0x88, 0x13, 0x24, 0xe2, 0x02, - 0x12, 0x10, 0x4a, 0xe6, 0xe2, 0x83, 0xbb, 0x30, 0x3e, 0x39, 0x3f, 0x35, 0x8d, 0x2a, 0x2e, 0xe2, - 0x85, 0x9b, 0xe9, 0x9c, 0x9f, 0x9a, 0x26, 0xa4, 0xc6, 0xc5, 0x9f, 0x94, 0x93, 0x9f, 0x9c, 0x5d, - 0x1c, 0x5f, 0x90, 0x5a, 0x14, 0x5f, 0x99, 0x9a, 0x58, 0x24, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x12, - 0xc4, 0x0b, 0x11, 0x0e, 0x48, 0x2d, 0x8a, 0x4c, 0x4d, 0x2c, 0xb2, 0x62, 0x99, 0xb1, 0x40, 0x9e, - 0xc1, 0xc9, 0xe6, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, - 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x94, 0x90, 0x1c, - 0x93, 0x9f, 0x5d, 0x60, 0x02, 0x26, 0x52, 0xf4, 0x2b, 0xc0, 0x69, 0x01, 0xe2, 0x98, 0x24, 0x36, - 0x70, 0x9c, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xca, 0xeb, 0xc3, 0xfd, 0x2d, 0x02, 0x00, - 0x00, + // 344 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0x3f, 0x4f, 0x3a, 0x31, + 0x18, 0xc7, 0xaf, 0xbf, 0x1f, 0x21, 0xa1, 0x11, 0xff, 0x5c, 0x4c, 0x44, 0x8c, 0x07, 0x61, 0x30, + 0x2c, 0x5e, 0x43, 0x74, 0x32, 0x4e, 0xc8, 0xa8, 0x91, 0x30, 0xa9, 0x83, 0x97, 0x5e, 0x29, 0x47, + 0x03, 0xd7, 0xe7, 0xd2, 0x16, 0x22, 0xef, 0xc2, 0xd1, 0xd1, 0x77, 0xe0, 0xe2, 0xe2, 0x3b, 0x60, + 0x24, 0x4e, 0xc6, 0x81, 0x18, 0x78, 0x23, 0xe6, 0xae, 0x04, 0x77, 0x96, 0xe6, 0x79, 0x3e, 0x4f, + 0xf3, 0xe9, 0x37, 0x7d, 0xf0, 0x41, 0x2c, 0xa4, 0x21, 0xe3, 0x46, 0xc8, 0x0d, 0x6d, 0x90, 0xb4, + 0xf1, 0x13, 0x05, 0x06, 0xdc, 0xad, 0xac, 0x5e, 0x0d, 0xca, 0x87, 0x0c, 0x74, 0x0c, 0x3a, 0xc8, + 0x66, 0xc4, 0x36, 0xf6, 0x62, 0x79, 0x3f, 0x82, 0x08, 0x2c, 0x4f, 0x2b, 0x4b, 0x6b, 0x1f, 0x08, + 0xe7, 0x6f, 0x84, 0x34, 0x5c, 0xb9, 0xb7, 0xb8, 0x20, 0x64, 0x6f, 0x48, 0x8d, 0x00, 0x59, 0x42, + 0x55, 0x54, 0x2f, 0x34, 0x1b, 0xd3, 0x79, 0xc5, 0xf9, 0x9e, 0x57, 0x8e, 0xac, 0x49, 0x77, 0x07, + 0xbe, 0x00, 0x12, 0x53, 0xd3, 0xf7, 0xaf, 0x79, 0x44, 0xd9, 0xa4, 0xc5, 0xd9, 0xe7, 0xfb, 0x29, + 0x5e, 0x3d, 0xd4, 0xe2, 0xac, 0xf3, 0xe7, 0x70, 0x1f, 0xf1, 0x1e, 0x95, 0x72, 0x44, 0x87, 0x69, + 0x9c, 0xb1, 0xd0, 0x02, 0xa4, 0x2e, 0xfd, 0xdb, 0x54, 0xbc, 0x6b, 0x5d, 0xed, 0xb5, 0xaa, 0xf6, + 0x86, 0x70, 0xbe, 0x4d, 0x15, 0x8d, 0xb5, 0x7b, 0x8c, 0x71, 0xfa, 0x0f, 0x41, 0x97, 0x4b, 0x88, + 0x6d, 0xf8, 0x4e, 0x21, 0x25, 0xad, 0x14, 0xb8, 0x77, 0x78, 0x7b, 0x1d, 0x2b, 0x60, 0xc0, 0x7b, + 0x9b, 0xc7, 0x28, 0xae, 0x45, 0x57, 0xc0, 0x7b, 0xee, 0x09, 0xde, 0x09, 0x87, 0xc0, 0x06, 0x3a, + 0x48, 0xb8, 0x0a, 0x26, 0x9c, 0xaa, 0xd2, 0xff, 0x2a, 0xaa, 0xe7, 0x3a, 0x45, 0x8b, 0xdb, 0x5c, + 0xdd, 0x73, 0xaa, 0x2e, 0x72, 0x2f, 0xaf, 0x15, 0xa7, 0x79, 0x39, 0x5d, 0x78, 0x68, 0xb6, 0xf0, + 0xd0, 0xcf, 0xc2, 0x43, 0xcf, 0x4b, 0xcf, 0x99, 0x2d, 0x3d, 0xe7, 0x6b, 0xe9, 0x39, 0x0f, 0xb5, + 0x48, 0x98, 0xfe, 0x28, 0xf4, 0x19, 0xc4, 0x04, 0x06, 0xc9, 0x79, 0x76, 0x74, 0xc9, 0x53, 0xb6, + 0x6a, 0x62, 0x26, 0x09, 0xd7, 0x61, 0x3e, 0x5b, 0xd9, 0xd9, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x12, 0xd6, 0x6f, 0xe4, 0x0c, 0x02, 0x00, 0x00, } func (m *Minter) Marshal() (dAtA []byte, err error) { @@ -255,6 +269,7 @@ func encodeVarintMint(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *Minter) Size() (n int) { if m == nil { return 0 @@ -289,9 +304,11 @@ func (m *Params) Size() (n int) { func sovMint(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozMint(x uint64) (n int) { return sovMint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *Minter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -410,6 +427,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error { } return nil } + func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -545,6 +563,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } + func skipMint(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/mint/types/query.pb.go b/x/mint/types/query.pb.go index 2aea3bc9..a19edcdd 100644 --- a/x/mint/types/query.pb.go +++ b/x/mint/types/query.pb.go @@ -6,7 +6,12 @@ package types import ( context "context" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + io "io" + math "math" + math_bits "math/bits" + + cosmossdk_io_math "cosmossdk.io/math" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" @@ -15,15 +20,14 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -32,8 +36,7 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} +type QueryParamsRequest struct{} func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } @@ -41,9 +44,11 @@ func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{0} } + func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) @@ -56,12 +61,15 @@ func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } + func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsRequest.Merge(m, src) } + func (m *QueryParamsRequest) XXX_Size() int { return m.Size() } + func (m *QueryParamsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) } @@ -80,9 +88,11 @@ func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{1} } + func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) @@ -95,12 +105,15 @@ func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } + func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsResponse.Merge(m, src) } + func (m *QueryParamsResponse) XXX_Size() int { return m.Size() } + func (m *QueryParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) } @@ -115,8 +128,7 @@ func (m *QueryParamsResponse) GetParams() Params { } // QueryInflationRequest is the request type for the Query/Inflation RPC method. -type QueryInflationRequest struct { -} +type QueryInflationRequest struct{} func (m *QueryInflationRequest) Reset() { *m = QueryInflationRequest{} } func (m *QueryInflationRequest) String() string { return proto.CompactTextString(m) } @@ -124,9 +136,11 @@ func (*QueryInflationRequest) ProtoMessage() {} func (*QueryInflationRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{2} } + func (m *QueryInflationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryInflationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryInflationRequest.Marshal(b, m, deterministic) @@ -139,12 +153,15 @@ func (m *QueryInflationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } + func (m *QueryInflationRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryInflationRequest.Merge(m, src) } + func (m *QueryInflationRequest) XXX_Size() int { return m.Size() } + func (m *QueryInflationRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryInflationRequest.DiscardUnknown(m) } @@ -155,7 +172,7 @@ var xxx_messageInfo_QueryInflationRequest proto.InternalMessageInfo // method. type QueryInflationResponse struct { // inflation is the current minting inflation value. - Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` + Inflation cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation"` } func (m *QueryInflationResponse) Reset() { *m = QueryInflationResponse{} } @@ -164,9 +181,11 @@ func (*QueryInflationResponse) ProtoMessage() {} func (*QueryInflationResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{3} } + func (m *QueryInflationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryInflationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryInflationResponse.Marshal(b, m, deterministic) @@ -179,12 +198,15 @@ func (m *QueryInflationResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } + func (m *QueryInflationResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryInflationResponse.Merge(m, src) } + func (m *QueryInflationResponse) XXX_Size() int { return m.Size() } + func (m *QueryInflationResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryInflationResponse.DiscardUnknown(m) } @@ -193,8 +215,7 @@ var xxx_messageInfo_QueryInflationResponse proto.InternalMessageInfo // QueryAnnualProvisionsRequest is the request type for the // Query/AnnualProvisions RPC method. -type QueryAnnualProvisionsRequest struct { -} +type QueryAnnualProvisionsRequest struct{} func (m *QueryAnnualProvisionsRequest) Reset() { *m = QueryAnnualProvisionsRequest{} } func (m *QueryAnnualProvisionsRequest) String() string { return proto.CompactTextString(m) } @@ -202,9 +223,11 @@ func (*QueryAnnualProvisionsRequest) ProtoMessage() {} func (*QueryAnnualProvisionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{4} } + func (m *QueryAnnualProvisionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryAnnualProvisionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAnnualProvisionsRequest.Marshal(b, m, deterministic) @@ -217,12 +240,15 @@ func (m *QueryAnnualProvisionsRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } + func (m *QueryAnnualProvisionsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAnnualProvisionsRequest.Merge(m, src) } + func (m *QueryAnnualProvisionsRequest) XXX_Size() int { return m.Size() } + func (m *QueryAnnualProvisionsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryAnnualProvisionsRequest.DiscardUnknown(m) } @@ -233,7 +259,7 @@ var xxx_messageInfo_QueryAnnualProvisionsRequest proto.InternalMessageInfo // Query/AnnualProvisions RPC method. type QueryAnnualProvisionsResponse struct { // annual_provisions is the current minting annual provisions value. - AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions"` + AnnualProvisions cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"annual_provisions"` } func (m *QueryAnnualProvisionsResponse) Reset() { *m = QueryAnnualProvisionsResponse{} } @@ -242,9 +268,11 @@ func (*QueryAnnualProvisionsResponse) ProtoMessage() {} func (*QueryAnnualProvisionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{5} } + func (m *QueryAnnualProvisionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *QueryAnnualProvisionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAnnualProvisionsResponse.Marshal(b, m, deterministic) @@ -257,12 +285,15 @@ func (m *QueryAnnualProvisionsResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } + func (m *QueryAnnualProvisionsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAnnualProvisionsResponse.Merge(m, src) } + func (m *QueryAnnualProvisionsResponse) XXX_Size() int { return m.Size() } + func (m *QueryAnnualProvisionsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryAnnualProvisionsResponse.DiscardUnknown(m) } @@ -281,41 +312,44 @@ func init() { func init() { proto.RegisterFile("mint/v1beta1/query.proto", fileDescriptor_b0718dda172d2cb4) } var fileDescriptor_b0718dda172d2cb4 = []byte{ - // 463 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc8, 0xcd, 0xcc, 0x2b, - 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, 0xd4, 0x2b, - 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0xc9, 0xe8, 0x41, 0x65, 0xa4, 0x04, 0x13, 0x73, 0x33, - 0xf3, 0xf2, 0xf5, 0xc1, 0x24, 0x44, 0x81, 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x98, 0xa9, 0x0f, - 0x62, 0x41, 0x45, 0x65, 0xd2, 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0x13, 0x0b, 0x32, 0xf5, 0x13, - 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0xa1, 0xb2, 0xe2, 0x28, 0xd6, 0x81, - 0x6d, 0x00, 0x4b, 0x28, 0x89, 0x70, 0x09, 0x05, 0x82, 0x2c, 0x0f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, - 0x0e, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x51, 0xf2, 0xe3, 0x12, 0x46, 0x11, 0x2d, 0x2e, 0xc8, - 0xcf, 0x2b, 0x4e, 0x15, 0x32, 0xe7, 0x62, 0x2b, 0x00, 0x8b, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, - 0x1b, 0x89, 0xe8, 0x21, 0xbb, 0x55, 0x0f, 0xa2, 0xda, 0x89, 0xf3, 0xc4, 0x3d, 0x79, 0x86, 0x15, - 0xcf, 0x37, 0x68, 0x31, 0x06, 0x41, 0x95, 0x2b, 0x89, 0x73, 0x89, 0x82, 0xcd, 0xf3, 0xcc, 0x4b, - 0xcb, 0x01, 0xbb, 0x0b, 0x66, 0x51, 0x36, 0x97, 0x18, 0xba, 0x04, 0xd4, 0xae, 0x40, 0x2e, 0xce, - 0x4c, 0x98, 0x20, 0xd8, 0x3a, 0x1e, 0x27, 0x63, 0x90, 0xc1, 0xb7, 0xee, 0xc9, 0xab, 0xa5, 0x67, - 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x27, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0x43, - 0x29, 0xdd, 0xe2, 0x94, 0x6c, 0xfd, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x3d, 0x97, 0xd4, 0x64, 0x88, - 0x13, 0x10, 0xa6, 0x28, 0xc9, 0x71, 0xc9, 0x80, 0x2d, 0x73, 0xcc, 0xcb, 0x2b, 0x4d, 0xcc, 0x09, - 0x28, 0xca, 0x2f, 0xcb, 0x2c, 0x06, 0x85, 0x11, 0xcc, 0x31, 0x8d, 0x8c, 0x5c, 0xb2, 0x38, 0x14, - 0x40, 0x1d, 0x95, 0xc0, 0x25, 0x98, 0x08, 0x96, 0x8b, 0x2f, 0x80, 0x4b, 0x52, 0xe2, 0x38, 0x81, - 0x44, 0x34, 0x9b, 0x8c, 0x66, 0x32, 0x73, 0xb1, 0x82, 0xdd, 0x20, 0x54, 0xc4, 0xc5, 0x06, 0x09, - 0x50, 0x21, 0x05, 0xd4, 0x60, 0xc6, 0x8c, 0x2f, 0x29, 0x45, 0x3c, 0x2a, 0x20, 0x4e, 0x57, 0x52, - 0x6e, 0xba, 0xfc, 0x64, 0x32, 0x93, 0xac, 0x90, 0x34, 0xcc, 0x55, 0x28, 0x29, 0x02, 0x12, 0x4f, - 0x42, 0x75, 0x5c, 0x9c, 0xf0, 0x98, 0x10, 0x52, 0xc6, 0x62, 0x28, 0x7a, 0x04, 0x4a, 0xa9, 0xe0, - 0x57, 0x04, 0xb5, 0x5c, 0x0d, 0x6c, 0xb9, 0x82, 0x90, 0x1c, 0x56, 0xcb, 0xe1, 0x31, 0x24, 0x34, - 0x9b, 0x91, 0x4b, 0x00, 0x3d, 0xf0, 0x85, 0xb4, 0xb0, 0x58, 0x81, 0x23, 0x0a, 0xa5, 0xb4, 0x89, - 0x52, 0x0b, 0x75, 0x95, 0x1e, 0xd8, 0x55, 0x1a, 0x42, 0x6a, 0x58, 0x5d, 0x85, 0x11, 0xd1, 0x4e, - 0x36, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, - 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x84, 0x14, 0xe9, 0xf9, - 0xd9, 0x05, 0x26, 0x60, 0x22, 0x45, 0xbf, 0x02, 0x62, 0x22, 0x38, 0xd2, 0x93, 0xd8, 0xc0, 0x19, - 0xce, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x69, 0xb4, 0x77, 0x5a, 0xfa, 0x03, 0x00, 0x00, + // 468 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x41, 0x6b, 0x13, 0x41, + 0x18, 0x86, 0xb3, 0x8a, 0x81, 0x8c, 0x3d, 0xb4, 0x63, 0xb4, 0x65, 0xdb, 0x4e, 0xe3, 0x56, 0x4a, + 0xa8, 0x30, 0x43, 0xab, 0xe0, 0xc5, 0x8b, 0x41, 0x04, 0x41, 0xa4, 0x16, 0xbc, 0x78, 0xd1, 0x49, + 0x3a, 0x6e, 0x87, 0x66, 0xe7, 0xdb, 0xee, 0x4c, 0x82, 0xb9, 0x78, 0xf0, 0x17, 0x08, 0x9e, 0xc4, + 0x3f, 0xe0, 0xd1, 0x9f, 0xd1, 0x63, 0xc1, 0x8b, 0x78, 0x28, 0x92, 0x08, 0xfe, 0x0d, 0xd9, 0x99, + 0x49, 0x74, 0xb7, 0xdb, 0xa0, 0x97, 0x65, 0xf8, 0xde, 0x37, 0xdf, 0xf3, 0xf2, 0xbd, 0x04, 0xad, + 0x24, 0x52, 0x19, 0x36, 0xdc, 0xe9, 0x0a, 0xc3, 0x77, 0xd8, 0xf1, 0x40, 0x64, 0x23, 0x9a, 0x66, + 0x60, 0x00, 0x2f, 0xe4, 0x0a, 0xf5, 0x4a, 0xb8, 0xc4, 0x13, 0xa9, 0x80, 0xd9, 0xaf, 0x33, 0x84, + 0xcd, 0x18, 0x62, 0xb0, 0x4f, 0x96, 0xbf, 0xfc, 0x74, 0x2d, 0x06, 0x88, 0xfb, 0x82, 0xf1, 0x54, + 0x32, 0xae, 0x14, 0x18, 0x6e, 0x24, 0x28, 0xed, 0xd5, 0xe5, 0x02, 0xce, 0x12, 0xac, 0x10, 0x35, + 0x11, 0x7e, 0x96, 0xc3, 0xf7, 0x78, 0xc6, 0x13, 0xbd, 0x2f, 0x8e, 0x07, 0x42, 0x9b, 0xe8, 0x29, + 0xba, 0x56, 0x98, 0xea, 0x14, 0x94, 0x16, 0xf8, 0x1e, 0xaa, 0xa7, 0x76, 0xb2, 0x12, 0xb4, 0x82, + 0xf6, 0xd5, 0xdd, 0x26, 0xfd, 0x3b, 0x2b, 0x75, 0xee, 0x4e, 0xe3, 0xe4, 0x6c, 0xa3, 0xf6, 0xf9, + 0xd7, 0x97, 0xed, 0x60, 0xdf, 0xdb, 0xa3, 0x65, 0x74, 0xdd, 0xee, 0x7b, 0xac, 0x5e, 0xf7, 0x6d, + 0xae, 0x29, 0xe8, 0x15, 0xba, 0x51, 0x16, 0x3c, 0xeb, 0x11, 0x6a, 0xc8, 0xe9, 0xd0, 0xe2, 0x16, + 0x3a, 0xed, 0x7c, 0xf1, 0xf7, 0xb3, 0x8d, 0xd5, 0x1e, 0xe8, 0x04, 0xb4, 0x3e, 0x38, 0xa2, 0x12, + 0x58, 0xc2, 0xcd, 0x21, 0x7d, 0x22, 0x62, 0xde, 0x1b, 0x3d, 0x14, 0x3d, 0xc7, 0xfd, 0xf3, 0xd3, + 0x88, 0xa0, 0x35, 0x4b, 0x78, 0xa0, 0xd4, 0x80, 0xf7, 0xf7, 0x32, 0x18, 0x4a, 0x9d, 0x1f, 0x66, + 0x9a, 0x60, 0x88, 0xd6, 0x2f, 0xd0, 0x7d, 0x90, 0xe7, 0x68, 0x89, 0x5b, 0xed, 0x65, 0x3a, 0x13, + 0xff, 0x3b, 0xd0, 0x22, 0x2f, 0xad, 0xdf, 0xfd, 0x78, 0x19, 0x5d, 0xb1, 0x60, 0x9c, 0xa1, 0xba, + 0xbb, 0x1c, 0x6e, 0x15, 0xef, 0x79, 0xbe, 0x98, 0xf0, 0xe6, 0x1c, 0x87, 0xcb, 0x1b, 0x6d, 0xbe, + 0xfb, 0xfa, 0xf3, 0xc3, 0xa5, 0x75, 0xbc, 0xca, 0x5c, 0x2a, 0x56, 0xa8, 0xde, 0x15, 0x82, 0xdf, + 0xa2, 0xc6, 0xec, 0xe4, 0x78, 0xb3, 0x62, 0x69, 0xb9, 0xa9, 0xf0, 0xd6, 0x7c, 0x93, 0x87, 0x6f, + 0x59, 0x78, 0x0b, 0x93, 0x4a, 0xf8, 0xac, 0x15, 0xfc, 0x29, 0x40, 0x8b, 0xe5, 0x8b, 0xe3, 0xed, + 0x0a, 0xc4, 0x05, 0xb5, 0x85, 0xb7, 0xff, 0xc9, 0xeb, 0x53, 0x51, 0x9b, 0xaa, 0x8d, 0xb7, 0x2a, + 0x53, 0x9d, 0x6b, 0xb7, 0x73, 0xff, 0x64, 0x4c, 0x82, 0xd3, 0x31, 0x09, 0x7e, 0x8c, 0x49, 0xf0, + 0x7e, 0x42, 0x6a, 0xa7, 0x13, 0x52, 0xfb, 0x36, 0x21, 0xb5, 0x17, 0x51, 0x2c, 0xcd, 0xe1, 0xa0, + 0x4b, 0x7b, 0x90, 0x30, 0x38, 0x4a, 0xef, 0xda, 0xcf, 0x01, 0x7b, 0xe3, 0x36, 0x9a, 0x51, 0x2a, + 0x74, 0xb7, 0x6e, 0xff, 0x59, 0x77, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x5c, 0x1d, 0x9a, 0x6d, + 0xe3, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +var ( + _ context.Context + _ grpc.ClientConn +) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -379,15 +413,16 @@ type QueryServer interface { } // UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} +type UnimplementedQueryServer struct{} func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } + func (*UnimplementedQueryServer) Inflation(ctx context.Context, req *QueryInflationRequest) (*QueryInflationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Inflation not implemented") } + func (*UnimplementedQueryServer) AnnualProvisions(ctx context.Context, req *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AnnualProvisions not implemented") } @@ -650,6 +685,7 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *QueryParamsRequest) Size() (n int) { if m == nil { return 0 @@ -713,9 +749,11 @@ func (m *QueryAnnualProvisionsResponse) Size() (n int) { func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -766,6 +804,7 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } + func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -849,6 +888,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } + func (m *QueryInflationRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -899,6 +939,7 @@ func (m *QueryInflationRequest) Unmarshal(dAtA []byte) error { } return nil } + func (m *QueryInflationResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -982,6 +1023,7 @@ func (m *QueryInflationResponse) Unmarshal(dAtA []byte) error { } return nil } + func (m *QueryAnnualProvisionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1032,6 +1074,7 @@ func (m *QueryAnnualProvisionsRequest) Unmarshal(dAtA []byte) error { } return nil } + func (m *QueryAnnualProvisionsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1115,6 +1158,7 @@ func (m *QueryAnnualProvisionsResponse) Unmarshal(dAtA []byte) error { } return nil } + func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/mint/types/query.pb.gw.go b/x/mint/types/query.pb.gw.go index bde697f7..31809a5c 100644 --- a/x/mint/types/query.pb.gw.go +++ b/x/mint/types/query.pb.gw.go @@ -25,13 +25,15 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = descriptor.ForMessage + _ = metadata.Join +) func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryParamsRequest @@ -39,7 +41,6 @@ func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, cl msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -48,7 +49,6 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal msg, err := server.Params(ctx, &protoReq) return msg, metadata, err - } func request_Query_Inflation_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -57,7 +57,6 @@ func request_Query_Inflation_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.Inflation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Query_Inflation_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -66,7 +65,6 @@ func local_request_Query_Inflation_0(ctx context.Context, marshaler runtime.Mars msg, err := server.Inflation(ctx, &protoReq) return msg, metadata, err - } func request_Query_AnnualProvisions_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -75,7 +73,6 @@ func request_Query_AnnualProvisions_0(ctx context.Context, marshaler runtime.Mar msg, err := client.AnnualProvisions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Query_AnnualProvisions_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -84,7 +81,6 @@ func local_request_Query_AnnualProvisions_0(ctx context.Context, marshaler runti msg, err := server.AnnualProvisions(ctx, &protoReq) return msg, metadata, err - } // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". @@ -92,7 +88,6 @@ func local_request_Query_AnnualProvisions_0(ctx context.Context, marshaler runti // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -113,7 +108,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_Query_Inflation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -136,7 +130,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_Inflation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_Query_AnnualProvisions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -159,7 +152,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_AnnualProvisions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -202,7 +194,6 @@ func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "QueryClient" to call the correct interceptors. func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -220,7 +211,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_Query_Inflation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -240,7 +230,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_Inflation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_Query_AnnualProvisions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -260,7 +249,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_AnnualProvisions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/x/mint/types/tx.pb.go b/x/mint/types/tx.pb.go index 4f00745e..c3693f5b 100644 --- a/x/mint/types/tx.pb.go +++ b/x/mint/types/tx.pb.go @@ -6,6 +6,10 @@ package types import ( context "context" fmt "fmt" + io "io" + math "math" + math_bits "math/bits" + _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" @@ -15,15 +19,14 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -49,9 +52,11 @@ func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { return fileDescriptor_79e41a47c726ee2e, []int{0} } + func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) @@ -64,12 +69,15 @@ func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } + func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParams.Merge(m, src) } + func (m *MsgUpdateParams) XXX_Size() int { return m.Size() } + func (m *MsgUpdateParams) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) } @@ -94,8 +102,7 @@ func (m *MsgUpdateParams) GetParams() Params { // MsgUpdateParams message. // // Since: cosmos-sdk 0.47 -type MsgUpdateParamsResponse struct { -} +type MsgUpdateParamsResponse struct{} func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } @@ -103,9 +110,11 @@ func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_79e41a47c726ee2e, []int{1} } + func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) @@ -118,12 +127,15 @@ func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } + func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) } + func (m *MsgUpdateParamsResponse) XXX_Size() int { return m.Size() } + func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) } @@ -164,8 +176,10 @@ var fileDescriptor_79e41a47c726ee2e = []byte{ } // Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +var ( + _ context.Context + _ grpc.ClientConn +) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -209,8 +223,7 @@ type MsgServer interface { } // UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} +type UnimplementedMsgServer struct{} func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") @@ -325,6 +338,7 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *MsgUpdateParams) Size() (n int) { if m == nil { return 0 @@ -352,9 +366,11 @@ func (m *MsgUpdateParamsResponse) Size() (n int) { func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -470,6 +486,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } return nil } + func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -520,6 +537,7 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } + func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/vesting/types/tx.pb.go b/x/vesting/types/tx.pb.go index f3e8c57c..40485068 100644 --- a/x/vesting/types/tx.pb.go +++ b/x/vesting/types/tx.pb.go @@ -6,6 +6,10 @@ package types import ( context "context" fmt "fmt" + io "io" + math "math" + math_bits "math/bits" + _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" @@ -17,15 +21,14 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -49,9 +52,11 @@ func (*MsgCreateVestingAccount) ProtoMessage() {} func (*MsgCreateVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{0} } + func (m *MsgCreateVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgCreateVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateVestingAccount.Marshal(b, m, deterministic) @@ -64,12 +69,15 @@ func (m *MsgCreateVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } + func (m *MsgCreateVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateVestingAccount.Merge(m, src) } + func (m *MsgCreateVestingAccount) XXX_Size() int { return m.Size() } + func (m *MsgCreateVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateVestingAccount.DiscardUnknown(m) } @@ -112,8 +120,7 @@ func (m *MsgCreateVestingAccount) GetDelayed() bool { } // MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. -type MsgCreateVestingAccountResponse struct { -} +type MsgCreateVestingAccountResponse struct{} func (m *MsgCreateVestingAccountResponse) Reset() { *m = MsgCreateVestingAccountResponse{} } func (m *MsgCreateVestingAccountResponse) String() string { return proto.CompactTextString(m) } @@ -121,9 +128,11 @@ func (*MsgCreateVestingAccountResponse) ProtoMessage() {} func (*MsgCreateVestingAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{1} } + func (m *MsgCreateVestingAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgCreateVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateVestingAccountResponse.Marshal(b, m, deterministic) @@ -136,12 +145,15 @@ func (m *MsgCreateVestingAccountResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } + func (m *MsgCreateVestingAccountResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateVestingAccountResponse.Merge(m, src) } + func (m *MsgCreateVestingAccountResponse) XXX_Size() int { return m.Size() } + func (m *MsgCreateVestingAccountResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateVestingAccountResponse.DiscardUnknown(m) } @@ -164,9 +176,11 @@ func (*MsgCreatePermanentLockedAccount) ProtoMessage() {} func (*MsgCreatePermanentLockedAccount) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{2} } + func (m *MsgCreatePermanentLockedAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgCreatePermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreatePermanentLockedAccount.Marshal(b, m, deterministic) @@ -179,12 +193,15 @@ func (m *MsgCreatePermanentLockedAccount) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } + func (m *MsgCreatePermanentLockedAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreatePermanentLockedAccount.Merge(m, src) } + func (m *MsgCreatePermanentLockedAccount) XXX_Size() int { return m.Size() } + func (m *MsgCreatePermanentLockedAccount) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreatePermanentLockedAccount.DiscardUnknown(m) } @@ -215,8 +232,7 @@ func (m *MsgCreatePermanentLockedAccount) GetAmount() github_com_cosmos_cosmos_s // MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. // // Since: cosmos-sdk 0.46 -type MsgCreatePermanentLockedAccountResponse struct { -} +type MsgCreatePermanentLockedAccountResponse struct{} func (m *MsgCreatePermanentLockedAccountResponse) Reset() { *m = MsgCreatePermanentLockedAccountResponse{} @@ -226,9 +242,11 @@ func (*MsgCreatePermanentLockedAccountResponse) ProtoMessage() {} func (*MsgCreatePermanentLockedAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{3} } + func (m *MsgCreatePermanentLockedAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgCreatePermanentLockedAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreatePermanentLockedAccountResponse.Marshal(b, m, deterministic) @@ -241,12 +259,15 @@ func (m *MsgCreatePermanentLockedAccountResponse) XXX_Marshal(b []byte, determin return b[:n], nil } } + func (m *MsgCreatePermanentLockedAccountResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreatePermanentLockedAccountResponse.Merge(m, src) } + func (m *MsgCreatePermanentLockedAccountResponse) XXX_Size() int { return m.Size() } + func (m *MsgCreatePermanentLockedAccountResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreatePermanentLockedAccountResponse.DiscardUnknown(m) } @@ -271,9 +292,11 @@ func (*MsgCreatePeriodicVestingAccount) ProtoMessage() {} func (*MsgCreatePeriodicVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{4} } + func (m *MsgCreatePeriodicVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgCreatePeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreatePeriodicVestingAccount.Marshal(b, m, deterministic) @@ -286,12 +309,15 @@ func (m *MsgCreatePeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } + func (m *MsgCreatePeriodicVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreatePeriodicVestingAccount.Merge(m, src) } + func (m *MsgCreatePeriodicVestingAccount) XXX_Size() int { return m.Size() } + func (m *MsgCreatePeriodicVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreatePeriodicVestingAccount.DiscardUnknown(m) } @@ -330,8 +356,7 @@ func (m *MsgCreatePeriodicVestingAccount) GetVestingPeriods() []Period { // response type. // // Since: cosmos-sdk 0.46 -type MsgCreatePeriodicVestingAccountResponse struct { -} +type MsgCreatePeriodicVestingAccountResponse struct{} func (m *MsgCreatePeriodicVestingAccountResponse) Reset() { *m = MsgCreatePeriodicVestingAccountResponse{} @@ -341,9 +366,11 @@ func (*MsgCreatePeriodicVestingAccountResponse) ProtoMessage() {} func (*MsgCreatePeriodicVestingAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{5} } + func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreatePeriodicVestingAccountResponse.Marshal(b, m, deterministic) @@ -356,12 +383,15 @@ func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Marshal(b []byte, determin return b[:n], nil } } + func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreatePeriodicVestingAccountResponse.Merge(m, src) } + func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Size() int { return m.Size() } + func (m *MsgCreatePeriodicVestingAccountResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreatePeriodicVestingAccountResponse.DiscardUnknown(m) } @@ -384,9 +414,11 @@ func (*MsgCreateCliffVestingAccount) ProtoMessage() {} func (*MsgCreateCliffVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{6} } + func (m *MsgCreateCliffVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgCreateCliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateCliffVestingAccount.Marshal(b, m, deterministic) @@ -399,12 +431,15 @@ func (m *MsgCreateCliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } + func (m *MsgCreateCliffVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateCliffVestingAccount.Merge(m, src) } + func (m *MsgCreateCliffVestingAccount) XXX_Size() int { return m.Size() } + func (m *MsgCreateCliffVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateCliffVestingAccount.DiscardUnknown(m) } @@ -447,8 +482,7 @@ func (m *MsgCreateCliffVestingAccount) GetCliffTime() int64 { } // MsgCreateCliffVestingAccountResponse defines the Msg/CreateVestingAccount response type. -type MsgCreateCliffVestingAccountResponse struct { -} +type MsgCreateCliffVestingAccountResponse struct{} func (m *MsgCreateCliffVestingAccountResponse) Reset() { *m = MsgCreateCliffVestingAccountResponse{} } func (m *MsgCreateCliffVestingAccountResponse) String() string { return proto.CompactTextString(m) } @@ -456,9 +490,11 @@ func (*MsgCreateCliffVestingAccountResponse) ProtoMessage() {} func (*MsgCreateCliffVestingAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{7} } + func (m *MsgCreateCliffVestingAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *MsgCreateCliffVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateCliffVestingAccountResponse.Marshal(b, m, deterministic) @@ -471,12 +507,15 @@ func (m *MsgCreateCliffVestingAccountResponse) XXX_Marshal(b []byte, determinist return b[:n], nil } } + func (m *MsgCreateCliffVestingAccountResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateCliffVestingAccountResponse.Merge(m, src) } + func (m *MsgCreateCliffVestingAccountResponse) XXX_Size() int { return m.Size() } + func (m *MsgCreateCliffVestingAccountResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateCliffVestingAccountResponse.DiscardUnknown(m) } @@ -587,6 +626,7 @@ func (this *MsgCreateVestingAccount) Equal(that interface{}) bool { } return true } + func (this *MsgCreatePermanentLockedAccount) Equal(that interface{}) bool { if that == nil { return this == nil @@ -622,6 +662,7 @@ func (this *MsgCreatePermanentLockedAccount) Equal(that interface{}) bool { } return true } + func (this *MsgCreateCliffVestingAccount) Equal(that interface{}) bool { if that == nil { return this == nil @@ -665,8 +706,10 @@ func (this *MsgCreateCliffVestingAccount) Equal(that interface{}) bool { } // Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +var ( + _ context.Context + _ grpc.ClientConn +) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -759,18 +802,20 @@ type MsgServer interface { } // UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} +type UnimplementedMsgServer struct{} func (*UnimplementedMsgServer) CreateVestingAccount(ctx context.Context, req *MsgCreateVestingAccount) (*MsgCreateVestingAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateVestingAccount not implemented") } + func (*UnimplementedMsgServer) CreatePermanentLockedAccount(ctx context.Context, req *MsgCreatePermanentLockedAccount) (*MsgCreatePermanentLockedAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePermanentLockedAccount not implemented") } + func (*UnimplementedMsgServer) CreatePeriodicVestingAccount(ctx context.Context, req *MsgCreatePeriodicVestingAccount) (*MsgCreatePeriodicVestingAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePeriodicVestingAccount not implemented") } + func (*UnimplementedMsgServer) CreateCliffVestingAccount(ctx context.Context, req *MsgCreateCliffVestingAccount) (*MsgCreateCliffVestingAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateCliffVestingAccount not implemented") } @@ -1213,6 +1258,7 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *MsgCreateVestingAccount) Size() (n int) { if m == nil { return 0 @@ -1359,9 +1405,11 @@ func (m *MsgCreateCliffVestingAccountResponse) Size() (n int) { func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *MsgCreateVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1549,6 +1597,7 @@ func (m *MsgCreateVestingAccount) Unmarshal(dAtA []byte) error { } return nil } + func (m *MsgCreateVestingAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1599,6 +1648,7 @@ func (m *MsgCreateVestingAccountResponse) Unmarshal(dAtA []byte) error { } return nil } + func (m *MsgCreatePermanentLockedAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1747,6 +1797,7 @@ func (m *MsgCreatePermanentLockedAccount) Unmarshal(dAtA []byte) error { } return nil } + func (m *MsgCreatePermanentLockedAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1797,6 +1848,7 @@ func (m *MsgCreatePermanentLockedAccountResponse) Unmarshal(dAtA []byte) error { } return nil } + func (m *MsgCreatePeriodicVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1964,6 +2016,7 @@ func (m *MsgCreatePeriodicVestingAccount) Unmarshal(dAtA []byte) error { } return nil } + func (m *MsgCreatePeriodicVestingAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2014,6 +2067,7 @@ func (m *MsgCreatePeriodicVestingAccountResponse) Unmarshal(dAtA []byte) error { } return nil } + func (m *MsgCreateCliffVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2200,6 +2254,7 @@ func (m *MsgCreateCliffVestingAccount) Unmarshal(dAtA []byte) error { } return nil } + func (m *MsgCreateCliffVestingAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2250,6 +2305,7 @@ func (m *MsgCreateCliffVestingAccountResponse) Unmarshal(dAtA []byte) error { } return nil } + func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/vesting/types/vesting.pb.go b/x/vesting/types/vesting.pb.go index c85c68ce..4b3b87a1 100644 --- a/x/vesting/types/vesting.pb.go +++ b/x/vesting/types/vesting.pb.go @@ -5,21 +5,24 @@ package types import ( fmt "fmt" + io "io" + math "math" + math_bits "math/bits" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types1 "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" types "github.com/cosmos/cosmos-sdk/x/auth/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -43,9 +46,11 @@ func (*BaseVestingAccount) ProtoMessage() {} func (*BaseVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{0} } + func (m *BaseVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *BaseVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_BaseVestingAccount.Marshal(b, m, deterministic) @@ -58,12 +63,15 @@ func (m *BaseVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } + func (m *BaseVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_BaseVestingAccount.Merge(m, src) } + func (m *BaseVestingAccount) XXX_Size() int { return m.Size() } + func (m *BaseVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_BaseVestingAccount.DiscardUnknown(m) } @@ -83,9 +91,11 @@ func (*ContinuousVestingAccount) ProtoMessage() {} func (*ContinuousVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{1} } + func (m *ContinuousVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *ContinuousVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ContinuousVestingAccount.Marshal(b, m, deterministic) @@ -98,12 +108,15 @@ func (m *ContinuousVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } + func (m *ContinuousVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_ContinuousVestingAccount.Merge(m, src) } + func (m *ContinuousVestingAccount) XXX_Size() int { return m.Size() } + func (m *ContinuousVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_ContinuousVestingAccount.DiscardUnknown(m) } @@ -122,9 +135,11 @@ func (*DelayedVestingAccount) ProtoMessage() {} func (*DelayedVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{2} } + func (m *DelayedVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *DelayedVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DelayedVestingAccount.Marshal(b, m, deterministic) @@ -137,12 +152,15 @@ func (m *DelayedVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } + func (m *DelayedVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_DelayedVestingAccount.Merge(m, src) } + func (m *DelayedVestingAccount) XXX_Size() int { return m.Size() } + func (m *DelayedVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_DelayedVestingAccount.DiscardUnknown(m) } @@ -160,9 +178,11 @@ func (*Period) ProtoMessage() {} func (*Period) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{3} } + func (m *Period) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Period.Marshal(b, m, deterministic) @@ -175,12 +195,15 @@ func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Period) XXX_Merge(src proto.Message) { xxx_messageInfo_Period.Merge(m, src) } + func (m *Period) XXX_Size() int { return m.Size() } + func (m *Period) XXX_DiscardUnknown() { xxx_messageInfo_Period.DiscardUnknown(m) } @@ -214,9 +237,11 @@ func (*PeriodicVestingAccount) ProtoMessage() {} func (*PeriodicVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{4} } + func (m *PeriodicVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *PeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PeriodicVestingAccount.Marshal(b, m, deterministic) @@ -229,12 +254,15 @@ func (m *PeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } + func (m *PeriodicVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_PeriodicVestingAccount.Merge(m, src) } + func (m *PeriodicVestingAccount) XXX_Size() int { return m.Size() } + func (m *PeriodicVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_PeriodicVestingAccount.DiscardUnknown(m) } @@ -255,9 +283,11 @@ func (*PermanentLockedAccount) ProtoMessage() {} func (*PermanentLockedAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{5} } + func (m *PermanentLockedAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *PermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PermanentLockedAccount.Marshal(b, m, deterministic) @@ -270,12 +300,15 @@ func (m *PermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } + func (m *PermanentLockedAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_PermanentLockedAccount.Merge(m, src) } + func (m *PermanentLockedAccount) XXX_Size() int { return m.Size() } + func (m *PermanentLockedAccount) XXX_DiscardUnknown() { xxx_messageInfo_PermanentLockedAccount.DiscardUnknown(m) } @@ -298,9 +331,11 @@ func (*CliffVestingAccount) ProtoMessage() {} func (*CliffVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{6} } + func (m *CliffVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *CliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_CliffVestingAccount.Marshal(b, m, deterministic) @@ -313,12 +348,15 @@ func (m *CliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } + func (m *CliffVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_CliffVestingAccount.Merge(m, src) } + func (m *CliffVestingAccount) XXX_Size() int { return m.Size() } + func (m *CliffVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_CliffVestingAccount.DiscardUnknown(m) } @@ -725,6 +763,7 @@ func encodeVarintVesting(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *BaseVestingAccount) Size() (n int) { if m == nil { return 0 @@ -863,9 +902,11 @@ func (m *CliffVestingAccount) Size() (n int) { func sovVesting(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozVesting(x uint64) (n int) { return sovVesting(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1073,6 +1114,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { } return nil } + func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1178,6 +1220,7 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { } return nil } + func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1264,6 +1307,7 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error { } return nil } + func (m *Period) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1367,6 +1411,7 @@ func (m *Period) Unmarshal(dAtA []byte) error { } return nil } + func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1506,6 +1551,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { } return nil } + func (m *PermanentLockedAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1592,6 +1638,7 @@ func (m *PermanentLockedAccount) Unmarshal(dAtA []byte) error { } return nil } + func (m *CliffVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1716,6 +1763,7 @@ func (m *CliffVestingAccount) Unmarshal(dAtA []byte) error { } return nil } + func skipVesting(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 From 524f2f7745dd138c7dadedf07d4ec883c44f5e98 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:37:20 +0100 Subject: [PATCH 12/29] build(mock): rework mock generation --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6f75c425..f74990b3 100644 --- a/Makefile +++ b/Makefile @@ -376,7 +376,7 @@ mock: ## Generate all the mocks (for tests) @mockgen -source=x/mint/types/expected_keepers.go -package testutil -destination x/mint/testutil/expected_keepers_mocks.go @mockgen -source=x/vesting/types/expected_keepers.go -package testutil -destination x/vesting/testutil/expected_keepers_mocks.go @mockgen -source=x/logic/types/expected_keepers.go -package testutil -destination x/logic/testutil/expected_keepers_mocks.go - @mockgen -destination x/logic/testutil/gas_mocks.go -package testutil github.com/cosmos/cosmos-sdk/store/types GasMeter + @mockgen -destination x/logic/testutil/gas_mocks.go -package testutil cosmossdk.io/store/types GasMeter ## Release: .PHONY: release-assets From ca000b29e68a0a9cf531c05c68eb37c4c62f9454 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:37:50 +0100 Subject: [PATCH 13/29] feat(mint): migrate mint module --- go.mod | 20 +++-- go.sum | 8 +- x/mint/abci.go | 22 +++-- x/mint/keeper/genesis.go | 31 ++++--- x/mint/keeper/genesis_test.go | 6 +- x/mint/keeper/grpc_query.go | 36 +++++--- x/mint/keeper/grpc_query_test.go | 28 ++++-- x/mint/keeper/keeper.go | 93 +++++++------------- x/mint/keeper/keeper_test.go | 6 +- x/mint/keeper/migrations.go | 2 +- x/mint/keeper/msg_server.go | 2 +- x/mint/keeper/msg_server_test.go | 5 +- x/mint/migrations/v3/migrations.go | 15 +++- x/mint/migrations/v3/types/minter.pb.go | 39 +++++--- x/mint/migrations/v3/types/params.go | 12 +-- x/mint/module.go | 50 +++++------ x/mint/module_test.go | 13 ++- x/mint/simulation/genesis.go | 18 ++-- x/mint/simulation/genesis_test.go | 9 +- x/mint/simulation/proposals.go | 4 +- x/mint/simulation/proposals_test.go | 4 +- x/mint/testutil/expected_keepers_mocks.go | 32 +++---- x/mint/types/expected_keepers.go | 19 ++-- x/mint/types/minter.go | 14 +-- x/mint/types/minter_test.go | 28 +++--- x/mint/types/params.go | 10 ++- x/vesting/testutil/expected_keepers_mocks.go | 2 +- 27 files changed, 295 insertions(+), 233 deletions(-) diff --git a/go.mod b/go.mod index dd43102a..64675dd7 100644 --- a/go.mod +++ b/go.mod @@ -4,18 +4,25 @@ go 1.21 require ( cosmossdk.io/api v0.7.2 + cosmossdk.io/client/v2 v2.0.0-beta.1 + cosmossdk.io/collections v0.4.0 + cosmossdk.io/core v0.11.0 + cosmossdk.io/depinject v1.0.0-alpha.4 cosmossdk.io/errors v1.0.0 cosmossdk.io/log v1.2.1 cosmossdk.io/math v1.2.0 cosmossdk.io/store v1.0.0 + cosmossdk.io/tools/confix v0.1.0 + cosmossdk.io/x/circuit v0.1.0 cosmossdk.io/x/evidence v0.1.0 cosmossdk.io/x/feegrant v0.1.0 + cosmossdk.io/x/tx v0.12.0 cosmossdk.io/x/upgrade v0.1.0 github.com/CosmWasm/wasmd v0.50.0 github.com/Masterminds/sprig/v3 v3.2.3 - github.com/armon/go-metrics v0.4.1 github.com/cometbft/cometbft v0.38.1 github.com/cometbft/cometbft-db v0.8.0 + github.com/cosmos/cosmos-db v1.0.0 github.com/cosmos/cosmos-proto v1.0.0-beta.3 github.com/cosmos/cosmos-sdk v0.50.1 github.com/cosmos/gogoproto v1.4.11 @@ -25,6 +32,7 @@ require ( github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.3 github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/hashicorp/go-metrics v0.5.1 github.com/ichiban/prolog v1.1.0 github.com/ignite/cli v0.27.1 github.com/nuts-foundation/go-did v0.4.0 @@ -35,6 +43,7 @@ require ( github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 + github.com/spf13/viper v1.17.0 github.com/stretchr/testify v1.8.4 golang.org/x/net v0.19.0 google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a @@ -62,10 +71,6 @@ require ( cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.3 // indirect cloud.google.com/go/storage v1.30.1 // indirect - cosmossdk.io/collections v0.4.0 // indirect - cosmossdk.io/core v0.11.0 // indirect - cosmossdk.io/depinject v1.0.0-alpha.4 // indirect - cosmossdk.io/x/tx v0.12.0 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect @@ -96,13 +101,14 @@ require ( github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect github.com/cosmos/btcutil v1.0.5 // indirect - github.com/cosmos/cosmos-db v1.0.0 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.0.0 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect + github.com/creachadair/atomicfile v0.3.1 // indirect + github.com/creachadair/tomledit v0.0.24 // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect @@ -150,7 +156,6 @@ require ( github.com/hashicorp/go-getter v1.7.1 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-metrics v0.5.1 // indirect github.com/hashicorp/go-plugin v1.5.2 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-version v1.6.0 // indirect @@ -225,7 +230,6 @@ require ( github.com/smarty/assertions v1.15.0 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/afero v1.10.0 // indirect - github.com/spf13/viper v1.17.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect diff --git a/go.sum b/go.sum index 868e190d..2c978782 100644 --- a/go.sum +++ b/go.sum @@ -205,6 +205,8 @@ cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= cosmossdk.io/store v1.0.0 h1:6tnPgTpTSIskaTmw/4s5C9FARdgFflycIc9OX8i1tOI= cosmossdk.io/store v1.0.0/go.mod h1:ABMprwjvx6IpMp8l06TwuMrj6694/QP5NIW+X6jaTYc= +cosmossdk.io/tools/confix v0.1.0 h1:2OOZTtQsDT5e7P3FM5xqM0bPfluAxZlAwxqaDmYBE+E= +cosmossdk.io/tools/confix v0.1.0/go.mod h1:TdXKVYs4gEayav5wM+JHT+kTU2J7fozFNqoVaN+8CdY= cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= cosmossdk.io/x/circuit v0.1.0/go.mod h1:YDzblVE8+E+urPYQq5kq5foRY/IzhXovSYXb4nwd39w= cosmossdk.io/x/evidence v0.1.0 h1:J6OEyDl1rbykksdGynzPKG5R/zm6TacwW2fbLTW4nCk= @@ -276,8 +278,6 @@ github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= -github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= @@ -416,6 +416,10 @@ github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwc github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creachadair/atomicfile v0.3.1 h1:yQORkHjSYySh/tv5th1dkKcn02NEW5JleB84sjt+W4Q= +github.com/creachadair/atomicfile v0.3.1/go.mod h1:mwfrkRxFKwpNAflYZzytbSwxvbK6fdGRRlp0KEQc0qU= +github.com/creachadair/tomledit v0.0.24 h1:5Xjr25R2esu1rKCbQEmjZYlrhFkDspoAbAKb6QKQDhQ= +github.com/creachadair/tomledit v0.0.24/go.mod h1:9qHbShRWQzSCcn617cMzg4eab1vbLCOjOshAWSzWr8U= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= diff --git a/x/mint/abci.go b/x/mint/abci.go index 0255a250..3f069e9e 100644 --- a/x/mint/abci.go +++ b/x/mint/abci.go @@ -1,6 +1,7 @@ package mint import ( + "context" "time" "github.com/cosmos/cosmos-sdk/telemetry" @@ -11,22 +12,30 @@ import ( ) // BeginBlocker mints new tokens for the previous block. -func BeginBlocker(ctx sdk.Context, k keeper.Keeper) { +func BeginBlocker(ctx context.Context, k keeper.Keeper) error { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker) // fetch stored params - params := k.GetParams(ctx) + params, err := k.Params.Get(ctx) + if err != nil { + return err + } // recalculate inflation rate totalSupply := k.TokenSupply(ctx, params.MintDenom) - bondedRatio := k.BondedRatio(ctx) + bondedRatio, err := k.BondedRatio(ctx) + if err != nil { + return err + } minter, err := types.NewMinterWithInflationCoef(params.InflationCoef, bondedRatio, totalSupply) if err != nil { panic(err) } - k.SetMinter(ctx, minter) + if err = k.Minter.Set(ctx, minter); err != nil { + return err + } // mint coins, update supply mintedCoin := minter.BlockProvision(params) @@ -47,7 +56,8 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) { defer telemetry.ModuleSetGauge(types.ModuleName, float32(mintedCoin.Amount.Int64()), "minted_tokens") } - ctx.EventManager().EmitEvent( + sdkCtx := sdk.UnwrapSDKContext(ctx) + sdkCtx.EventManager().EmitEvent( sdk.NewEvent( types.EventTypeMint, sdk.NewAttribute(types.AttributeKeyBondedRatio, bondedRatio.String()), @@ -56,4 +66,6 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) { sdk.NewAttribute(sdk.AttributeKeyAmount, mintedCoin.Amount.String()), ), ) + + return nil } diff --git a/x/mint/keeper/genesis.go b/x/mint/keeper/genesis.go index 7f6b088c..19ab12b4 100644 --- a/x/mint/keeper/genesis.go +++ b/x/mint/keeper/genesis.go @@ -1,26 +1,35 @@ package keeper import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/mint/types" ) -// InitGenesis new mint genesis. -func (k Keeper) InitGenesis(ctx sdk.Context, ak types.AccountKeeper, data *types.GenesisState) { - k.SetMinter(ctx, data.Minter) - err := k.SetParams(ctx, data.Params) - if err != nil { - panic(errorsmod.Wrapf(err, "error setting params")) +// InitGenesis new mint genesis +func (keeper Keeper) InitGenesis(ctx sdk.Context, ak types.AccountKeeper, data *types.GenesisState) { + if err := keeper.Minter.Set(ctx, data.Minter); err != nil { + panic(err) + } + + if err := keeper.Params.Set(ctx, data.Params); err != nil { + panic(err) } + ak.GetModuleAccount(ctx, types.ModuleName) } // ExportGenesis returns a GenesisState for a given context and keeper. -func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState { - minter := k.GetMinter(ctx) - params := k.GetParams(ctx) +func (keeper Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState { + minter, err := keeper.Minter.Get(ctx) + if err != nil { + panic(err) + } + + params, err := keeper.Params.Get(ctx) + if err != nil { + panic(err) + } + return types.NewGenesisState(minter, params) } diff --git a/x/mint/keeper/genesis_test.go b/x/mint/keeper/genesis_test.go index 959484a9..d303e933 100644 --- a/x/mint/keeper/genesis_test.go +++ b/x/mint/keeper/genesis_test.go @@ -6,8 +6,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" + storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" - storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" @@ -58,10 +58,10 @@ func (s *GenesisTestSuite) SetupTest() { func (s *GenesisTestSuite) TestImportExportGenesis() { genesisState := types.DefaultGenesisState() - genesisState.Minter = types.NewMinter(sdk.OneDec(), sdk.NewDecWithPrec(20, 2)) + genesisState.Minter = types.NewMinter(sdk.OneDec(), math.LegacyNewDecWithPrec(20, 2)) genesisState.Params = types.NewParams( "testDenom", - sdk.NewDecWithPrec(69, 2), + math.LegacyNewDecWithPrec(69, 2), uint64(60*60*8766/5), ) diff --git a/x/mint/keeper/grpc_query.go b/x/mint/keeper/grpc_query.go index ce2006c7..8a940450 100644 --- a/x/mint/keeper/grpc_query.go +++ b/x/mint/keeper/grpc_query.go @@ -3,35 +3,47 @@ package keeper import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okp4/okp4d/x/mint/types" ) -var _ types.QueryServer = Keeper{} +var _ types.QueryServer = queryServer{} + +func NewQueryServerImpl(k Keeper) types.QueryServer { + return queryServer{k} +} + +type queryServer struct { + k Keeper +} // Params returns params of the mint module. -func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - params := k.GetParams(ctx) +func (q queryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { + params, err := q.k.Params.Get(c) + if err != nil { + return nil, err + } return &types.QueryParamsResponse{Params: params}, nil } // Inflation returns minter.Inflation of the mint module. -func (k Keeper) Inflation(c context.Context, _ *types.QueryInflationRequest) (*types.QueryInflationResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - minter := k.GetMinter(ctx) +func (q queryServer) Inflation(c context.Context, _ *types.QueryInflationRequest) (*types.QueryInflationResponse, error) { + minter, err := q.k.Minter.Get(c) + if err != nil { + return nil, err + } return &types.QueryInflationResponse{Inflation: minter.Inflation}, nil } // AnnualProvisions returns minter.AnnualProvisions of the mint module. -func (k Keeper) AnnualProvisions(c context.Context, +func (q queryServer) AnnualProvisions(c context.Context, _ *types.QueryAnnualProvisionsRequest, ) (*types.QueryAnnualProvisionsResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - minter := k.GetMinter(ctx) + minter, err := q.k.Minter.Get(c) + if err != nil { + return nil, err + } return &types.QueryAnnualProvisionsResponse{AnnualProvisions: minter.AnnualProvisions}, nil } diff --git a/x/mint/keeper/grpc_query_test.go b/x/mint/keeper/grpc_query_test.go index c150871a..7019e411 100644 --- a/x/mint/keeper/grpc_query_test.go +++ b/x/mint/keeper/grpc_query_test.go @@ -4,9 +4,12 @@ import ( gocontext "context" "testing" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" + storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" @@ -30,8 +33,8 @@ type MintTestSuite struct { func (suite *MintTestSuite) SetupTest() { encCfg := moduletestutil.MakeTestEncodingConfig(mint.AppModuleBasic{}) - key := sdk.NewKVStoreKey(types.StoreKey) - testCtx := testutil.DefaultContextWithDB(suite.T(), key, sdk.NewTransientStoreKey("transient_test")) + key := storetypes.NewKVStoreKey(types.StoreKey) + testCtx := testutil.DefaultContextWithDB(suite.T(), key, storetypes.NewTransientStoreKey("transient_test")) suite.ctx = testCtx.Ctx // gomock initializations @@ -44,7 +47,7 @@ func (suite *MintTestSuite) SetupTest() { suite.mintKeeper = keeper.NewKeeper( encCfg.Codec, - key, + runtime.NewKVStoreService(key), stakingKeeper, accountKeeper, bankKeeper, @@ -52,12 +55,13 @@ func (suite *MintTestSuite) SetupTest() { authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) - err := suite.mintKeeper.SetParams(suite.ctx, types.DefaultParams()) + err := suite.mintKeeper.Params.Set(suite.ctx, types.DefaultParams()) + suite.Require().NoError(err) + err = suite.mintKeeper.Minter.Set(suite.ctx, types.DefaultInitialMinter()) suite.Require().NoError(err) - suite.mintKeeper.SetMinter(suite.ctx, types.DefaultInitialMinter()) queryHelper := baseapp.NewQueryServerTestHelper(testCtx.Ctx, encCfg.InterfaceRegistry) - types.RegisterQueryServer(queryHelper, suite.mintKeeper) + types.RegisterQueryServer(queryHelper, keeper.NewQueryServerImpl(suite.mintKeeper)) suite.queryClient = types.NewQueryClient(queryHelper) } @@ -65,15 +69,21 @@ func (suite *MintTestSuite) SetupTest() { func (suite *MintTestSuite) TestGRPCParams() { params, err := suite.queryClient.Params(gocontext.Background(), &types.QueryParamsRequest{}) suite.Require().NoError(err) - suite.Require().Equal(params.Params, suite.mintKeeper.GetParams(suite.ctx)) + kParams, err := suite.mintKeeper.Params.Get(suite.ctx) + suite.Require().NoError(err) + suite.Require().Equal(params.Params, kParams) inflation, err := suite.queryClient.Inflation(gocontext.Background(), &types.QueryInflationRequest{}) suite.Require().NoError(err) - suite.Require().Equal(inflation.Inflation, suite.mintKeeper.GetMinter(suite.ctx).Inflation) + minter, err := suite.mintKeeper.Minter.Get(suite.ctx) + suite.Require().NoError(err) + suite.Require().Equal(inflation.Inflation, minter) annualProvisions, err := suite.queryClient.AnnualProvisions(gocontext.Background(), &types.QueryAnnualProvisionsRequest{}) suite.Require().NoError(err) - suite.Require().Equal(annualProvisions.AnnualProvisions, suite.mintKeeper.GetMinter(suite.ctx).AnnualProvisions) + minter, err = suite.mintKeeper.Minter.Get(suite.ctx) + suite.Require().NoError(err) + suite.Require().Equal(annualProvisions.AnnualProvisions, minter) } func TestMintTestSuite(t *testing.T) { diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index 91ac6c65..af7d4402 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -1,12 +1,16 @@ package keeper import ( - "github.com/cometbft/cometbft/libs/log" + "context" + + "cosmossdk.io/core/store" + + "cosmossdk.io/collections" + "cosmossdk.io/log" "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" - storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/mint/types" @@ -14,19 +18,23 @@ import ( // Keeper of the mint store. type Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey + cdc codec.BinaryCodec + storeService store.KVStoreService // the address capable of executing a MsgUpdateParams message. Typically, this should be the x/gov module account. authority sdk.AccAddress stakingKeeper types.StakingKeeper bankKeeper types.BankKeeper feeCollectorName string + + Schema collections.Schema + Params collections.Item[types.Params] + Minter collections.Item[types.Minter] } // NewKeeper creates a new mint Keeper instance. func NewKeeper( cdc codec.BinaryCodec, - key storetypes.StoreKey, + storeService store.KVStoreService, sk types.StakingKeeper, ak types.AccountKeeper, bk types.BankKeeper, @@ -47,14 +55,25 @@ func NewKeeper( panic(err) } - return Keeper{ + sb := collections.NewSchemaBuilder(storeService) + k := Keeper{ cdc: cdc, - storeKey: key, + storeService: storeService, authority: addr, stakingKeeper: sk, bankKeeper: bk, feeCollectorName: feeCollectorName, + Params: collections.NewItem(sb, types.ParamsKey, "params", codec.CollValue[types.Params](cdc)), + Minter: collections.NewItem(sb, types.MinterKey, "minter", codec.CollValue[types.Minter](cdc)), + } + + schema, err := sb.Build() + if err != nil { + panic(err) } + k.Schema = schema + + return k } // GetAuthority returns the x/mint module's authority. @@ -63,76 +82,32 @@ func (k Keeper) GetAuthority() string { } // Logger returns a module-specific logger. -func (k Keeper) Logger(ctx sdk.Context) log.Logger { - return ctx.Logger().With("module", "x/"+types.ModuleName) -} - -// GetMinter get the minter. -func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter) { - store := ctx.KVStore(k.storeKey) - b := store.Get(types.MinterKey) - if b == nil { - panic("stored minter should not have been nil") - } - - k.cdc.MustUnmarshal(b, &minter) - return -} - -// SetMinter set the minter. -func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter) { - store := ctx.KVStore(k.storeKey) - b := k.cdc.MustMarshal(&minter) - store.Set(types.MinterKey, b) -} - -// GetParams returns the total set of minting parameters. -func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - store := ctx.KVStore(k.storeKey) - bz := store.Get(types.ParamsKey) - if bz == nil { - return params - } - k.cdc.MustUnmarshal(bz, ¶ms) - return params -} - -// SetParams sets the total set of minting parameters. -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { - if err := params.Validate(); err != nil { - return err - } - - store := ctx.KVStore(k.storeKey) - bz, err := k.cdc.Marshal(¶ms) - if err != nil { - return err - } - store.Set(types.ParamsKey, bz) - return nil +func (k Keeper) Logger(ctx context.Context) log.Logger { + sdkCtx := sdk.UnwrapSDKContext(ctx) + return sdkCtx.Logger().With("module", "x/"+types.ModuleName) } // TokenSupply implements an alias call to the underlying bank keeper's // TokenSupply to be used in BeginBlocker. -func (k Keeper) TokenSupply(ctx sdk.Context, denom string) math.Int { +func (k Keeper) TokenSupply(ctx context.Context, denom string) math.Int { return k.bankKeeper.GetSupply(ctx, denom).Amount } // StakingTokenSupply implements an alias call to the underlying staking keeper's // StakingTokenSupply to be used in BeginBlocker. -func (k Keeper) StakingTokenSupply(ctx sdk.Context) math.Int { +func (k Keeper) StakingTokenSupply(ctx context.Context) (math.Int, error) { return k.stakingKeeper.StakingTokenSupply(ctx) } // BondedRatio implements an alias call to the underlying staking keeper's // BondedRatio to be used in BeginBlocker. -func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec { +func (k Keeper) BondedRatio(ctx context.Context) (math.LegacyDec, error) { return k.stakingKeeper.BondedRatio(ctx) } // MintCoins implements an alias call to the underlying supply keeper's // MintCoins to be used in BeginBlocker. -func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error { +func (k Keeper) MintCoins(ctx context.Context, newCoins sdk.Coins) error { if newCoins.Empty() { // skip as no coins need to be minted return nil @@ -143,6 +118,6 @@ func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error { // AddCollectedFees implements an alias call to the underlying supply keeper's // AddCollectedFees to be used in BeginBlocker. -func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error { +func (k Keeper) AddCollectedFees(ctx context.Context, fees sdk.Coins) error { return k.bankKeeper.SendCoinsFromModuleToModule(ctx, types.ModuleName, k.feeCollectorName, fees) } diff --git a/x/mint/keeper/keeper_test.go b/x/mint/keeper/keeper_test.go index 4623bc10..53b7d280 100644 --- a/x/mint/keeper/keeper_test.go +++ b/x/mint/keeper/keeper_test.go @@ -78,7 +78,7 @@ func (s *IntegrationTestSuite) TestParams() { name: "set invalid params", input: types.Params{ MintDenom: sdk.DefaultBondDenom, - InflationCoef: sdk.NewDecWithPrec(-73, 2), + InflationCoef: math.LegacyNewDecWithPrec(-73, 2), BlocksPerYear: uint64(60 * 60 * 8766 / 5), }, expectErr: true, @@ -87,7 +87,7 @@ func (s *IntegrationTestSuite) TestParams() { name: "set full valid params", input: types.Params{ MintDenom: sdk.DefaultBondDenom, - InflationCoef: sdk.NewDecWithPrec(73, 2), + InflationCoef: math.LegacyNewDecWithPrec(73, 2), BlocksPerYear: uint64(60 * 60 * 8766 / 5), }, expectErr: false, @@ -118,7 +118,7 @@ func (s *IntegrationTestSuite) TestAliasFunctions() { s.stakingKeeper.EXPECT().StakingTokenSupply(s.ctx).Return(stakingTokenSupply) s.Require().Equal(s.mintKeeper.StakingTokenSupply(s.ctx), stakingTokenSupply) - bondedRatio := sdk.NewDecWithPrec(15, 2) + bondedRatio := math.LegacyNewDecWithPrec(15, 2) s.stakingKeeper.EXPECT().BondedRatio(s.ctx).Return(bondedRatio) s.Require().Equal(s.mintKeeper.BondedRatio(s.ctx), bondedRatio) diff --git a/x/mint/keeper/migrations.go b/x/mint/keeper/migrations.go index 8ed612a9..cf45891b 100644 --- a/x/mint/keeper/migrations.go +++ b/x/mint/keeper/migrations.go @@ -17,5 +17,5 @@ func NewMigrator(keeper Keeper) Migrator { } func (m Migrator) Migrate2to3(ctx sdk.Context) error { - return v3.MigrateStore(ctx, ctx.KVStore(m.keeper.storeKey), m.keeper.cdc) + return v3.MigrateStore(ctx, m.keeper.storeService.OpenKVStore(ctx), m.keeper.cdc) } diff --git a/x/mint/keeper/msg_server.go b/x/mint/keeper/msg_server.go index 4114b03d..9f46a832 100644 --- a/x/mint/keeper/msg_server.go +++ b/x/mint/keeper/msg_server.go @@ -34,7 +34,7 @@ func (ms msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdatePara } ctx := sdk.UnwrapSDKContext(goCtx) - if err := ms.SetParams(ctx, req.Params); err != nil { + if err := ms.Params.Set(ctx, req.Params); err != nil { return nil, err } diff --git a/x/mint/keeper/msg_server_test.go b/x/mint/keeper/msg_server_test.go index ac18821b..24c30c40 100644 --- a/x/mint/keeper/msg_server_test.go +++ b/x/mint/keeper/msg_server_test.go @@ -1,6 +1,7 @@ package keeper_test import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/mint/types" @@ -25,7 +26,7 @@ func (s *IntegrationTestSuite) TestUpdateParams() { Authority: s.mintKeeper.GetAuthority(), Params: types.Params{ MintDenom: sdk.DefaultBondDenom, - InflationCoef: sdk.NewDecWithPrec(-73, 2), + InflationCoef: math.LegacyNewDecWithPrec(-73, 2), BlocksPerYear: uint64(60 * 60 * 8766 / 5), }, }, @@ -37,7 +38,7 @@ func (s *IntegrationTestSuite) TestUpdateParams() { Authority: s.mintKeeper.GetAuthority(), Params: types.Params{ MintDenom: sdk.DefaultBondDenom, - InflationCoef: sdk.NewDecWithPrec(73, 2), + InflationCoef: math.LegacyNewDecWithPrec(73, 2), BlocksPerYear: uint64(60 * 60 * 8766 / 5), }, }, diff --git a/x/mint/migrations/v3/migrations.go b/x/mint/migrations/v3/migrations.go index 1ba114eb..b9dba248 100644 --- a/x/mint/migrations/v3/migrations.go +++ b/x/mint/migrations/v3/migrations.go @@ -1,6 +1,7 @@ package v3 import ( + storetypes "cosmossdk.io/core/store" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" @@ -12,7 +13,7 @@ import ( // version 3. // This version include new/deleted parameters in store. func MigrateStore(ctx sdk.Context, - store sdk.KVStore, + store storetypes.KVStore, cdc codec.BinaryCodec, ) error { logger := ctx.Logger(). @@ -24,8 +25,11 @@ func MigrateStore(ctx sdk.Context, logger.Debug("migrate old mint params with new params") var oldParams oldTypes.Params - d := store.Get(types.ParamsKey) - err := cdc.Unmarshal(d, &oldParams) + d, err := store.Get(types.ParamsKey) + if err != nil { + return err + } + err = cdc.Unmarshal(d, &oldParams) if err != nil { return err } @@ -42,7 +46,10 @@ func MigrateStore(ctx sdk.Context, logger.Debug("migrate minter store") var oldMinter oldTypes.Minter - d = store.Get(types.MinterKey) + d, err = store.Get(types.MinterKey) + if err != nil { + return err + } err = cdc.Unmarshal(d, &oldMinter) if err != nil { return err diff --git a/x/mint/migrations/v3/types/minter.pb.go b/x/mint/migrations/v3/types/minter.pb.go index 14252479..657e8232 100644 --- a/x/mint/migrations/v3/types/minter.pb.go +++ b/x/mint/migrations/v3/types/minter.pb.go @@ -5,19 +5,23 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" + + github_com_cosmos_cosmos_sdk_types "cosmossdk.io/math" + + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -33,9 +37,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // and `target_supply` 230M. type Minter struct { // current annual inflation rate - Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` + Inflation github_com_cosmos_cosmos_sdk_types.LegacyDec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` // current annual expected provisions - AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions"` + AnnualProvisions github_com_cosmos_cosmos_sdk_types.LegacyDec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions"` // target supply at end of period TargetSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=target_supply,json=targetSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"target_supply"` } @@ -46,9 +50,11 @@ func (*Minter) ProtoMessage() {} func (*Minter) Descriptor() ([]byte, []int) { return fileDescriptor_06339c129491fd39, []int{0} } + func (m *Minter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Minter.Marshal(b, m, deterministic) @@ -61,12 +67,15 @@ func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Minter) XXX_Merge(src proto.Message) { xxx_messageInfo_Minter.Merge(m, src) } + func (m *Minter) XXX_Size() int { return m.Size() } + func (m *Minter) XXX_DiscardUnknown() { xxx_messageInfo_Minter.DiscardUnknown(m) } @@ -83,7 +92,7 @@ type Params struct { // type of coin to mint MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` // annual reduction factor inflation rate change - AnnualReductionFactor github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=annual_reduction_factor,json=annualReductionFactor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_reduction_factor"` + AnnualReductionFactor github_com_cosmos_cosmos_sdk_types.LegacyDec `protobuf:"bytes,2,opt,name=annual_reduction_factor,json=annualReductionFactor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_reduction_factor"` // expected blocks per year BlocksPerYear uint64 `protobuf:"varint,3,opt,name=blocks_per_year,json=blocksPerYear,proto3" json:"blocks_per_year,omitempty"` } @@ -93,9 +102,11 @@ func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_06339c129491fd39, []int{1} } + func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Params.Marshal(b, m, deterministic) @@ -108,12 +119,15 @@ func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Params) XXX_Merge(src proto.Message) { xxx_messageInfo_Params.Merge(m, src) } + func (m *Params) XXX_Size() int { return m.Size() } + func (m *Params) XXX_DiscardUnknown() { xxx_messageInfo_Params.DiscardUnknown(m) } @@ -278,6 +292,7 @@ func encodeVarintMint(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *Minter) Size() (n int) { if m == nil { return 0 @@ -314,9 +329,11 @@ func (m *Params) Size() (n int) { func sovMint(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozMint(x uint64) (n int) { return sovMint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *Minter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -469,6 +486,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error { } return nil } + func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -604,6 +622,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } + func skipMint(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/mint/migrations/v3/types/params.go b/x/mint/migrations/v3/types/params.go index 85b9a5ee..e7c6a100 100644 --- a/x/mint/migrations/v3/types/params.go +++ b/x/mint/migrations/v3/types/params.go @@ -5,6 +5,8 @@ import ( "fmt" "strings" + "cosmossdk.io/math" + "sigs.k8s.io/yaml" sdk "github.com/cosmos/cosmos-sdk/types" @@ -18,7 +20,7 @@ var ( ) func NewParams( - mintDenom string, annualReductionFactor sdk.Dec, blocksPerYear uint64, + mintDenom string, annualReductionFactor math.LegacyDec, blocksPerYear uint64, ) Params { return Params{ MintDenom: mintDenom, @@ -31,8 +33,8 @@ func NewParams( func DefaultParams() Params { return Params{ MintDenom: sdk.DefaultBondDenom, - AnnualReductionFactor: sdk.NewDecWithPrec(20, 2), // Tha annual reduction factor is configured to 20% per year - BlocksPerYear: uint64(60 * 60 * 8766 / 5), // assuming 5-second block times + AnnualReductionFactor: math.LegacyNewDecWithPrec(20, 2), // Tha annual reduction factor is configured to 20% per year + BlocksPerYear: uint64(60 * 60 * 8766 / 5), // assuming 5-second block times } } @@ -68,7 +70,7 @@ func validateMintDenom(i interface{}) error { } func validateAnnualReductionFactor(i interface{}) error { - v, ok := i.(sdk.Dec) + v, ok := i.(math.LegacyDec) if !ok { return fmt.Errorf("invalid parameter type: %T", i) } @@ -76,7 +78,7 @@ func validateAnnualReductionFactor(i interface{}) error { if v.IsNegative() { return fmt.Errorf("annual reduction factor cannot be negative: %s", v) } - if v.GT(sdk.OneDec()) { + if v.GT(math.LegacyOneDec()) { return fmt.Errorf("annual reduction factor too large: %s", v) } diff --git a/x/mint/module.go b/x/mint/module.go index b9d133d9..0cacd89f 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -5,10 +5,10 @@ import ( "encoding/json" "fmt" - "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/okp4/okp4d/x/mint/client/cli" "github.com/spf13/cobra" - abci "github.com/cometbft/cometbft/abci/types" + "cosmossdk.io/core/appmodule" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -16,17 +16,21 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/okp4/okp4d/x/mint/client/cli" "github.com/okp4/okp4d/x/mint/keeper" "github.com/okp4/okp4d/x/mint/simulation" "github.com/okp4/okp4d/x/mint/types" ) var ( - _ module.AppModule = AppModule{} - _ module.AppModuleBasic = AppModuleBasic{} + _ module.AppModuleBasic = AppModule{} _ module.AppModuleSimulation = AppModule{} + _ module.HasGenesis = AppModule{} + _ module.HasServices = AppModule{} + + _ appmodule.AppModule = AppModule{} + _ appmodule.HasBeginBlocker = AppModule{} ) // AppModuleBasic defines the basic application module used by the mint module. @@ -34,8 +38,6 @@ type AppModuleBasic struct { cdc codec.Codec } -var _ module.AppModuleBasic = AppModuleBasic{} - // Name returns the mint module's name. func (AppModuleBasic) Name() string { return types.ModuleName @@ -65,6 +67,11 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingCo return types.ValidateGenesis(data) } +// GetQueryCmd returns no root query command for the wasm module. +func (b AppModuleBasic) GetQueryCmd() *cobra.Command { + return cli.GetQueryCmd() +} + // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the mint module. func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil { @@ -72,14 +79,6 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *r } } -// GetTxCmd returns no root tx command for the mint module. -func (AppModuleBasic) GetTxCmd() *cobra.Command { return nil } - -// GetQueryCmd returns the root query command for the mint module. -func (AppModuleBasic) GetQueryCmd() *cobra.Command { - return cli.GetQueryCmd() -} - // AppModule implements an application module for the mint module. type AppModule struct { AppModuleBasic @@ -97,19 +96,15 @@ func NewAppModule(cdc codec.Codec, keeper keeper.Keeper, ak types.AccountKeeper) } } -// Name returns the mint module's name. -func (AppModule) Name() string { - return types.ModuleName -} +func (am AppModule) IsOnePerModuleType() {} -// RegisterInvariants registers the mint module invariants. -func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} +func (am AppModule) IsAppModule() {} // RegisterServices registers a gRPC query service to respond to the // module-specific gRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) - types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServerImpl(am.keeper)) migrator := keeper.NewMigrator(am.keeper) @@ -130,12 +125,11 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { // InitGenesis performs genesis initialization for the mint module. It returns // no validator updates. -func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate { +func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) { var genesisState types.GenesisState cdc.MustUnmarshalJSON(data, &genesisState) am.keeper.InitGenesis(ctx, am.authKeeper, &genesisState) - return []abci.ValidatorUpdate{} } // ExportGenesis returns the exported genesis state as raw bytes for the mint @@ -149,8 +143,8 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw func (AppModule) ConsensusVersion() uint64 { return 3 } // BeginBlock returns the begin blocker for the mint module. -func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { - BeginBlocker(ctx, am.keeper) +func (am AppModule) BeginBlock(ctx context.Context) error { + return BeginBlocker(ctx, am.keeper) } // AppModuleSimulation functions @@ -166,8 +160,8 @@ func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedPropo } // RegisterStoreDecoder registers a decoder for mint module's types. -func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { - sdr[types.StoreKey] = simulation.NewDecodeStore(am.cdc) +func (am AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry) { + sdr[types.StoreKey] = simtypes.NewStoreDecoderFuncFromCollectionsSchema(am.keeper.Schema) } // WeightedOperations doesn't return any mint module operation. diff --git a/x/mint/module_test.go b/x/mint/module_test.go index a692efa7..34db3e6d 100644 --- a/x/mint/module_test.go +++ b/x/mint/module_test.go @@ -3,9 +3,10 @@ package mint_test import ( "testing" - "github.com/stretchr/testify/require" + "cosmossdk.io/depinject" + "cosmossdk.io/log" - cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/stretchr/testify/require" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" @@ -17,10 +18,14 @@ import ( func TestItCreatesModuleAccountOnInitBlock(t *testing.T) { var accountKeeper authkeeper.AccountKeeper - app, err := simtestutil.SetupAtGenesis(testutil.AppConfig, &accountKeeper) + app, err := simtestutil.SetupAtGenesis( + depinject.Configs( + testutil.AppConfig, + depinject.Supply(log.NewNopLogger()), + ), &accountKeeper) require.NoError(t, err) - ctx := app.BaseApp.NewContext(false, cmtproto.Header{}) + ctx := app.BaseApp.NewContext(false) acc := accountKeeper.GetAccount(ctx, authtypes.NewModuleAddress(types.ModuleName)) require.NotNil(t, acc) } diff --git a/x/mint/simulation/genesis.go b/x/mint/simulation/genesis.go index c54d5bbb..da8def1c 100644 --- a/x/mint/simulation/genesis.go +++ b/x/mint/simulation/genesis.go @@ -7,6 +7,8 @@ import ( "fmt" "math/rand" + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" @@ -20,13 +22,13 @@ const ( ) // GenInflation randomized Inflation. -func GenInflation(r *rand.Rand) sdk.Dec { - return sdk.NewDecWithPrec(int64(r.Intn(99)), 2) +func GenInflation(r *rand.Rand) math.LegacyDec { + return math.LegacyNewDecWithPrec(int64(r.Intn(99)), 2) } // GenInflationCoefMax randomized AnnualReductionFactor. -func GenInflationCoefMax(_ *rand.Rand) sdk.Dec { - return sdk.NewDecWithPrec(73, 3) +func GenInflationCoefMax(_ *rand.Rand) math.LegacyDec { + return math.LegacyNewDecWithPrec(73, 3) } // RandomizedGenState generates a random GenesisState for mint. @@ -34,17 +36,17 @@ func GenInflationCoefMax(_ *rand.Rand) sdk.Dec { //nolint:forbidigo func RandomizedGenState(simState *module.SimulationState) { // minter - var inflation sdk.Dec + var inflation math.LegacyDec simState.AppParams.GetOrGenerate( - simState.Cdc, Inflation, &inflation, simState.Rand, + Inflation, &inflation, simState.Rand, func(r *rand.Rand) { inflation = GenInflation(r) }, ) // params - var inflationCoef sdk.Dec + var inflationCoef math.LegacyDec simState.AppParams.GetOrGenerate( - simState.Cdc, InflationCoef, &inflationCoef, simState.Rand, + InflationCoef, &inflationCoef, simState.Rand, func(r *rand.Rand) { inflationCoef = GenInflationCoefMax(r) }, ) diff --git a/x/mint/simulation/genesis_test.go b/x/mint/simulation/genesis_test.go index 6fcdf4f9..b858869f 100644 --- a/x/mint/simulation/genesis_test.go +++ b/x/mint/simulation/genesis_test.go @@ -8,11 +8,10 @@ import ( "github.com/stretchr/testify/require" - sdkmath "cosmossdk.io/math" + "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -35,7 +34,7 @@ func TestRandomizedGenState(t *testing.T) { Rand: r, NumBonded: 3, Accounts: simtypes.RandomAccounts(r, 3), - InitialStake: sdkmath.NewInt(1000), + InitialStake: math.NewInt(1000), GenState: make(map[string]json.RawMessage), } @@ -44,8 +43,8 @@ func TestRandomizedGenState(t *testing.T) { var mintGenesis types.GenesisState simState.Cdc.MustUnmarshalJSON(simState.GenState[types.ModuleName], &mintGenesis) - inflationCoef := sdk.NewDecWithPrec(3, 2) - bondedRatio := sdk.NewDecWithPrec(2, 1) + inflationCoef := math.LegacyNewDecWithPrec(3, 2) + bondedRatio := math.LegacyNewDecWithPrec(2, 1) minter, _ := types.NewMinterWithInflationCoef(inflationCoef, bondedRatio, simState.InitialStake) require.Equal(t, uint64(6311520), mintGenesis.Params.BlocksPerYear) diff --git a/x/mint/simulation/proposals.go b/x/mint/simulation/proposals.go index 1818cb9c..72edfbdb 100644 --- a/x/mint/simulation/proposals.go +++ b/x/mint/simulation/proposals.go @@ -3,6 +3,8 @@ package simulation import ( "math/rand" + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/address" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -36,7 +38,7 @@ func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) params := types.DefaultParams() params.BlocksPerYear = uint64(simtypes.RandIntBetween(r, 1, 1000000)) - params.InflationCoef = sdk.NewDecWithPrec(int64(simtypes.RandIntBetween(r, 1, 100)), 2) + params.InflationCoef = math.LegacyNewDecWithPrec(int64(simtypes.RandIntBetween(r, 1, 100)), 2) params.MintDenom = simtypes.RandStringOfLength(r, 10) return &types.MsgUpdateParams{ diff --git a/x/mint/simulation/proposals_test.go b/x/mint/simulation/proposals_test.go index 7e1a2176..d7fac019 100644 --- a/x/mint/simulation/proposals_test.go +++ b/x/mint/simulation/proposals_test.go @@ -4,6 +4,8 @@ import ( "math/rand" "testing" + "cosmossdk.io/math" + "gotest.tools/v3/assert" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" @@ -40,6 +42,6 @@ func TestProposalMsgs(t *testing.T) { assert.Equal(t, sdk.AccAddress(address.Module("gov")).String(), msgUpdateParams.Authority) assert.Equal(t, uint64(122877), msgUpdateParams.Params.BlocksPerYear) - assert.DeepEqual(t, sdk.NewDecWithPrec(95, 2), msgUpdateParams.Params.InflationCoef) + assert.DeepEqual(t, math.LegacyNewDecWithPrec(95, 2), msgUpdateParams.Params.InflationCoef) assert.Equal(t, "eAerqyNEUz", msgUpdateParams.Params.MintDenom) } diff --git a/x/mint/testutil/expected_keepers_mocks.go b/x/mint/testutil/expected_keepers_mocks.go index 5355af18..3d05852c 100644 --- a/x/mint/testutil/expected_keepers_mocks.go +++ b/x/mint/testutil/expected_keepers_mocks.go @@ -5,14 +5,12 @@ package testutil import ( + context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - math "cosmossdk.io/math" - types "github.com/cosmos/cosmos-sdk/types" - types0 "github.com/cosmos/cosmos-sdk/x/auth/types" + gomock "github.com/golang/mock/gomock" ) // MockStakingKeeper is a mock of StakingKeeper interface. @@ -39,11 +37,12 @@ func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder { } // BondedRatio mocks base method. -func (m *MockStakingKeeper) BondedRatio(ctx types.Context) types.Dec { +func (m *MockStakingKeeper) BondedRatio(ctx context.Context) (math.LegacyDec, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "BondedRatio", ctx) - ret0, _ := ret[0].(types.Dec) - return ret0 + ret0, _ := ret[0].(math.LegacyDec) + ret1, _ := ret[1].(error) + return ret0, ret1 } // BondedRatio indicates an expected call of BondedRatio. @@ -53,11 +52,12 @@ func (mr *MockStakingKeeperMockRecorder) BondedRatio(ctx interface{}) *gomock.Ca } // StakingTokenSupply mocks base method. -func (m *MockStakingKeeper) StakingTokenSupply(ctx types.Context) math.Int { +func (m *MockStakingKeeper) StakingTokenSupply(ctx context.Context) (math.Int, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "StakingTokenSupply", ctx) ret0, _ := ret[0].(math.Int) - return ret0 + ret1, _ := ret[1].(error) + return ret0, ret1 } // StakingTokenSupply indicates an expected call of StakingTokenSupply. @@ -90,10 +90,10 @@ func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder { } // GetModuleAccount mocks base method. -func (m *MockAccountKeeper) GetModuleAccount(ctx types.Context, moduleName string) types0.ModuleAccountI { +func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types.ModuleAccountI { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetModuleAccount", ctx, moduleName) - ret0, _ := ret[0].(types0.ModuleAccountI) + ret0, _ := ret[0].(types.ModuleAccountI) return ret0 } @@ -118,7 +118,7 @@ func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name interface{}) *gom } // SetModuleAccount mocks base method. -func (m *MockAccountKeeper) SetModuleAccount(arg0 types.Context, arg1 types0.ModuleAccountI) { +func (m *MockAccountKeeper) SetModuleAccount(arg0 context.Context, arg1 types.ModuleAccountI) { m.ctrl.T.Helper() m.ctrl.Call(m, "SetModuleAccount", arg0, arg1) } @@ -153,7 +153,7 @@ func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder { } // GetSupply mocks base method. -func (m *MockBankKeeper) GetSupply(ctx types.Context, denom string) types.Coin { +func (m *MockBankKeeper) GetSupply(ctx context.Context, denom string) types.Coin { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSupply", ctx, denom) ret0, _ := ret[0].(types.Coin) @@ -167,7 +167,7 @@ func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom interface{}) *gomock. } // MintCoins mocks base method. -func (m *MockBankKeeper) MintCoins(ctx types.Context, name string, amt types.Coins) error { +func (m *MockBankKeeper) MintCoins(ctx context.Context, name string, amt types.Coins) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "MintCoins", ctx, name, amt) ret0, _ := ret[0].(error) @@ -181,7 +181,7 @@ func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, name, amt interface{}) *gom } // SendCoinsFromModuleToAccount mocks base method. -func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error { +func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SendCoinsFromModuleToAccount", ctx, senderModule, recipientAddr, amt) ret0, _ := ret[0].(error) @@ -195,7 +195,7 @@ func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderMo } // SendCoinsFromModuleToModule mocks base method. -func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx types.Context, senderModule, recipientModule string, amt types.Coins) error { +func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt types.Coins) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SendCoinsFromModuleToModule", ctx, senderModule, recipientModule, amt) ret0, _ := ret[0].(error) diff --git a/x/mint/types/expected_keepers.go b/x/mint/types/expected_keepers.go index 919a6841..cf0ec5d6 100644 --- a/x/mint/types/expected_keepers.go +++ b/x/mint/types/expected_keepers.go @@ -1,16 +1,17 @@ package types // noalias import ( + "context" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" ) // StakingKeeper defines the expected staking keeper. type StakingKeeper interface { - StakingTokenSupply(ctx sdk.Context) math.Int - BondedRatio(ctx sdk.Context) sdk.Dec + StakingTokenSupply(ctx context.Context) (math.Int, error) + BondedRatio(ctx context.Context) (math.LegacyDec, error) } // AccountKeeper defines the contract required for account APIs. @@ -18,15 +19,15 @@ type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 - SetModuleAccount(sdk.Context, types.ModuleAccountI) - GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI + SetModuleAccount(context.Context, sdk.ModuleAccountI) + GetModuleAccount(ctx context.Context, moduleName string) sdk.ModuleAccountI } // BankKeeper defines the contract needed to be fulfilled for banking and supply // dependencies. type BankKeeper interface { - GetSupply(ctx sdk.Context, denom string) sdk.Coin - SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error - SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error - MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error + GetSupply(ctx context.Context, denom string) sdk.Coin + SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error + SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error + MintCoins(ctx context.Context, name string, amt sdk.Coins) error } diff --git a/x/mint/types/minter.go b/x/mint/types/minter.go index 17995f8f..a920f4bd 100644 --- a/x/mint/types/minter.go +++ b/x/mint/types/minter.go @@ -10,7 +10,7 @@ import ( // NewMinter returns a new Minter object with the given inflation, annual // provisions values. -func NewMinter(inflation, annualProvisions sdk.Dec) Minter { +func NewMinter(inflation, annualProvisions math.LegacyDec) Minter { return Minter{ Inflation: inflation, AnnualProvisions: annualProvisions, @@ -18,15 +18,15 @@ func NewMinter(inflation, annualProvisions sdk.Dec) Minter { } // NewMinterWithInitialInflation returns an initial Minter object with a given inflation value and zero annual provisions. -func NewMinterWithInitialInflation(inflation sdk.Dec) Minter { +func NewMinterWithInitialInflation(inflation math.LegacyDec) Minter { return NewMinter( inflation, - sdk.NewDec(0), + math.LegacyNewDec(0), ) } // NewMinterWithInflationCoef returns a new Minter with updated inflation and annual provisions values. -func NewMinterWithInflationCoef(inflationCoef sdk.Dec, bondedRatio sdk.Dec, totalSupply math.Int) (Minter, error) { +func NewMinterWithInflationCoef(inflationCoef math.LegacyDec, bondedRatio math.LegacyDec, totalSupply math.Int) (Minter, error) { inflationRate, err := inflationRate(inflationCoef, bondedRatio) if err != nil { return Minter{}, err @@ -40,7 +40,7 @@ func NewMinterWithInflationCoef(inflationCoef sdk.Dec, bondedRatio sdk.Dec, tota // which uses an inflation rate of 0%. func DefaultInitialMinter() Minter { return NewMinterWithInitialInflation( - sdk.NewDec(0), + math.LegacyNewDec(0), ) } @@ -55,7 +55,7 @@ func (m Minter) Validate() error { // inflationRate returns the inflation rate computed from the current bonded ratio // and the inflation parameter. -func inflationRate(inflationCoef sdk.Dec, bondedRatio sdk.Dec) (sdk.Dec, error) { +func inflationRate(inflationCoef math.LegacyDec, bondedRatio math.LegacyDec) (math.LegacyDec, error) { if bondedRatio.IsZero() { return math.LegacyZeroDec(), ErrBondedRatioIsZero } @@ -66,6 +66,6 @@ func inflationRate(inflationCoef sdk.Dec, bondedRatio sdk.Dec) (sdk.Dec, error) // BlockProvision returns the provisions for a block based on the annual // provisions rate. func (m Minter) BlockProvision(params Params) sdk.Coin { - provisionAmt := m.AnnualProvisions.QuoInt(sdk.NewIntFromUint64(params.BlocksPerYear)) + provisionAmt := m.AnnualProvisions.QuoInt(math.NewIntFromUint64(params.BlocksPerYear)) return sdk.NewCoin(params.MintDenom, provisionAmt.TruncateInt()) } diff --git a/x/mint/types/minter_test.go b/x/mint/types/minter_test.go index 45ad74e7..afde1b78 100644 --- a/x/mint/types/minter_test.go +++ b/x/mint/types/minter_test.go @@ -17,40 +17,40 @@ func TestNextInflation(t *testing.T) { Convey("Given a test cases", t, func() { cases := []struct { name string - inflationRatio sdk.Dec - bondedRatio sdk.Dec + inflationRatio math.LegacyDec + bondedRatio math.LegacyDec totalSupply math.Int - expectedInflation sdk.Dec - expectedAnnualProvisions sdk.Dec + expectedInflation math.LegacyDec + expectedAnnualProvisions math.LegacyDec expectedErr error }{ { name: "inflation ratio is 0", inflationRatio: sdk.NewDec(0), - bondedRatio: sdk.NewDecWithPrec(20, 2), + bondedRatio: math.LegacyNewDecWithPrec(20, 2), totalSupply: math.NewInt(1000), expectedInflation: sdk.NewDec(0), expectedAnnualProvisions: sdk.NewDec(0), }, { name: "inflation ratio is 0.03", - inflationRatio: sdk.NewDecWithPrec(3, 2), - bondedRatio: sdk.NewDecWithPrec(2, 1), + inflationRatio: math.LegacyNewDecWithPrec(3, 2), + bondedRatio: math.LegacyNewDecWithPrec(2, 1), totalSupply: math.NewInt(1000), - expectedInflation: sdk.NewDecWithPrec(15, 2), + expectedInflation: math.LegacyNewDecWithPrec(15, 2), expectedAnnualProvisions: sdk.NewDec(150), }, { name: "bonded ratio is 0", - inflationRatio: sdk.NewDecWithPrec(3, 2), + inflationRatio: math.LegacyNewDecWithPrec(3, 2), bondedRatio: sdk.NewDec(0), totalSupply: math.NewInt(1000), expectedErr: fmt.Errorf("bonded ratio is zero"), }, { name: "negative inflation ratio", - inflationRatio: sdk.NewDecWithPrec(3, 2), - bondedRatio: sdk.NewDecWithPrec(-2, 1), + inflationRatio: math.LegacyNewDecWithPrec(3, 2), + bondedRatio: math.LegacyNewDecWithPrec(-2, 1), totalSupply: math.NewInt(1000), expectedErr: fmt.Errorf("mint parameter Inflation should be positive, is -0.150000000000000000"), }, @@ -83,11 +83,11 @@ func TestNextInflation(t *testing.T) { // previously using math.Int operations: // BenchmarkBlockProvision-4 5000000 220 ns/op // -// using sdk.Dec operations: (current implementation) +// using math.LegacyDec operations: (current implementation) // BenchmarkBlockProvision-4 3000000 429 ns/op. func BenchmarkBlockProvision(b *testing.B) { b.ReportAllocs() - minter := NewMinterWithInitialInflation(sdk.NewDecWithPrec(1, 1)) + minter := NewMinterWithInitialInflation(math.LegacyNewDecWithPrec(1, 1)) params := DefaultParams() s1 := rand.NewSource(100) @@ -106,7 +106,7 @@ func BenchmarkNextInflation(b *testing.B) { b.ReportAllocs() params := DefaultParams() - bondedRatio := sdk.NewDecWithPrec(66, 2) + bondedRatio := math.LegacyNewDecWithPrec(66, 2) totalSupply := sdk.NewInt(100000000000000) // run the NextInflationRate function b.N times diff --git a/x/mint/types/params.go b/x/mint/types/params.go index 933cab09..d775796e 100644 --- a/x/mint/types/params.go +++ b/x/mint/types/params.go @@ -5,6 +5,8 @@ import ( "fmt" "strings" + "cosmossdk.io/math" + "sigs.k8s.io/yaml" sdk "github.com/cosmos/cosmos-sdk/types" @@ -12,7 +14,7 @@ import ( // NewParams creates a new Params object. func NewParams( - mintDenom string, inflationCoef sdk.Dec, blocksPerYear uint64, + mintDenom string, inflationCoef math.LegacyDec, blocksPerYear uint64, ) Params { return Params{ MintDenom: mintDenom, @@ -25,7 +27,7 @@ func NewParams( func DefaultParams() Params { return Params{ MintDenom: sdk.DefaultBondDenom, - InflationCoef: sdk.NewDecWithPrec(3, 2), + InflationCoef: math.LegacyNewDecWithPrec(3, 2), BlocksPerYear: uint64(60 * 60 * 8766 / 5), // assuming 5-second block times } } @@ -62,7 +64,7 @@ func validateMintDenom(i interface{}) error { } func validateInflationCoef(i interface{}) error { - v, ok := i.(sdk.Dec) + v, ok := i.(math.LegacyDec) if !ok { return fmt.Errorf("invalid parameter type: %T", i) } @@ -70,7 +72,7 @@ func validateInflationCoef(i interface{}) error { if v.IsNegative() { return fmt.Errorf("inflation coefficient cannot be negative: %s", v) } - if v.GT(sdk.OneDec()) { + if v.GT(math.LegacyOneDec()) { // while there's no theoretical limit to the inflation rate, a coefficient of // 1 or more would lead to hyper-hyperinflation. return fmt.Errorf("inflation coefficient too large: %s", v) diff --git a/x/vesting/testutil/expected_keepers_mocks.go b/x/vesting/testutil/expected_keepers_mocks.go index 1df8f8eb..f27d3b35 100644 --- a/x/vesting/testutil/expected_keepers_mocks.go +++ b/x/vesting/testutil/expected_keepers_mocks.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: x/auth/vesting/types/expected_keepers.go +// Source: x/vesting/types/expected_keepers.go // Package testutil is a generated GoMock package. package testutil From a2b5286729f0c95064783a9883528385e3d09eab Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 23:48:24 +0100 Subject: [PATCH 14/29] feat(logic): migrate logic module --- app/app.go | 1 + x/logic/fs/wasm_test.go | 12 +- x/logic/interpreter/interpreter.go | 6 +- x/logic/interpreter/registry.go | 8 +- x/logic/keeper/grpc_query_ask.go | 6 +- x/logic/keeper/grpc_query_ask_test.go | 2 +- x/logic/keeper/grpc_query_params_test.go | 2 +- x/logic/keeper/interpreter.go | 4 +- x/logic/keeper/keeper.go | 4 +- x/logic/keeper/msg_server_test.go | 2 +- x/logic/meter/safe.go | 10 +- x/logic/meter/weighted.go | 18 +-- x/logic/migrations/v2/types/params.pb.go | 43 +++++-- x/logic/migrations/v3/migrations.go | 2 +- x/logic/module.go | 43 +++---- x/logic/predicate/address_test.go | 13 ++- x/logic/predicate/bank_test.go | 129 +++++++++++---------- x/logic/predicate/block_test.go | 13 ++- x/logic/predicate/builtin_test.go | 8 +- x/logic/predicate/chain_test.go | 13 ++- x/logic/predicate/crypto_test.go | 17 +-- x/logic/predicate/did_test.go | 8 +- x/logic/predicate/encoding_test.go | 8 +- x/logic/predicate/file_test.go | 12 +- x/logic/predicate/json_test.go | 12 +- x/logic/predicate/string_test.go | 17 +-- x/logic/predicate/uri_test.go | 8 +- x/logic/testutil/expected_keepers_mocks.go | 25 ++-- x/logic/testutil/gas_mocks.go | 2 +- x/logic/types/expected_keepers.go | 17 +-- 30 files changed, 249 insertions(+), 216 deletions(-) diff --git a/app/app.go b/app/app.go index e73f442b..455adf5e 100644 --- a/app/app.go +++ b/app/app.go @@ -740,6 +740,7 @@ func New( icatypes.ModuleName, ibcfeetypes.ModuleName, wasmtypes.ModuleName, + logicmoduletypes.ModuleName, ) app.ModuleManager.SetOrderEndBlockers( diff --git a/x/logic/fs/wasm_test.go b/x/logic/fs/wasm_test.go index 97bc475c..bd4b18bf 100644 --- a/x/logic/fs/wasm_test.go +++ b/x/logic/fs/wasm_test.go @@ -8,15 +8,17 @@ import ( "net/url" "testing" + "cosmossdk.io/store/metrics" + "github.com/golang/mock/gomock" . "github.com/smartystreets/goconvey/convey" - tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -122,8 +124,8 @@ func TestWasmHandler(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the uri #%d: %s", nc, tc.uri), func() { Convey("and a wasm keeper initialized with the given values", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) wasmKeeper := testutil.NewMockWasmKeeper(ctrl) ctx := sdk. NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) diff --git a/x/logic/interpreter/interpreter.go b/x/logic/interpreter/interpreter.go index 35a89059..42339410 100644 --- a/x/logic/interpreter/interpreter.go +++ b/x/logic/interpreter/interpreter.go @@ -6,10 +6,10 @@ import ( "io" "io/fs" + storetypes "cosmossdk.io/store/types" + "github.com/ichiban/prolog" "github.com/ichiban/prolog/engine" - - sdk "github.com/cosmos/cosmos-sdk/types" ) // Predicates is a map of predicate names to their execution costs. @@ -20,7 +20,7 @@ type Option func(*prolog.Interpreter) error // WithPredicates configures the interpreter to register the specified predicates. // The predicates names must be present in the registry, otherwise the function will return an error. -func WithPredicates(_ goctx.Context, predicates Predicates, meter sdk.GasMeter) Option { +func WithPredicates(_ goctx.Context, predicates Predicates, meter storetypes.GasMeter) Option { return func(i *prolog.Interpreter) error { for predicate, cost := range predicates { if err := Register(i, predicate, cost, meter); err != nil { diff --git a/x/logic/interpreter/registry.go b/x/logic/interpreter/registry.go index a35c83fd..f46df62a 100644 --- a/x/logic/interpreter/registry.go +++ b/x/logic/interpreter/registry.go @@ -5,11 +5,11 @@ import ( "strconv" "strings" + storetypes "cosmossdk.io/store/types" + "github.com/ichiban/prolog" "github.com/ichiban/prolog/engine" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okp4/okp4d/x/logic/predicate" ) @@ -138,7 +138,7 @@ var RegistryNames = func() []string { // executing the predicate(ctx). // //nolint:lll -func Register(i *prolog.Interpreter, name string, cost uint64, meter sdk.GasMeter) error { +func Register(i *prolog.Interpreter, name string, cost uint64, meter storetypes.GasMeter) error { if p, ok := registry[name]; ok { parts := strings.Split(name, "/") if len(parts) == 2 { @@ -148,7 +148,7 @@ func Register(i *prolog.Interpreter, name string, cost uint64, meter sdk.GasMete return err } - hook := func() sdk.Gas { + hook := func() storetypes.Gas { meter.ConsumeGas(cost, fmt.Sprintf("predicate %s", name)) return meter.GasRemaining() diff --git a/x/logic/keeper/grpc_query_ask.go b/x/logic/keeper/grpc_query_ask.go index c574cbce..520b51ee 100644 --- a/x/logic/keeper/grpc_query_ask.go +++ b/x/logic/keeper/grpc_query_ask.go @@ -3,6 +3,8 @@ package keeper import ( goctx "context" + storetypes "cosmossdk.io/store/types" + errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" @@ -26,7 +28,7 @@ func (k Keeper) Ask(ctx goctx.Context, req *types.QueryServiceAskRequest) (respo sdkCtx = withGasMeter(sdkCtx, limits) defer func() { if r := recover(); r != nil { - if gasError, ok := r.(sdk.ErrorOutOfGas); ok { + if gasError, ok := r.(storetypes.ErrorOutOfGas); ok { response, err = nil, errorsmod.Wrapf( types.LimitExceeded, "out of gas: %s <%s> (%d/%d)", types.ModuleName, gasError.Descriptor, sdkCtx.GasMeter().GasConsumed(), sdkCtx.GasMeter().Limit()) @@ -49,7 +51,7 @@ func (k Keeper) Ask(ctx goctx.Context, req *types.QueryServiceAskRequest) (respo // withGasMeter returns a new context with a gas meter that has the given limit. // The gas meter is go-router-safe. func withGasMeter(sdkCtx sdk.Context, limits types.Limits) sdk.Context { - gasMeter := meter.WithSafeMeter(sdk.NewGasMeter(limits.MaxGas.Uint64())) + gasMeter := meter.WithSafeMeter(storetypes.NewGasMeter(limits.MaxGas.Uint64())) return sdkCtx.WithGasMeter(gasMeter) } diff --git a/x/logic/keeper/grpc_query_ask_test.go b/x/logic/keeper/grpc_query_ask_test.go index 67ceb917..9292af9e 100644 --- a/x/logic/keeper/grpc_query_ask_test.go +++ b/x/logic/keeper/grpc_query_ask_test.go @@ -10,8 +10,8 @@ import ( . "github.com/smartystreets/goconvey/convey" + storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/baseapp" - storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/testutil" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/logic/keeper/grpc_query_params_test.go b/x/logic/keeper/grpc_query_params_test.go index f7eedb30..f7d22bbd 100644 --- a/x/logic/keeper/grpc_query_params_test.go +++ b/x/logic/keeper/grpc_query_params_test.go @@ -12,8 +12,8 @@ import ( "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/baseapp" - storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/testutil" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/logic/keeper/interpreter.go b/x/logic/keeper/interpreter.go index a08451bc..acd805d9 100644 --- a/x/logic/keeper/interpreter.go +++ b/x/logic/keeper/interpreter.go @@ -4,6 +4,8 @@ import ( goctx "context" "math" + storetypes "cosmossdk.io/store/types" + "github.com/ichiban/prolog" "github.com/samber/lo" @@ -98,7 +100,7 @@ func (k Keeper) solsToAnswer(sdkCtx sdk.Context, sols *prolog.Solutions) (*types if err := sols.Err(); err != nil { if sdkCtx.GasMeter().IsOutOfGas() { - panic(sdk.ErrorOutOfGas{Descriptor: "Prolog interpreter execution"}) + panic(storetypes.ErrorOutOfGas{Descriptor: "Prolog interpreter execution"}) } solError = sols.Err().Error() } diff --git a/x/logic/keeper/keeper.go b/x/logic/keeper/keeper.go index eb6ef225..4210f590 100644 --- a/x/logic/keeper/keeper.go +++ b/x/logic/keeper/keeper.go @@ -5,10 +5,10 @@ import ( "fmt" "io/fs" - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" + storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" - storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/types" diff --git a/x/logic/keeper/msg_server_test.go b/x/logic/keeper/msg_server_test.go index 04cb24da..c70c1eed 100644 --- a/x/logic/keeper/msg_server_test.go +++ b/x/logic/keeper/msg_server_test.go @@ -10,7 +10,7 @@ import ( . "github.com/smartystreets/goconvey/convey" - storetypes "github.com/cosmos/cosmos-sdk/store/types" + storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/testutil" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/logic/meter/safe.go b/x/logic/meter/safe.go index 4edf26de..a977b36c 100644 --- a/x/logic/meter/safe.go +++ b/x/logic/meter/safe.go @@ -3,19 +3,19 @@ package meter import ( "sync" - sdk "github.com/cosmos/cosmos-sdk/types" + storetypes "cosmossdk.io/store/types" ) -// safeMeterDecorater is a wrapper around sdk.GasMeter that provides go-routine-safe access to the underlying gas meter. +// safeMeterDecorater is a wrapper around storetypes.GasMeter that provides go-routine-safe access to the underlying gas meter. // This is needed because the interpreter uses multiple go-routines, and the gas meter is shared between multiple // goroutines. type safeMeterDecorater struct { - gasMeter sdk.GasMeter + gasMeter storetypes.GasMeter mutex sync.RWMutex } -// WithSafeMeter returns a new instance of sdk.GasMeter that is go-routine-safe. -func WithSafeMeter(gasMeter sdk.GasMeter) sdk.GasMeter { +// WithSafeMeter returns a new instance of storetypes.GasMeter that is go-routine-safe. +func WithSafeMeter(gasMeter storetypes.GasMeter) storetypes.GasMeter { return &safeMeterDecorater{ gasMeter: gasMeter, } diff --git a/x/logic/meter/weighted.go b/x/logic/meter/weighted.go index 54551f11..7a4a07a0 100644 --- a/x/logic/meter/weighted.go +++ b/x/logic/meter/weighted.go @@ -3,17 +3,17 @@ package meter import ( "math" - "github.com/cosmos/cosmos-sdk/types" + storetypes "cosmossdk.io/store/types" ) // weightedMeterDecorator is decorator that wraps a gas meter and adds a weight multiplier to the consumed gas. type weightedMeterDecorator struct { - decorated types.GasMeter + decorated storetypes.GasMeter weight uint64 } // WithWeightedMeter returns a new weightedMeterDecorator with the given weight. -func WithWeightedMeter(decorated types.GasMeter, weight uint64) types.GasMeter { +func WithWeightedMeter(decorated storetypes.GasMeter, weight uint64) storetypes.GasMeter { return &weightedMeterDecorator{ decorated: decorated, weight: weight, @@ -21,27 +21,27 @@ func WithWeightedMeter(decorated types.GasMeter, weight uint64) types.GasMeter { } // GasConsumed returns the amount of gas consumed by the decorated gas meter. -func (m *weightedMeterDecorator) GasConsumed() types.Gas { +func (m *weightedMeterDecorator) GasConsumed() storetypes.Gas { return m.decorated.GasConsumed() } // GasConsumedToLimit returns the amount of gas consumed by the decorated gas meter. -func (m *weightedMeterDecorator) GasConsumedToLimit() types.Gas { +func (m *weightedMeterDecorator) GasConsumedToLimit() storetypes.Gas { return m.decorated.GasConsumedToLimit() } // GasRemaining returns the amount of gas remaining in the decorated gas meter. -func (m *weightedMeterDecorator) GasRemaining() types.Gas { +func (m *weightedMeterDecorator) GasRemaining() storetypes.Gas { return m.decorated.GasRemaining() } // Limit returns the limit of the decorated gas meter. -func (m *weightedMeterDecorator) Limit() types.Gas { +func (m *weightedMeterDecorator) Limit() storetypes.Gas { return m.decorated.Limit() } // ConsumeGas consumes the given amount of gas from the decorated gas meter. -func (m *weightedMeterDecorator) ConsumeGas(amount types.Gas, descriptor string) { +func (m *weightedMeterDecorator) ConsumeGas(amount storetypes.Gas, descriptor string) { consumed, overflow := multiplyUint64Overflow(m.weight, amount) if overflow { m.decorated.ConsumeGas(math.MaxUint64, descriptor) @@ -51,7 +51,7 @@ func (m *weightedMeterDecorator) ConsumeGas(amount types.Gas, descriptor string) } // RefundGas refunds the given amount of gas to the decorated gas meter. -func (m *weightedMeterDecorator) RefundGas(amount types.Gas, descriptor string) { +func (m *weightedMeterDecorator) RefundGas(amount storetypes.Gas, descriptor string) { consumed, overflow := multiplyUint64Overflow(m.decorated.GasConsumed(), amount) if overflow { m.decorated.RefundGas(math.MaxUint64, descriptor) diff --git a/x/logic/migrations/v2/types/params.pb.go b/x/logic/migrations/v2/types/params.pb.go index dd0d7799..c893bf62 100644 --- a/x/logic/migrations/v2/types/params.pb.go +++ b/x/logic/migrations/v2/types/params.pb.go @@ -13,13 +13,15 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + sdkmath "cosmossdk.io/math" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -42,9 +44,11 @@ func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_55eca4aea58a32e5, []int{0} } + func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Params.Marshal(b, m, deterministic) @@ -57,12 +61,15 @@ func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Params) XXX_Merge(src proto.Message) { xxx_messageInfo_Params.Merge(m, src) } + func (m *Params) XXX_Size() int { return m.Size() } + func (m *Params) XXX_DiscardUnknown() { xxx_messageInfo_Params.DiscardUnknown(m) } @@ -89,13 +96,13 @@ type Limits struct { // executing a request by the interpreter. The interpreter calculates the gas consumption based on the number and type // of operations that are executed, as well as, in some cases, the complexity of the processed data. // nil value remove max gas limitation. - MaxGas *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,1,opt,name=max_gas,json=maxGas,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_gas,omitempty" yaml:"max_gas",omitempty` + MaxGas *sdkmath.Uint `protobuf:"bytes,1,opt,name=max_gas,json=maxGas,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_gas,omitempty" yaml:"max_gas",omitempty` // max_size specifies the maximum size, in bytes, that is accepted for a program. // nil value remove size limitation. - MaxSize *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,3,opt,name=max_size,json=maxSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_size,omitempty" yaml:"max_size"` + MaxSize *sdkmath.Uint `protobuf:"bytes,3,opt,name=max_size,json=maxSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_size,omitempty" yaml:"max_size"` // max_result_count specifies the maximum number of results that can be requested for a query. // nil value remove max result count limitation. - MaxResultCount *github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,2,opt,name=max_result_count,json=maxResultCount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_result_count,omitempty" yaml:"max_result_count"` + MaxResultCount *sdkmath.Uint `protobuf:"bytes,2,opt,name=max_result_count,json=maxResultCount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_result_count,omitempty" yaml:"max_result_count"` } func (m *Limits) Reset() { *m = Limits{} } @@ -104,9 +111,11 @@ func (*Limits) ProtoMessage() {} func (*Limits) Descriptor() ([]byte, []int) { return fileDescriptor_55eca4aea58a32e5, []int{1} } + func (m *Limits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Limits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Limits.Marshal(b, m, deterministic) @@ -119,12 +128,15 @@ func (m *Limits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } + func (m *Limits) XXX_Merge(src proto.Message) { xxx_messageInfo_Limits.Merge(m, src) } + func (m *Limits) XXX_Size() int { return m.Size() } + func (m *Limits) XXX_DiscardUnknown() { xxx_messageInfo_Limits.DiscardUnknown(m) } @@ -148,9 +160,11 @@ func (*Interpreter) ProtoMessage() {} func (*Interpreter) Descriptor() ([]byte, []int) { return fileDescriptor_55eca4aea58a32e5, []int{2} } + func (m *Interpreter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } + func (m *Interpreter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Interpreter.Marshal(b, m, deterministic) @@ -163,12 +177,15 @@ func (m *Interpreter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } + func (m *Interpreter) XXX_Merge(src proto.Message) { xxx_messageInfo_Interpreter.Merge(m, src) } + func (m *Interpreter) XXX_Size() int { return m.Size() } + func (m *Interpreter) XXX_DiscardUnknown() { xxx_messageInfo_Interpreter.DiscardUnknown(m) } @@ -383,6 +400,7 @@ func encodeVarintParams(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + func (m *Params) Size() (n int) { if m == nil { return 0 @@ -439,9 +457,11 @@ func (m *Interpreter) Size() (n int) { func sovParams(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } + func sozParams(x uint64) (n int) { return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } + func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -558,6 +578,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } + func (m *Limits) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -617,7 +638,7 @@ func (m *Limits) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v sdkmath.Uint m.MaxGas = &v if err := m.MaxGas.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -653,7 +674,7 @@ func (m *Limits) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v sdkmath.Uint m.MaxResultCount = &v if err := m.MaxResultCount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -689,7 +710,7 @@ func (m *Limits) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Uint + var v sdkmath.Uint m.MaxSize = &v if err := m.MaxSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -716,6 +737,7 @@ func (m *Limits) Unmarshal(dAtA []byte) error { } return nil } + func (m *Interpreter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -830,6 +852,7 @@ func (m *Interpreter) Unmarshal(dAtA []byte) error { } return nil } + func skipParams(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/logic/migrations/v3/migrations.go b/x/logic/migrations/v3/migrations.go index 38d42911..926bfdee 100644 --- a/x/logic/migrations/v3/migrations.go +++ b/x/logic/migrations/v3/migrations.go @@ -1,8 +1,8 @@ package v2 import ( + storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" - storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" diff --git a/x/logic/module.go b/x/logic/module.go index df621251..86eb09be 100644 --- a/x/logic/module.go +++ b/x/logic/module.go @@ -5,25 +5,25 @@ import ( "encoding/json" "fmt" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - abci "github.com/cometbft/cometbft/abci/types" + "cosmossdk.io/core/appmodule" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/okp4/okp4d/x/logic/client/cli" "github.com/okp4/okp4d/x/logic/exported" "github.com/okp4/okp4d/x/logic/keeper" "github.com/okp4/okp4d/x/logic/types" ) var ( - _ module.AppModule = AppModule{} + _ module.HasGenesis = AppModule{} + _ module.HasServices = AppModule{} + + _ appmodule.AppModule = AppModule{} _ module.AppModuleBasic = AppModuleBasic{} ) @@ -76,18 +76,6 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *r _ = types.RegisterQueryServiceHandlerClient(context.Background(), mux, types.NewQueryServiceClient(clientCtx)) } -// GetTxCmd returns the root Tx command for the module. The subcommands of this root command are used by end-users to -// generate new transactions containing messages defined in the module. -func (a AppModuleBasic) GetTxCmd() *cobra.Command { - return cli.GetTxCmd() -} - -// GetQueryCmd returns the root query command for the module. The subcommands of this root command are used by end-users -// to generate new queries to the subset of the state defined by the module. -func (AppModuleBasic) GetQueryCmd() *cobra.Command { - return cli.GetQueryCmd(types.StoreKey) -} - // ---------------------------------------------------------------------------- // AppModule // ---------------------------------------------------------------------------- @@ -119,6 +107,10 @@ func NewAppModule( } } +func (am AppModule) IsOnePerModuleType() {} + +func (am AppModule) IsAppModule() {} + // RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServiceServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) @@ -142,19 +134,13 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { } } -// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, -// the InvariantRegistry triggers appropriate logic (most often the chain will be halted). -func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} - // InitGenesis performs the module's genesis initialization. It returns no validator updates. -func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) []abci.ValidatorUpdate { +func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) { var genState types.GenesisState // Initialize global index to index in genesis state cdc.MustUnmarshalJSON(gs, &genState) InitGenesis(ctx, am.keeper, genState) - - return []abci.ValidatorUpdate{} } // ExportGenesis returns the module's exported genesis state as raw JSON bytes. @@ -168,9 +154,6 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw func (AppModule) ConsensusVersion() uint64 { return 3 } // BeginBlock contains the logic that is automatically triggered at the beginning of each block. -func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} - -// EndBlock contains the logic that is automatically triggered at the end of each block. -func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { - return []abci.ValidatorUpdate{} +func (am AppModule) BeginBlock(_ context.Context) error { + return nil } diff --git a/x/logic/predicate/address_test.go b/x/logic/predicate/address_test.go index 9b6fa3c8..4b1165c7 100644 --- a/x/logic/predicate/address_test.go +++ b/x/logic/predicate/address_test.go @@ -6,15 +6,18 @@ import ( "strings" "testing" + "cosmossdk.io/store/metrics" + + dbm "github.com/cosmos/cosmos-db" + "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -123,8 +126,8 @@ func TestBech32(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/predicate/bank_test.go b/x/logic/predicate/bank_test.go index 805d6be7..fcb6bd18 100644 --- a/x/logic/predicate/bank_test.go +++ b/x/logic/predicate/bank_test.go @@ -6,16 +6,21 @@ import ( "strings" "testing" + "cosmossdk.io/math" + + "cosmossdk.io/store/metrics" + + dbm "github.com/cosmos/cosmos-db" + "github.com/golang/mock/gomock" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" bank "github.com/cosmos/cosmos-sdk/x/bank/types" @@ -41,7 +46,7 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(100))), }, }, query: `bank_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', X).`, @@ -51,7 +56,7 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(100))), }, }, query: `bank_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', [X]).`, @@ -61,7 +66,7 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(589))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(589))), }, }, query: `bank_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', [X, Y]).`, @@ -71,7 +76,7 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(589))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(589))), }, }, query: `bank_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', [-(D, A) | _]).`, @@ -81,11 +86,11 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(493))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(493))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(589)), sdk.NewCoin("uatom", sdk.NewInt(693))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(589)), sdk.NewCoin("uatom", math.NewInt(693))), }, }, query: `bank_balances('okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38', [_, X]).`, @@ -95,11 +100,11 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(493))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(493))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(589)), sdk.NewCoin("uatom", sdk.NewInt(693))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(589)), sdk.NewCoin("uatom", math.NewInt(693))), }, }, program: `bank_balances_has_coin(A, D, V) :- bank_balances(A, R), member(D-V, R).`, @@ -111,12 +116,12 @@ func TestBank(t *testing.T) { { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", Coins: sdk.NewCoins( - sdk.NewCoin("uknow", sdk.NewInt(589)), - sdk.NewCoin("uatom", sdk.NewInt(693)), - sdk.NewCoin("uband", sdk.NewInt(4282)), - sdk.NewCoin("uakt", sdk.NewInt(4099)), - sdk.NewCoin("ukava", sdk.NewInt(836)), - sdk.NewCoin("uscrt", sdk.NewInt(599)), + sdk.NewCoin("uknow", math.NewInt(589)), + sdk.NewCoin("uatom", math.NewInt(693)), + sdk.NewCoin("uband", math.NewInt(4282)), + sdk.NewCoin("uakt", math.NewInt(4099)), + sdk.NewCoin("ukava", math.NewInt(836)), + sdk.NewCoin("uscrt", math.NewInt(599)), ), }, }, @@ -128,11 +133,11 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(589))), + Coins: sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(589))), }, }, query: `bank_balances(Accounts, Balances).`, @@ -152,13 +157,13 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(1000))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(1000))), }, }, spendableCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(100))), }, }, query: `bank_spendable_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', X).`, @@ -168,7 +173,7 @@ func TestBank(t *testing.T) { spendableCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(100))), }, }, query: `bank_spendable_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', [X]).`, @@ -178,7 +183,7 @@ func TestBank(t *testing.T) { spendableCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(589))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(589))), }, }, query: `bank_spendable_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', [X, Y]).`, @@ -188,7 +193,7 @@ func TestBank(t *testing.T) { spendableCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(589))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(589))), }, }, query: `bank_spendable_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', [-(D, A) | _]).`, @@ -198,11 +203,11 @@ func TestBank(t *testing.T) { spendableCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(493))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(493))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(589)), sdk.NewCoin("uatom", sdk.NewInt(693))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(589)), sdk.NewCoin("uatom", math.NewInt(693))), }, }, query: `bank_spendable_balances('okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38', [_, X]).`, @@ -212,11 +217,11 @@ func TestBank(t *testing.T) { spendableCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(493))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(493))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(589)), sdk.NewCoin("uatom", sdk.NewInt(693))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(589)), sdk.NewCoin("uatom", math.NewInt(693))), }, }, program: `bank_spendable_has_coin(A, D, V) :- bank_spendable_balances(A, R), member(D-V, R).`, @@ -228,12 +233,12 @@ func TestBank(t *testing.T) { { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", Coins: sdk.NewCoins( - sdk.NewCoin("uknow", sdk.NewInt(589)), - sdk.NewCoin("uatom", sdk.NewInt(693)), - sdk.NewCoin("uband", sdk.NewInt(4282)), - sdk.NewCoin("uakt", sdk.NewInt(4099)), - sdk.NewCoin("ukava", sdk.NewInt(836)), - sdk.NewCoin("uscrt", sdk.NewInt(599)), + sdk.NewCoin("uknow", math.NewInt(589)), + sdk.NewCoin("uatom", math.NewInt(693)), + sdk.NewCoin("uband", math.NewInt(4282)), + sdk.NewCoin("uakt", math.NewInt(4099)), + sdk.NewCoin("ukava", math.NewInt(836)), + sdk.NewCoin("uscrt", math.NewInt(599)), ), }, }, @@ -246,21 +251,21 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(1220))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(1220))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(8000))), + Coins: sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(8000))), }, }, spendableCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(589))), + Coins: sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(589))), }, }, query: `bank_spendable_balances(Accounts, SpendableCoins).`, @@ -281,19 +286,19 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(1000))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(1000))), }, }, spendableCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(100))), }, }, lockedCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(900))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(900))), }, }, query: `bank_locked_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', X).`, @@ -303,7 +308,7 @@ func TestBank(t *testing.T) { lockedCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(100))), }, }, query: `bank_locked_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', [X]).`, @@ -313,7 +318,7 @@ func TestBank(t *testing.T) { lockedCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(589))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(589))), }, }, query: `bank_locked_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', [X, Y]).`, @@ -323,7 +328,7 @@ func TestBank(t *testing.T) { lockedCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(589))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(589))), }, }, query: `bank_locked_balances('okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm', [-(D, A) | _]).`, @@ -333,11 +338,11 @@ func TestBank(t *testing.T) { lockedCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(493))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(493))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(589)), sdk.NewCoin("uatom", sdk.NewInt(693))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(589)), sdk.NewCoin("uatom", math.NewInt(693))), }, }, query: `bank_locked_balances('okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38', [_, X]).`, @@ -347,11 +352,11 @@ func TestBank(t *testing.T) { lockedCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420)), sdk.NewCoin("uatom", sdk.NewInt(493))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420)), sdk.NewCoin("uatom", math.NewInt(493))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(589)), sdk.NewCoin("uatom", sdk.NewInt(693))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(589)), sdk.NewCoin("uatom", math.NewInt(693))), }, }, program: `bank_locked_has_coin(A, D, V) :- bank_locked_balances(A, R), member(D-V, R).`, @@ -363,12 +368,12 @@ func TestBank(t *testing.T) { { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", Coins: sdk.NewCoins( - sdk.NewCoin("uknow", sdk.NewInt(589)), - sdk.NewCoin("uatom", sdk.NewInt(693)), - sdk.NewCoin("uband", sdk.NewInt(4282)), - sdk.NewCoin("uakt", sdk.NewInt(4099)), - sdk.NewCoin("ukava", sdk.NewInt(836)), - sdk.NewCoin("uscrt", sdk.NewInt(599)), + sdk.NewCoin("uknow", math.NewInt(589)), + sdk.NewCoin("uatom", math.NewInt(693)), + sdk.NewCoin("uband", math.NewInt(4282)), + sdk.NewCoin("uakt", math.NewInt(4099)), + sdk.NewCoin("ukava", math.NewInt(836)), + sdk.NewCoin("uscrt", math.NewInt(599)), ), }, }, @@ -381,31 +386,31 @@ func TestBank(t *testing.T) { balances: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(1220))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(1220))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(8000))), + Coins: sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(8000))), }, }, spendableCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(420))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(420))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(589))), + Coins: sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(589))), }, }, lockedCoins: []bank.Balance{ { Address: "okp41ffd5wx65l407yvm478cxzlgygw07h79sq0m3fm", - Coins: sdk.NewCoins(sdk.NewCoin("uknow", sdk.NewInt(800))), + Coins: sdk.NewCoins(sdk.NewCoin("uknow", math.NewInt(800))), }, { Address: "okp41wze8mn5nsgl9qrgazq6a92fvh7m5e6pslyrz38", - Coins: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(7411))), + Coins: sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(7411))), }, }, query: `bank_locked_balances(Accounts, LockedCoins).`, @@ -425,8 +430,8 @@ func TestBank(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) bankKeeper := testutil.NewMockBankKeeper(ctrl) ctx := sdk. NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()). diff --git a/x/logic/predicate/block_test.go b/x/logic/predicate/block_test.go index b9cc18cf..7a744701 100644 --- a/x/logic/predicate/block_test.go +++ b/x/logic/predicate/block_test.go @@ -5,15 +5,18 @@ import ( "testing" "time" + "cosmossdk.io/store/metrics" + + dbm "github.com/cosmos/cosmos-db" + "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -37,8 +40,8 @@ func TestBlock(t *testing.T) { for _, tc := range cases { Convey(fmt.Sprintf("Given the clause body: %s", tc.implication), t, func() { Convey("Given a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tc.header, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/predicate/builtin_test.go b/x/logic/predicate/builtin_test.go index c303a7a8..d50e66c1 100644 --- a/x/logic/predicate/builtin_test.go +++ b/x/logic/predicate/builtin_test.go @@ -9,11 +9,11 @@ import ( . "github.com/smartystreets/goconvey/convey" + "cosmossdk.io/log" tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -42,8 +42,8 @@ func TestWrite(t *testing.T) { buffer := util.NewBoundedBufferMust(tc.userOutputSize) Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/predicate/chain_test.go b/x/logic/predicate/chain_test.go index 88a3d095..cf9bf6c5 100644 --- a/x/logic/predicate/chain_test.go +++ b/x/logic/predicate/chain_test.go @@ -4,15 +4,18 @@ import ( "fmt" "testing" + "cosmossdk.io/store/metrics" + + dbm "github.com/cosmos/cosmos-db" + "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -33,8 +36,8 @@ func TestChainID(t *testing.T) { for _, tc := range cases { Convey(fmt.Sprintf("Given the clause body: %s", tc.implication), t, func() { Convey("Given a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tc.header, false, log.NewNopLogger()) Convey("and an interpreter", func() { diff --git a/x/logic/predicate/crypto_test.go b/x/logic/predicate/crypto_test.go index 7367b0c7..47dca957 100644 --- a/x/logic/predicate/crypto_test.go +++ b/x/logic/predicate/crypto_test.go @@ -6,15 +6,18 @@ import ( "strings" "testing" + "cosmossdk.io/store/metrics" + + dbm "github.com/cosmos/cosmos-db" + "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -101,8 +104,8 @@ func TestCryptoOperations(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { @@ -307,8 +310,8 @@ func TestXVerify(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/predicate/did_test.go b/x/logic/predicate/did_test.go index 3108478c..827971b3 100644 --- a/x/logic/predicate/did_test.go +++ b/x/logic/predicate/did_test.go @@ -10,11 +10,11 @@ import ( . "github.com/smartystreets/goconvey/convey" + "cosmossdk.io/log" tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -105,8 +105,8 @@ func TestDID(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/predicate/encoding_test.go b/x/logic/predicate/encoding_test.go index 7ee7e821..c17e4505 100644 --- a/x/logic/predicate/encoding_test.go +++ b/x/logic/predicate/encoding_test.go @@ -10,11 +10,11 @@ import ( . "github.com/smartystreets/goconvey/convey" + "cosmossdk.io/log" tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -76,8 +76,8 @@ func TestHexBytesPredicate(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/predicate/file_test.go b/x/logic/predicate/file_test.go index 247c483b..a2f28505 100644 --- a/x/logic/predicate/file_test.go +++ b/x/logic/predicate/file_test.go @@ -15,11 +15,11 @@ import ( . "github.com/smartystreets/goconvey/convey" + "cosmossdk.io/log" tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/fs" @@ -132,8 +132,8 @@ func TestSourceFile(t *testing.T) { ), nil) Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { @@ -322,8 +322,8 @@ func TestOpen(t *testing.T) { } }) Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/predicate/json_test.go b/x/logic/predicate/json_test.go index ebca37e9..390bd3b5 100644 --- a/x/logic/predicate/json_test.go +++ b/x/logic/predicate/json_test.go @@ -10,11 +10,11 @@ import ( . "github.com/smartystreets/goconvey/convey" + "cosmossdk.io/log" tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -365,8 +365,8 @@ func TestJsonProlog(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { @@ -471,8 +471,8 @@ func TestJsonPrologWithMoreComplexStructBidirectional(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("#%d : given the json: %s and the term %s", nc, tc.json, tc.term), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/predicate/string_test.go b/x/logic/predicate/string_test.go index 38a84c8d..583b72e3 100644 --- a/x/logic/predicate/string_test.go +++ b/x/logic/predicate/string_test.go @@ -6,15 +6,18 @@ import ( "strings" "testing" + dbm "github.com/cosmos/cosmos-db" + + "cosmossdk.io/store/metrics" + "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -141,8 +144,8 @@ func TestReadString(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { @@ -326,8 +329,8 @@ func TestStringBytes(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/predicate/uri_test.go b/x/logic/predicate/uri_test.go index ac354f15..7571bf2c 100644 --- a/x/logic/predicate/uri_test.go +++ b/x/logic/predicate/uri_test.go @@ -10,11 +10,11 @@ import ( . "github.com/smartystreets/goconvey/convey" + "cosmossdk.io/log" tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" + "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" @@ -173,8 +173,8 @@ func TestURIEncoded(t *testing.T) { for nc, tc := range cases { Convey(fmt.Sprintf("Given the query #%d: %s", nc, tc.query), func() { Convey("and a context", func() { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) Convey("and a vm", func() { diff --git a/x/logic/testutil/expected_keepers_mocks.go b/x/logic/testutil/expected_keepers_mocks.go index 0482de82..4c980f06 100644 --- a/x/logic/testutil/expected_keepers_mocks.go +++ b/x/logic/testutil/expected_keepers_mocks.go @@ -5,13 +5,12 @@ package testutil import ( + context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - types "github.com/cosmos/cosmos-sdk/types" - types0 "github.com/cosmos/cosmos-sdk/x/auth/types" - types1 "github.com/cosmos/cosmos-sdk/x/bank/types" + types0 "github.com/cosmos/cosmos-sdk/x/bank/types" + gomock "github.com/golang/mock/gomock" ) // MockAccountKeeper is a mock of AccountKeeper interface. @@ -38,10 +37,10 @@ func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder { } // GetAccount mocks base method. -func (m *MockAccountKeeper) GetAccount(ctx types.Context, addr types.AccAddress) types0.AccountI { +func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAccount", ctx, addr) - ret0, _ := ret[0].(types0.AccountI) + ret0, _ := ret[0].(types.AccountI) return ret0 } @@ -75,10 +74,10 @@ func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder { } // GetAccountsBalances mocks base method. -func (m *MockBankKeeper) GetAccountsBalances(ctx types.Context) []types1.Balance { +func (m *MockBankKeeper) GetAccountsBalances(ctx context.Context) []types0.Balance { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAccountsBalances", ctx) - ret0, _ := ret[0].([]types1.Balance) + ret0, _ := ret[0].([]types0.Balance) return ret0 } @@ -89,7 +88,7 @@ func (mr *MockBankKeeperMockRecorder) GetAccountsBalances(ctx interface{}) *gomo } // GetAllBalances mocks base method. -func (m *MockBankKeeper) GetAllBalances(ctx types.Context, addr types.AccAddress) types.Coins { +func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types.AccAddress) types.Coins { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAllBalances", ctx, addr) ret0, _ := ret[0].(types.Coins) @@ -103,7 +102,7 @@ func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gom } // GetBalance mocks base method. -func (m *MockBankKeeper) GetBalance(ctx types.Context, addr types.AccAddress, denom string) types.Coin { +func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types.AccAddress, denom string) types.Coin { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBalance", ctx, addr, denom) ret0, _ := ret[0].(types.Coin) @@ -117,7 +116,7 @@ func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) * } // LockedCoins mocks base method. -func (m *MockBankKeeper) LockedCoins(ctx types.Context, addr types.AccAddress) types.Coins { +func (m *MockBankKeeper) LockedCoins(ctx context.Context, addr types.AccAddress) types.Coins { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LockedCoins", ctx, addr) ret0, _ := ret[0].(types.Coins) @@ -131,7 +130,7 @@ func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr interface{}) *gomock } // SpendableCoins mocks base method. -func (m *MockBankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins { +func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types.AccAddress) types.Coins { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SpendableCoins", ctx, addr) ret0, _ := ret[0].(types.Coins) @@ -168,7 +167,7 @@ func (m *MockWasmKeeper) EXPECT() *MockWasmKeeperMockRecorder { } // QuerySmart mocks base method. -func (m *MockWasmKeeper) QuerySmart(ctx types.Context, contractAddr types.AccAddress, req []byte) ([]byte, error) { +func (m *MockWasmKeeper) QuerySmart(ctx context.Context, contractAddr types.AccAddress, req []byte) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QuerySmart", ctx, contractAddr, req) ret0, _ := ret[0].([]byte) diff --git a/x/logic/testutil/gas_mocks.go b/x/logic/testutil/gas_mocks.go index 9793c61c..8e65926b 100644 --- a/x/logic/testutil/gas_mocks.go +++ b/x/logic/testutil/gas_mocks.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/cosmos/cosmos-sdk/store/types (interfaces: GasMeter) +// Source: cosmossdk.io/store/types (interfaces: GasMeter) // Package testutil is a generated GoMock package. package testutil diff --git a/x/logic/types/expected_keepers.go b/x/logic/types/expected_keepers.go index 68dcabfd..d775f962 100644 --- a/x/logic/types/expected_keepers.go +++ b/x/logic/types/expected_keepers.go @@ -1,26 +1,27 @@ package types import ( + "context" + sdk "github.com/cosmos/cosmos-sdk/types" - auth "github.com/cosmos/cosmos-sdk/x/auth/types" bank "github.com/cosmos/cosmos-sdk/x/bank/types" ) // AccountKeeper defines the expected account keeper used for simulations (noalias). type AccountKeeper interface { - GetAccount(ctx sdk.Context, addr sdk.AccAddress) auth.AccountI + GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI } // BankKeeper defines the expected interface needed to retrieve account balances. type BankKeeper interface { - GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin - GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins - GetAccountsBalances(ctx sdk.Context) []bank.Balance - SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins - LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin + GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins + GetAccountsBalances(ctx context.Context) []bank.Balance + SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins + LockedCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins } // WasmKeeper defines the expected interface needed to request smart contracts. type WasmKeeper interface { - QuerySmart(ctx sdk.Context, contractAddr sdk.AccAddress, req []byte) ([]byte, error) + QuerySmart(ctx context.Context, contractAddr sdk.AccAddress, req []byte) ([]byte, error) } From 5c019469da6e7d146615ec58679c2858524be56f Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 23:48:51 +0100 Subject: [PATCH 15/29] feat(wasm): upgrade lib wasmvm in docker build --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c7a7caa..fab85d31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,14 +4,16 @@ FROM golang:1.21-alpine3.17 AS go-builder WORKDIR /src # CosmWasm: see https://github.com/CosmWasm/wasmvm/releases -ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.2.4/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a -ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.2.4/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a +ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a +ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a +RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 2687afbdae1bc6c7c8b05ae20dfb8ffc7ddc5b4e056697d0f37853dfe294e913 +RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 465e3a088e96fd009a11bfd234c69fb8a0556967677e54511c084f815cf9ce63 # hadolint ignore=DL4006 RUN set -eux \ && apk add --no-cache ca-certificates=20230506-r0 build-base=0.5-r3 git=2.38.5-r0 linux-headers=5.19.5-r0 \ - && sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 682a54082e131eaff9beec80ba3e5908113916fcb8ddf7c668cb2d97cb94c13c \ - && sha256sum /lib/libwasmvm_muslc.x86_64.a | grep ce3d892377d2523cf563e01120cb1436f9343f80be952c93f66aa94f5737b661 \ + && sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 2687afbdae1bc6c7c8b05ae20dfb8ffc7ddc5b4e056697d0f37853dfe294e913 \ + && sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 465e3a088e96fd009a11bfd234c69fb8a0556967677e54511c084f815cf9ce63 \ && cp "/lib/libwasmvm_muslc.$(uname -m).a" /lib/libwasmvm_muslc.a COPY . /src/ From 5a6842783a07aa999dd3ead8a8de39964b98bc43 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 23:49:27 +0100 Subject: [PATCH 16/29] build(proto): save buf lock --- proto/buf.lock | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/buf.lock b/proto/buf.lock index c16ee38d..c66ec1a0 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -5,15 +5,19 @@ deps: owner: cosmos repository: cosmos-proto commit: 1935555c206d4afb9e94615dfd0fad31 + digest: shake256:c74d91a3ac7ae07d579e90eee33abf9b29664047ac8816500cf22c081fec0d72d62c89ce0bebafc1f6fec7aa5315be72606717740ca95007248425102c365377 - remote: buf.build owner: cosmos repository: cosmos-sdk commit: 954f7b05f38440fc8250134b15adec47 + digest: shake256:2ab4404fd04a7d1d52df0e2d0f2d477a3d83ffd88d876957bf3fedfd702c8e52833d65b3ce1d89a3c5adf2aab512616b0e4f51d8463f07eda9a8a3317ee3ac54 - remote: buf.build owner: cosmos repository: gogo-proto commit: 34d970b699f84aa382f3c29773a60836 + digest: shake256:3d3bee5229ba579e7d19ffe6e140986a228b48a8c7fe74348f308537ab95e9135210e81812489d42cd8941d33ff71f11583174ccc5972e86e6112924b6ce9f04 - remote: buf.build owner: googleapis repository: googleapis commit: 5ae7f88519b04fe1965da0f8a375a088 + digest: shake256:27d9fcdc0e3eb957449dc3d17e2d24c7ce59c3c483ecf128818183c336dfd28595ecd13771fb3172247775caf7707c4076dd8e70c5ac2cbcac170df35e4d0028 From 97233e3857ddf416bcff442c69b0f7f76a5cc126 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 11 Jan 2024 23:49:45 +0100 Subject: [PATCH 17/29] build: repair chain init --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f74990b3..acf77d8e 100644 --- a/Makefile +++ b/Makefile @@ -213,18 +213,18 @@ chain-init: build ## Initialize the blockchain with default settings. --keyring-backend test \ --home "${CHAIN_HOME}"; \ \ - ${CHAIN_BINARY} add-genesis-account validator 1000000000uknow \ + ${CHAIN_BINARY} genesis add-genesis-account validator 1000000000uknow \ --keyring-backend test \ --home "${CHAIN_HOME}"; \ \ NODE_ID=`${CHAIN_BINARY} tendermint show-node-id --home ${CHAIN_HOME}`; \ - ${CHAIN_BINARY} gentx validator 1000000uknow \ + ${CHAIN_BINARY} genesis gentx validator 1000000uknow \ --node-id $$NODE_ID \ --chain-id=okp4-${CHAIN} \ --keyring-backend test \ --home "${CHAIN_HOME}"; \ \ - ${CHAIN_BINARY} collect-gentxs \ + ${CHAIN_BINARY} genesis collect-gentxs \ --home "${CHAIN_HOME}" chain-start: build ## Start the blockchain with existing configuration (see chain-init) From 950da332efe4444783e4a966643155c579584ca6 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Fri, 12 Jan 2024 00:19:08 +0100 Subject: [PATCH 18/29] refactor: cleanup unused parts --- x/logic/module.go | 2 +- x/logic/types/codec.go | 34 ++++++----------------- x/logic/types/msg.go | 29 -------------------- x/mint/migrations/v3/types/minter.pb.go | 5 ---- x/mint/module.go | 4 ++- x/mint/types/codec.go | 36 ++++++------------------- x/mint/types/msg.go | 29 -------------------- x/vesting/types/codec.go | 2 +- 8 files changed, 21 insertions(+), 120 deletions(-) delete mode 100644 x/logic/types/msg.go delete mode 100644 x/mint/types/msg.go diff --git a/x/logic/module.go b/x/logic/module.go index 86eb09be..cac855f3 100644 --- a/x/logic/module.go +++ b/x/logic/module.go @@ -48,7 +48,7 @@ func (AppModuleBasic) Name() string { // RegisterLegacyAminoCodec registers the amino codec for the module, which is used to marshal and unmarshal structs // to/from []byte in order to persist them in the module's KVStore. func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - types.RegisterCodec(cdc) + types.RegisterLegacyAminoCodec(cdc) } // RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message. diff --git a/x/logic/types/codec.go b/x/logic/types/codec.go index 438ec550..26d64733 100644 --- a/x/logic/types/codec.go +++ b/x/logic/types/codec.go @@ -2,15 +2,20 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/codec/legacy" + "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(_ *codec.LegacyAmino) { +// RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(Params{}, "okp4/logic/Params", nil) + legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "okp4/logic/MsgUpdateParams") } -func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { +// RegisterInterfaces registers the interfaces types with the interface registry. +func RegisterInterfaces(registry types.InterfaceRegistry) { registry.RegisterImplementations( (*sdk.Msg)(nil), &MsgUpdateParams{}, @@ -18,26 +23,3 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { msgservice.RegisterMsgServiceDesc(registry, &_MsgService_serviceDesc) } - -var ( - Amino = codec.NewLegacyAmino() - ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) - // AminoCdc is a amino codec created to support amino JSON compatible msgs. - AminoCdc = codec.NewAminoCodec(Amino) -) - -const ( - // Amino names. - updateParamsName = "okp4/logic/MsgUpdateParams" -) - -// NOTE: This is required for the GetSignBytes function. -func init() { - RegisterLegacyAminoCodec(Amino) - Amino.Seal() -} - -// RegisterLegacyAminoCodec required for EIP-712. -func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgUpdateParams{}, updateParamsName, nil) -} diff --git a/x/logic/types/msg.go b/x/logic/types/msg.go deleted file mode 100644 index 34ceeb1d..00000000 --- a/x/logic/types/msg.go +++ /dev/null @@ -1,29 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var _ sdk.Msg = &MsgUpdateParams{} - -// GetSigners returns the expected signers for a MsgUpdateParams message. -func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress { - addr := sdk.MustAccAddressFromBech32(m.Authority) - return []sdk.AccAddress{addr} -} - -// ValidateBasic does a sanity check of the provided data. -func (m *MsgUpdateParams) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil { - return errorsmod.Wrap(err, "invalid authority address") - } - - return m.Params.Validate() -} - -// GetSignBytes implements the LegacyMsg interface. -func (m MsgUpdateParams) GetSignBytes() []byte { - return sdk.MustSortJSON(AminoCdc.MustMarshalJSON(&m)) -} diff --git a/x/mint/migrations/v3/types/minter.pb.go b/x/mint/migrations/v3/types/minter.pb.go index 657e8232..d43ff313 100644 --- a/x/mint/migrations/v3/types/minter.pb.go +++ b/x/mint/migrations/v3/types/minter.pb.go @@ -148,11 +148,6 @@ func (m *Params) GetBlocksPerYear() uint64 { return 0 } -func init() { - proto.RegisterType((*Minter)(nil), "mint.v1beta1.Minter") - proto.RegisterType((*Params)(nil), "mint.v1beta1.Params") -} - func init() { proto.RegisterFile("mint/v1beta1/mint.proto", fileDescriptor_06339c129491fd39) } var fileDescriptor_06339c129491fd39 = []byte{ diff --git a/x/mint/module.go b/x/mint/module.go index 0cacd89f..63c99913 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -44,7 +44,9 @@ func (AppModuleBasic) Name() string { } // RegisterLegacyAminoCodec registers the mint module's types on the given LegacyAmino codec. -func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) {} +func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + types.RegisterLegacyAminoCodec(cdc) +} // RegisterInterfaces registers the module's interface types. func (b AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { diff --git a/x/mint/types/codec.go b/x/mint/types/codec.go index 9161618b..3a95f7dc 100644 --- a/x/mint/types/codec.go +++ b/x/mint/types/codec.go @@ -2,35 +2,20 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" + "github.com/cosmos/cosmos-sdk/codec/legacy" + "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" ) -var ( - amino = codec.NewLegacyAmino() - // ModuleCdc references the global evm module codec. Note, the codec should - // ONLY be used in certain instances of tests and for JSON encoding. - ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) - - // AminoCdc is a amino codec created to support amino JSON compatible msgs. - AminoCdc = codec.NewAminoCodec(amino) -) - -func init() { - cryptocodec.RegisterCrypto(amino) - RegisterLegacyAminoCodec(amino) - amino.Seal() +// RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(Params{}, "okp4/mint/Params", nil) + legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "okp4/mint/MsgUpdateParams") } -const ( - // Amino names. - updateParamsName = "okp4/mint/MsgUpdateParams" -) - -// RegisterInterfaces register implementations. -func RegisterInterfaces(registry codectypes.InterfaceRegistry) { +// RegisterInterfaces registers the interfaces types with the interface registry. +func RegisterInterfaces(registry types.InterfaceRegistry) { registry.RegisterImplementations( (*sdk.Msg)(nil), &MsgUpdateParams{}, @@ -38,8 +23,3 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } - -// RegisterLegacyAminoCodec required for EIP-712. -func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgUpdateParams{}, updateParamsName, nil) -} diff --git a/x/mint/types/msg.go b/x/mint/types/msg.go deleted file mode 100644 index 34ceeb1d..00000000 --- a/x/mint/types/msg.go +++ /dev/null @@ -1,29 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var _ sdk.Msg = &MsgUpdateParams{} - -// GetSigners returns the expected signers for a MsgUpdateParams message. -func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress { - addr := sdk.MustAccAddressFromBech32(m.Authority) - return []sdk.AccAddress{addr} -} - -// ValidateBasic does a sanity check of the provided data. -func (m *MsgUpdateParams) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil { - return errorsmod.Wrap(err, "invalid authority address") - } - - return m.Params.Validate() -} - -// GetSignBytes implements the LegacyMsg interface. -func (m MsgUpdateParams) GetSignBytes() []byte { - return sdk.MustSortJSON(AminoCdc.MustMarshalJSON(&m)) -} diff --git a/x/vesting/types/codec.go b/x/vesting/types/codec.go index 049ea761..44ccf413 100644 --- a/x/vesting/types/codec.go +++ b/x/vesting/types/codec.go @@ -40,7 +40,7 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { ) registry.RegisterImplementations( - (*authtypes.AccountI)(nil), + (*sdk.AccountI)(nil), &BaseVestingAccount{}, &DelayedVestingAccount{}, &ContinuousVestingAccount{}, From 1907f41aeec5549a4660216eb20dad07f909ec8c Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Fri, 12 Jan 2024 00:33:53 +0100 Subject: [PATCH 19/29] test(starship): migrate starship tests --- Dockerfile | 2 - starship/Dockerfile | 8 +-- starship/tests/go.mod | 120 ++++++++++++++++++++-------------------- starship/tests/go.sum | 73 ++++++++++++++++++++++++ starship/tests/suite.go | 8 ++- 5 files changed, 142 insertions(+), 69 deletions(-) diff --git a/Dockerfile b/Dockerfile index fab85d31..98c3b6d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,6 @@ WORKDIR /src # CosmWasm: see https://github.com/CosmWasm/wasmvm/releases ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a -RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 2687afbdae1bc6c7c8b05ae20dfb8ffc7ddc5b4e056697d0f37853dfe294e913 -RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 465e3a088e96fd009a11bfd234c69fb8a0556967677e54511c084f815cf9ce63 # hadolint ignore=DL4006 RUN set -eux \ diff --git a/starship/Dockerfile b/starship/Dockerfile index e9a73bb1..e3181c20 100644 --- a/starship/Dockerfile +++ b/starship/Dockerfile @@ -4,14 +4,14 @@ FROM golang:1.21-alpine3.17 AS go-builder WORKDIR /src # CosmWasm: see https://github.com/CosmWasm/wasmvm/releases -ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.2.4/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a -ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.2.4/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a +ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a +ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a # hadolint ignore=DL4006 RUN set -eux \ && apk add --no-cache ca-certificates=20230506-r0 build-base=0.5-r3 git=2.38.5-r0 linux-headers=5.19.5-r0 \ - && sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 682a54082e131eaff9beec80ba3e5908113916fcb8ddf7c668cb2d97cb94c13c \ - && sha256sum /lib/libwasmvm_muslc.x86_64.a | grep ce3d892377d2523cf563e01120cb1436f9343f80be952c93f66aa94f5737b661 \ + && sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 2687afbdae1bc6c7c8b05ae20dfb8ffc7ddc5b4e056697d0f37853dfe294e913 \ + && sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 465e3a088e96fd009a11bfd234c69fb8a0556967677e54511c084f815cf9ce63 \ && cp "/lib/libwasmvm_muslc.$(uname -m).a" /lib/libwasmvm_muslc.a COPY . /src/ diff --git a/starship/tests/go.mod b/starship/tests/go.mod index 295f24f6..7e35729c 100644 --- a/starship/tests/go.mod +++ b/starship/tests/go.mod @@ -6,26 +6,26 @@ replace github.com/strangelove-ventures/lens => github.com/Anmol1696/lens v0.1.1 require ( github.com/cosmology-tech/starship/clients/go/client v0.0.0-20230715183507-198fb2b3ee2e - github.com/cosmos/cosmos-sdk v0.47.3 - github.com/cosmos/ibc-go/v7 v7.0.0 + github.com/cosmos/cosmos-sdk v0.50.1 + github.com/cosmos/ibc-go/v8 v8.0.0 github.com/strangelove-ventures/lens v0.0.0-00010101000000-000000000000 - github.com/stretchr/testify v1.8.2 + github.com/stretchr/testify v1.8.4 go.uber.org/zap v1.24.0 gopkg.in/yaml.v3 v3.0.1 ) require ( - cloud.google.com/go v0.110.0 // indirect - cloud.google.com/go/compute v1.19.1 // indirect + cloud.google.com/go v0.110.8 // indirect + cloud.google.com/go/compute v1.23.1 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v0.13.0 // indirect + cloud.google.com/go/iam v1.1.3 // indirect cloud.google.com/go/storage v1.30.1 // indirect - cosmossdk.io/api v0.3.1 // indirect - cosmossdk.io/core v0.5.1 // indirect - cosmossdk.io/depinject v1.0.0-alpha.3 // indirect - cosmossdk.io/errors v1.0.0-beta.7 // indirect - cosmossdk.io/log v1.1.0 // indirect - cosmossdk.io/math v1.0.1 // indirect + cosmossdk.io/api v0.7.2 // indirect + cosmossdk.io/core v0.11.0 // indirect + cosmossdk.io/depinject v1.0.0-alpha.4 // indirect + cosmossdk.io/errors v1.0.0 // indirect + cosmossdk.io/log v1.2.1 // indirect + cosmossdk.io/math v1.2.0 // indirect cosmossdk.io/tools/rosetta v0.2.1 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect @@ -33,7 +33,7 @@ require ( github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect github.com/armon/go-metrics v0.4.1 // indirect github.com/avast/retry-go/v4 v4.3.4 // indirect - github.com/aws/aws-sdk-go v1.44.203 // indirect + github.com/aws/aws-sdk-go v1.44.224 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect @@ -43,30 +43,30 @@ require ( github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/chzyer/readline v1.5.1 // indirect github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect - github.com/cometbft/cometbft v0.37.1 // indirect - github.com/cometbft/cometbft-db v0.7.0 // indirect + github.com/cometbft/cometbft v0.38.0 // indirect + github.com/cometbft/cometbft-db v0.8.0 // indirect github.com/confio/ics23/go v0.9.0 // indirect github.com/cosmology-tech/starship/registry v0.0.0-20230502113025-a30015992e4d // indirect github.com/cosmos/btcutil v1.0.5 // indirect - github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect + github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect - github.com/cosmos/gogoproto v1.4.10 // indirect - github.com/cosmos/iavl v0.20.0 // indirect - github.com/cosmos/ics23/go v0.9.1-0.20221207100636-b1abd8678aab // indirect - github.com/cosmos/ledger-cosmos-go v0.12.1 // indirect + github.com/cosmos/gogoproto v1.4.11 // indirect + github.com/cosmos/iavl v1.0.0 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect github.com/creachadair/taskgroup v0.4.2 // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.5.0 // indirect - github.com/felixge/httpsnoop v1.0.3 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect @@ -74,21 +74,21 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.1.0 // indirect + github.com/golang/glog v1.1.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect - github.com/google/go-cmp v0.5.9 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect - github.com/googleapis/gax-go/v2 v2.7.1 // indirect - github.com/gorilla/handlers v1.5.1 // indirect - github.com/gorilla/mux v1.8.0 // indirect + github.com/google/uuid v1.3.1 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.4 // indirect + github.com/googleapis/gax-go/v2 v2.12.0 // indirect + github.com/gorilla/handlers v1.5.2 // indirect + github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect - github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect @@ -99,7 +99,7 @@ require ( github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-version v1.6.0 // indirect - github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect + github.com/hashicorp/golang-lru v1.0.2 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect github.com/huandu/skiplist v1.2.0 // indirect @@ -107,13 +107,13 @@ require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect - github.com/klauspost/compress v1.16.3 // indirect + github.com/klauspost/compress v1.17.2 // indirect github.com/lib/pq v1.10.7 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.18 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect github.com/minio/highwayhash v1.0.2 // indirect @@ -121,53 +121,53 @@ require ( github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mtibben/percent v0.2.1 // indirect - github.com/pelletier/go-toml/v2 v2.0.7 // indirect - github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect + github.com/pelletier/go-toml/v2 v2.1.0 // indirect + github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/prometheus/client_golang v1.14.0 // indirect - github.com/prometheus/client_model v0.3.0 // indirect - github.com/prometheus/common v0.42.0 // indirect - github.com/prometheus/procfs v0.9.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/client_golang v1.17.0 // indirect + github.com/prometheus/client_model v0.5.0 // indirect + github.com/prometheus/common v0.45.0 // indirect + github.com/prometheus/procfs v0.12.0 // indirect github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rs/cors v1.8.3 // indirect - github.com/rs/zerolog v1.29.1 // indirect + github.com/rs/zerolog v1.31.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect - github.com/spf13/afero v1.9.3 // indirect - github.com/spf13/cast v1.5.0 // indirect + github.com/spf13/afero v1.9.5 // indirect + github.com/spf13/cast v1.5.1 // indirect github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.15.0 // indirect + github.com/spf13/viper v1.16.0 // indirect github.com/subosito/gotenv v1.4.2 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect github.com/tendermint/go-amino v0.16.0 // indirect - github.com/tidwall/btree v1.6.0 // indirect + github.com/tidwall/btree v1.7.0 // indirect github.com/ulikunitz/xz v0.5.11 // indirect - github.com/zondax/hid v0.9.1 // indirect - github.com/zondax/ledger-go v0.14.1 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect go.etcd.io/bbolt v1.3.7 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/atomic v1.10.0 // indirect go.uber.org/multierr v1.10.0 // indirect - golang.org/x/crypto v0.7.0 // indirect - golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect - golang.org/x/net v0.9.0 // indirect - golang.org/x/oauth2 v0.7.0 // indirect - golang.org/x/sys v0.7.0 // indirect - golang.org/x/term v0.7.0 // indirect - golang.org/x/text v0.10.0 // indirect + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/oauth2 v0.12.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/term v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect - google.golang.org/api v0.114.0 // indirect + google.golang.org/api v0.128.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect - google.golang.org/grpc v1.56.1 // indirect - google.golang.org/protobuf v1.30.0 // indirect + google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect + google.golang.org/grpc v1.59.0 // indirect + google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect nhooyr.io/websocket v1.8.6 // indirect - pgregory.net/rapid v0.5.5 // indirect - sigs.k8s.io/yaml v1.3.0 // indirect + pgregory.net/rapid v1.1.0 // indirect + sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/starship/tests/go.sum b/starship/tests/go.sum index 33a10e4b..0f0f686c 100644 --- a/starship/tests/go.sum +++ b/starship/tests/go.sum @@ -34,6 +34,7 @@ cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34h cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys= cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= +cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= 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= @@ -72,6 +73,7 @@ cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQH cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= cloud.google.com/go/compute v1.19.1 h1:am86mquDUgjGNWxiGn+5PGLbmgiWXlE/yNWpIpNvuXY= cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IKd5/kvShxE= +cloud.google.com/go/compute v1.23.1/go.mod h1:CqB3xpmPKKt3OJpW2ndFIXnA9A4xAy/F3Xp1ixncW78= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= @@ -113,6 +115,7 @@ cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= cloud.google.com/go/iam v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k= cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= +cloud.google.com/go/iam v1.1.3/go.mod h1:3khUlaBXfPKKe7huYgEpDn6FtgRyMEqbkvBxrQyY5SE= 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= @@ -190,16 +193,22 @@ cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1V cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= cosmossdk.io/api v0.3.1 h1:NNiOclKRR0AOlO4KIqeaG6PS6kswOMhHD0ir0SscNXE= cosmossdk.io/api v0.3.1/go.mod h1:DfHfMkiNA2Uhy8fj0JJlOCYOBp4eWUUJ1te5zBGNyIw= +cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= cosmossdk.io/core v0.5.1 h1:vQVtFrIYOQJDV3f7rw4pjjVqc1id4+mE0L9hHP66pyI= cosmossdk.io/core v0.5.1/go.mod h1:KZtwHCLjcFuo0nmDc24Xy6CRNEL9Vl/MeimQ2aC7NLE= +cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= cosmossdk.io/depinject v1.0.0-alpha.3 h1:6evFIgj//Y3w09bqOUOzEpFj5tsxBqdc5CfkO7z+zfw= cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= 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/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= cosmossdk.io/log v1.1.0 h1:v0ogPHYeTzPcBTcPR1A3j1hkei4pZama8kz8LKlCMv0= cosmossdk.io/log v1.1.0/go.mod h1:6zjroETlcDs+mm62gd8Ig7mZ+N+fVOZS91V17H+M4N4= +cosmossdk.io/log v1.2.1/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4= cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg= cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= +cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= cosmossdk.io/tools/rosetta v0.2.1 h1:ddOMatOH+pbxWbrGJKRAawdBkPYLfKXutK9IETnjYxw= cosmossdk.io/tools/rosetta v0.2.1/go.mod h1:Pqdc1FdvkNV3LcNIkYWt2RQY6IP1ge6YWZk8MhhO9Hw= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= @@ -251,7 +260,9 @@ github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.203 h1:pcsP805b9acL3wUqa4JR2vg1k2wnItkDYNvfmcy6F+U= github.com/aws/aws-sdk-go v1.44.203/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.44.224/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= @@ -311,8 +322,10 @@ github.com/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONN github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c= github.com/cometbft/cometbft v0.37.1 h1:KLxkQTK2hICXYq21U2hn1W5hOVYUdQgDQ1uB+90xPIg= github.com/cometbft/cometbft v0.37.1/go.mod h1:Y2MMMN//O5K4YKd8ze4r9jmk4Y7h0ajqILXbH5JQFVs= +github.com/cometbft/cometbft v0.38.0/go.mod h1:5Jz0Z8YsHSf0ZaAqGvi/ifioSdVFPtEGrm8Y9T/993k= github.com/cometbft/cometbft-db v0.7.0 h1:uBjbrBx4QzU0zOEnU8KxoDl18dMNgDh+zZRUE0ucsbo= github.com/cometbft/cometbft-db v0.7.0/go.mod h1:yiKJIm2WKrt6x8Cyxtq9YTEcIMPcEe4XPxhgX59Fzf0= +github.com/cometbft/cometbft-db v0.8.0/go.mod h1:6ASCP4pfhmrCBpfk01/9E1SI29nD3HfVHrY4PG8x5c0= github.com/confio/ics23/go v0.9.0 h1:cWs+wdbS2KRPZezoaaj+qBleXgUk5WOQFMP3CQFGTr4= github.com/confio/ics23/go v0.9.0/go.mod h1:4LPZ2NYqnYIVRklaozjNR1FScgDJ2s5Xrp+e/mYVRak= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= @@ -334,8 +347,10 @@ github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= github.com/cosmos/cosmos-proto v1.0.0-beta.2 h1:X3OKvWgK9Gsejo0F1qs5l8Qn6xJV/AzgIWR2wZ8Nua8= github.com/cosmos/cosmos-proto v1.0.0-beta.2/go.mod h1:+XRCLJ14pr5HFEHIUcn51IKXD1Fy3rkEQqt4WqmN4V0= +github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= github.com/cosmos/cosmos-sdk v0.47.3 h1:r0hGmZoAzP2D+MaPaFGHwAaTdFQq3pNpHaUp1BsffbM= github.com/cosmos/cosmos-sdk v0.47.3/go.mod h1:c4OfLdAykA9zsj1CqrxBRqXzVz48I++JSvIMPSPcEmk= +github.com/cosmos/cosmos-sdk v0.50.1/go.mod h1:fsLSPGstCwn6MMsFDMAQWGJj8E4sYsN9Gnu1bGE5imA= 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/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= @@ -344,14 +359,19 @@ github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoKuI= github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek= +github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= +github.com/cosmos/iavl v1.0.0/go.mod h1:CmTGqMnRnucjxbjduneZXT+0vPgNElYvdefjX2q9tYc= github.com/cosmos/ibc-go/v7 v7.0.0 h1:j4kyywlG0hhDmT9FmSaR5iCIka7Pz7kJTxGWY1nlV9Q= github.com/cosmos/ibc-go/v7 v7.0.0/go.mod h1:BFh8nKWjr5zeR2OZfhkzdgDzj1+KjRn3aJLpwapStj8= +github.com/cosmos/ibc-go/v8 v8.0.0/go.mod h1:C6IiJom0F3cIQCD5fKwVPDrDK9j/xTu563AWuOmXois= github.com/cosmos/ics23/go v0.9.1-0.20221207100636-b1abd8678aab h1:I9ialKTQo7248V827Bba4OuKPmk+FPzmTVHsLXaIJWw= github.com/cosmos/ics23/go v0.9.1-0.20221207100636-b1abd8678aab/go.mod h1:2CwqasX5dSD7Hbp/9b6lhK6BwoBDCBldx7gPKRukR60= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= github.com/cosmos/ledger-cosmos-go v0.12.1 h1:sMBxza5p/rNK/06nBSNmsI/WDqI0pVJFVNihy1Y984w= github.com/cosmos/ledger-cosmos-go v0.12.1/go.mod h1:dhO6kj+Y+AHIOgAe4L9HL/6NDdyyth4q238I9yFpD2g= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= github.com/cosmos/rosetta-sdk-go v0.10.0 h1:E5RhTruuoA7KTIXUcMicL76cffyeoyvNybzUGSKFTcM= github.com/cosmos/rosetta-sdk-go v0.10.0/go.mod h1:SImAZkb96YbwvoRkzSMQB6noNJXFgWl/ENIznEoYQI4= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= @@ -371,6 +391,7 @@ github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 h1:HbphB4TFFXpv7MNrT52FGrrgVXF1owhMVTHFZIlnvd4= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= @@ -412,6 +433,7 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk= github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= @@ -434,6 +456,7 @@ github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2 github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= @@ -475,6 +498,7 @@ github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69 github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= +github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -535,6 +559,7 @@ github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8 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/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 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.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= @@ -567,11 +592,13 @@ github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 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.1/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.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/enterprise-certificate-proxy v0.2.4/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= 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.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -583,16 +610,19 @@ github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqE github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= github.com/googleapis/gax-go/v2 v2.7.1 h1:gF4c0zjUP2H/s/hEGyLA3I0fA2ZWjzYiONAD6cvPr8A= github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= +github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= 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/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= +github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= @@ -601,6 +631,7 @@ github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= @@ -645,6 +676,7 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= @@ -699,6 +731,7 @@ github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8 github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= github.com/klauspost/compress v1.16.3 h1:XuJt9zzcnaz6a16/OU53ZjWp/v7/42WcR5t2a0PcNQY= github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.17.2/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= @@ -733,6 +766,8 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= @@ -818,10 +853,12 @@ github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtP github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml/v2 v2.0.7 h1:muncTPStnKRos5dpVKULv2FVd4bMOhNePj9CjgDb8Us= github.com/pelletier/go-toml/v2 v2.0.7/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 h1:hDSdbBuw3Lefr6R18ax0tZ2BJeNB3NehB3trOwYBsdU= github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -832,6 +869,7 @@ github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6J github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= 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.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= @@ -841,6 +879,7 @@ github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3O github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= +github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -849,6 +888,7 @@ github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6T github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= @@ -857,6 +897,7 @@ github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB8 github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= +github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= @@ -865,6 +906,7 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= +github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= 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= @@ -879,8 +921,10 @@ github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc= github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU= +github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= 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.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -905,9 +949,11 @@ github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2 github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk= github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= 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.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= 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 v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= @@ -922,6 +968,7 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU= github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= +github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= @@ -942,6 +989,7 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= @@ -952,6 +1000,7 @@ github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2l github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= github.com/tidwall/btree v1.6.0 h1:LDZfKfQIBHGHWSwckhXI0RPSXzlo+KYdjK7FWSqOzzg= github.com/tidwall/btree v1.6.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= @@ -974,8 +1023,10 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 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.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= +github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= @@ -995,17 +1046,21 @@ go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqe 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.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -1022,8 +1077,10 @@ golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= 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-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1037,6 +1094,7 @@ golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMk golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU= golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1112,6 +1170,7 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -1126,6 +1185,7 @@ golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfS golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= 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-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1153,6 +1213,7 @@ golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= golang.org/x/oauth2 v0.7.0 h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g= golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= +golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= 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-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1241,6 +1302,7 @@ golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1266,11 +1328,14 @@ golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.7.0 h1:BEvjmm5fURWqcfbSKTdpkDXYBrUS1c0m8agp14W48vQ= golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= 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.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1283,6 +1348,7 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.10.0 h1:UpjohKhiEgNc0CSauXmwYftY1+LlaC75SJwh0SgCX58= golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= 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-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1308,6 +1374,7 @@ golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1411,6 +1478,7 @@ google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= google.golang.org/api v0.114.0 h1:1xQPji6cO2E2vLiI+C/XiFAnsn1WV3mjaEwGLhi3grE= google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg= +google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= 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.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1530,6 +1598,7 @@ google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A= google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= +google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= 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.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -1573,6 +1642,7 @@ google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCD google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.56.1 h1:z0dNfjIl0VpaZ9iSVjA6daGatAYwPGstTjt5vkRMFkQ= google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= +google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= 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-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -1591,6 +1661,7 @@ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= 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 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -1636,10 +1707,12 @@ nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA= pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/starship/tests/suite.go b/starship/tests/suite.go index c2897187..d96210a4 100644 --- a/starship/tests/suite.go +++ b/starship/tests/suite.go @@ -8,6 +8,8 @@ import ( "os" "time" + "cosmossdk.io/math" + starship "github.com/cosmology-tech/starship/clients/go/client" lens "github.com/strangelove-ventures/lens/client" "github.com/stretchr/testify/suite" @@ -18,8 +20,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" - clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" + clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" ) var configFile = "../configs/devnet.yaml" @@ -101,7 +103,7 @@ func (s *TestSuite) IBCTransferTokens(chain1, chain2 *starship.ChainClient, chai denom, err := chain1.GetChainDenom() s.Require().NoError(err) - coin := sdk.Coin{Denom: denom, Amount: sdk.NewInt(int64(amount))} + coin := sdk.Coin{Denom: denom, Amount: math.NewInt(int64(amount))} req := &transfertypes.MsgTransfer{ SourcePort: channel.Chain_2.PortId, SourceChannel: channel.Chain_2.ChannelId, From 0eac693c04126227e2fccbfb9a002bdb1480ad92 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Fri, 12 Jan 2024 00:36:15 +0100 Subject: [PATCH 20/29] chore(proto): update generated proto --- x/logic/types/genesis.pb.go | 22 ++------- x/logic/types/params.pb.go | 55 +++------------------ x/logic/types/query.pb.go | 55 +++++---------------- x/logic/types/query.pb.gw.go | 30 ++++++++---- x/logic/types/tx.pb.go | 42 +++++----------- x/logic/types/types.pb.go | 40 ++------------- x/mint/types/genesis.pb.go | 24 +++------ x/mint/types/mint.pb.go | 33 +++---------- x/mint/types/query.pb.go | 77 +++++++---------------------- x/mint/types/query.pb.gw.go | 30 ++++++++---- x/mint/types/tx.pb.go | 42 +++++----------- x/vesting/types/tx.pb.go | 92 +++++++---------------------------- x/vesting/types/vesting.pb.go | 60 +++-------------------- 13 files changed, 147 insertions(+), 455 deletions(-) diff --git a/x/logic/types/genesis.pb.go b/x/logic/types/genesis.pb.go index 168c5bcf..1c6b7d24 100644 --- a/x/logic/types/genesis.pb.go +++ b/x/logic/types/genesis.pb.go @@ -5,20 +5,17 @@ package types import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" - - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -38,11 +35,9 @@ func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { return fileDescriptor_712b71f2a5cb208f, []int{0} } - func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) @@ -55,15 +50,12 @@ func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } - func (m *GenesisState) XXX_Merge(src proto.Message) { xxx_messageInfo_GenesisState.Merge(m, src) } - func (m *GenesisState) XXX_Size() int { return m.Size() } - func (m *GenesisState) XXX_DiscardUnknown() { xxx_messageInfo_GenesisState.DiscardUnknown(m) } @@ -143,7 +135,6 @@ func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *GenesisState) Size() (n int) { if m == nil { return 0 @@ -158,11 +149,9 @@ func (m *GenesisState) Size() (n int) { func sovGenesis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozGenesis(x uint64) (n int) { return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *GenesisState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -246,7 +235,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } return nil } - func skipGenesis(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/logic/types/params.pb.go b/x/logic/types/params.pb.go index 31139789..774e6d6a 100644 --- a/x/logic/types/params.pb.go +++ b/x/logic/types/params.pb.go @@ -4,23 +4,19 @@ package types import ( + cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" - - cosmossdk_io_math "cosmossdk.io/math" - - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -45,11 +41,9 @@ func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{0} } - func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Params.Marshal(b, m, deterministic) @@ -62,15 +56,12 @@ func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Params) XXX_Merge(src proto.Message) { xxx_messageInfo_Params.Merge(m, src) } - func (m *Params) XXX_Size() int { return m.Size() } - func (m *Params) XXX_DiscardUnknown() { xxx_messageInfo_Params.DiscardUnknown(m) } @@ -123,11 +114,9 @@ func (*Limits) ProtoMessage() {} func (*Limits) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{1} } - func (m *Limits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Limits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Limits.Marshal(b, m, deterministic) @@ -140,15 +129,12 @@ func (m *Limits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Limits) XXX_Merge(src proto.Message) { xxx_messageInfo_Limits.Merge(m, src) } - func (m *Limits) XXX_Size() int { return m.Size() } - func (m *Limits) XXX_DiscardUnknown() { xxx_messageInfo_Limits.DiscardUnknown(m) } @@ -174,11 +160,9 @@ func (*Filter) ProtoMessage() {} func (*Filter) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{2} } - func (m *Filter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Filter.Marshal(b, m, deterministic) @@ -191,15 +175,12 @@ func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Filter) XXX_Merge(src proto.Message) { xxx_messageInfo_Filter.Merge(m, src) } - func (m *Filter) XXX_Size() int { return m.Size() } - func (m *Filter) XXX_DiscardUnknown() { xxx_messageInfo_Filter.DiscardUnknown(m) } @@ -250,11 +231,9 @@ func (*Interpreter) ProtoMessage() {} func (*Interpreter) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{3} } - func (m *Interpreter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Interpreter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Interpreter.Marshal(b, m, deterministic) @@ -267,15 +246,12 @@ func (m *Interpreter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } - func (m *Interpreter) XXX_Merge(src proto.Message) { xxx_messageInfo_Interpreter.Merge(m, src) } - func (m *Interpreter) XXX_Size() int { return m.Size() } - func (m *Interpreter) XXX_DiscardUnknown() { xxx_messageInfo_Interpreter.DiscardUnknown(m) } @@ -324,11 +300,9 @@ func (*GasPolicy) ProtoMessage() {} func (*GasPolicy) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{4} } - func (m *GasPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *GasPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GasPolicy.Marshal(b, m, deterministic) @@ -341,15 +315,12 @@ func (m *GasPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *GasPolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_GasPolicy.Merge(m, src) } - func (m *GasPolicy) XXX_Size() int { return m.Size() } - func (m *GasPolicy) XXX_DiscardUnknown() { xxx_messageInfo_GasPolicy.DiscardUnknown(m) } @@ -378,11 +349,9 @@ func (*PredicateCost) ProtoMessage() {} func (*PredicateCost) Descriptor() ([]byte, []int) { return fileDescriptor_3af0daa241de0fa3, []int{5} } - func (m *PredicateCost) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *PredicateCost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PredicateCost.Marshal(b, m, deterministic) @@ -395,15 +364,12 @@ func (m *PredicateCost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } - func (m *PredicateCost) XXX_Merge(src proto.Message) { xxx_messageInfo_PredicateCost.Merge(m, src) } - func (m *PredicateCost) XXX_Size() int { return m.Size() } - func (m *PredicateCost) XXX_DiscardUnknown() { xxx_messageInfo_PredicateCost.DiscardUnknown(m) } @@ -808,7 +774,6 @@ func encodeVarintParams(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *Params) Size() (n int) { if m == nil { return 0 @@ -930,11 +895,9 @@ func (m *PredicateCost) Size() (n int) { func sovParams(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozParams(x uint64) (n int) { return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1084,7 +1047,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } - func (m *Limits) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1279,7 +1241,6 @@ func (m *Limits) Unmarshal(dAtA []byte) error { } return nil } - func (m *Filter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1394,7 +1355,6 @@ func (m *Filter) Unmarshal(dAtA []byte) error { } return nil } - func (m *Interpreter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1543,7 +1503,6 @@ func (m *Interpreter) Unmarshal(dAtA []byte) error { } return nil } - func (m *GasPolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1700,7 +1659,6 @@ func (m *GasPolicy) Unmarshal(dAtA []byte) error { } return nil } - func (m *PredicateCost) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1819,7 +1777,6 @@ func (m *PredicateCost) Unmarshal(dAtA []byte) error { } return nil } - func skipParams(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/logic/types/query.pb.go b/x/logic/types/query.pb.go index c2046a9e..3c71a311 100644 --- a/x/logic/types/query.pb.go +++ b/x/logic/types/query.pb.go @@ -6,10 +6,6 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" @@ -17,14 +13,15 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -33,7 +30,8 @@ var ( const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // QueryServiceParamsRequest is request type for the QueryService/Params RPC method. -type QueryServiceParamsRequest struct{} +type QueryServiceParamsRequest struct { +} func (m *QueryServiceParamsRequest) Reset() { *m = QueryServiceParamsRequest{} } func (m *QueryServiceParamsRequest) String() string { return proto.CompactTextString(m) } @@ -41,11 +39,9 @@ func (*QueryServiceParamsRequest) ProtoMessage() {} func (*QueryServiceParamsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_008a54e610b23239, []int{0} } - func (m *QueryServiceParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryServiceParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryServiceParamsRequest.Marshal(b, m, deterministic) @@ -58,15 +54,12 @@ func (m *QueryServiceParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } - func (m *QueryServiceParamsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryServiceParamsRequest.Merge(m, src) } - func (m *QueryServiceParamsRequest) XXX_Size() int { return m.Size() } - func (m *QueryServiceParamsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryServiceParamsRequest.DiscardUnknown(m) } @@ -85,11 +78,9 @@ func (*QueryServiceParamsResponse) ProtoMessage() {} func (*QueryServiceParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_008a54e610b23239, []int{1} } - func (m *QueryServiceParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryServiceParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryServiceParamsResponse.Marshal(b, m, deterministic) @@ -102,15 +93,12 @@ func (m *QueryServiceParamsResponse) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } - func (m *QueryServiceParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryServiceParamsResponse.Merge(m, src) } - func (m *QueryServiceParamsResponse) XXX_Size() int { return m.Size() } - func (m *QueryServiceParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryServiceParamsResponse.DiscardUnknown(m) } @@ -138,11 +126,9 @@ func (*QueryServiceAskRequest) ProtoMessage() {} func (*QueryServiceAskRequest) Descriptor() ([]byte, []int) { return fileDescriptor_008a54e610b23239, []int{2} } - func (m *QueryServiceAskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryServiceAskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryServiceAskRequest.Marshal(b, m, deterministic) @@ -155,15 +141,12 @@ func (m *QueryServiceAskRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } - func (m *QueryServiceAskRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryServiceAskRequest.Merge(m, src) } - func (m *QueryServiceAskRequest) XXX_Size() int { return m.Size() } - func (m *QueryServiceAskRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryServiceAskRequest.DiscardUnknown(m) } @@ -203,11 +186,9 @@ func (*QueryServiceAskResponse) ProtoMessage() {} func (*QueryServiceAskResponse) Descriptor() ([]byte, []int) { return fileDescriptor_008a54e610b23239, []int{3} } - func (m *QueryServiceAskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryServiceAskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryServiceAskResponse.Marshal(b, m, deterministic) @@ -220,15 +201,12 @@ func (m *QueryServiceAskResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } - func (m *QueryServiceAskResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryServiceAskResponse.Merge(m, src) } - func (m *QueryServiceAskResponse) XXX_Size() int { return m.Size() } - func (m *QueryServiceAskResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryServiceAskResponse.DiscardUnknown(m) } @@ -310,10 +288,8 @@ var fileDescriptor_008a54e610b23239 = []byte{ } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -368,12 +344,12 @@ type QueryServiceServer interface { } // UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct{} +type UnimplementedQueryServiceServer struct { +} func (*UnimplementedQueryServiceServer) Params(ctx context.Context, req *QueryServiceParamsRequest) (*QueryServiceParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } - func (*UnimplementedQueryServiceServer) Ask(ctx context.Context, req *QueryServiceAskRequest) (*QueryServiceAskResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Ask not implemented") } @@ -591,7 +567,6 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *QueryServiceParamsRequest) Size() (n int) { if m == nil { return 0 @@ -655,11 +630,9 @@ func (m *QueryServiceAskResponse) Size() (n int) { func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *QueryServiceParamsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -710,7 +683,6 @@ func (m *QueryServiceParamsRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryServiceParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -794,7 +766,6 @@ func (m *QueryServiceParamsResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryServiceAskRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -909,7 +880,6 @@ func (m *QueryServiceAskRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryServiceAskResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1066,7 +1036,6 @@ func (m *QueryServiceAskResponse) Unmarshal(dAtA []byte) error { } return nil } - func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/logic/types/query.pb.gw.go b/x/logic/types/query.pb.gw.go index f1d5156c..6e416d9c 100644 --- a/x/logic/types/query.pb.gw.go +++ b/x/logic/types/query.pb.gw.go @@ -25,15 +25,13 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = descriptor.ForMessage - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join func request_QueryService_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryServiceParamsRequest @@ -41,6 +39,7 @@ func request_QueryService_Params_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_QueryService_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -49,9 +48,12 @@ func local_request_QueryService_Params_0(ctx context.Context, marshaler runtime. msg, err := server.Params(ctx, &protoReq) return msg, metadata, err + } -var filter_QueryService_Ask_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +var ( + filter_QueryService_Ask_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) func request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Marshaler, client QueryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryServiceAskRequest @@ -66,6 +68,7 @@ func request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Marshaler msg, err := client.Ask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -81,6 +84,7 @@ func local_request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Mar msg, err := server.Ask(ctx, &protoReq) return msg, metadata, err + } // RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". @@ -88,6 +92,7 @@ func local_request_QueryService_Ask_0(ctx context.Context, marshaler runtime.Mar // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryServiceHandlerFromEndpoint instead. func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error { + mux.Handle("GET", pattern_QueryService_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -108,6 +113,7 @@ func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu } forward_QueryService_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_QueryService_Ask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -130,6 +136,7 @@ func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu } forward_QueryService_Ask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -172,6 +179,7 @@ func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, con // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "QueryServiceClient" to call the correct interceptors. func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error { + mux.Handle("GET", pattern_QueryService_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -189,6 +197,7 @@ func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu } forward_QueryService_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_QueryService_Ask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -208,6 +217,7 @@ func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu } forward_QueryService_Ask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/x/logic/types/tx.pb.go b/x/logic/types/tx.pb.go index a73c6cf1..263eaf0f 100644 --- a/x/logic/types/tx.pb.go +++ b/x/logic/types/tx.pb.go @@ -6,10 +6,6 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/gogoproto/gogoproto" @@ -18,14 +14,15 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -48,11 +45,9 @@ func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { return fileDescriptor_19bfd5fc1a0735fe, []int{0} } - func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) @@ -65,15 +60,12 @@ func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } - func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParams.Merge(m, src) } - func (m *MsgUpdateParams) XXX_Size() int { return m.Size() } - func (m *MsgUpdateParams) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) } @@ -96,7 +88,8 @@ func (m *MsgUpdateParams) GetParams() Params { // MsgUpdateParamsResponse defines the response structure for executing a // MsgUpdateParams message. -type MsgUpdateParamsResponse struct{} +type MsgUpdateParamsResponse struct { +} func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } @@ -104,11 +97,9 @@ func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_19bfd5fc1a0735fe, []int{1} } - func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) @@ -121,15 +112,12 @@ func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } - func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) } - func (m *MsgUpdateParamsResponse) XXX_Size() int { return m.Size() } - func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) } @@ -168,10 +156,8 @@ var fileDescriptor_19bfd5fc1a0735fe = []byte{ } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -211,7 +197,8 @@ type MsgServiceServer interface { } // UnimplementedMsgServiceServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServiceServer struct{} +type UnimplementedMsgServiceServer struct { +} func (*UnimplementedMsgServiceServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") @@ -326,7 +313,6 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *MsgUpdateParams) Size() (n int) { if m == nil { return 0 @@ -354,11 +340,9 @@ func (m *MsgUpdateParamsResponse) Size() (n int) { func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -474,7 +458,6 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -525,7 +508,6 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } - func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/logic/types/types.pb.go b/x/logic/types/types.pb.go index 94137818..32a2ee93 100644 --- a/x/logic/types/types.pb.go +++ b/x/logic/types/types.pb.go @@ -5,20 +5,17 @@ package types import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" - - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -40,11 +37,9 @@ func (*Term) ProtoMessage() {} func (*Term) Descriptor() ([]byte, []int) { return fileDescriptor_f3c73c95465ca7a8, []int{0} } - func (m *Term) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Term) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Term.Marshal(b, m, deterministic) @@ -57,15 +52,12 @@ func (m *Term) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Term) XXX_Merge(src proto.Message) { xxx_messageInfo_Term.Merge(m, src) } - func (m *Term) XXX_Size() int { return m.Size() } - func (m *Term) XXX_DiscardUnknown() { xxx_messageInfo_Term.DiscardUnknown(m) } @@ -100,11 +92,9 @@ func (*Substitution) ProtoMessage() {} func (*Substitution) Descriptor() ([]byte, []int) { return fileDescriptor_f3c73c95465ca7a8, []int{1} } - func (m *Substitution) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Substitution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Substitution.Marshal(b, m, deterministic) @@ -117,15 +107,12 @@ func (m *Substitution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } - func (m *Substitution) XXX_Merge(src proto.Message) { xxx_messageInfo_Substitution.Merge(m, src) } - func (m *Substitution) XXX_Size() int { return m.Size() } - func (m *Substitution) XXX_DiscardUnknown() { xxx_messageInfo_Substitution.DiscardUnknown(m) } @@ -158,11 +145,9 @@ func (*Result) ProtoMessage() {} func (*Result) Descriptor() ([]byte, []int) { return fileDescriptor_f3c73c95465ca7a8, []int{2} } - func (m *Result) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Result.Marshal(b, m, deterministic) @@ -175,15 +160,12 @@ func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Result) XXX_Merge(src proto.Message) { xxx_messageInfo_Result.Merge(m, src) } - func (m *Result) XXX_Size() int { return m.Size() } - func (m *Result) XXX_DiscardUnknown() { xxx_messageInfo_Result.DiscardUnknown(m) } @@ -217,11 +199,9 @@ func (*Answer) ProtoMessage() {} func (*Answer) Descriptor() ([]byte, []int) { return fileDescriptor_f3c73c95465ca7a8, []int{3} } - func (m *Answer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Answer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Answer.Marshal(b, m, deterministic) @@ -234,15 +214,12 @@ func (m *Answer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Answer) XXX_Merge(src proto.Message) { xxx_messageInfo_Answer.Merge(m, src) } - func (m *Answer) XXX_Size() int { return m.Size() } - func (m *Answer) XXX_DiscardUnknown() { xxx_messageInfo_Answer.DiscardUnknown(m) } @@ -533,7 +510,6 @@ func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *Term) Size() (n int) { if m == nil { return 0 @@ -617,11 +593,9 @@ func (m *Answer) Size() (n int) { func sovTypes(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozTypes(x uint64) (n int) { return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *Term) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -738,7 +712,6 @@ func (m *Term) Unmarshal(dAtA []byte) error { } return nil } - func (m *Substitution) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -854,7 +827,6 @@ func (m *Substitution) Unmarshal(dAtA []byte) error { } return nil } - func (m *Result) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -939,7 +911,6 @@ func (m *Result) Unmarshal(dAtA []byte) error { } return nil } - func (m *Answer) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1128,7 +1099,6 @@ func (m *Answer) Unmarshal(dAtA []byte) error { } return nil } - func skipTypes(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/mint/types/genesis.pb.go b/x/mint/types/genesis.pb.go index a17d76e0..0fba23d2 100644 --- a/x/mint/types/genesis.pb.go +++ b/x/mint/types/genesis.pb.go @@ -5,21 +5,18 @@ package types import ( fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -41,11 +38,9 @@ func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { return fileDescriptor_1dfa75836a5d5f23, []int{0} } - func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) @@ -58,15 +53,12 @@ func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } - func (m *GenesisState) XXX_Merge(src proto.Message) { xxx_messageInfo_GenesisState.Merge(m, src) } - func (m *GenesisState) XXX_Size() int { return m.Size() } - func (m *GenesisState) XXX_DiscardUnknown() { xxx_messageInfo_GenesisState.DiscardUnknown(m) } @@ -165,7 +157,6 @@ func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *GenesisState) Size() (n int) { if m == nil { return 0 @@ -182,11 +173,9 @@ func (m *GenesisState) Size() (n int) { func sovGenesis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozGenesis(x uint64) (n int) { return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *GenesisState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -303,7 +292,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } return nil } - func skipGenesis(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/mint/types/mint.pb.go b/x/mint/types/mint.pb.go index 5c50af32..c4aa3508 100644 --- a/x/mint/types/mint.pb.go +++ b/x/mint/types/mint.pb.go @@ -4,24 +4,20 @@ package types import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - cosmossdk_io_math "cosmossdk.io/math" - + fmt "fmt" _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -43,11 +39,9 @@ func (*Minter) ProtoMessage() {} func (*Minter) Descriptor() ([]byte, []int) { return fileDescriptor_06339c129491fd39, []int{0} } - func (m *Minter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Minter.Marshal(b, m, deterministic) @@ -60,15 +54,12 @@ func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Minter) XXX_Merge(src proto.Message) { xxx_messageInfo_Minter.Merge(m, src) } - func (m *Minter) XXX_Size() int { return m.Size() } - func (m *Minter) XXX_DiscardUnknown() { xxx_messageInfo_Minter.DiscardUnknown(m) } @@ -91,11 +82,9 @@ func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_06339c129491fd39, []int{1} } - func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Params.Marshal(b, m, deterministic) @@ -108,15 +97,12 @@ func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Params) XXX_Merge(src proto.Message) { xxx_messageInfo_Params.Merge(m, src) } - func (m *Params) XXX_Size() int { return m.Size() } - func (m *Params) XXX_DiscardUnknown() { xxx_messageInfo_Params.DiscardUnknown(m) } @@ -269,7 +255,6 @@ func encodeVarintMint(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *Minter) Size() (n int) { if m == nil { return 0 @@ -304,11 +289,9 @@ func (m *Params) Size() (n int) { func sovMint(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozMint(x uint64) (n int) { return sovMint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *Minter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -427,7 +410,6 @@ func (m *Minter) Unmarshal(dAtA []byte) error { } return nil } - func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -563,7 +545,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } - func skipMint(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/mint/types/query.pb.go b/x/mint/types/query.pb.go index a19edcdd..a14a480a 100644 --- a/x/mint/types/query.pb.go +++ b/x/mint/types/query.pb.go @@ -5,13 +5,8 @@ package types import ( context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - cosmossdk_io_math "cosmossdk.io/math" - + fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" @@ -20,14 +15,15 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -36,7 +32,8 @@ var ( const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryParamsRequest struct{} +type QueryParamsRequest struct { +} func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } @@ -44,11 +41,9 @@ func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{0} } - func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) @@ -61,15 +56,12 @@ func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsRequest.Merge(m, src) } - func (m *QueryParamsRequest) XXX_Size() int { return m.Size() } - func (m *QueryParamsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) } @@ -88,11 +80,9 @@ func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{1} } - func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) @@ -105,15 +95,12 @@ func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsResponse.Merge(m, src) } - func (m *QueryParamsResponse) XXX_Size() int { return m.Size() } - func (m *QueryParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) } @@ -128,7 +115,8 @@ func (m *QueryParamsResponse) GetParams() Params { } // QueryInflationRequest is the request type for the Query/Inflation RPC method. -type QueryInflationRequest struct{} +type QueryInflationRequest struct { +} func (m *QueryInflationRequest) Reset() { *m = QueryInflationRequest{} } func (m *QueryInflationRequest) String() string { return proto.CompactTextString(m) } @@ -136,11 +124,9 @@ func (*QueryInflationRequest) ProtoMessage() {} func (*QueryInflationRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{2} } - func (m *QueryInflationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryInflationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryInflationRequest.Marshal(b, m, deterministic) @@ -153,15 +139,12 @@ func (m *QueryInflationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } - func (m *QueryInflationRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryInflationRequest.Merge(m, src) } - func (m *QueryInflationRequest) XXX_Size() int { return m.Size() } - func (m *QueryInflationRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryInflationRequest.DiscardUnknown(m) } @@ -181,11 +164,9 @@ func (*QueryInflationResponse) ProtoMessage() {} func (*QueryInflationResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{3} } - func (m *QueryInflationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryInflationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryInflationResponse.Marshal(b, m, deterministic) @@ -198,15 +179,12 @@ func (m *QueryInflationResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } - func (m *QueryInflationResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryInflationResponse.Merge(m, src) } - func (m *QueryInflationResponse) XXX_Size() int { return m.Size() } - func (m *QueryInflationResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryInflationResponse.DiscardUnknown(m) } @@ -215,7 +193,8 @@ var xxx_messageInfo_QueryInflationResponse proto.InternalMessageInfo // QueryAnnualProvisionsRequest is the request type for the // Query/AnnualProvisions RPC method. -type QueryAnnualProvisionsRequest struct{} +type QueryAnnualProvisionsRequest struct { +} func (m *QueryAnnualProvisionsRequest) Reset() { *m = QueryAnnualProvisionsRequest{} } func (m *QueryAnnualProvisionsRequest) String() string { return proto.CompactTextString(m) } @@ -223,11 +202,9 @@ func (*QueryAnnualProvisionsRequest) ProtoMessage() {} func (*QueryAnnualProvisionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{4} } - func (m *QueryAnnualProvisionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryAnnualProvisionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAnnualProvisionsRequest.Marshal(b, m, deterministic) @@ -240,15 +217,12 @@ func (m *QueryAnnualProvisionsRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } - func (m *QueryAnnualProvisionsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAnnualProvisionsRequest.Merge(m, src) } - func (m *QueryAnnualProvisionsRequest) XXX_Size() int { return m.Size() } - func (m *QueryAnnualProvisionsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryAnnualProvisionsRequest.DiscardUnknown(m) } @@ -268,11 +242,9 @@ func (*QueryAnnualProvisionsResponse) ProtoMessage() {} func (*QueryAnnualProvisionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b0718dda172d2cb4, []int{5} } - func (m *QueryAnnualProvisionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryAnnualProvisionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAnnualProvisionsResponse.Marshal(b, m, deterministic) @@ -285,15 +257,12 @@ func (m *QueryAnnualProvisionsResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } - func (m *QueryAnnualProvisionsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAnnualProvisionsResponse.Merge(m, src) } - func (m *QueryAnnualProvisionsResponse) XXX_Size() int { return m.Size() } - func (m *QueryAnnualProvisionsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryAnnualProvisionsResponse.DiscardUnknown(m) } @@ -346,10 +315,8 @@ var fileDescriptor_b0718dda172d2cb4 = []byte{ } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -413,16 +380,15 @@ type QueryServer interface { } // UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct{} +type UnimplementedQueryServer struct { +} func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } - func (*UnimplementedQueryServer) Inflation(ctx context.Context, req *QueryInflationRequest) (*QueryInflationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Inflation not implemented") } - func (*UnimplementedQueryServer) AnnualProvisions(ctx context.Context, req *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AnnualProvisions not implemented") } @@ -685,7 +651,6 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *QueryParamsRequest) Size() (n int) { if m == nil { return 0 @@ -749,11 +714,9 @@ func (m *QueryAnnualProvisionsResponse) Size() (n int) { func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -804,7 +767,6 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -888,7 +850,6 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryInflationRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -939,7 +900,6 @@ func (m *QueryInflationRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryInflationResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1023,7 +983,6 @@ func (m *QueryInflationResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryAnnualProvisionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1074,7 +1033,6 @@ func (m *QueryAnnualProvisionsRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryAnnualProvisionsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1158,7 +1116,6 @@ func (m *QueryAnnualProvisionsResponse) Unmarshal(dAtA []byte) error { } return nil } - func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/mint/types/query.pb.gw.go b/x/mint/types/query.pb.gw.go index 31809a5c..bde697f7 100644 --- a/x/mint/types/query.pb.gw.go +++ b/x/mint/types/query.pb.gw.go @@ -25,15 +25,13 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = descriptor.ForMessage - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryParamsRequest @@ -41,6 +39,7 @@ func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, cl msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -49,6 +48,7 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal msg, err := server.Params(ctx, &protoReq) return msg, metadata, err + } func request_Query_Inflation_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -57,6 +57,7 @@ func request_Query_Inflation_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.Inflation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_Inflation_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -65,6 +66,7 @@ func local_request_Query_Inflation_0(ctx context.Context, marshaler runtime.Mars msg, err := server.Inflation(ctx, &protoReq) return msg, metadata, err + } func request_Query_AnnualProvisions_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -73,6 +75,7 @@ func request_Query_AnnualProvisions_0(ctx context.Context, marshaler runtime.Mar msg, err := client.AnnualProvisions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_AnnualProvisions_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -81,6 +84,7 @@ func local_request_Query_AnnualProvisions_0(ctx context.Context, marshaler runti msg, err := server.AnnualProvisions(ctx, &protoReq) return msg, metadata, err + } // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". @@ -88,6 +92,7 @@ func local_request_Query_AnnualProvisions_0(ctx context.Context, marshaler runti // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -108,6 +113,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_Inflation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -130,6 +136,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_Inflation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_AnnualProvisions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -152,6 +159,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_AnnualProvisions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -194,6 +202,7 @@ func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "QueryClient" to call the correct interceptors. func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -211,6 +220,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_Inflation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -230,6 +240,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_Inflation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_AnnualProvisions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -249,6 +260,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_AnnualProvisions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/x/mint/types/tx.pb.go b/x/mint/types/tx.pb.go index c3693f5b..4f00745e 100644 --- a/x/mint/types/tx.pb.go +++ b/x/mint/types/tx.pb.go @@ -6,10 +6,6 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" @@ -19,14 +15,15 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -52,11 +49,9 @@ func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { return fileDescriptor_79e41a47c726ee2e, []int{0} } - func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) @@ -69,15 +64,12 @@ func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } - func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParams.Merge(m, src) } - func (m *MsgUpdateParams) XXX_Size() int { return m.Size() } - func (m *MsgUpdateParams) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) } @@ -102,7 +94,8 @@ func (m *MsgUpdateParams) GetParams() Params { // MsgUpdateParams message. // // Since: cosmos-sdk 0.47 -type MsgUpdateParamsResponse struct{} +type MsgUpdateParamsResponse struct { +} func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } @@ -110,11 +103,9 @@ func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_79e41a47c726ee2e, []int{1} } - func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) @@ -127,15 +118,12 @@ func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } - func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) } - func (m *MsgUpdateParamsResponse) XXX_Size() int { return m.Size() } - func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) } @@ -176,10 +164,8 @@ var fileDescriptor_79e41a47c726ee2e = []byte{ } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -223,7 +209,8 @@ type MsgServer interface { } // UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct{} +type UnimplementedMsgServer struct { +} func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") @@ -338,7 +325,6 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *MsgUpdateParams) Size() (n int) { if m == nil { return 0 @@ -366,11 +352,9 @@ func (m *MsgUpdateParamsResponse) Size() (n int) { func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -486,7 +470,6 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -537,7 +520,6 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } - func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/vesting/types/tx.pb.go b/x/vesting/types/tx.pb.go index 40485068..f3e8c57c 100644 --- a/x/vesting/types/tx.pb.go +++ b/x/vesting/types/tx.pb.go @@ -6,10 +6,6 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" @@ -21,14 +17,15 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -52,11 +49,9 @@ func (*MsgCreateVestingAccount) ProtoMessage() {} func (*MsgCreateVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{0} } - func (m *MsgCreateVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreateVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateVestingAccount.Marshal(b, m, deterministic) @@ -69,15 +64,12 @@ func (m *MsgCreateVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } - func (m *MsgCreateVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateVestingAccount.Merge(m, src) } - func (m *MsgCreateVestingAccount) XXX_Size() int { return m.Size() } - func (m *MsgCreateVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateVestingAccount.DiscardUnknown(m) } @@ -120,7 +112,8 @@ func (m *MsgCreateVestingAccount) GetDelayed() bool { } // MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. -type MsgCreateVestingAccountResponse struct{} +type MsgCreateVestingAccountResponse struct { +} func (m *MsgCreateVestingAccountResponse) Reset() { *m = MsgCreateVestingAccountResponse{} } func (m *MsgCreateVestingAccountResponse) String() string { return proto.CompactTextString(m) } @@ -128,11 +121,9 @@ func (*MsgCreateVestingAccountResponse) ProtoMessage() {} func (*MsgCreateVestingAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{1} } - func (m *MsgCreateVestingAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreateVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateVestingAccountResponse.Marshal(b, m, deterministic) @@ -145,15 +136,12 @@ func (m *MsgCreateVestingAccountResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } - func (m *MsgCreateVestingAccountResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateVestingAccountResponse.Merge(m, src) } - func (m *MsgCreateVestingAccountResponse) XXX_Size() int { return m.Size() } - func (m *MsgCreateVestingAccountResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateVestingAccountResponse.DiscardUnknown(m) } @@ -176,11 +164,9 @@ func (*MsgCreatePermanentLockedAccount) ProtoMessage() {} func (*MsgCreatePermanentLockedAccount) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{2} } - func (m *MsgCreatePermanentLockedAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreatePermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreatePermanentLockedAccount.Marshal(b, m, deterministic) @@ -193,15 +179,12 @@ func (m *MsgCreatePermanentLockedAccount) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } - func (m *MsgCreatePermanentLockedAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreatePermanentLockedAccount.Merge(m, src) } - func (m *MsgCreatePermanentLockedAccount) XXX_Size() int { return m.Size() } - func (m *MsgCreatePermanentLockedAccount) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreatePermanentLockedAccount.DiscardUnknown(m) } @@ -232,7 +215,8 @@ func (m *MsgCreatePermanentLockedAccount) GetAmount() github_com_cosmos_cosmos_s // MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. // // Since: cosmos-sdk 0.46 -type MsgCreatePermanentLockedAccountResponse struct{} +type MsgCreatePermanentLockedAccountResponse struct { +} func (m *MsgCreatePermanentLockedAccountResponse) Reset() { *m = MsgCreatePermanentLockedAccountResponse{} @@ -242,11 +226,9 @@ func (*MsgCreatePermanentLockedAccountResponse) ProtoMessage() {} func (*MsgCreatePermanentLockedAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{3} } - func (m *MsgCreatePermanentLockedAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreatePermanentLockedAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreatePermanentLockedAccountResponse.Marshal(b, m, deterministic) @@ -259,15 +241,12 @@ func (m *MsgCreatePermanentLockedAccountResponse) XXX_Marshal(b []byte, determin return b[:n], nil } } - func (m *MsgCreatePermanentLockedAccountResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreatePermanentLockedAccountResponse.Merge(m, src) } - func (m *MsgCreatePermanentLockedAccountResponse) XXX_Size() int { return m.Size() } - func (m *MsgCreatePermanentLockedAccountResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreatePermanentLockedAccountResponse.DiscardUnknown(m) } @@ -292,11 +271,9 @@ func (*MsgCreatePeriodicVestingAccount) ProtoMessage() {} func (*MsgCreatePeriodicVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{4} } - func (m *MsgCreatePeriodicVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreatePeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreatePeriodicVestingAccount.Marshal(b, m, deterministic) @@ -309,15 +286,12 @@ func (m *MsgCreatePeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } - func (m *MsgCreatePeriodicVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreatePeriodicVestingAccount.Merge(m, src) } - func (m *MsgCreatePeriodicVestingAccount) XXX_Size() int { return m.Size() } - func (m *MsgCreatePeriodicVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreatePeriodicVestingAccount.DiscardUnknown(m) } @@ -356,7 +330,8 @@ func (m *MsgCreatePeriodicVestingAccount) GetVestingPeriods() []Period { // response type. // // Since: cosmos-sdk 0.46 -type MsgCreatePeriodicVestingAccountResponse struct{} +type MsgCreatePeriodicVestingAccountResponse struct { +} func (m *MsgCreatePeriodicVestingAccountResponse) Reset() { *m = MsgCreatePeriodicVestingAccountResponse{} @@ -366,11 +341,9 @@ func (*MsgCreatePeriodicVestingAccountResponse) ProtoMessage() {} func (*MsgCreatePeriodicVestingAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{5} } - func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreatePeriodicVestingAccountResponse.Marshal(b, m, deterministic) @@ -383,15 +356,12 @@ func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Marshal(b []byte, determin return b[:n], nil } } - func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreatePeriodicVestingAccountResponse.Merge(m, src) } - func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Size() int { return m.Size() } - func (m *MsgCreatePeriodicVestingAccountResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreatePeriodicVestingAccountResponse.DiscardUnknown(m) } @@ -414,11 +384,9 @@ func (*MsgCreateCliffVestingAccount) ProtoMessage() {} func (*MsgCreateCliffVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{6} } - func (m *MsgCreateCliffVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreateCliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateCliffVestingAccount.Marshal(b, m, deterministic) @@ -431,15 +399,12 @@ func (m *MsgCreateCliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } - func (m *MsgCreateCliffVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateCliffVestingAccount.Merge(m, src) } - func (m *MsgCreateCliffVestingAccount) XXX_Size() int { return m.Size() } - func (m *MsgCreateCliffVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateCliffVestingAccount.DiscardUnknown(m) } @@ -482,7 +447,8 @@ func (m *MsgCreateCliffVestingAccount) GetCliffTime() int64 { } // MsgCreateCliffVestingAccountResponse defines the Msg/CreateVestingAccount response type. -type MsgCreateCliffVestingAccountResponse struct{} +type MsgCreateCliffVestingAccountResponse struct { +} func (m *MsgCreateCliffVestingAccountResponse) Reset() { *m = MsgCreateCliffVestingAccountResponse{} } func (m *MsgCreateCliffVestingAccountResponse) String() string { return proto.CompactTextString(m) } @@ -490,11 +456,9 @@ func (*MsgCreateCliffVestingAccountResponse) ProtoMessage() {} func (*MsgCreateCliffVestingAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c66d8e2aee35e411, []int{7} } - func (m *MsgCreateCliffVestingAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreateCliffVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateCliffVestingAccountResponse.Marshal(b, m, deterministic) @@ -507,15 +471,12 @@ func (m *MsgCreateCliffVestingAccountResponse) XXX_Marshal(b []byte, determinist return b[:n], nil } } - func (m *MsgCreateCliffVestingAccountResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateCliffVestingAccountResponse.Merge(m, src) } - func (m *MsgCreateCliffVestingAccountResponse) XXX_Size() int { return m.Size() } - func (m *MsgCreateCliffVestingAccountResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateCliffVestingAccountResponse.DiscardUnknown(m) } @@ -626,7 +587,6 @@ func (this *MsgCreateVestingAccount) Equal(that interface{}) bool { } return true } - func (this *MsgCreatePermanentLockedAccount) Equal(that interface{}) bool { if that == nil { return this == nil @@ -662,7 +622,6 @@ func (this *MsgCreatePermanentLockedAccount) Equal(that interface{}) bool { } return true } - func (this *MsgCreateCliffVestingAccount) Equal(that interface{}) bool { if that == nil { return this == nil @@ -706,10 +665,8 @@ func (this *MsgCreateCliffVestingAccount) Equal(that interface{}) bool { } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -802,20 +759,18 @@ type MsgServer interface { } // UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct{} +type UnimplementedMsgServer struct { +} func (*UnimplementedMsgServer) CreateVestingAccount(ctx context.Context, req *MsgCreateVestingAccount) (*MsgCreateVestingAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateVestingAccount not implemented") } - func (*UnimplementedMsgServer) CreatePermanentLockedAccount(ctx context.Context, req *MsgCreatePermanentLockedAccount) (*MsgCreatePermanentLockedAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePermanentLockedAccount not implemented") } - func (*UnimplementedMsgServer) CreatePeriodicVestingAccount(ctx context.Context, req *MsgCreatePeriodicVestingAccount) (*MsgCreatePeriodicVestingAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePeriodicVestingAccount not implemented") } - func (*UnimplementedMsgServer) CreateCliffVestingAccount(ctx context.Context, req *MsgCreateCliffVestingAccount) (*MsgCreateCliffVestingAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateCliffVestingAccount not implemented") } @@ -1258,7 +1213,6 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *MsgCreateVestingAccount) Size() (n int) { if m == nil { return 0 @@ -1405,11 +1359,9 @@ func (m *MsgCreateCliffVestingAccountResponse) Size() (n int) { func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *MsgCreateVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1597,7 +1549,6 @@ func (m *MsgCreateVestingAccount) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCreateVestingAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1648,7 +1599,6 @@ func (m *MsgCreateVestingAccountResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCreatePermanentLockedAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1797,7 +1747,6 @@ func (m *MsgCreatePermanentLockedAccount) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCreatePermanentLockedAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1848,7 +1797,6 @@ func (m *MsgCreatePermanentLockedAccountResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCreatePeriodicVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2016,7 +1964,6 @@ func (m *MsgCreatePeriodicVestingAccount) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCreatePeriodicVestingAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2067,7 +2014,6 @@ func (m *MsgCreatePeriodicVestingAccountResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCreateCliffVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2254,7 +2200,6 @@ func (m *MsgCreateCliffVestingAccount) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCreateCliffVestingAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2305,7 +2250,6 @@ func (m *MsgCreateCliffVestingAccountResponse) Unmarshal(dAtA []byte) error { } return nil } - func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/vesting/types/vesting.pb.go b/x/vesting/types/vesting.pb.go index 4b3b87a1..c85c68ce 100644 --- a/x/vesting/types/vesting.pb.go +++ b/x/vesting/types/vesting.pb.go @@ -5,24 +5,21 @@ package types import ( fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types1 "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" types "github.com/cosmos/cosmos-sdk/x/auth/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -46,11 +43,9 @@ func (*BaseVestingAccount) ProtoMessage() {} func (*BaseVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{0} } - func (m *BaseVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *BaseVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_BaseVestingAccount.Marshal(b, m, deterministic) @@ -63,15 +58,12 @@ func (m *BaseVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *BaseVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_BaseVestingAccount.Merge(m, src) } - func (m *BaseVestingAccount) XXX_Size() int { return m.Size() } - func (m *BaseVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_BaseVestingAccount.DiscardUnknown(m) } @@ -91,11 +83,9 @@ func (*ContinuousVestingAccount) ProtoMessage() {} func (*ContinuousVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{1} } - func (m *ContinuousVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *ContinuousVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ContinuousVestingAccount.Marshal(b, m, deterministic) @@ -108,15 +98,12 @@ func (m *ContinuousVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } - func (m *ContinuousVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_ContinuousVestingAccount.Merge(m, src) } - func (m *ContinuousVestingAccount) XXX_Size() int { return m.Size() } - func (m *ContinuousVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_ContinuousVestingAccount.DiscardUnknown(m) } @@ -135,11 +122,9 @@ func (*DelayedVestingAccount) ProtoMessage() {} func (*DelayedVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{2} } - func (m *DelayedVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *DelayedVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DelayedVestingAccount.Marshal(b, m, deterministic) @@ -152,15 +137,12 @@ func (m *DelayedVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } - func (m *DelayedVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_DelayedVestingAccount.Merge(m, src) } - func (m *DelayedVestingAccount) XXX_Size() int { return m.Size() } - func (m *DelayedVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_DelayedVestingAccount.DiscardUnknown(m) } @@ -178,11 +160,9 @@ func (*Period) ProtoMessage() {} func (*Period) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{3} } - func (m *Period) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Period.Marshal(b, m, deterministic) @@ -195,15 +175,12 @@ func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Period) XXX_Merge(src proto.Message) { xxx_messageInfo_Period.Merge(m, src) } - func (m *Period) XXX_Size() int { return m.Size() } - func (m *Period) XXX_DiscardUnknown() { xxx_messageInfo_Period.DiscardUnknown(m) } @@ -237,11 +214,9 @@ func (*PeriodicVestingAccount) ProtoMessage() {} func (*PeriodicVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{4} } - func (m *PeriodicVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *PeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PeriodicVestingAccount.Marshal(b, m, deterministic) @@ -254,15 +229,12 @@ func (m *PeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } - func (m *PeriodicVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_PeriodicVestingAccount.Merge(m, src) } - func (m *PeriodicVestingAccount) XXX_Size() int { return m.Size() } - func (m *PeriodicVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_PeriodicVestingAccount.DiscardUnknown(m) } @@ -283,11 +255,9 @@ func (*PermanentLockedAccount) ProtoMessage() {} func (*PermanentLockedAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{5} } - func (m *PermanentLockedAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *PermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PermanentLockedAccount.Marshal(b, m, deterministic) @@ -300,15 +270,12 @@ func (m *PermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } - func (m *PermanentLockedAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_PermanentLockedAccount.Merge(m, src) } - func (m *PermanentLockedAccount) XXX_Size() int { return m.Size() } - func (m *PermanentLockedAccount) XXX_DiscardUnknown() { xxx_messageInfo_PermanentLockedAccount.DiscardUnknown(m) } @@ -331,11 +298,9 @@ func (*CliffVestingAccount) ProtoMessage() {} func (*CliffVestingAccount) Descriptor() ([]byte, []int) { return fileDescriptor_eac461ec52018387, []int{6} } - func (m *CliffVestingAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *CliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_CliffVestingAccount.Marshal(b, m, deterministic) @@ -348,15 +313,12 @@ func (m *CliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *CliffVestingAccount) XXX_Merge(src proto.Message) { xxx_messageInfo_CliffVestingAccount.Merge(m, src) } - func (m *CliffVestingAccount) XXX_Size() int { return m.Size() } - func (m *CliffVestingAccount) XXX_DiscardUnknown() { xxx_messageInfo_CliffVestingAccount.DiscardUnknown(m) } @@ -763,7 +725,6 @@ func encodeVarintVesting(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *BaseVestingAccount) Size() (n int) { if m == nil { return 0 @@ -902,11 +863,9 @@ func (m *CliffVestingAccount) Size() (n int) { func sovVesting(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozVesting(x uint64) (n int) { return sovVesting(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1114,7 +1073,6 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { } return nil } - func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1220,7 +1178,6 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { } return nil } - func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1307,7 +1264,6 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error { } return nil } - func (m *Period) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1411,7 +1367,6 @@ func (m *Period) Unmarshal(dAtA []byte) error { } return nil } - func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1551,7 +1506,6 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { } return nil } - func (m *PermanentLockedAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1638,7 +1592,6 @@ func (m *PermanentLockedAccount) Unmarshal(dAtA []byte) error { } return nil } - func (m *CliffVestingAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1763,7 +1716,6 @@ func (m *CliffVestingAccount) Unmarshal(dAtA []byte) error { } return nil } - func skipVesting(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 From 959887392bcd2cf4b4ab3685f9271f395f6aa765 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:32:33 +0100 Subject: [PATCH 21/29] test: migrate them --- scripts/main.go | 14 ++-- x/logic/predicate/builtin_test.go | 4 +- x/logic/predicate/did_test.go | 4 +- x/logic/predicate/encoding_test.go | 4 +- x/logic/predicate/file_test.go | 4 +- x/logic/predicate/json_test.go | 4 +- x/logic/predicate/uri_test.go | 4 +- x/mint/client/cli/query_test.go | 6 +- x/mint/keeper/genesis_test.go | 25 ++++--- x/mint/keeper/grpc_query_test.go | 4 +- x/mint/keeper/keeper.go | 15 +--- x/mint/keeper/keeper_test.go | 77 ++++++--------------- x/mint/keeper/msg_server.go | 17 ++--- x/mint/simulation/decoder_test.go | 5 +- x/mint/types/minter_test.go | 16 ++--- x/vesting/types/vesting_account_test.go | 92 ++++--------------------- 16 files changed, 98 insertions(+), 197 deletions(-) diff --git a/scripts/main.go b/scripts/main.go index a076b038..36b29042 100644 --- a/scripts/main.go +++ b/scripts/main.go @@ -1,12 +1,11 @@ package main import ( - "errors" "os" - "github.com/spf13/cobra" + "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/server" + "github.com/spf13/cobra" ) func main() { @@ -23,13 +22,8 @@ func main() { rootCmd.AddCommand(generatePredicateDocumentationCommand()) if err := rootCmd.Execute(); err != nil { - var codeErr *server.ErrorCode - switch { - case errors.As(err, &codeErr): - os.Exit(codeErr.Code) - default: - os.Exit(1) - } + log.NewLogger(rootCmd.OutOrStderr()).Error("failure when running app", "err", err) + os.Exit(1) } } diff --git a/x/logic/predicate/builtin_test.go b/x/logic/predicate/builtin_test.go index d50e66c1..6539ee31 100644 --- a/x/logic/predicate/builtin_test.go +++ b/x/logic/predicate/builtin_test.go @@ -4,14 +4,16 @@ import ( "fmt" "testing" + "cosmossdk.io/store/metrics" + "github.com/golang/mock/gomock" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" "cosmossdk.io/log" - tmdb "github.com/cometbft/cometbft-db" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/logic/predicate/did_test.go b/x/logic/predicate/did_test.go index 827971b3..25bd477c 100644 --- a/x/logic/predicate/did_test.go +++ b/x/logic/predicate/did_test.go @@ -6,13 +6,15 @@ import ( "strings" "testing" + "cosmossdk.io/store/metrics" + "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" "cosmossdk.io/log" - tmdb "github.com/cometbft/cometbft-db" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/logic/predicate/encoding_test.go b/x/logic/predicate/encoding_test.go index c17e4505..a96a8c54 100644 --- a/x/logic/predicate/encoding_test.go +++ b/x/logic/predicate/encoding_test.go @@ -5,14 +5,16 @@ import ( "strings" "testing" + "cosmossdk.io/store/metrics" + "github.com/ichiban/prolog" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" "cosmossdk.io/log" - tmdb "github.com/cometbft/cometbft-db" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/logic/predicate/file_test.go b/x/logic/predicate/file_test.go index a2f28505..aabbe641 100644 --- a/x/logic/predicate/file_test.go +++ b/x/logic/predicate/file_test.go @@ -9,6 +9,8 @@ import ( "testing" "time" + "cosmossdk.io/store/metrics" + "github.com/golang/mock/gomock" "github.com/ichiban/prolog" "github.com/ichiban/prolog/engine" @@ -16,8 +18,8 @@ import ( . "github.com/smartystreets/goconvey/convey" "cosmossdk.io/log" - tmdb "github.com/cometbft/cometbft-db" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/logic/predicate/json_test.go b/x/logic/predicate/json_test.go index 390bd3b5..f6eed27d 100644 --- a/x/logic/predicate/json_test.go +++ b/x/logic/predicate/json_test.go @@ -6,13 +6,15 @@ import ( "strings" "testing" + "cosmossdk.io/store/metrics" + "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" "cosmossdk.io/log" - tmdb "github.com/cometbft/cometbft-db" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/logic/predicate/uri_test.go b/x/logic/predicate/uri_test.go index 7571bf2c..804c5c92 100644 --- a/x/logic/predicate/uri_test.go +++ b/x/logic/predicate/uri_test.go @@ -6,13 +6,15 @@ import ( "strings" "testing" + "cosmossdk.io/store/metrics" + "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" "cosmossdk.io/log" - tmdb "github.com/cometbft/cometbft-db" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" "cosmossdk.io/store" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/mint/client/cli/query_test.go b/x/mint/client/cli/query_test.go index c30df331..5a496030 100644 --- a/x/mint/client/cli/query_test.go +++ b/x/mint/client/cli/query_test.go @@ -29,7 +29,7 @@ func TestGetCmdQueryParams(t *testing.T) { WithKeyring(kr). WithTxConfig(encCfg.TxConfig). WithCodec(encCfg.Codec). - WithClient(clitestutil.MockTendermintRPC{Client: rpcclientmock.Client{}}). + WithClient(clitestutil.MockCometRPC{Client: rpcclientmock.Client{}}). WithAccountRetriever(client.MockAccountRetriever{}). WithOutput(io.Discard). WithChainID("test-chain") @@ -91,7 +91,7 @@ func TestGetCmdQueryInflation(t *testing.T) { WithKeyring(kr). WithTxConfig(encCfg.TxConfig). WithCodec(encCfg.Codec). - WithClient(clitestutil.MockTendermintRPC{Client: rpcclientmock.Client{}}). + WithClient(clitestutil.MockCometRPC{Client: rpcclientmock.Client{}}). WithAccountRetriever(client.MockAccountRetriever{}). WithOutput(io.Discard). WithChainID("test-chain") @@ -151,7 +151,7 @@ func TestGetCmdQueryAnnualProvisions(t *testing.T) { WithKeyring(kr). WithTxConfig(encCfg.TxConfig). WithCodec(encCfg.Codec). - WithClient(clitestutil.MockTendermintRPC{Client: rpcclientmock.Client{}}). + WithClient(clitestutil.MockCometRPC{Client: rpcclientmock.Client{}}). WithAccountRetriever(client.MockAccountRetriever{}). WithOutput(io.Discard). WithChainID("test-chain") diff --git a/x/mint/keeper/genesis_test.go b/x/mint/keeper/genesis_test.go index d303e933..309a3878 100644 --- a/x/mint/keeper/genesis_test.go +++ b/x/mint/keeper/genesis_test.go @@ -3,6 +3,11 @@ package keeper_test import ( "testing" + "cosmossdk.io/collections" + "github.com/cosmos/cosmos-sdk/runtime" + + "cosmossdk.io/math" + "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" @@ -36,8 +41,8 @@ func TestGenesisTestSuite(t *testing.T) { } func (s *GenesisTestSuite) SetupTest() { - key := sdk.NewKVStoreKey(types.StoreKey) - testCtx := testutil.DefaultContextWithDB(s.T(), key, sdk.NewTransientStoreKey("transient_test")) + key := storetypes.NewKVStoreKey(types.StoreKey) + testCtx := testutil.DefaultContextWithDB(s.T(), key, storetypes.NewTransientStoreKey("transient_test")) encCfg := moduletestutil.MakeTestEncodingConfig(mint.AppModuleBasic{}) // gomock initializations @@ -53,12 +58,12 @@ func (s *GenesisTestSuite) SetupTest() { accountKeeper.EXPECT().GetModuleAddress(minterAcc.Name).Return(minterAcc.GetAddress()) accountKeeper.EXPECT().GetModuleAccount(s.sdkCtx, minterAcc.Name).Return(minterAcc) - s.keeper = keeper.NewKeeper(s.cdc, key, stakingKeeper, accountKeeper, bankKeeper, "", "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn") + s.keeper = keeper.NewKeeper(s.cdc, runtime.NewKVStoreService(key), stakingKeeper, accountKeeper, bankKeeper, "", "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn") } func (s *GenesisTestSuite) TestImportExportGenesis() { genesisState := types.DefaultGenesisState() - genesisState.Minter = types.NewMinter(sdk.OneDec(), math.LegacyNewDecWithPrec(20, 2)) + genesisState.Minter = types.NewMinter(math.LegacyOneDec(), math.LegacyNewDecWithPrec(20, 2)) genesisState.Params = types.NewParams( "testDenom", math.LegacyNewDecWithPrec(69, 2), @@ -67,13 +72,17 @@ func (s *GenesisTestSuite) TestImportExportGenesis() { s.keeper.InitGenesis(s.sdkCtx, s.accountKeeper, genesisState) - minter := s.keeper.GetMinter(s.sdkCtx) + minter, err := s.keeper.Minter.Get(s.sdkCtx) s.Require().Equal(genesisState.Minter, minter) + s.Require().NoError(err) + + invalidCtx := testutil.DefaultContextWithDB(s.T(), s.key, storetypes.NewTransientStoreKey("transient_test")) + _, err = s.keeper.Minter.Get(invalidCtx.Ctx) + s.Require().ErrorIs(err, collections.ErrNotFound) - invalidCtx := testutil.DefaultContextWithDB(s.T(), s.key, sdk.NewTransientStoreKey("transient_test")) - s.Require().Panics(func() { s.keeper.GetMinter(invalidCtx.Ctx) }, "stored minter should not have been nil") - params := s.keeper.GetParams(s.sdkCtx) + params, err := s.keeper.Params.Get(s.sdkCtx) s.Require().Equal(genesisState.Params, params) + s.Require().NoError(err) genesisState2 := s.keeper.ExportGenesis(s.sdkCtx) s.Require().Equal(genesisState, genesisState2) diff --git a/x/mint/keeper/grpc_query_test.go b/x/mint/keeper/grpc_query_test.go index 7019e411..ea7e9b07 100644 --- a/x/mint/keeper/grpc_query_test.go +++ b/x/mint/keeper/grpc_query_test.go @@ -77,13 +77,13 @@ func (suite *MintTestSuite) TestGRPCParams() { suite.Require().NoError(err) minter, err := suite.mintKeeper.Minter.Get(suite.ctx) suite.Require().NoError(err) - suite.Require().Equal(inflation.Inflation, minter) + suite.Require().Equal(inflation.Inflation, minter.Inflation) annualProvisions, err := suite.queryClient.AnnualProvisions(gocontext.Background(), &types.QueryAnnualProvisionsRequest{}) suite.Require().NoError(err) minter, err = suite.mintKeeper.Minter.Get(suite.ctx) suite.Require().NoError(err) - suite.Require().Equal(annualProvisions.AnnualProvisions, minter) + suite.Require().Equal(annualProvisions.AnnualProvisions, minter.AnnualProvisions) } func TestMintTestSuite(t *testing.T) { diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index af7d4402..b92d67c5 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -21,7 +21,7 @@ type Keeper struct { cdc codec.BinaryCodec storeService store.KVStoreService // the address capable of executing a MsgUpdateParams message. Typically, this should be the x/gov module account. - authority sdk.AccAddress + authority string stakingKeeper types.StakingKeeper bankKeeper types.BankKeeper feeCollectorName string @@ -46,20 +46,11 @@ func NewKeeper( panic("the mint module account has not been set") } - // ensure gov module account is set and is not nil - addr, err := sdk.AccAddressFromBech32(authority) - if err != nil { - panic(err) - } - if err := sdk.VerifyAddressFormat(addr); err != nil { - panic(err) - } - sb := collections.NewSchemaBuilder(storeService) k := Keeper{ cdc: cdc, storeService: storeService, - authority: addr, + authority: authority, stakingKeeper: sk, bankKeeper: bk, feeCollectorName: feeCollectorName, @@ -78,7 +69,7 @@ func NewKeeper( // GetAuthority returns the x/mint module's authority. func (k Keeper) GetAuthority() string { - return k.authority.String() + return k.authority } // Logger returns a module-specific logger. diff --git a/x/mint/keeper/keeper_test.go b/x/mint/keeper/keeper_test.go index 53b7d280..1df1aee3 100644 --- a/x/mint/keeper/keeper_test.go +++ b/x/mint/keeper/keeper_test.go @@ -3,6 +3,10 @@ package keeper_test import ( "testing" + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" @@ -34,8 +38,8 @@ func TestKeeperTestSuite(t *testing.T) { func (s *IntegrationTestSuite) SetupTest() { encCfg := moduletestutil.MakeTestEncodingConfig(mint.AppModuleBasic{}) - key := sdk.NewKVStoreKey(types.StoreKey) - testCtx := testutil.DefaultContextWithDB(s.T(), key, sdk.NewTransientStoreKey("transient_test")) + key := storetypes.NewKVStoreKey(types.StoreKey) + testCtx := testutil.DefaultContextWithDB(s.T(), key, storetypes.NewTransientStoreKey("transient_test")) s.ctx = testCtx.Ctx // gomock initializations @@ -48,7 +52,7 @@ func (s *IntegrationTestSuite) SetupTest() { s.mintKeeper = keeper.NewKeeper( encCfg.Codec, - key, + runtime.NewKVStoreService(key), stakingKeeper, accountKeeper, bankKeeper, @@ -61,73 +65,32 @@ func (s *IntegrationTestSuite) SetupTest() { s.Require().Equal(testCtx.Ctx.Logger().With("module", "x/"+types.ModuleName), s.mintKeeper.Logger(testCtx.Ctx)) - err := s.mintKeeper.SetParams(s.ctx, types.DefaultParams()) + err := s.mintKeeper.Params.Set(s.ctx, types.DefaultParams()) s.Require().NoError(err) - s.mintKeeper.SetMinter(s.ctx, types.DefaultInitialMinter()) + s.Require().NoError(s.mintKeeper.Minter.Set(s.ctx, types.DefaultInitialMinter())) s.msgServer = keeper.NewMsgServerImpl(s.mintKeeper) } -func (s *IntegrationTestSuite) TestParams() { - testCases := []struct { - name string - input types.Params - expectErr bool - }{ - { - name: "set invalid params", - input: types.Params{ - MintDenom: sdk.DefaultBondDenom, - InflationCoef: math.LegacyNewDecWithPrec(-73, 2), - BlocksPerYear: uint64(60 * 60 * 8766 / 5), - }, - expectErr: true, - }, - { - name: "set full valid params", - input: types.Params{ - MintDenom: sdk.DefaultBondDenom, - InflationCoef: math.LegacyNewDecWithPrec(73, 2), - BlocksPerYear: uint64(60 * 60 * 8766 / 5), - }, - expectErr: false, - }, - } - - for _, tc := range testCases { - tc := tc - - s.Run(tc.name, func() { - expected := s.mintKeeper.GetParams(s.ctx) - err := s.mintKeeper.SetParams(s.ctx, tc.input) - if tc.expectErr { - s.Require().Error(err) - } else { - expected = tc.input - s.Require().NoError(err) - } - - p := s.mintKeeper.GetParams(s.ctx) - s.Require().Equal(expected, p) - }) - } -} - func (s *IntegrationTestSuite) TestAliasFunctions() { - stakingTokenSupply := sdk.NewIntFromUint64(100000000000) - s.stakingKeeper.EXPECT().StakingTokenSupply(s.ctx).Return(stakingTokenSupply) - s.Require().Equal(s.mintKeeper.StakingTokenSupply(s.ctx), stakingTokenSupply) + stakingTokenSupply := math.NewIntFromUint64(100000000000) + s.stakingKeeper.EXPECT().StakingTokenSupply(s.ctx).Return(stakingTokenSupply, nil) + tokenSupply, err := s.mintKeeper.StakingTokenSupply(s.ctx) + s.Require().NoError(err) + s.Require().Equal(tokenSupply, stakingTokenSupply) bondedRatio := math.LegacyNewDecWithPrec(15, 2) - s.stakingKeeper.EXPECT().BondedRatio(s.ctx).Return(bondedRatio) - s.Require().Equal(s.mintKeeper.BondedRatio(s.ctx), bondedRatio) + s.stakingKeeper.EXPECT().BondedRatio(s.ctx).Return(bondedRatio, nil) + ratio, err := s.mintKeeper.BondedRatio(s.ctx) + s.Require().NoError(err) + s.Require().Equal(ratio, bondedRatio) - coins := sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(1000000))) + coins := sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(1000000))) s.bankKeeper.EXPECT().MintCoins(s.ctx, types.ModuleName, coins).Return(nil) s.Require().Equal(s.mintKeeper.MintCoins(s.ctx, sdk.NewCoins()), nil) s.Require().Nil(s.mintKeeper.MintCoins(s.ctx, coins)) - fees := sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(1000))) + fees := sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(1000))) s.bankKeeper.EXPECT().SendCoinsFromModuleToModule(s.ctx, types.ModuleName, authtypes.FeeCollectorName, fees).Return(nil) s.Require().Nil(s.mintKeeper.AddCollectedFees(s.ctx, fees)) } diff --git a/x/mint/keeper/msg_server.go b/x/mint/keeper/msg_server.go index 9f46a832..a7e87e30 100644 --- a/x/mint/keeper/msg_server.go +++ b/x/mint/keeper/msg_server.go @@ -3,9 +3,8 @@ package keeper import ( "context" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" "github.com/okp4/okp4d/x/mint/types" @@ -27,14 +26,16 @@ func NewMsgServerImpl(keeper Keeper) types.MsgServer { // proposal passes, it updates the module parameters. The update can only be // performed if the requested authority is the Cosmos SDK governance module // account. -func (ms msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { - if ms.authority.String() != req.Authority { - return nil, errorsmod.Wrapf(govtypes.ErrInvalidSigner, - "invalid authority; expected %s, got %s", ms.authority.String(), req.Authority) +func (ms msgServer) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + if ms.authority != msg.Authority { + return nil, errors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.authority, msg.Authority) } - ctx := sdk.UnwrapSDKContext(goCtx) - if err := ms.Params.Set(ctx, req.Params); err != nil { + if err := msg.Params.Validate(); err != nil { + return nil, err + } + + if err := ms.Params.Set(ctx, msg.Params); err != nil { return nil, err } diff --git a/x/mint/simulation/decoder_test.go b/x/mint/simulation/decoder_test.go index 407c8526..5a6a8217 100644 --- a/x/mint/simulation/decoder_test.go +++ b/x/mint/simulation/decoder_test.go @@ -4,9 +4,10 @@ import ( "fmt" "testing" + "cosmossdk.io/math" + "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/kv" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" @@ -20,7 +21,7 @@ func TestDecodeStore(t *testing.T) { dec := simulation.NewDecodeStore(encCfg.Codec) - minter := types.NewMinter(sdk.OneDec(), sdk.NewDec(15)) + minter := types.NewMinter(math.LegacyOneDec(), math.LegacyNewDec(15)) kvPairs := kv.Pairs{ Pairs: []kv.Pair{ diff --git a/x/mint/types/minter_test.go b/x/mint/types/minter_test.go index afde1b78..3752e8db 100644 --- a/x/mint/types/minter_test.go +++ b/x/mint/types/minter_test.go @@ -9,8 +9,6 @@ import ( . "github.com/smartystreets/goconvey/convey" "cosmossdk.io/math" - - sdk "github.com/cosmos/cosmos-sdk/types" ) func TestNextInflation(t *testing.T) { @@ -26,11 +24,11 @@ func TestNextInflation(t *testing.T) { }{ { name: "inflation ratio is 0", - inflationRatio: sdk.NewDec(0), + inflationRatio: math.LegacyNewDec(0), bondedRatio: math.LegacyNewDecWithPrec(20, 2), totalSupply: math.NewInt(1000), - expectedInflation: sdk.NewDec(0), - expectedAnnualProvisions: sdk.NewDec(0), + expectedInflation: math.LegacyNewDec(0), + expectedAnnualProvisions: math.LegacyNewDec(0), }, { name: "inflation ratio is 0.03", @@ -38,12 +36,12 @@ func TestNextInflation(t *testing.T) { bondedRatio: math.LegacyNewDecWithPrec(2, 1), totalSupply: math.NewInt(1000), expectedInflation: math.LegacyNewDecWithPrec(15, 2), - expectedAnnualProvisions: sdk.NewDec(150), + expectedAnnualProvisions: math.LegacyNewDec(150), }, { name: "bonded ratio is 0", inflationRatio: math.LegacyNewDecWithPrec(3, 2), - bondedRatio: sdk.NewDec(0), + bondedRatio: math.LegacyNewDec(0), totalSupply: math.NewInt(1000), expectedErr: fmt.Errorf("bonded ratio is zero"), }, @@ -92,7 +90,7 @@ func BenchmarkBlockProvision(b *testing.B) { s1 := rand.NewSource(100) r1 := rand.New(s1) - minter.AnnualProvisions = sdk.NewDec(r1.Int63n(1000000)) + minter.AnnualProvisions = math.LegacyNewDec(r1.Int63n(1000000)) // run the BlockProvision function b.N times for n := 0; n < b.N; n++ { @@ -107,7 +105,7 @@ func BenchmarkNextInflation(b *testing.B) { params := DefaultParams() bondedRatio := math.LegacyNewDecWithPrec(66, 2) - totalSupply := sdk.NewInt(100000000000000) + totalSupply := math.NewInt(100000000000000) // run the NextInflationRate function b.N times for n := 0; n < b.N; n++ { diff --git a/x/vesting/types/vesting_account_test.go b/x/vesting/types/vesting_account_test.go index f9b6790f..64a75c22 100644 --- a/x/vesting/types/vesting_account_test.go +++ b/x/vesting/types/vesting_account_test.go @@ -4,6 +4,10 @@ import ( "testing" "time" + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" + + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" @@ -54,9 +58,10 @@ func (s *VestingAccountTestSuite) SetupTest() { s.accountKeeper = keeper.NewAccountKeeper( encCfg.Codec, - key, + runtime.NewKVStoreService(key), authtypes.ProtoBaseAccount, maccPerms, + authcodec.NewBech32Codec("cosmos"), "cosmos", authtypes.NewModuleAddress("gov").String(), ) @@ -252,7 +257,7 @@ func TestSpendableCoinsDelVestingAcc(t *testing.T) { // schedule dva := types.NewDelayedVestingAccount(bacc, origCoins, endTime.Unix()) lockedCoins := dva.LockedCoins(now) - require.True(t, lockedCoins.IsEqual(origCoins)) + require.True(t, lockedCoins.Equal(origCoins)) // require that all coins are spendable after the maturation of the vesting // schedule @@ -261,14 +266,14 @@ func TestSpendableCoinsDelVestingAcc(t *testing.T) { // require that all coins are still vesting after some time lockedCoins = dva.LockedCoins(now.Add(12 * time.Hour)) - require.True(t, lockedCoins.IsEqual(origCoins)) + require.True(t, lockedCoins.Equal(origCoins)) // delegate some locked coins // require that locked is reduced delegatedAmount := sdk.NewCoins(sdk.NewInt64Coin(stakeDenom, 50)) dva.TrackDelegation(now.Add(12*time.Hour), origCoins, delegatedAmount) lockedCoins = dva.LockedCoins(now.Add(12 * time.Hour)) - require.True(t, lockedCoins.IsEqual(origCoins.Sub(delegatedAmount...))) + require.True(t, lockedCoins.Equal(origCoins.Sub(delegatedAmount...))) } func TestTrackDelegationDelVestingAcc(t *testing.T) { @@ -616,18 +621,18 @@ func TestSpendableCoinsPermLockedVestingAcc(t *testing.T) { // schedule plva := types.NewPermanentLockedAccount(bacc, origCoins) lockedCoins := plva.LockedCoins(now) - require.True(t, lockedCoins.IsEqual(origCoins)) + require.True(t, lockedCoins.Equal(origCoins)) // require that all coins are still locked at end time lockedCoins = plva.LockedCoins(endTime) - require.True(t, lockedCoins.IsEqual(origCoins)) + require.True(t, lockedCoins.Equal(origCoins)) // delegate some locked coins // require that locked is reduced delegatedAmount := sdk.NewCoins(sdk.NewInt64Coin(stakeDenom, 50)) plva.TrackDelegation(now.Add(12*time.Hour), origCoins, delegatedAmount) lockedCoins = plva.LockedCoins(now.Add(12 * time.Hour)) - require.True(t, lockedCoins.IsEqual(origCoins.Sub(delegatedAmount...))) + require.True(t, lockedCoins.Equal(origCoins.Sub(delegatedAmount...))) } func TestTrackDelegationPermLockedVestingAcc(t *testing.T) { @@ -787,79 +792,6 @@ func TestGenesisAccountValidate(t *testing.T) { } } -func (s *VestingAccountTestSuite) TestContinuousVestingAccountMarshal() { - require := s.Require() - baseAcc, coins := initBaseAccount() - baseVesting := types.NewBaseVestingAccount(baseAcc, coins, time.Now().Unix()) - acc := types.NewContinuousVestingAccountRaw(baseVesting, baseVesting.EndTime) - - bz, err := s.accountKeeper.MarshalAccount(acc) - require.Nil(err) - - acc2, err := s.accountKeeper.UnmarshalAccount(bz) - require.Nil(err) - require.IsType(&types.ContinuousVestingAccount{}, acc2) - require.Equal(acc.String(), acc2.String()) - - // error on bad bytes - _, err = s.accountKeeper.UnmarshalAccount(bz[:len(bz)/2]) - require.NotNil(err) -} - -func (s *VestingAccountTestSuite) TestPeriodicVestingAccountMarshal() { - require := s.Require() - baseAcc, coins := initBaseAccount() - acc := types.NewPeriodicVestingAccount(baseAcc, coins, time.Now().Unix(), types.Periods{types.Period{3600, coins}}) - - bz, err := s.accountKeeper.MarshalAccount(acc) - require.Nil(err) - - acc2, err := s.accountKeeper.UnmarshalAccount(bz) - require.Nil(err) - require.IsType(&types.PeriodicVestingAccount{}, acc2) - require.Equal(acc.String(), acc2.String()) - - // error on bad bytes - _, err = s.accountKeeper.UnmarshalAccount(bz[:len(bz)/2]) - require.NotNil(err) -} - -func (s *VestingAccountTestSuite) TestDelayedVestingAccountMarshal() { - require := s.Require() - baseAcc, coins := initBaseAccount() - acc := types.NewDelayedVestingAccount(baseAcc, coins, time.Now().Unix()) - - bz, err := s.accountKeeper.MarshalAccount(acc) - require.Nil(err) - - acc2, err := s.accountKeeper.UnmarshalAccount(bz) - require.Nil(err) - require.IsType(&types.DelayedVestingAccount{}, acc2) - require.Equal(acc.String(), acc2.String()) - - // error on bad bytes - _, err = s.accountKeeper.UnmarshalAccount(bz[:len(bz)/2]) - require.NotNil(err) -} - -func (s *VestingAccountTestSuite) TestPermanentLockedAccountMarshal() { - require := s.Require() - baseAcc, coins := initBaseAccount() - acc := types.NewPermanentLockedAccount(baseAcc, coins) - - bz, err := s.accountKeeper.MarshalAccount(acc) - require.Nil(err) - - acc2, err := s.accountKeeper.UnmarshalAccount(bz) - require.Nil(err) - require.IsType(&types.PermanentLockedAccount{}, acc2) - require.Equal(acc.String(), acc2.String()) - - // error on bad bytes - _, err = s.accountKeeper.UnmarshalAccount(bz[:len(bz)/2]) - require.NotNil(err) -} - func initBaseAccount() (*authtypes.BaseAccount, sdk.Coins) { _, _, addr := testdata.KeyTestPubAddr() origCoins := sdk.Coins{sdk.NewInt64Coin(feeDenom, 1000), sdk.NewInt64Coin(stakeDenom, 100)} From b77089f360b9dadd7734ddf2887e787864633409 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:36:51 +0100 Subject: [PATCH 22/29] style: make shell linter happy --- scripts/protocgen-code.sh | 7 ++++--- scripts/protocgen-doc.sh | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/protocgen-code.sh b/scripts/protocgen-code.sh index a843e288..a4c191f1 100755 --- a/scripts/protocgen-code.sh +++ b/scripts/protocgen-code.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash set -eo pipefail @@ -7,9 +7,10 @@ echo "Generating gogo proto code" cd proto proto_dirs=$(find . -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) for dir in $proto_dirs; do + # shellcheck disable=SC2044 for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do - if grep "option go_package" $file &> /dev/null ; then - buf generate --template buf.gen.gogo.yml $file + if grep "option go_package" "${file}" &> /dev/null ; then + buf generate --template buf.gen.gogo.yml "${file}" fi done done diff --git a/scripts/protocgen-doc.sh b/scripts/protocgen-doc.sh index 6bbdd42d..0c254e6b 100755 --- a/scripts/protocgen-doc.sh +++ b/scripts/protocgen-doc.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash set -eo pipefail @@ -12,6 +12,6 @@ protoc_install_proto_gen_doc echo "Generating proto docs" cd proto for MODULE in $(find . -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq | xargs -n1 dirname); do - buf generate --path ${MODULE} --template buf.gen.doc.yml -v - mv ../docs/proto/docs.md ../docs/proto/${MODULE}.md + buf generate --path "${MODULE}" --template buf.gen.doc.yml -v + mv ../docs/proto/docs.md ../docs/proto/"${MODULE}".md done From 6092a9d1075d5bfcfba514e0907ece547c5e7822 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 17 Jan 2024 11:54:21 +0100 Subject: [PATCH 23/29] build(proto): fix proto gen script --- scripts/protocgen-code.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/protocgen-code.sh b/scripts/protocgen-code.sh index a4c191f1..90c0014d 100755 --- a/scripts/protocgen-code.sh +++ b/scripts/protocgen-code.sh @@ -16,5 +16,9 @@ echo "Generating gogo proto code" done ) -cp -r github.com/okp4/okp4d/x/* x/ +DST="${PWD}/x" +( + cd github.com/okp4/okp4d/x + find . -type f -name "*.go" -exec mv {} "${DST}/{}" \; +) rm -rf github.com From be741a3672fa6c4fadbda843666c2ef0a322972e Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:01:20 +0100 Subject: [PATCH 24/29] feat!: remove upgrades --- app/app.go | 2 +- app/upgrades.go | 61 -- app/upgrades/v4/upgrade.go | 26 - app/upgrades/v41/upgrade.go | 26 - app/upgrades/v5/upgrade.go | 113 -- app/upgrades/v6/upgrade.go | 32 - x/logic/keeper/migrations.go | 29 - x/logic/migrations/v2/migrations.go | 26 - x/logic/migrations/v2/types/genesis.pb.go | 323 ------ x/logic/migrations/v2/types/params.go | 25 - x/logic/migrations/v2/types/params.pb.go | 939 ----------------- x/logic/migrations/v2/types/query.pb.go | 1069 ------------------- x/logic/migrations/v2/types/tx.pb.go | 82 -- x/logic/migrations/v2/types/types.pb.go | 1133 --------------------- x/logic/migrations/v3/migrations.go | 72 -- x/logic/module.go | 17 - x/mint/keeper/migrations.go | 21 - x/mint/migrations/v3/migrations.go | 68 -- x/mint/migrations/v3/types/minter.pb.go | 704 ------------- x/mint/migrations/v3/types/params.go | 99 -- x/mint/module.go | 16 - 21 files changed, 1 insertion(+), 4882 deletions(-) delete mode 100644 app/upgrades.go delete mode 100644 app/upgrades/v4/upgrade.go delete mode 100644 app/upgrades/v41/upgrade.go delete mode 100644 app/upgrades/v5/upgrade.go delete mode 100644 app/upgrades/v6/upgrade.go delete mode 100644 x/logic/keeper/migrations.go delete mode 100644 x/logic/migrations/v2/migrations.go delete mode 100644 x/logic/migrations/v2/types/genesis.pb.go delete mode 100644 x/logic/migrations/v2/types/params.go delete mode 100644 x/logic/migrations/v2/types/params.pb.go delete mode 100644 x/logic/migrations/v2/types/query.pb.go delete mode 100644 x/logic/migrations/v2/types/tx.pb.go delete mode 100644 x/logic/migrations/v2/types/types.pb.go delete mode 100644 x/logic/migrations/v3/migrations.go delete mode 100644 x/mint/keeper/migrations.go delete mode 100644 x/mint/migrations/v3/migrations.go delete mode 100644 x/mint/migrations/v3/types/minter.pb.go delete mode 100644 x/mint/migrations/v3/types/params.go diff --git a/app/app.go b/app/app.go index 455adf5e..4c712c93 100644 --- a/app/app.go +++ b/app/app.go @@ -800,7 +800,7 @@ func New( // RegisterUpgradeHandlers is used for registering any on-chain upgrades. // Make sure it's called after `app.ModuleManager` and `app.configurator` are set. - app.setupUpgradeHandlers() + // app.setupUpgradeHandlers() autocliv1.RegisterQueryServer(app.GRPCQueryRouter(), runtimeservices.NewAutoCLIQueryService(app.ModuleManager.Modules)) reflectionSvc, err := runtimeservices.NewReflectionService() diff --git a/app/upgrades.go b/app/upgrades.go deleted file mode 100644 index 2e962448..00000000 --- a/app/upgrades.go +++ /dev/null @@ -1,61 +0,0 @@ -package app - -import ( - "fmt" - - storetypes "cosmossdk.io/store/types" - upgradetypes "cosmossdk.io/x/upgrade/types" - - v4 "github.com/okp4/okp4d/app/upgrades/v4" - v41 "github.com/okp4/okp4d/app/upgrades/v41" - v5 "github.com/okp4/okp4d/app/upgrades/v5" - v6 "github.com/okp4/okp4d/app/upgrades/v6" -) - -func (app *App) setupUpgradeHandlers() { - app.UpgradeKeeper.SetUpgradeHandler( - v4.UpgradeName, - v4.CreateUpgradeHandler(app.ModuleManager, app.configurator), - ) - - app.UpgradeKeeper.SetUpgradeHandler( - v41.UpgradeName, - v41.CreateUpgradeHandler(app.ModuleManager, app.configurator), - ) - - app.UpgradeKeeper.SetUpgradeHandler( - v5.UpgradeName, - v5.CreateUpgradeHandler(app.ParamsKeeper, &app.ConsensusParamsKeeper, app.ModuleManager, app.configurator), - ) - - app.UpgradeKeeper.SetUpgradeHandler( - v6.UpgradeName, - v6.CreateUpgradeHandler(app.ModuleManager, app.configurator), - ) - - upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() - if err != nil { - panic(fmt.Errorf("failed to read upgrade info from disk: %w", err)) - } - - if app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { - return - } - - var storeUpgrades *storetypes.StoreUpgrades - switch upgradeInfo.Name { - case v4.UpgradeName: - storeUpgrades = v4.StoreUpgrades - case v41.UpgradeName: - storeUpgrades = v41.StoreUpgrades - case v5.UpgradeName: - storeUpgrades = v5.StoreUpgrades - case v6.UpgradeName: - storeUpgrades = v6.StoreUpgrades - } - - if storeUpgrades != nil { - // configure store loader that checks if version == upgradeHeight and applies store upgrades - app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, storeUpgrades)) - } -} diff --git a/app/upgrades/v4/upgrade.go b/app/upgrades/v4/upgrade.go deleted file mode 100644 index 548fdc17..00000000 --- a/app/upgrades/v4/upgrade.go +++ /dev/null @@ -1,26 +0,0 @@ -package v4 - -import ( - "context" - - storetypes "cosmossdk.io/store/types" - upgradetypes "cosmossdk.io/x/upgrade/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" -) - -const UpgradeName = "v4.0.0" - -var StoreUpgrades *storetypes.StoreUpgrades // No store root upgrade. - -func CreateUpgradeHandler( - mm *module.Manager, - configurator module.Configurator, -) upgradetypes.UpgradeHandler { - return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - logger := sdk.UnwrapSDKContext(ctx).Logger().With("upgrade", UpgradeName) - - logger.Debug("running module migrations...") - return mm.RunMigrations(ctx, configurator, vm) - } -} diff --git a/app/upgrades/v41/upgrade.go b/app/upgrades/v41/upgrade.go deleted file mode 100644 index 1ded3ed7..00000000 --- a/app/upgrades/v41/upgrade.go +++ /dev/null @@ -1,26 +0,0 @@ -package v41 - -import ( - "context" - - storetypes "cosmossdk.io/store/types" - upgradetypes "cosmossdk.io/x/upgrade/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" -) - -const UpgradeName = "v4.1.0" - -var StoreUpgrades *storetypes.StoreUpgrades // No store root upgrade. - -func CreateUpgradeHandler( - mm *module.Manager, - configurator module.Configurator, -) upgradetypes.UpgradeHandler { - return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - logger := sdk.UnwrapSDKContext(ctx).Logger().With("upgrade", UpgradeName) - - logger.Debug("running module migrations...") - return mm.RunMigrations(ctx, configurator, vm) - } -} diff --git a/app/upgrades/v5/upgrade.go b/app/upgrades/v5/upgrade.go deleted file mode 100644 index 56bf1e38..00000000 --- a/app/upgrades/v5/upgrade.go +++ /dev/null @@ -1,113 +0,0 @@ -package v5 - -import ( - "context" - - wasmmigrationtypes "github.com/CosmWasm/wasmd/x/wasm/migrations/v2" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - - storetypes "cosmossdk.io/store/types" - upgradetypes "cosmossdk.io/x/upgrade/types" - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" - consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" - distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" - paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" - paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" - slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - - icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types" - icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types" - ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" -) - -const UpgradeName = "v5.0.0" - -var StoreUpgrades = &storetypes.StoreUpgrades{ - Added: []string{ - consensustypes.ModuleName, - crisistypes.ModuleName, - }, -} - -// CreateUpgradeHandler is the handler that will perform migration from v4.1.0 to v5.0.0. -// Bump cosmos-sdk form 0.46.6 to 0.47.1. -// This migration include following update that need migration : -// - Migrate Tendermint consensus parameters from x/params moduel to a dedicated -// x/consensus module. -// - Register StoreUpgrade (`consensus` and `crisis` module adding) -// -// Migrate all modules : -// - Logic module with new params + move params from x/params to x/logic module state. -// - Mint module by move params from x/params to x/mint module state. -func CreateUpgradeHandler( - paramsKeeper paramskeeper.Keeper, - consensusParamsKeeper *consensusparamkeeper.Keeper, - mm *module.Manager, - configurator module.Configurator, -) upgradetypes.UpgradeHandler { - // Set param key table for params module migration - for _, subspace := range paramsKeeper.GetSubspaces() { - subspace := subspace - - var keyTable paramstypes.KeyTable - switch subspace.Name() { - case authtypes.ModuleName: - keyTable = authtypes.ParamKeyTable() //nolint:staticcheck - case banktypes.ModuleName: - keyTable = banktypes.ParamKeyTable() //nolint:staticcheck - case stakingtypes.ModuleName: - keyTable = stakingtypes.ParamKeyTable() - // Mint module no needs to set his ParamsKeyTable since our migration script already set it - // case minttypes.ModuleName: - // keyTable = minttypes.ParamKeyTable() - case distrtypes.ModuleName: - keyTable = distrtypes.ParamKeyTable() //nolint:staticcheck - case slashingtypes.ModuleName: - keyTable = slashingtypes.ParamKeyTable() //nolint:staticcheck - case govtypes.ModuleName: - keyTable = govv1.ParamKeyTable() //nolint:staticcheck - case crisistypes.ModuleName: - keyTable = crisistypes.ParamKeyTable() //nolint:staticcheck - // ibc types - case ibctransfertypes.ModuleName: - keyTable = ibctransfertypes.ParamKeyTable() - case icahosttypes.SubModuleName: - keyTable = icahosttypes.ParamKeyTable() - case icacontrollertypes.SubModuleName: - keyTable = icacontrollertypes.ParamKeyTable() - // wasm - case wasmtypes.ModuleName: - keyTable = wasmmigrationtypes.ParamKeyTable() //nolint:staticcheck - default: - continue - } - - if !subspace.HasKeyTable() { - subspace.WithKeyTable(keyTable) - } - } - - baseAppLegacySS := paramsKeeper.Subspace(baseapp.Paramspace).WithKeyTable(paramstypes.ConsensusParamsKeyTable()) - - return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - sdkCtx := sdk.UnwrapSDKContext(ctx) - logger := sdkCtx.Logger().With("upgrade", UpgradeName) - - logger.Debug("migrate consensus params keeper") - if err := baseapp.MigrateParams(sdkCtx, baseAppLegacySS, consensusParamsKeeper.ParamsStore); err != nil { - return nil, err - } - - logger.Debug("running module migrations...") - return mm.RunMigrations(ctx, configurator, vm) - } -} diff --git a/app/upgrades/v6/upgrade.go b/app/upgrades/v6/upgrade.go deleted file mode 100644 index 84c2d0f5..00000000 --- a/app/upgrades/v6/upgrade.go +++ /dev/null @@ -1,32 +0,0 @@ -package v6 - -import ( - "context" - - storetypes "cosmossdk.io/store/types" - upgradetypes "cosmossdk.io/x/upgrade/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" -) - -const UpgradeName = "v6.0.0" - -var StoreUpgrades = &storetypes.StoreUpgrades{ - Added: []string{ - "feeibc", - }, -} - -// CreateUpgradeHandler is the handler that will perform migration from v5.0.0 to v6.0.0. -// Migrate the mint module with new parameters. -func CreateUpgradeHandler( - mm *module.Manager, - configurator module.Configurator, -) upgradetypes.UpgradeHandler { - return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - logger := sdk.UnwrapSDKContext(ctx).Logger().With("upgrade", UpgradeName) - - logger.Debug("running module migrations...") - return mm.RunMigrations(ctx, configurator, vm) - } -} diff --git a/x/logic/keeper/migrations.go b/x/logic/keeper/migrations.go deleted file mode 100644 index 08ce5ad8..00000000 --- a/x/logic/keeper/migrations.go +++ /dev/null @@ -1,29 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/okp4/okp4d/x/logic/exported" - v2 "github.com/okp4/okp4d/x/logic/migrations/v2" - v3 "github.com/okp4/okp4d/x/logic/migrations/v3" -) - -type Migrator struct { - keeper Keeper - legacySubspace exported.Subspace -} - -func NewMigrator(keeper Keeper, legacySubspace exported.Subspace) Migrator { - return Migrator{ - keeper: keeper, - legacySubspace: legacySubspace, - } -} - -func (m Migrator) Migrate1to2(ctx sdk.Context) error { - return v2.MigrateStore(ctx, m.legacySubspace, m.keeper.cdc) -} - -func (m Migrator) Migrate2to3(ctx sdk.Context) error { - return v3.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc, m.legacySubspace) -} diff --git a/x/logic/migrations/v2/migrations.go b/x/logic/migrations/v2/migrations.go deleted file mode 100644 index a8af8f50..00000000 --- a/x/logic/migrations/v2/migrations.go +++ /dev/null @@ -1,26 +0,0 @@ -package v2 - -import ( - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/okp4/okp4d/x/logic/exported" - "github.com/okp4/okp4d/x/logic/types" -) - -func MigrateStore(ctx sdk.Context, legacySubspace exported.Subspace, _ codec.BinaryCodec) error { - logger := ctx.Logger(). - With("module", "logic"). - With("migration", "v2") - - logger.Debug("starting module migration") - - // Add default params keys / values - logger.Debug("set params default values") - params := types.DefaultParams() - legacySubspace.SetParamSet(ctx, ¶ms) - - logger.Debug("module migration done") - - return nil -} diff --git a/x/logic/migrations/v2/types/genesis.pb.go b/x/logic/migrations/v2/types/genesis.pb.go deleted file mode 100644 index 1a5d6c74..00000000 --- a/x/logic/migrations/v2/types/genesis.pb.go +++ /dev/null @@ -1,323 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: logic/v1beta/genesis.proto - -package types - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - proto "github.com/cosmos/gogoproto/proto" - - _ "github.com/cosmos/gogoproto/gogoproto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// GenesisState defines the logic module's genesis state. -type GenesisState struct { - // The state parameters for the logic module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_3b63a86e548157fd, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "logic.v1beta.GenesisState") -} - -func init() { proto.RegisterFile("logic/v1beta/genesis.proto", fileDescriptor_3b63a86e548157fd) } - -var fileDescriptor_3b63a86e548157fd = []byte{ - // 188 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xca, 0xc9, 0x4f, 0xcf, - 0x4c, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, - 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0xcb, 0xe9, 0x41, 0xe4, 0xa4, 0x44, 0xd2, - 0xf3, 0xd3, 0xf3, 0xc1, 0x12, 0xfa, 0x20, 0x16, 0x44, 0x8d, 0x94, 0x24, 0x8a, 0xfe, 0x82, 0xc4, - 0xa2, 0xc4, 0x5c, 0xa8, 0x76, 0x25, 0x27, 0x2e, 0x1e, 0x77, 0x88, 0x79, 0xc1, 0x25, 0x89, 0x25, - 0xa9, 0x42, 0x46, 0x5c, 0x6c, 0x10, 0x79, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x11, 0x3d, - 0x64, 0xf3, 0xf5, 0x02, 0xc0, 0x72, 0x4e, 0x2c, 0x27, 0xee, 0xc9, 0x33, 0x04, 0x41, 0x55, 0x3a, - 0xd9, 0x9e, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, - 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x72, 0x7a, 0x66, 0x49, - 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7e, 0x76, 0x81, 0x09, 0x98, 0x48, 0xd1, 0xaf, - 0xd0, 0x87, 0x38, 0xa8, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x12, 0x63, 0x40, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xb4, 0xf8, 0xf6, 0x2e, 0xe6, 0x00, 0x00, 0x00, -} - -func (m *GenesisState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/logic/migrations/v2/types/params.go b/x/logic/migrations/v2/types/params.go deleted file mode 100644 index 2916f131..00000000 --- a/x/logic/migrations/v2/types/params.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - -// Parameter store keys. -var ( - KeyInterpreter = []byte("Interpreter") - KeyLimits = []byte("Limits") -) - -// String implements the Stringer interface. -func (p *Params) String() string { - return p.Interpreter.String() + "\n" + - p.Limits.String() -} - -// ParamSetPairs get the params.ParamSet. -func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { - noopValidator := func(i interface{}) error { return nil } - - return []paramtypes.ParamSetPair{ - paramtypes.NewParamSetPair(KeyInterpreter, &p.Interpreter, noopValidator), - paramtypes.NewParamSetPair(KeyLimits, &p.Limits, noopValidator), - } -} diff --git a/x/logic/migrations/v2/types/params.pb.go b/x/logic/migrations/v2/types/params.pb.go deleted file mode 100644 index c893bf62..00000000 --- a/x/logic/migrations/v2/types/params.pb.go +++ /dev/null @@ -1,939 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: logic/v1beta/params.proto - -package types - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - proto "github.com/cosmos/gogoproto/proto" - - _ "github.com/cosmos/gogoproto/gogoproto" - - sdkmath "cosmossdk.io/math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Params defines all the configuration parameters of the "logic" module. -type Params struct { - // Interpreter specifies the parameter for the logic interpreter. - Interpreter Interpreter `protobuf:"bytes,1,opt,name=interpreter,proto3" json:"interpreter" yaml:"interpreter"` - // Limits defines the limits of the logic module. - // The limits are used to prevent the interpreter from running for too long. - // If the interpreter runs for too long, the execution will be aborted. - Limits Limits `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits" yaml:"limits"` -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_55eca4aea58a32e5, []int{0} -} - -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} - -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} - -func (m *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} - -func (m *Params) XXX_Size() int { - return m.Size() -} - -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetInterpreter() Interpreter { - if m != nil { - return m.Interpreter - } - return Interpreter{} -} - -func (m *Params) GetLimits() Limits { - if m != nil { - return m.Limits - } - return Limits{} -} - -// Limits defines the limits of the logic module. -type Limits struct { - // max_gas specifies the maximum amount of computing power, measured in "gas," that is allowed to be consumed when - // executing a request by the interpreter. The interpreter calculates the gas consumption based on the number and type - // of operations that are executed, as well as, in some cases, the complexity of the processed data. - // nil value remove max gas limitation. - MaxGas *sdkmath.Uint `protobuf:"bytes,1,opt,name=max_gas,json=maxGas,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_gas,omitempty" yaml:"max_gas",omitempty` - // max_size specifies the maximum size, in bytes, that is accepted for a program. - // nil value remove size limitation. - MaxSize *sdkmath.Uint `protobuf:"bytes,3,opt,name=max_size,json=maxSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_size,omitempty" yaml:"max_size"` - // max_result_count specifies the maximum number of results that can be requested for a query. - // nil value remove max result count limitation. - MaxResultCount *sdkmath.Uint `protobuf:"bytes,2,opt,name=max_result_count,json=maxResultCount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"max_result_count,omitempty" yaml:"max_result_count"` -} - -func (m *Limits) Reset() { *m = Limits{} } -func (m *Limits) String() string { return proto.CompactTextString(m) } -func (*Limits) ProtoMessage() {} -func (*Limits) Descriptor() ([]byte, []int) { - return fileDescriptor_55eca4aea58a32e5, []int{1} -} - -func (m *Limits) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} - -func (m *Limits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Limits.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} - -func (m *Limits) XXX_Merge(src proto.Message) { - xxx_messageInfo_Limits.Merge(m, src) -} - -func (m *Limits) XXX_Size() int { - return m.Size() -} - -func (m *Limits) XXX_DiscardUnknown() { - xxx_messageInfo_Limits.DiscardUnknown(m) -} - -var xxx_messageInfo_Limits proto.InternalMessageInfo - -// Interpreter defines the various parameters for the interpreter. -type Interpreter struct { - // registered_predicates specifies the list of registered predicates/operators, in the form of: `/`. - // For instance: `findall/3`. - // If not specified, the default set of predicates/operators will be registered. - RegisteredPredicates []string `protobuf:"bytes,1,rep,name=registered_predicates,json=registeredPredicates,proto3" json:"registered_predicates,omitempty" yaml:"registered_predicates"` - // bootstrap specifies the initial program to run when booting the logic interpreter. - // If not specified, the default boot sequence will be executed. - Bootstrap string `protobuf:"bytes,2,opt,name=bootstrap,proto3" json:"bootstrap,omitempty" yaml:"bootstrap"` -} - -func (m *Interpreter) Reset() { *m = Interpreter{} } -func (m *Interpreter) String() string { return proto.CompactTextString(m) } -func (*Interpreter) ProtoMessage() {} -func (*Interpreter) Descriptor() ([]byte, []int) { - return fileDescriptor_55eca4aea58a32e5, []int{2} -} - -func (m *Interpreter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} - -func (m *Interpreter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Interpreter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} - -func (m *Interpreter) XXX_Merge(src proto.Message) { - xxx_messageInfo_Interpreter.Merge(m, src) -} - -func (m *Interpreter) XXX_Size() int { - return m.Size() -} - -func (m *Interpreter) XXX_DiscardUnknown() { - xxx_messageInfo_Interpreter.DiscardUnknown(m) -} - -var xxx_messageInfo_Interpreter proto.InternalMessageInfo - -func (m *Interpreter) GetRegisteredPredicates() []string { - if m != nil { - return m.RegisteredPredicates - } - return nil -} - -func (m *Interpreter) GetBootstrap() string { - if m != nil { - return m.Bootstrap - } - return "" -} - -func init() { - proto.RegisterType((*Params)(nil), "logic.v1beta.Params") - proto.RegisterType((*Limits)(nil), "logic.v1beta.Limits") - proto.RegisterType((*Interpreter)(nil), "logic.v1beta.Interpreter") -} - -func init() { proto.RegisterFile("logic/v1beta/params.proto", fileDescriptor_55eca4aea58a32e5) } - -var fileDescriptor_55eca4aea58a32e5 = []byte{ - // 468 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcb, 0x8a, 0xd4, 0x40, - 0x14, 0x86, 0xbb, 0x66, 0x24, 0xda, 0xd5, 0x5e, 0x86, 0xa2, 0x07, 0x33, 0x83, 0x24, 0x52, 0x0a, - 0xce, 0x42, 0x13, 0xbc, 0xe0, 0x62, 0xc0, 0x4d, 0x66, 0x21, 0x5e, 0x16, 0x43, 0x44, 0x44, 0x41, - 0x9a, 0xea, 0xa4, 0x88, 0xc5, 0x74, 0x75, 0x85, 0xaa, 0xd3, 0xd2, 0x3d, 0x4f, 0xe1, 0xd2, 0xa5, - 0x2b, 0x57, 0x3e, 0x48, 0xbb, 0x9b, 0xa5, 0xb8, 0x08, 0xd2, 0xfd, 0x06, 0xfd, 0x04, 0x92, 0xaa, - 0x30, 0x89, 0xe0, 0x66, 0x36, 0x49, 0x38, 0xff, 0x39, 0xdf, 0x7f, 0xf2, 0x27, 0x85, 0xf7, 0x26, - 0xaa, 0x10, 0x59, 0xfc, 0xf9, 0xe1, 0x98, 0x03, 0x8b, 0x4b, 0xa6, 0x99, 0x34, 0x51, 0xa9, 0x15, - 0x28, 0x72, 0xd5, 0x4a, 0x91, 0x93, 0xf6, 0x87, 0x85, 0x2a, 0x94, 0x15, 0xe2, 0xfa, 0xc9, 0xf5, - 0xd0, 0x1f, 0x08, 0x7b, 0xc7, 0x76, 0x88, 0xbc, 0xc3, 0x03, 0x31, 0x05, 0xae, 0x4b, 0xcd, 0x81, - 0x6b, 0x1f, 0xdd, 0x46, 0x07, 0x83, 0x47, 0x7b, 0x51, 0x17, 0x12, 0xbd, 0x68, 0x1b, 0x92, 0xfd, - 0x65, 0x15, 0xf6, 0x36, 0x55, 0x48, 0x16, 0x4c, 0x4e, 0x0e, 0x69, 0x67, 0x96, 0xa6, 0x5d, 0x12, - 0x39, 0xc2, 0xde, 0x44, 0x48, 0x01, 0xc6, 0xdf, 0xb2, 0xcc, 0xe1, 0xbf, 0xcc, 0xd7, 0x56, 0x4b, - 0x76, 0x1b, 0xdc, 0x35, 0x87, 0x73, 0x13, 0x34, 0x6d, 0x46, 0x0f, 0x2f, 0x7d, 0xfd, 0x16, 0xf6, - 0xe8, 0xcf, 0x2d, 0xec, 0xb9, 0x7e, 0x92, 0xe3, 0xcb, 0x92, 0xcd, 0x47, 0x05, 0x33, 0x76, 0xd5, - 0x7e, 0xf2, 0x6a, 0x59, 0x85, 0xe8, 0x77, 0x15, 0xde, 0x2b, 0x04, 0x7c, 0x9a, 0x8d, 0xa3, 0x4c, - 0xc9, 0x38, 0x53, 0x46, 0x2a, 0xd3, 0xdc, 0x1e, 0x98, 0xfc, 0x24, 0x86, 0x45, 0xc9, 0x4d, 0xf4, - 0x56, 0x4c, 0x61, 0x53, 0x85, 0xbe, 0xf3, 0x6a, 0x38, 0xf4, 0xbe, 0x92, 0x02, 0xb8, 0x2c, 0x61, - 0x91, 0x7a, 0x92, 0xcd, 0x9f, 0x33, 0x43, 0x3e, 0xe2, 0x2b, 0xb5, 0x6a, 0xc4, 0x29, 0xf7, 0xb7, - 0xad, 0x4d, 0x72, 0x71, 0x9b, 0x1b, 0xad, 0x4d, 0x0d, 0xa2, 0x69, 0xbd, 0xf9, 0x1b, 0x71, 0xca, - 0x09, 0xe0, 0x9d, 0xba, 0xaa, 0xb9, 0x99, 0x4d, 0x60, 0x94, 0xa9, 0xd9, 0x14, 0x6c, 0x48, 0xfd, - 0xe4, 0xe5, 0xc5, 0x6d, 0x6e, 0xb6, 0x36, 0x5d, 0x20, 0x4d, 0xaf, 0x4b, 0x36, 0x4f, 0x6d, 0xe5, - 0xa8, 0x2e, 0xd8, 0x2c, 0x11, 0xfd, 0x8e, 0xf0, 0xa0, 0xf3, 0x3d, 0xc9, 0x7b, 0xbc, 0xab, 0x79, - 0x21, 0x0c, 0x70, 0xcd, 0xf3, 0x51, 0xa9, 0x79, 0x2e, 0x32, 0x06, 0xbc, 0x8e, 0x77, 0xfb, 0xa0, - 0x9f, 0xdc, 0xad, 0x17, 0xda, 0x54, 0xe1, 0x2d, 0xe7, 0xf2, 0xdf, 0x56, 0x9a, 0x0e, 0xdb, 0xfa, - 0xf1, 0x79, 0x99, 0x3c, 0xc5, 0xfd, 0xb1, 0x52, 0x60, 0x40, 0xb3, 0xb2, 0x79, 0x3f, 0xbf, 0xc1, - 0xed, 0x38, 0xdc, 0xb9, 0x4c, 0xd3, 0xb6, 0xd5, 0x2d, 0x9a, 0x3c, 0x5b, 0xae, 0x02, 0x74, 0xb6, - 0x0a, 0xd0, 0x9f, 0x55, 0x80, 0xbe, 0xac, 0x83, 0xde, 0xd9, 0x3a, 0xe8, 0xfd, 0x5a, 0x07, 0xbd, - 0x0f, 0x77, 0x3a, 0xe1, 0xa8, 0x93, 0xf2, 0x89, 0xbd, 0xe4, 0xf1, 0x3c, 0x76, 0x87, 0xc2, 0xa6, - 0x33, 0xf6, 0xec, 0x9f, 0xfe, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x07, 0x83, 0x6c, - 0x2a, 0x03, 0x00, 0x00, -} - -func (m *Params) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Limits.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.Interpreter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Limits) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Limits) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Limits) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxSize != nil { - { - size := m.MaxSize.Size() - i -= size - if _, err := m.MaxSize.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.MaxResultCount != nil { - { - size := m.MaxResultCount.Size() - i -= size - if _, err := m.MaxResultCount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.MaxGas != nil { - { - size := m.MaxGas.Size() - i -= size - if _, err := m.MaxGas.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Interpreter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Interpreter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Interpreter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Bootstrap) > 0 { - i -= len(m.Bootstrap) - copy(dAtA[i:], m.Bootstrap) - i = encodeVarintParams(dAtA, i, uint64(len(m.Bootstrap))) - i-- - dAtA[i] = 0x12 - } - if len(m.RegisteredPredicates) > 0 { - for iNdEx := len(m.RegisteredPredicates) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RegisteredPredicates[iNdEx]) - copy(dAtA[i:], m.RegisteredPredicates[iNdEx]) - i = encodeVarintParams(dAtA, i, uint64(len(m.RegisteredPredicates[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} - -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Interpreter.Size() - n += 1 + l + sovParams(uint64(l)) - l = m.Limits.Size() - n += 1 + l + sovParams(uint64(l)) - return n -} - -func (m *Limits) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaxGas != nil { - l = m.MaxGas.Size() - n += 1 + l + sovParams(uint64(l)) - } - if m.MaxResultCount != nil { - l = m.MaxResultCount.Size() - n += 1 + l + sovParams(uint64(l)) - } - if m.MaxSize != nil { - l = m.MaxSize.Size() - n += 1 + l + sovParams(uint64(l)) - } - return n -} - -func (m *Interpreter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.RegisteredPredicates) > 0 { - for _, s := range m.RegisteredPredicates { - l = len(s) - n += 1 + l + sovParams(uint64(l)) - } - } - l = len(m.Bootstrap) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} - -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} - -func (m *Params) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Interpreter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Interpreter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Limits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Limits.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *Limits) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Limits: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Limits: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxGas", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var v sdkmath.Uint - m.MaxGas = &v - if err := m.MaxGas.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxResultCount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var v sdkmath.Uint - m.MaxResultCount = &v - if err := m.MaxResultCount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSize", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var v sdkmath.Uint - m.MaxSize = &v - if err := m.MaxSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *Interpreter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Interpreter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Interpreter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegisteredPredicates", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RegisteredPredicates = append(m.RegisteredPredicates, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bootstrap", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Bootstrap = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func skipParams(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/logic/migrations/v2/types/query.pb.go b/x/logic/migrations/v2/types/query.pb.go deleted file mode 100644 index 62fb7758..00000000 --- a/x/logic/migrations/v2/types/query.pb.go +++ /dev/null @@ -1,1069 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: logic/v1beta/query.proto - -package types - -import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - - _ "github.com/cosmos/gogoproto/gogoproto" - _ "google.golang.org/genproto/googleapis/api/annotations" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// QueryServiceParamsRequest is request type for the QueryService/Params RPC method. -type QueryServiceParamsRequest struct { -} - -func (m *QueryServiceParamsRequest) Reset() { *m = QueryServiceParamsRequest{} } -func (m *QueryServiceParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryServiceParamsRequest) ProtoMessage() {} -func (*QueryServiceParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2a2e6b98fc71dc0f, []int{0} -} -func (m *QueryServiceParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryServiceParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryServiceParamsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryServiceParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryServiceParamsRequest.Merge(m, src) -} -func (m *QueryServiceParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryServiceParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryServiceParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryServiceParamsRequest proto.InternalMessageInfo - -// QueryServiceParamsResponse is response type for the QueryService/Params RPC method. -type QueryServiceParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params",omitempty` -} - -func (m *QueryServiceParamsResponse) Reset() { *m = QueryServiceParamsResponse{} } -func (m *QueryServiceParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryServiceParamsResponse) ProtoMessage() {} -func (*QueryServiceParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2a2e6b98fc71dc0f, []int{1} -} -func (m *QueryServiceParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryServiceParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryServiceParamsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryServiceParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryServiceParamsResponse.Merge(m, src) -} -func (m *QueryServiceParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryServiceParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryServiceParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryServiceParamsResponse proto.InternalMessageInfo - -func (m *QueryServiceParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -// QueryServiceAskRequest is request type for the QueryService/Ask RPC method. -type QueryServiceAskRequest struct { - // program is the logic program to be queried. - Program string `protobuf:"bytes,1,opt,name=program,proto3" json:"program,omitempty" yaml:"program",omitempty` - // query is the query string to be executed. - Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty" yaml:"query",omitempty` -} - -func (m *QueryServiceAskRequest) Reset() { *m = QueryServiceAskRequest{} } -func (m *QueryServiceAskRequest) String() string { return proto.CompactTextString(m) } -func (*QueryServiceAskRequest) ProtoMessage() {} -func (*QueryServiceAskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2a2e6b98fc71dc0f, []int{2} -} -func (m *QueryServiceAskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryServiceAskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryServiceAskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryServiceAskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryServiceAskRequest.Merge(m, src) -} -func (m *QueryServiceAskRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryServiceAskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryServiceAskRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryServiceAskRequest proto.InternalMessageInfo - -func (m *QueryServiceAskRequest) GetProgram() string { - if m != nil { - return m.Program - } - return "" -} - -func (m *QueryServiceAskRequest) GetQuery() string { - if m != nil { - return m.Query - } - return "" -} - -// QueryServiceAskResponse is response type for the QueryService/Ask RPC method. -type QueryServiceAskResponse struct { - // height is the block height at which the query was executed. - Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty" yaml:"height",omitempty` - // gas_used is the amount of gas used to execute the query. - GasUsed uint64 `protobuf:"varint,2,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty" yaml:"gas_used",omitempty` - // answer is the answer to the query. - Answer *Answer `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty" yaml:"answer",omitempty` -} - -func (m *QueryServiceAskResponse) Reset() { *m = QueryServiceAskResponse{} } -func (m *QueryServiceAskResponse) String() string { return proto.CompactTextString(m) } -func (*QueryServiceAskResponse) ProtoMessage() {} -func (*QueryServiceAskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2a2e6b98fc71dc0f, []int{3} -} -func (m *QueryServiceAskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryServiceAskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryServiceAskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryServiceAskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryServiceAskResponse.Merge(m, src) -} -func (m *QueryServiceAskResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryServiceAskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryServiceAskResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryServiceAskResponse proto.InternalMessageInfo - -func (m *QueryServiceAskResponse) GetHeight() uint64 { - if m != nil { - return m.Height - } - return 0 -} - -func (m *QueryServiceAskResponse) GetGasUsed() uint64 { - if m != nil { - return m.GasUsed - } - return 0 -} - -func (m *QueryServiceAskResponse) GetAnswer() *Answer { - if m != nil { - return m.Answer - } - return nil -} - -func init() { - proto.RegisterType((*QueryServiceParamsRequest)(nil), "logic.v1beta.QueryServiceParamsRequest") - proto.RegisterType((*QueryServiceParamsResponse)(nil), "logic.v1beta.QueryServiceParamsResponse") - proto.RegisterType((*QueryServiceAskRequest)(nil), "logic.v1beta.QueryServiceAskRequest") - proto.RegisterType((*QueryServiceAskResponse)(nil), "logic.v1beta.QueryServiceAskResponse") -} - -func init() { proto.RegisterFile("logic/v1beta/query.proto", fileDescriptor_2a2e6b98fc71dc0f) } - -var fileDescriptor_2a2e6b98fc71dc0f = []byte{ - // 492 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x31, 0x6f, 0xd3, 0x40, - 0x18, 0x8d, 0xd3, 0x60, 0xe0, 0xe8, 0x74, 0x2a, 0x8d, 0xe3, 0xb6, 0x76, 0x65, 0x40, 0x74, 0x40, - 0x36, 0xb4, 0x08, 0xa1, 0x4a, 0x0c, 0xf1, 0xc6, 0x80, 0x04, 0x45, 0x2c, 0x2c, 0xe8, 0x92, 0x9c, - 0x2e, 0x96, 0x63, 0xdf, 0xc5, 0x77, 0x29, 0x64, 0x40, 0x42, 0x4c, 0x8c, 0x48, 0x2c, 0x8c, 0xfc, - 0x9c, 0x8e, 0x95, 0x58, 0x60, 0xb1, 0x50, 0xc2, 0x2f, 0xc8, 0x2f, 0xa8, 0x7a, 0xdf, 0x45, 0xb5, - 0xd5, 0x56, 0x59, 0xa2, 0xe8, 0x7b, 0xef, 0x7d, 0xef, 0xbd, 0xf3, 0x1d, 0x72, 0x46, 0x9c, 0x25, - 0xfd, 0xe8, 0xf8, 0x49, 0x8f, 0x2a, 0x12, 0x8d, 0x27, 0xb4, 0x98, 0x86, 0xa2, 0xe0, 0x8a, 0xe3, - 0x75, 0x8d, 0x84, 0x80, 0xb8, 0x1b, 0x8c, 0x33, 0xae, 0x81, 0xe8, 0xfc, 0x1f, 0x70, 0xdc, 0x6d, - 0xc6, 0x39, 0x1b, 0xd1, 0x88, 0x88, 0x24, 0x22, 0x79, 0xce, 0x15, 0x51, 0x09, 0xcf, 0xa5, 0x41, - 0x3b, 0xb5, 0xdd, 0x82, 0x14, 0x24, 0x5b, 0x42, 0x75, 0x5b, 0x35, 0x15, 0xd4, 0x20, 0xc1, 0x16, - 0xea, 0xbc, 0x39, 0x4f, 0xf1, 0x96, 0x16, 0xc7, 0x49, 0x9f, 0xbe, 0xd6, 0xaa, 0x23, 0x3a, 0x9e, - 0x50, 0xa9, 0x82, 0x14, 0xb9, 0x57, 0x81, 0x52, 0xf0, 0x5c, 0x52, 0xfc, 0x0a, 0xd9, 0x60, 0xe2, - 0x58, 0xbb, 0xd6, 0xde, 0x9d, 0xfd, 0x8d, 0xb0, 0x5a, 0x21, 0x04, 0x76, 0xec, 0x9f, 0x94, 0x7e, - 0x63, 0x51, 0xfa, 0xed, 0x29, 0xc9, 0x46, 0x87, 0x01, 0x28, 0x82, 0x47, 0x3c, 0x4b, 0x14, 0xcd, - 0x84, 0x9a, 0x1e, 0x99, 0x25, 0xc1, 0x37, 0x0b, 0x6d, 0x56, 0xdd, 0xba, 0x32, 0x35, 0x39, 0xf0, - 0x33, 0x74, 0x53, 0x14, 0x9c, 0x15, 0x24, 0xd3, 0x56, 0xb7, 0xe3, 0xed, 0x45, 0xe9, 0x3b, 0x66, - 0x21, 0x00, 0xd5, 0x8d, 0x4b, 0x32, 0x7e, 0x8c, 0x6e, 0xe8, 0x23, 0x76, 0x9a, 0x5a, 0xe5, 0x2e, - 0x4a, 0x7f, 0x13, 0x54, 0x7a, 0x5c, 0xd5, 0x00, 0xf1, 0xb0, 0xf5, 0xf3, 0x97, 0x6f, 0x05, 0x7f, - 0x2d, 0xd4, 0xbe, 0x14, 0xc5, 0xb4, 0x3e, 0x40, 0xf6, 0x90, 0x26, 0x6c, 0xa8, 0x74, 0x94, 0x56, - 0xbc, 0x75, 0xd1, 0x0d, 0xe6, 0xb5, 0x6e, 0x30, 0xc2, 0xcf, 0xd1, 0x2d, 0x46, 0xe4, 0x87, 0x89, - 0xa4, 0x03, 0x9d, 0xa5, 0x15, 0xef, 0x2c, 0x4a, 0xbf, 0x03, 0xb2, 0x25, 0x52, 0xab, 0xc0, 0x88, - 0x7c, 0x27, 0xe9, 0x00, 0xbf, 0x44, 0x36, 0xc9, 0xe5, 0x47, 0x5a, 0x38, 0x6b, 0x57, 0x1d, 0x72, - 0x57, 0x63, 0xd5, 0x10, 0xc0, 0xae, 0x85, 0x80, 0x11, 0x74, 0xdb, 0xff, 0xd2, 0x44, 0xeb, 0xd5, - 0x6e, 0xf8, 0x33, 0xb2, 0xe1, 0x53, 0xe1, 0x87, 0xf5, 0xdd, 0xd7, 0xde, 0x0b, 0x77, 0x6f, 0x35, - 0x11, 0x4e, 0x2b, 0xd8, 0xfd, 0xfa, 0xfb, 0xff, 0x8f, 0xa6, 0x8b, 0x9d, 0x88, 0xa7, 0xe2, 0xa9, - 0xfe, 0x19, 0x44, 0x70, 0x19, 0xe1, 0xb3, 0xe3, 0x31, 0x5a, 0xeb, 0xca, 0x14, 0xdf, 0xbf, 0x7e, - 0xe5, 0xc5, 0x45, 0x70, 0x1f, 0xac, 0x60, 0x19, 0xd7, 0x1d, 0xed, 0xda, 0xc6, 0x77, 0x2f, 0xbb, - 0x12, 0x99, 0xc6, 0x2f, 0x4e, 0x66, 0x9e, 0x75, 0x3a, 0xf3, 0xac, 0x7f, 0x33, 0xcf, 0xfa, 0x3e, - 0xf7, 0x1a, 0xa7, 0x73, 0xaf, 0xf1, 0x67, 0xee, 0x35, 0xde, 0xdf, 0x63, 0x89, 0x1a, 0x4e, 0x7a, - 0x61, 0x9f, 0x67, 0x55, 0xe9, 0x27, 0x23, 0xd6, 0x0f, 0xa7, 0x67, 0xeb, 0x97, 0x73, 0x70, 0x16, - 0x00, 0x00, 0xff, 0xff, 0x85, 0x0a, 0x35, 0xed, 0xcc, 0x03, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - // Params queries all parameters for the logic module. - Params(ctx context.Context, in *QueryServiceParamsRequest, opts ...grpc.CallOption) (*QueryServiceParamsResponse, error) - // Ask executes a logic query and returns the solutions found. - // Since the query is without any side-effect, the query is not executed in the context of a transaction and no fee - // is charged for this, but the execution is constrained by the current limits configured in the module. - Ask(ctx context.Context, in *QueryServiceAskRequest, opts ...grpc.CallOption) (*QueryServiceAskResponse, error) -} - -type queryServiceClient struct { - cc grpc1.ClientConn -} - -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} -} - -func (c *queryServiceClient) Params(ctx context.Context, in *QueryServiceParamsRequest, opts ...grpc.CallOption) (*QueryServiceParamsResponse, error) { - out := new(QueryServiceParamsResponse) - err := c.cc.Invoke(ctx, "/logic.v1beta.QueryService/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryServiceClient) Ask(ctx context.Context, in *QueryServiceAskRequest, opts ...grpc.CallOption) (*QueryServiceAskResponse, error) { - out := new(QueryServiceAskResponse) - err := c.cc.Invoke(ctx, "/logic.v1beta.QueryService/Ask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - // Params queries all parameters for the logic module. - Params(context.Context, *QueryServiceParamsRequest) (*QueryServiceParamsResponse, error) - // Ask executes a logic query and returns the solutions found. - // Since the query is without any side-effect, the query is not executed in the context of a transaction and no fee - // is charged for this, but the execution is constrained by the current limits configured in the module. - Ask(context.Context, *QueryServiceAskRequest) (*QueryServiceAskResponse, error) -} - -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { -} - -func (*UnimplementedQueryServiceServer) Params(ctx context.Context, req *QueryServiceParamsRequest) (*QueryServiceParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServiceServer) Ask(ctx context.Context, req *QueryServiceAskRequest) (*QueryServiceAskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ask not implemented") -} - -func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) -} - -func _QueryService_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryServiceParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/logic.v1beta.QueryService/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).Params(ctx, req.(*QueryServiceParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueryService_Ask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryServiceAskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).Ask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/logic.v1beta.QueryService/Ask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).Ask(ctx, req.(*QueryServiceAskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "logic.v1beta.QueryService", - HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _QueryService_Params_Handler, - }, - { - MethodName: "Ask", - Handler: _QueryService_Ask_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "logic/v1beta/query.proto", -} - -func (m *QueryServiceParamsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryServiceParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryServiceParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryServiceParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryServiceParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryServiceParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryServiceAskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryServiceAskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryServiceAskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Query) > 0 { - i -= len(m.Query) - copy(dAtA[i:], m.Query) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Query))) - i-- - dAtA[i] = 0x12 - } - if len(m.Program) > 0 { - i -= len(m.Program) - copy(dAtA[i:], m.Program) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Program))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryServiceAskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryServiceAskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryServiceAskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Answer != nil { - { - size, err := m.Answer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.GasUsed != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GasUsed)) - i-- - dAtA[i] = 0x10 - } - if m.Height != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryServiceParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryServiceParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryServiceAskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Program) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Query) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryServiceAskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Height != 0 { - n += 1 + sovQuery(uint64(m.Height)) - } - if m.GasUsed != 0 { - n += 1 + sovQuery(uint64(m.GasUsed)) - } - if m.Answer != nil { - l = m.Answer.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryServiceParamsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryServiceParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryServiceParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryServiceParamsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryServiceParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryServiceParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryServiceAskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryServiceAskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryServiceAskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Program", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Program = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryServiceAskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryServiceAskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryServiceAskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) - } - m.GasUsed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GasUsed |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Answer", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Answer == nil { - m.Answer = &Answer{} - } - if err := m.Answer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/logic/migrations/v2/types/tx.pb.go b/x/logic/migrations/v2/types/tx.pb.go deleted file mode 100644 index 388e3272..00000000 --- a/x/logic/migrations/v2/types/tx.pb.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: logic/v1beta/tx.proto - -package types - -import ( - context "context" - fmt "fmt" - math "math" - - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -func init() { proto.RegisterFile("logic/v1beta/tx.proto", fileDescriptor_e6cd1e3cacbee9fb) } - -var fileDescriptor_e6cd1e3cacbee9fb = []byte{ - // 130 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0xc9, 0x4f, 0xcf, - 0x4c, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, - 0xc9, 0x17, 0xe2, 0x01, 0x0b, 0xeb, 0x41, 0x84, 0x8d, 0x78, 0xb8, 0xb8, 0x7c, 0x8b, 0xd3, 0x83, - 0x53, 0x8b, 0xca, 0x32, 0x93, 0x53, 0x9d, 0x6c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, - 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, - 0x8e, 0x21, 0x4a, 0x39, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x3f, - 0xbb, 0xc0, 0x04, 0x4c, 0xa4, 0xe8, 0x57, 0xe8, 0x43, 0x2c, 0x29, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, - 0x62, 0x03, 0xdb, 0x60, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xab, 0xfe, 0x19, 0x9d, 0x7a, 0x00, - 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MsgServiceClient is the client API for MsgService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgServiceClient interface { -} - -type msgServiceClient struct { - cc grpc1.ClientConn -} - -func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient { - return &msgServiceClient{cc} -} - -// MsgServiceServer is the server API for MsgService service. -type MsgServiceServer interface { -} - -// UnimplementedMsgServiceServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServiceServer struct { -} - -func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer) { - s.RegisterService(&_MsgService_serviceDesc, srv) -} - -var _MsgService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "logic.v1beta.MsgService", - HandlerType: (*MsgServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "logic/v1beta/tx.proto", -} diff --git a/x/logic/migrations/v2/types/types.pb.go b/x/logic/migrations/v2/types/types.pb.go deleted file mode 100644 index 3b6a2987..00000000 --- a/x/logic/migrations/v2/types/types.pb.go +++ /dev/null @@ -1,1133 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: logic/v1beta/types.proto - -package types - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - proto "github.com/cosmos/gogoproto/proto" - - _ "github.com/cosmos/gogoproto/gogoproto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Term is the representation of a piece of data and can be a constant, a variable, or an atom. -type Term struct { - // name is the name of the term. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" yaml:"name",omitempty` - // arguments are the arguments of the term, which can be constants, variables, or atoms. - Arguments []Term `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments" yaml:"arguments",omitempty` -} - -func (m *Term) Reset() { *m = Term{} } -func (m *Term) String() string { return proto.CompactTextString(m) } -func (*Term) ProtoMessage() {} -func (*Term) Descriptor() ([]byte, []int) { - return fileDescriptor_9039e7facc8fa2a2, []int{0} -} -func (m *Term) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Term) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Term.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Term) XXX_Merge(src proto.Message) { - xxx_messageInfo_Term.Merge(m, src) -} -func (m *Term) XXX_Size() int { - return m.Size() -} -func (m *Term) XXX_DiscardUnknown() { - xxx_messageInfo_Term.DiscardUnknown(m) -} - -var xxx_messageInfo_Term proto.InternalMessageInfo - -func (m *Term) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Term) GetArguments() []Term { - if m != nil { - return m.Arguments - } - return nil -} - -// Substitution represents a substitution made to the variables in the query to obtain the answer. -type Substitution struct { - // variable is the name of the variable. - Variable string `protobuf:"bytes,1,opt,name=variable,proto3" json:"variable,omitempty" yaml:"variable",omitempty` - // term is the term that the variable is substituted with. - Term Term `protobuf:"bytes,2,opt,name=term,proto3" json:"term" yaml:"term",omitempty` -} - -func (m *Substitution) Reset() { *m = Substitution{} } -func (m *Substitution) String() string { return proto.CompactTextString(m) } -func (*Substitution) ProtoMessage() {} -func (*Substitution) Descriptor() ([]byte, []int) { - return fileDescriptor_9039e7facc8fa2a2, []int{1} -} -func (m *Substitution) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Substitution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Substitution.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Substitution) XXX_Merge(src proto.Message) { - xxx_messageInfo_Substitution.Merge(m, src) -} -func (m *Substitution) XXX_Size() int { - return m.Size() -} -func (m *Substitution) XXX_DiscardUnknown() { - xxx_messageInfo_Substitution.DiscardUnknown(m) -} - -var xxx_messageInfo_Substitution proto.InternalMessageInfo - -func (m *Substitution) GetVariable() string { - if m != nil { - return m.Variable - } - return "" -} - -func (m *Substitution) GetTerm() Term { - if m != nil { - return m.Term - } - return Term{} -} - -// Result represents the result of a query. -type Result struct { - // substitutions represent all the substitutions made to the variables in the query to obtain the answer. - Substitutions []Substitution `protobuf:"bytes,1,rep,name=substitutions,proto3" json:"substitutions" yaml:"substitutions",omitempty` -} - -func (m *Result) Reset() { *m = Result{} } -func (m *Result) String() string { return proto.CompactTextString(m) } -func (*Result) ProtoMessage() {} -func (*Result) Descriptor() ([]byte, []int) { - return fileDescriptor_9039e7facc8fa2a2, []int{2} -} -func (m *Result) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Result.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Result) XXX_Merge(src proto.Message) { - xxx_messageInfo_Result.Merge(m, src) -} -func (m *Result) XXX_Size() int { - return m.Size() -} -func (m *Result) XXX_DiscardUnknown() { - xxx_messageInfo_Result.DiscardUnknown(m) -} - -var xxx_messageInfo_Result proto.InternalMessageInfo - -func (m *Result) GetSubstitutions() []Substitution { - if m != nil { - return m.Substitutions - } - return nil -} - -// Answer represents the answer to a logic query. -type Answer struct { - // result is the result of the query. - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty" yaml:"success",omitempty` - // has_more specifies if there are more solutions than the ones returned. - HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty" yaml:"has_more",omitempty` - // variables represent all the variables in the query. - Variables []string `protobuf:"bytes,3,rep,name=variables,proto3" json:"variables,omitempty" yaml:"variables",omitempty` - // results represent all the results of the query. - Results []Result `protobuf:"bytes,4,rep,name=results,proto3" json:"results" yaml:"results",omitempty` -} - -func (m *Answer) Reset() { *m = Answer{} } -func (m *Answer) String() string { return proto.CompactTextString(m) } -func (*Answer) ProtoMessage() {} -func (*Answer) Descriptor() ([]byte, []int) { - return fileDescriptor_9039e7facc8fa2a2, []int{3} -} -func (m *Answer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Answer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Answer.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Answer) XXX_Merge(src proto.Message) { - xxx_messageInfo_Answer.Merge(m, src) -} -func (m *Answer) XXX_Size() int { - return m.Size() -} -func (m *Answer) XXX_DiscardUnknown() { - xxx_messageInfo_Answer.DiscardUnknown(m) -} - -var xxx_messageInfo_Answer proto.InternalMessageInfo - -func (m *Answer) GetSuccess() bool { - if m != nil { - return m.Success - } - return false -} - -func (m *Answer) GetHasMore() bool { - if m != nil { - return m.HasMore - } - return false -} - -func (m *Answer) GetVariables() []string { - if m != nil { - return m.Variables - } - return nil -} - -func (m *Answer) GetResults() []Result { - if m != nil { - return m.Results - } - return nil -} - -func init() { - proto.RegisterType((*Term)(nil), "logic.v1beta.Term") - proto.RegisterType((*Substitution)(nil), "logic.v1beta.Substitution") - proto.RegisterType((*Result)(nil), "logic.v1beta.Result") - proto.RegisterType((*Answer)(nil), "logic.v1beta.Answer") -} - -func init() { proto.RegisterFile("logic/v1beta/types.proto", fileDescriptor_9039e7facc8fa2a2) } - -var fileDescriptor_9039e7facc8fa2a2 = []byte{ - // 461 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xcf, 0x8a, 0xdb, 0x30, - 0x10, 0xc6, 0xa3, 0xc4, 0x64, 0x13, 0x75, 0x7b, 0x11, 0x5b, 0xd0, 0x86, 0xae, 0x6d, 0x5c, 0x28, - 0x39, 0xb4, 0x36, 0xfd, 0x43, 0x69, 0x17, 0x0a, 0xad, 0xa1, 0xc7, 0x42, 0xd9, 0xee, 0xa9, 0x97, - 0x22, 0xa7, 0xc2, 0x31, 0x8d, 0xa2, 0x20, 0xc9, 0xdb, 0xcd, 0x5b, 0xb4, 0x50, 0x4a, 0x8f, 0x7d, - 0x9c, 0x3d, 0xee, 0xb1, 0x27, 0x53, 0x92, 0x37, 0xc8, 0x13, 0x14, 0x4b, 0x72, 0x56, 0x3a, 0xec, - 0xc5, 0x98, 0xf9, 0x66, 0xbe, 0x99, 0xf9, 0x89, 0x81, 0x78, 0xc1, 0xcb, 0x6a, 0x96, 0x5d, 0x3c, - 0x29, 0xa8, 0x22, 0x99, 0x5a, 0xaf, 0xa8, 0x4c, 0x57, 0x82, 0x2b, 0x8e, 0x0e, 0xb5, 0x92, 0x1a, - 0x65, 0x72, 0x54, 0xf2, 0x92, 0x6b, 0x21, 0x6b, 0xff, 0x4c, 0x4e, 0xf2, 0x03, 0xc0, 0xe0, 0x9c, - 0x0a, 0x86, 0x1e, 0xc3, 0x60, 0x49, 0x18, 0xc5, 0x20, 0x06, 0xd3, 0x71, 0x7e, 0xbc, 0x6b, 0xa2, - 0x7b, 0x6b, 0xc2, 0x16, 0xa7, 0x49, 0x1b, 0x4d, 0x1e, 0x71, 0x56, 0x29, 0xca, 0x56, 0x6a, 0x7d, - 0xa6, 0xd3, 0xd0, 0x39, 0x1c, 0x13, 0x51, 0xd6, 0x8c, 0x2e, 0x95, 0xc4, 0xfd, 0x78, 0x30, 0xbd, - 0xf3, 0x14, 0xa5, 0x6e, 0xbf, 0xb4, 0x75, 0xcd, 0x93, 0xab, 0x26, 0xea, 0xed, 0x9a, 0x68, 0x62, - 0xbc, 0xf6, 0x25, 0xae, 0xe1, 0x8d, 0xd1, 0x69, 0xf0, 0xfb, 0x4f, 0x04, 0x92, 0x5f, 0x00, 0x1e, - 0x7e, 0xac, 0x0b, 0xa9, 0x2a, 0x55, 0xab, 0x8a, 0x2f, 0xd1, 0x2b, 0x38, 0xba, 0x20, 0xa2, 0x22, - 0xc5, 0xa2, 0x9b, 0xef, 0x64, 0xd7, 0x44, 0xc7, 0xc6, 0xb3, 0x53, 0x5c, 0xcb, 0x7d, 0x3a, 0x7a, - 0x07, 0x03, 0x45, 0x05, 0xc3, 0xfd, 0x18, 0xdc, 0x32, 0xe2, 0x89, 0x1d, 0xd1, 0xae, 0xdb, 0x66, - 0x7b, 0xeb, 0xb6, 0x01, 0x3b, 0xd8, 0x25, 0x1c, 0x9e, 0x51, 0x59, 0x2f, 0x14, 0x9a, 0xc3, 0xbb, - 0xd2, 0x99, 0x50, 0x62, 0xa0, 0x11, 0x4c, 0x7c, 0x7f, 0x77, 0x89, 0xfc, 0xa1, 0xed, 0x13, 0x9a, - 0x3e, 0x5e, 0xb9, 0xdb, 0xd0, 0x37, 0xb6, 0x9d, 0x7f, 0xf6, 0xe1, 0xf0, 0xed, 0x52, 0x7e, 0xa3, - 0x02, 0xbd, 0x80, 0x07, 0xb2, 0x9e, 0xcd, 0xa8, 0x94, 0x9a, 0xc5, 0x28, 0xbf, 0xbf, 0x6b, 0x22, - 0xdc, 0x99, 0x6a, 0xc1, 0xb5, 0xeb, 0x92, 0xd1, 0x4b, 0x38, 0x9a, 0x13, 0xf9, 0x99, 0x71, 0x41, - 0x35, 0x8d, 0x91, 0x0b, 0xb1, 0x53, 0xbc, 0xca, 0x39, 0x91, 0xef, 0xb9, 0xa0, 0xe8, 0x0d, 0x1c, - 0x77, 0x3c, 0x25, 0x1e, 0xc4, 0x83, 0xe9, 0x58, 0xbf, 0x2b, 0xb8, 0x79, 0xd7, 0xbd, 0xec, 0xbd, - 0xeb, 0x3e, 0x8a, 0x3e, 0xc0, 0x03, 0xa1, 0xc1, 0x49, 0x1c, 0x68, 0x50, 0x47, 0x3e, 0x28, 0x43, - 0x35, 0x8f, 0x2d, 0x22, 0xbb, 0x8d, 0x2d, 0xf1, 0x66, 0xb2, 0x31, 0x83, 0x25, 0x7f, 0x7d, 0xb5, - 0x09, 0xc1, 0xf5, 0x26, 0x04, 0xff, 0x36, 0x21, 0xf8, 0xbe, 0x0d, 0x7b, 0xd7, 0xdb, 0xb0, 0xf7, - 0x77, 0x1b, 0xf6, 0x3e, 0x3d, 0x28, 0x2b, 0x35, 0xaf, 0x8b, 0x74, 0xc6, 0x59, 0xc6, 0xbf, 0xae, - 0x9e, 0xeb, 0xcf, 0x97, 0xec, 0x32, 0x33, 0xd7, 0xa2, 0xcf, 0xa4, 0x18, 0xea, 0x1b, 0x78, 0xf6, - 0x3f, 0x00, 0x00, 0xff, 0xff, 0x08, 0xff, 0x33, 0x7e, 0x43, 0x03, 0x00, 0x00, -} - -func (m *Term) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Term) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Term) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Arguments) > 0 { - for iNdEx := len(m.Arguments) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Arguments[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Substitution) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Substitution) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Substitution) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Term.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Variable) > 0 { - i -= len(m.Variable) - copy(dAtA[i:], m.Variable) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Variable))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Result) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Result) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Substitutions) > 0 { - for iNdEx := len(m.Substitutions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Substitutions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Answer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Answer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Answer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Results) > 0 { - for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.Variables) > 0 { - for iNdEx := len(m.Variables) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Variables[iNdEx]) - copy(dAtA[i:], m.Variables[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Variables[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.HasMore { - i-- - if m.HasMore { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Success { - i-- - if m.Success { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Term) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - if len(m.Arguments) > 0 { - for _, e := range m.Arguments { - l = e.Size() - n += 1 + l + sovTypes(uint64(l)) - } - } - return n -} - -func (m *Substitution) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Variable) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - l = m.Term.Size() - n += 1 + l + sovTypes(uint64(l)) - return n -} - -func (m *Result) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Substitutions) > 0 { - for _, e := range m.Substitutions { - l = e.Size() - n += 1 + l + sovTypes(uint64(l)) - } - } - return n -} - -func (m *Answer) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Success { - n += 2 - } - if m.HasMore { - n += 2 - } - if len(m.Variables) > 0 { - for _, s := range m.Variables { - l = len(s) - n += 1 + l + sovTypes(uint64(l)) - } - } - if len(m.Results) > 0 { - for _, e := range m.Results { - l = e.Size() - n += 1 + l + sovTypes(uint64(l)) - } - } - return n -} - -func sovTypes(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Term) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Term: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Term: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Arguments", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Arguments = append(m.Arguments, Term{}) - if err := m.Arguments[len(m.Arguments)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Substitution) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Substitution: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Substitution: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Variable", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Variable = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Term.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Result) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Result: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Result: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Substitutions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Substitutions = append(m.Substitutions, Substitution{}) - if err := m.Substitutions[len(m.Substitutions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Answer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Answer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Answer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Success = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HasMore", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HasMore = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Variables", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Variables = append(m.Variables, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = append(m.Results, Result{}) - if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTypes(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTypes - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTypes - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTypes - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthTypes - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTypes - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/logic/migrations/v3/migrations.go b/x/logic/migrations/v3/migrations.go deleted file mode 100644 index 926bfdee..00000000 --- a/x/logic/migrations/v3/migrations.go +++ /dev/null @@ -1,72 +0,0 @@ -package v2 - -import ( - storetypes "cosmossdk.io/store/types" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - - "github.com/okp4/okp4d/x/logic/exported" - v2types "github.com/okp4/okp4d/x/logic/migrations/v2/types" - "github.com/okp4/okp4d/x/logic/types" -) - -func v2ParamKeyTable() paramtypes.KeyTable { - return paramtypes.NewKeyTable().RegisterParamSet(&v2types.Params{}) -} - -// MigrateStore migrates the x/logic module state from the consensus version 2 to -// version 3. -// Specifically, it takes the parameters that are currently stored -// and managed by the x/params modules and stores them directly into the x/logic -// module state. -// Then, `RegisteredPredicates` has been renamed to `PredicatesWhitelist` and add new -// `PredicatesBlacklist`. -func MigrateStore(ctx sdk.Context, - storeKey storetypes.StoreKey, - cdc codec.BinaryCodec, - legacySubspace exported.Subspace, -) error { - logger := ctx.Logger(). - With("module", "logic"). - With("migration", "v3") - - logger.Debug("starting module migration") - - logger.Debug("migrate logic params") - - store := ctx.KVStore(storeKey) - - var oldParams v2types.Params - legacySubspace.WithKeyTable(v2ParamKeyTable()). - GetParamSet(ctx, &oldParams) - - newParams := types.Params{ - Interpreter: types.Interpreter{ - Bootstrap: oldParams.Interpreter.Bootstrap, - PredicatesFilter: types.Filter{ - Whitelist: oldParams.Interpreter.RegisteredPredicates, - Blacklist: []string{}, - }, - }, - Limits: types.Limits{ - MaxGas: oldParams.Limits.MaxGas, - MaxSize: oldParams.Limits.MaxSize, - MaxResultCount: oldParams.Limits.MaxResultCount, - }, - } - - if err := newParams.Validate(); err != nil { - return err - } - - bz, err := cdc.Marshal(&newParams) - if err != nil { - return err - } - store.Set(types.ParamsKey, bz) - - logger.Debug("module migration done") - - return nil -} diff --git a/x/logic/module.go b/x/logic/module.go index cac855f3..9abc5381 100644 --- a/x/logic/module.go +++ b/x/logic/module.go @@ -115,23 +115,6 @@ func (am AppModule) IsAppModule() {} func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServiceServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) types.RegisterQueryServiceServer(cfg.QueryServer(), am.keeper) - - migrator := keeper.NewMigrator(am.keeper, am.legacySubspace) - - migrations := []struct { - fromVersion uint64 - migrator func(ctx sdk.Context) error - }{ - {1, migrator.Migrate1to2}, - {2, migrator.Migrate2to3}, - } - - for _, migration := range migrations { - if err := cfg.RegisterMigration(types.ModuleName, migration.fromVersion, migration.migrator); err != nil { - panic(fmt.Errorf("failed to migrate %s from version %d to v%d: %w", - types.ModuleName, migration.fromVersion, migration.fromVersion+1, err)) - } - } } // InitGenesis performs the module's genesis initialization. It returns no validator updates. diff --git a/x/mint/keeper/migrations.go b/x/mint/keeper/migrations.go deleted file mode 100644 index cf45891b..00000000 --- a/x/mint/keeper/migrations.go +++ /dev/null @@ -1,21 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - v3 "github.com/okp4/okp4d/x/mint/migrations/v3" -) - -type Migrator struct { - keeper Keeper -} - -func NewMigrator(keeper Keeper) Migrator { - return Migrator{ - keeper: keeper, - } -} - -func (m Migrator) Migrate2to3(ctx sdk.Context) error { - return v3.MigrateStore(ctx, m.keeper.storeService.OpenKVStore(ctx), m.keeper.cdc) -} diff --git a/x/mint/migrations/v3/migrations.go b/x/mint/migrations/v3/migrations.go deleted file mode 100644 index b9dba248..00000000 --- a/x/mint/migrations/v3/migrations.go +++ /dev/null @@ -1,68 +0,0 @@ -package v3 - -import ( - storetypes "cosmossdk.io/core/store" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - - oldTypes "github.com/okp4/okp4d/x/mint/migrations/v3/types" - "github.com/okp4/okp4d/x/mint/types" -) - -// MigrateStore migrates the x/mint module state from the consensus version 2 to -// version 3. -// This version include new/deleted parameters in store. -func MigrateStore(ctx sdk.Context, - store storetypes.KVStore, - cdc codec.BinaryCodec, -) error { - logger := ctx.Logger(). - With("module", "mint"). - With("migration", "v3") - - logger.Debug("starting module migration") - - logger.Debug("migrate old mint params with new params") - - var oldParams oldTypes.Params - d, err := store.Get(types.ParamsKey) - if err != nil { - return err - } - err = cdc.Unmarshal(d, &oldParams) - if err != nil { - return err - } - - newParams := types.DefaultParams() - newParams.MintDenom = oldParams.MintDenom - - bz, err := cdc.Marshal(&newParams) - if err != nil { - return err - } - store.Set(types.ParamsKey, bz) - - logger.Debug("migrate minter store") - - var oldMinter oldTypes.Minter - d, err = store.Get(types.MinterKey) - if err != nil { - return err - } - err = cdc.Unmarshal(d, &oldMinter) - if err != nil { - return err - } - - newMinter := types.NewMinter(oldMinter.Inflation, oldMinter.AnnualProvisions) - bz, err = cdc.Marshal(&newMinter) - if err != nil { - return err - } - store.Set(types.MinterKey, bz) - - logger.Debug("module migration done") - - return nil -} diff --git a/x/mint/migrations/v3/types/minter.pb.go b/x/mint/migrations/v3/types/minter.pb.go deleted file mode 100644 index d43ff313..00000000 --- a/x/mint/migrations/v3/types/minter.pb.go +++ /dev/null @@ -1,704 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mint/v1beta1/mint.proto - -package types - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - github_com_cosmos_cosmos_sdk_types "cosmossdk.io/math" - - _ "github.com/cosmos/cosmos-proto" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Minter represents the minting state. -// -// At the beginning of the chain (first block) the mint module will recalculate the `annual_provisions` and -// `target_supply` based on the genesis total token supply and the inflation configured. -// By default inflation is set to 15%. If the genesis total token supply is 200M token, the `annual_provision` will be 30M -// and `target_supply` 230M. -type Minter struct { - // current annual inflation rate - Inflation github_com_cosmos_cosmos_sdk_types.LegacyDec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` - // current annual expected provisions - AnnualProvisions github_com_cosmos_cosmos_sdk_types.LegacyDec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions"` - // target supply at end of period - TargetSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=target_supply,json=targetSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"target_supply"` -} - -func (m *Minter) Reset() { *m = Minter{} } -func (m *Minter) String() string { return proto.CompactTextString(m) } -func (*Minter) ProtoMessage() {} -func (*Minter) Descriptor() ([]byte, []int) { - return fileDescriptor_06339c129491fd39, []int{0} -} - -func (m *Minter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} - -func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Minter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} - -func (m *Minter) XXX_Merge(src proto.Message) { - xxx_messageInfo_Minter.Merge(m, src) -} - -func (m *Minter) XXX_Size() int { - return m.Size() -} - -func (m *Minter) XXX_DiscardUnknown() { - xxx_messageInfo_Minter.DiscardUnknown(m) -} - -var xxx_messageInfo_Minter proto.InternalMessageInfo - -// Params holds parameters for the mint module. -// -// Configure the annual reduction factor will update at the each end of year the new token distribution rate by reducing -// the actual inflation by the `annual_reduction_factor` configured. -// By default, `annual_reduction_factor` is 20%. For example, with an initial inflation of 15%, at the end of the year, -// new inflation will be 12%. -type Params struct { - // type of coin to mint - MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` - // annual reduction factor inflation rate change - AnnualReductionFactor github_com_cosmos_cosmos_sdk_types.LegacyDec `protobuf:"bytes,2,opt,name=annual_reduction_factor,json=annualReductionFactor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_reduction_factor"` - // expected blocks per year - BlocksPerYear uint64 `protobuf:"varint,3,opt,name=blocks_per_year,json=blocksPerYear,proto3" json:"blocks_per_year,omitempty"` -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_06339c129491fd39, []int{1} -} - -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} - -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} - -func (m *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} - -func (m *Params) XXX_Size() int { - return m.Size() -} - -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetMintDenom() string { - if m != nil { - return m.MintDenom - } - return "" -} - -func (m *Params) GetBlocksPerYear() uint64 { - if m != nil { - return m.BlocksPerYear - } - return 0 -} - -func init() { proto.RegisterFile("mint/v1beta1/mint.proto", fileDescriptor_06339c129491fd39) } - -var fileDescriptor_06339c129491fd39 = []byte{ - // 379 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xcf, 0x6a, 0xea, 0x40, - 0x14, 0xc6, 0x13, 0xaf, 0x08, 0x0e, 0xca, 0xbd, 0x37, 0xdc, 0x8b, 0x56, 0x68, 0x2c, 0x2e, 0xa4, - 0x1b, 0x13, 0xa4, 0x5d, 0x15, 0x57, 0x22, 0x85, 0x2e, 0x0a, 0x12, 0x57, 0x75, 0x13, 0x26, 0xc9, - 0x98, 0x0e, 0x26, 0x33, 0x61, 0x66, 0x22, 0xf5, 0x2d, 0xba, 0xec, 0xb2, 0x8b, 0x3e, 0x42, 0x1f, - 0x42, 0xe8, 0x46, 0xba, 0x2a, 0x5d, 0x48, 0xd1, 0x17, 0x29, 0x33, 0x93, 0xfe, 0xd9, 0x16, 0xdc, - 0x24, 0x33, 0xdf, 0x19, 0x7e, 0xdf, 0xf9, 0x0e, 0x07, 0x34, 0x52, 0x4c, 0x84, 0xbb, 0xe8, 0x07, - 0x48, 0xc0, 0xbe, 0x2b, 0x2f, 0x4e, 0xc6, 0xa8, 0xa0, 0x56, 0x4d, 0x9d, 0x8b, 0x42, 0xeb, 0x20, - 0xa4, 0x3c, 0xa5, 0xdc, 0x57, 0x35, 0x57, 0x5f, 0xf4, 0xc3, 0xd6, 0xbf, 0x98, 0xc6, 0x54, 0xeb, - 0xf2, 0xa4, 0xd5, 0xce, 0x43, 0x09, 0x54, 0x2e, 0x31, 0x11, 0x88, 0x59, 0x53, 0x50, 0xc5, 0x64, - 0x96, 0x40, 0x81, 0x29, 0x69, 0x9a, 0x47, 0xe6, 0x71, 0x75, 0x38, 0x58, 0x6d, 0xda, 0xc6, 0xeb, - 0xa6, 0xdd, 0x8d, 0xb1, 0xb8, 0xce, 0x03, 0x27, 0xa4, 0x69, 0x01, 0x2d, 0x7e, 0x3d, 0x1e, 0xcd, - 0x5d, 0xb1, 0xcc, 0x10, 0x77, 0x46, 0x28, 0x7c, 0x7e, 0xec, 0x81, 0xc2, 0x73, 0x84, 0x42, 0xef, - 0x0b, 0x67, 0x61, 0xf0, 0x17, 0x12, 0x92, 0xc3, 0x44, 0x76, 0xb6, 0xc0, 0x1c, 0x53, 0xc2, 0x9b, - 0xa5, 0x3d, 0x78, 0xfc, 0xd1, 0xd8, 0xf1, 0x27, 0xd5, 0x9a, 0x80, 0xba, 0x80, 0x2c, 0x46, 0xc2, - 0xe7, 0x79, 0x96, 0x25, 0xcb, 0xe6, 0x2f, 0x65, 0xe3, 0xfc, 0xc0, 0xe6, 0x82, 0x08, 0xaf, 0xa6, - 0x21, 0x13, 0xc5, 0xe8, 0x3c, 0x99, 0xa0, 0x32, 0x86, 0x0c, 0xa6, 0xdc, 0x3a, 0x04, 0x40, 0x8e, - 0xdc, 0x8f, 0x10, 0xa1, 0xa9, 0x9e, 0x93, 0x57, 0x95, 0xca, 0x48, 0x0a, 0x96, 0x00, 0x8d, 0x22, - 0x29, 0x43, 0x51, 0x1e, 0xca, 0xf4, 0xfe, 0x0c, 0x86, 0x82, 0xb2, 0xbd, 0xe4, 0xfd, 0xaf, 0xe1, - 0xde, 0x07, 0xfb, 0x5c, 0xa1, 0xad, 0x2e, 0xf8, 0x1d, 0x24, 0x34, 0x9c, 0x73, 0x3f, 0x43, 0xcc, - 0x5f, 0x22, 0xc8, 0x54, 0xec, 0xb2, 0x57, 0xd7, 0xf2, 0x18, 0xb1, 0x2b, 0x04, 0xd9, 0x59, 0xf9, - 0xee, 0xbe, 0x6d, 0x0c, 0x07, 0xab, 0xad, 0x6d, 0xae, 0xb7, 0xb6, 0xf9, 0xb6, 0xb5, 0xcd, 0xdb, - 0x9d, 0x6d, 0xac, 0x77, 0xb6, 0xf1, 0xb2, 0xb3, 0x8d, 0x69, 0xe7, 0x5b, 0x53, 0x74, 0x9e, 0x9d, - 0xaa, 0x4f, 0xe4, 0xde, 0xa8, 0x8d, 0xd3, 0x4d, 0x05, 0x15, 0xb5, 0x39, 0x27, 0xef, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x71, 0x98, 0x4c, 0x41, 0x93, 0x02, 0x00, 0x00, -} - -func (m *Minter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Minter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.TargetSupply.Size() - i -= size - if _, err := m.TargetSupply.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size := m.AnnualProvisions.Size() - i -= size - if _, err := m.AnnualProvisions.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size := m.Inflation.Size() - i -= size - if _, err := m.Inflation.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Params) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BlocksPerYear != 0 { - i = encodeVarintMint(dAtA, i, uint64(m.BlocksPerYear)) - i-- - dAtA[i] = 0x18 - } - { - size := m.AnnualReductionFactor.Size() - i -= size - if _, err := m.AnnualReductionFactor.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.MintDenom) > 0 { - i -= len(m.MintDenom) - copy(dAtA[i:], m.MintDenom) - i = encodeVarintMint(dAtA, i, uint64(len(m.MintDenom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintMint(dAtA []byte, offset int, v uint64) int { - offset -= sovMint(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} - -func (m *Minter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Inflation.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.AnnualProvisions.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.TargetSupply.Size() - n += 1 + l + sovMint(uint64(l)) - return n -} - -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MintDenom) - if l > 0 { - n += 1 + l + sovMint(uint64(l)) - } - l = m.AnnualReductionFactor.Size() - n += 1 + l + sovMint(uint64(l)) - if m.BlocksPerYear != 0 { - n += 1 + sovMint(uint64(m.BlocksPerYear)) - } - return n -} - -func sovMint(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} - -func sozMint(x uint64) (n int) { - return sovMint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} - -func (m *Minter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Minter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Minter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inflation", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Inflation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnnualProvisions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.AnnualProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetSupply", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TargetSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMint(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMint - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *Params) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MintDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MintDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnnualReductionFactor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.AnnualReductionFactor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlocksPerYear", wireType) - } - m.BlocksPerYear = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BlocksPerYear |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMint(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMint - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func skipMint(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMint - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMint - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMint - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthMint - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMint - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMint - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMint = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMint = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMint = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/mint/migrations/v3/types/params.go b/x/mint/migrations/v3/types/params.go deleted file mode 100644 index e7c6a100..00000000 --- a/x/mint/migrations/v3/types/params.go +++ /dev/null @@ -1,99 +0,0 @@ -package types - -import ( - "errors" - "fmt" - "strings" - - "cosmossdk.io/math" - - "sigs.k8s.io/yaml" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// Parameter store keys. -var ( - KeyMintDenom = []byte("MintDenom") - KeyAnnualReductionFactor = []byte("AnnualReductionFactor") - KeyBlocksPerYear = []byte("BlocksPerYear") -) - -func NewParams( - mintDenom string, annualReductionFactor math.LegacyDec, blocksPerYear uint64, -) Params { - return Params{ - MintDenom: mintDenom, - AnnualReductionFactor: annualReductionFactor, - BlocksPerYear: blocksPerYear, - } -} - -// default minting module parameters. -func DefaultParams() Params { - return Params{ - MintDenom: sdk.DefaultBondDenom, - AnnualReductionFactor: math.LegacyNewDecWithPrec(20, 2), // Tha annual reduction factor is configured to 20% per year - BlocksPerYear: uint64(60 * 60 * 8766 / 5), // assuming 5-second block times - } -} - -// validate params. -func (p Params) Validate() error { - if err := validateMintDenom(p.MintDenom); err != nil { - return err - } - if err := validateAnnualReductionFactor(p.AnnualReductionFactor); err != nil { - return err - } - - return validateBlocksPerYear(p.BlocksPerYear) -} - -// String implements the Stringer interface. -func (p Params) String() string { - out, _ := yaml.Marshal(p) - return string(out) -} - -func validateMintDenom(i interface{}) error { - v, ok := i.(string) - if !ok { - return fmt.Errorf("invalid parameter type: %T", i) - } - - if strings.TrimSpace(v) == "" { - return errors.New("mint denom cannot be blank") - } - - return sdk.ValidateDenom(v) -} - -func validateAnnualReductionFactor(i interface{}) error { - v, ok := i.(math.LegacyDec) - if !ok { - return fmt.Errorf("invalid parameter type: %T", i) - } - - if v.IsNegative() { - return fmt.Errorf("annual reduction factor cannot be negative: %s", v) - } - if v.GT(math.LegacyOneDec()) { - return fmt.Errorf("annual reduction factor too large: %s", v) - } - - return nil -} - -func validateBlocksPerYear(i interface{}) error { - v, ok := i.(uint64) - if !ok { - return fmt.Errorf("invalid parameter type: %T", i) - } - - if v == 0 { - return fmt.Errorf("blocks per year must be positive: %d", v) - } - - return nil -} diff --git a/x/mint/module.go b/x/mint/module.go index 63c99913..17ee5e4a 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -107,22 +107,6 @@ func (am AppModule) IsAppModule() {} func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServerImpl(am.keeper)) - - migrator := keeper.NewMigrator(am.keeper) - - migrations := []struct { - fromVersion uint64 - migrator func(ctx sdk.Context) error - }{ - {2, migrator.Migrate2to3}, - } - - for _, migration := range migrations { - if err := cfg.RegisterMigration(types.ModuleName, migration.fromVersion, migration.migrator); err != nil { - panic(fmt.Errorf("failed to migrate %s from version %d to v%d: %w", - types.ModuleName, migration.fromVersion, migration.fromVersion+1, err)) - } - } } // InitGenesis performs genesis initialization for the mint module. It returns From 354bf5c99b1d478b19616bebd202bc30ba5ac7f8 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:22:02 +0100 Subject: [PATCH 25/29] build(proto): fix docker gen in github actions --- .github/workflows/build.yml | 4 ---- Makefile | 2 +- scripts/protocgen-code.sh | 7 ++----- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 112567d1..b875e1ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,10 +52,6 @@ jobs: files: | proto/**/*.proto - - name: Setup buf - if: steps.changed-proto-files.outputs.any_changed == 'true' - uses: bufbuild/buf-setup-action@v1.28.1 - - name: Build and generate proto if: steps.changed-proto-files.outputs.any_changed == 'true' run: | diff --git a/Makefile b/Makefile index acf77d8e..ef2ee753 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ DOCKER_IMAGE_GOLANG = golang:1.21-alpine3.17 DOCKER_IMAGE_GOLANG_CI = golangci/golangci-lint:v1.54 DOCKER_IMAGE_PROTO = ghcr.io/cosmos/proto-builder:0.14.0 DOCKER_IMAGE_BUF = bufbuild/buf:1.4.0 -DOCKER_PROTO_RUN := docker run --rm -v $(HOME)/.cache:/root/.cache -v $(PWD):/workspace --workdir /workspace $(DOCKER_IMAGE_PROTO) +DOCKER_PROTO_RUN := docker run --rm --user $(id -u):$(id -g) -v $(HOME)/.cache:/root/.cache -v $(PWD):/workspace --workdir /workspace $(DOCKER_IMAGE_PROTO) DOCKER_BUF_RUN := docker run --rm -v $(HOME)/.cache:/root/.cache -v $(PWD):/workspace --workdir /workspace $(DOCKER_IMAGE_BUF) DOCKER_BUILDX_BUILDER = okp4-builder DOCKER_IMAGE_MARKDOWNLINT = thegeeklab/markdownlint-cli:0.32.2 diff --git a/scripts/protocgen-code.sh b/scripts/protocgen-code.sh index 90c0014d..193100cf 100755 --- a/scripts/protocgen-code.sh +++ b/scripts/protocgen-code.sh @@ -3,6 +3,7 @@ set -eo pipefail echo "Generating gogo proto code" + ( cd proto proto_dirs=$(find . -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) @@ -16,9 +17,5 @@ echo "Generating gogo proto code" done ) -DST="${PWD}/x" -( - cd github.com/okp4/okp4d/x - find . -type f -name "*.go" -exec mv {} "${DST}/{}" \; -) +cp -r github.com/okp4/okp4d/* ./ rm -rf github.com From a891039c42bd498ef110dac8b4d851d8482c7803 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 17 Jan 2024 13:29:59 +0100 Subject: [PATCH 26/29] docs(cmd): update generated cmd docs --- docs/command/okp4d.md | 14 ++- docs/command/okp4d_comet.md | 20 ++++ ...tate.md => okp4d_comet_bootstrap-state.md} | 6 +- docs/command/okp4d_comet_reset-state.md | 17 +++ docs/command/okp4d_comet_show-address.md | 17 +++ docs/command/okp4d_comet_show-node-id.md | 17 +++ docs/command/okp4d_comet_show-validator.md | 17 +++ ...all.md => okp4d_comet_unsafe-reset-all.md} | 6 +- ...mint_version.md => okp4d_comet_version.md} | 8 +- docs/command/okp4d_config.md | 12 ++- docs/command/okp4d_config_diff.md | 17 +++ docs/command/okp4d_config_get.md | 21 ++++ docs/command/okp4d_config_home.md | 21 ++++ docs/command/okp4d_config_migrate.md | 26 +++++ docs/command/okp4d_config_set.md | 24 +++++ docs/command/okp4d_config_view.md | 18 ++++ docs/command/okp4d_genesis.md | 22 ++++ ...d => okp4d_genesis_add-genesis-account.md} | 13 +-- ...txs.md => okp4d_genesis_collect-gentxs.md} | 6 +- ...{okp4d_gentx.md => okp4d_genesis_gentx.md} | 13 ++- docs/command/okp4d_genesis_migrate.md | 30 ++++++ docs/command/okp4d_genesis_validate.md | 17 +++ docs/command/okp4d_keys.md | 4 +- docs/command/okp4d_keys_add.md | 1 - docs/command/okp4d_keys_delete.md | 1 - docs/command/okp4d_keys_export.md | 1 - docs/command/okp4d_keys_import-hex.md | 32 ++++++ docs/command/okp4d_keys_import.md | 1 - docs/command/okp4d_keys_list-key-types.md | 1 - docs/command/okp4d_keys_list.md | 1 - docs/command/okp4d_keys_migrate.md | 1 - docs/command/okp4d_keys_mnemonic.md | 1 - docs/command/okp4d_keys_parse.md | 1 - docs/command/okp4d_keys_rename.md | 1 - docs/command/okp4d_keys_show.md | 1 - docs/command/okp4d_migrate.md | 26 ----- docs/command/okp4d_prune.md | 41 +++++++ docs/command/okp4d_query.md | 16 +-- docs/command/okp4d_query_account.md | 28 ----- docs/command/okp4d_query_auth.md | 14 ++- docs/command/okp4d_query_auth_account-info.md | 23 ++++ docs/command/okp4d_query_auth_account.md | 13 +-- docs/command/okp4d_query_auth_accounts.md | 22 ++-- .../okp4d_query_auth_address-by-acc-num.md | 20 +--- ...kp4d_query_auth_address-bytes-to-string.md | 23 ++++ ...kp4d_query_auth_address-string-to-bytes.md | 23 ++++ .../command/okp4d_query_auth_bech32-prefix.md | 23 ++++ .../okp4d_query_auth_module-account.md | 13 +-- .../okp4d_query_auth_module-accounts.md | 11 +- docs/command/okp4d_query_auth_params.md | 17 +-- docs/command/okp4d_query_authz.md | 12 +-- .../okp4d_query_authz_grants-by-grantee.md | 30 ++---- .../okp4d_query_authz_grants-by-granter.md | 30 ++---- docs/command/okp4d_query_authz_grants.md | 38 +++---- docs/command/okp4d_query_bank.md | 17 +-- docs/command/okp4d_query_bank_balance.md | 23 ++++ docs/command/okp4d_query_bank_balances.md | 28 ++--- ...ery_bank_denom-metadata-by-query-string.md | 24 +++++ .../okp4d_query_bank_denom-metadata.md | 27 +---- docs/command/okp4d_query_bank_denom-owners.md | 28 +++++ .../okp4d_query_bank_denoms-metadata.md | 28 +++++ docs/command/okp4d_query_bank_params.md | 23 ++++ docs/command/okp4d_query_bank_send-enabled.md | 35 ++---- .../okp4d_query_bank_spendable-balance.md | 23 ++++ .../okp4d_query_bank_spendable-balances.md | 29 ++--- .../okp4d_query_bank_total-supply-of.md | 23 ++++ docs/command/okp4d_query_bank_total-supply.md | 32 ++++++ docs/command/okp4d_query_bank_total.md | 45 -------- docs/command/okp4d_query_block-results.md | 26 +++++ docs/command/okp4d_query_block.md | 24 +++-- docs/command/okp4d_query_blocks.md | 40 +++++++ docs/command/okp4d_query_circuit.md | 20 ++++ docs/command/okp4d_query_circuit_account.md | 23 ++++ docs/command/okp4d_query_circuit_accounts.md | 28 +++++ .../okp4d_query_circuit_disabled-list.md | 23 ++++ docs/command/okp4d_query_consensus.md | 19 ++++ docs/command/okp4d_query_consensus_comet.md | 23 ++++ ...d_query_consensus_comet_block-by-height.md | 27 +++++ ...kp4d_query_consensus_comet_block-latest.md | 23 ++++ .../okp4d_query_consensus_comet_node-info.md | 23 ++++ .../okp4d_query_consensus_comet_syncing.md | 23 ++++ ...consensus_comet_validator-set-by-height.md | 28 +++++ ...p4d_query_consensus_comet_validator-set.md | 28 +++++ docs/command/okp4d_query_consensus_params.md | 23 ++++ docs/command/okp4d_query_distribution.md | 11 +- .../okp4d_query_distribution_commission.md | 22 ++-- ...okp4d_query_distribution_community-pool.md | 22 ++-- ...y_distribution_delegation-total-rewards.md | 24 +++++ ...query_distribution_delegator-validators.md | 24 +++++ ...distribution_delegator-withdraw-address.md | 24 +++++ .../okp4d_query_distribution_params.md | 13 +-- .../okp4d_query_distribution_rewards.md | 21 ++-- .../okp4d_query_distribution_slashes.md | 33 +++--- ...istribution_validator-distribution-info.md | 21 ++-- ...tribution_validator-outstanding-rewards.md | 22 ++-- ...e.md => okp4d_query_event-query-tx-for.md} | 19 ++-- docs/command/okp4d_query_evidence.md | 31 +----- docs/command/okp4d_query_evidence_evidence.md | 30 ++++++ docs/command/okp4d_query_evidence_list.md | 34 ++++++ docs/command/okp4d_query_feegrant.md | 6 -- docs/command/okp4d_query_feegrant_grant.md | 23 ++-- .../okp4d_query_feegrant_grants-by-grantee.md | 31 +++--- .../okp4d_query_feegrant_grants-by-granter.md | 33 +++--- docs/command/okp4d_query_gov.md | 14 +-- docs/command/okp4d_query_gov_constitution.md | 23 ++++ docs/command/okp4d_query_gov_deposit.md | 20 +--- docs/command/okp4d_query_gov_deposits.md | 32 ++---- docs/command/okp4d_query_gov_param.md | 36 ------- docs/command/okp4d_query_gov_params.md | 18 +--- docs/command/okp4d_query_gov_proposal.md | 25 ++--- docs/command/okp4d_query_gov_proposals.md | 50 ++++----- docs/command/okp4d_query_gov_proposer.md | 23 ++-- docs/command/okp4d_query_gov_tally.md | 27 ++--- docs/command/okp4d_query_gov_vote.md | 24 ++--- docs/command/okp4d_query_gov_votes.md | 38 +++---- docs/command/okp4d_query_group.md | 24 ++--- docs/command/okp4d_query_group_group-info.md | 13 +-- .../okp4d_query_group_group-members.md | 26 ++--- ...p4d_query_group_group-policies-by-admin.md | 24 ++--- ...p4d_query_group_group-policies-by-group.md | 24 ++--- .../okp4d_query_group_group-policy-info.md | 11 +- .../okp4d_query_group_groups-by-admin.md | 24 ++--- .../okp4d_query_group_groups-by-member.md | 24 ++--- docs/command/okp4d_query_group_groups.md | 24 ++--- docs/command/okp4d_query_group_proposal.md | 13 +-- ...d_query_group_proposals-by-group-policy.md | 24 ++--- .../command/okp4d_query_group_tally-result.md | 11 +- docs/command/okp4d_query_group_vote.md | 11 +- .../okp4d_query_group_votes-by-proposal.md | 24 ++--- .../okp4d_query_group_votes-by-voter.md | 24 ++--- docs/command/okp4d_query_ibc-fee.md | 6 -- docs/command/okp4d_query_ibc-fee_channel.md | 10 +- docs/command/okp4d_query_ibc-fee_channels.md | 10 +- .../okp4d_query_ibc-fee_counterparty-payee.md | 10 +- docs/command/okp4d_query_ibc-fee_packet.md | 10 +- ...okp4d_query_ibc-fee_packets-for-channel.md | 10 +- docs/command/okp4d_query_ibc-fee_packets.md | 10 +- docs/command/okp4d_query_ibc-fee_payee.md | 10 +- .../okp4d_query_ibc-fee_total-ack-fees.md | 10 +- .../okp4d_query_ibc-fee_total-recv-fees.md | 10 +- .../okp4d_query_ibc-fee_total-timeout-fees.md | 10 +- docs/command/okp4d_query_ibc-transfer.md | 6 -- .../okp4d_query_ibc-transfer_denom-hash.md | 10 +- .../okp4d_query_ibc-transfer_denom-trace.md | 10 +- .../okp4d_query_ibc-transfer_denom-traces.md | 10 +- ...okp4d_query_ibc-transfer_escrow-address.md | 10 +- .../okp4d_query_ibc-transfer_params.md | 10 +- .../okp4d_query_ibc-transfer_total-escrow.md | 10 +- docs/command/okp4d_query_ibc.md | 6 -- docs/command/okp4d_query_ibc_channel.md | 7 +- .../okp4d_query_ibc_channel_channels.md | 10 +- .../okp4d_query_ibc_channel_client-state.md | 10 +- .../okp4d_query_ibc_channel_connections.md | 10 +- docs/command/okp4d_query_ibc_channel_end.md | 10 +- ...query_ibc_channel_next-sequence-receive.md | 10 +- ...4d_query_ibc_channel_next-sequence-send.md | 33 ++++++ .../okp4d_query_ibc_channel_packet-ack.md | 10 +- ...p4d_query_ibc_channel_packet-commitment.md | 10 +- ...4d_query_ibc_channel_packet-commitments.md | 10 +- .../okp4d_query_ibc_channel_packet-receipt.md | 10 +- ...okp4d_query_ibc_channel_unreceived-acks.md | 10 +- ...4d_query_ibc_channel_unreceived-packets.md | 10 +- docs/command/okp4d_query_ibc_client.md | 6 -- ...uery_ibc_client_consensus-state-heights.md | 10 +- .../okp4d_query_ibc_client_consensus-state.md | 10 +- ...okp4d_query_ibc_client_consensus-states.md | 10 +- docs/command/okp4d_query_ibc_client_header.md | 10 +- docs/command/okp4d_query_ibc_client_params.md | 10 +- ...d_query_ibc_client_self-consensus-state.md | 10 +- docs/command/okp4d_query_ibc_client_state.md | 10 +- docs/command/okp4d_query_ibc_client_states.md | 10 +- docs/command/okp4d_query_ibc_client_status.md | 10 +- docs/command/okp4d_query_ibc_connection.md | 6 -- .../okp4d_query_ibc_connection_connections.md | 10 +- .../command/okp4d_query_ibc_connection_end.md | 10 +- .../okp4d_query_ibc_connection_params.md | 10 +- .../okp4d_query_ibc_connection_path.md | 10 +- .../okp4d_query_interchain-accounts.md | 6 -- ...4d_query_interchain-accounts_controller.md | 6 -- ...-accounts_controller_interchain-account.md | 10 +- ...y_interchain-accounts_controller_params.md | 10 +- .../okp4d_query_interchain-accounts_host.md | 6 -- ..._interchain-accounts_host_packet-events.md | 10 +- ...d_query_interchain-accounts_host_params.md | 10 +- docs/command/okp4d_query_logic.md | 10 +- docs/command/okp4d_query_logic_ask.md | 43 ++------ docs/command/okp4d_query_logic_params.md | 13 +-- docs/command/okp4d_query_mint.md | 6 -- .../okp4d_query_mint_annual-provisions.md | 10 +- docs/command/okp4d_query_mint_inflation.md | 10 +- docs/command/okp4d_query_mint_params.md | 10 +- docs/command/okp4d_query_params.md | 7 +- docs/command/okp4d_query_params_subspace.md | 11 +- docs/command/okp4d_query_params_subspaces.md | 23 ++++ docs/command/okp4d_query_slashing.md | 6 -- docs/command/okp4d_query_slashing_params.md | 17 +-- .../okp4d_query_slashing_signing-info.md | 21 ++-- .../okp4d_query_slashing_signing-infos.md | 28 ++--- docs/command/okp4d_query_staking.md | 10 +- .../command/okp4d_query_staking_delegation.md | 16 +-- .../okp4d_query_staking_delegations-to.md | 25 ++--- .../okp4d_query_staking_delegations.md | 25 ++--- ...okp4d_query_staking_delegator-validator.md | 23 ++++ ...kp4d_query_staking_delegator-validators.md | 28 +++++ .../okp4d_query_staking_historical-info.md | 22 ++-- docs/command/okp4d_query_staking_params.md | 14 +-- docs/command/okp4d_query_staking_pool.md | 14 +-- .../okp4d_query_staking_redelegation.md | 19 ++-- .../okp4d_query_staking_redelegations-from.md | 41 ------- .../okp4d_query_staking_redelegations.md | 41 ------- ...kp4d_query_staking_unbonding-delegation.md | 14 +-- ...uery_staking_unbonding-delegations-from.md | 31 +++--- ...p4d_query_staking_unbonding-delegations.md | 25 ++--- docs/command/okp4d_query_staking_validator.md | 14 +-- .../command/okp4d_query_staking_validators.md | 26 ++--- .../okp4d_query_tendermint-validator-set.md | 27 ----- docs/command/okp4d_query_tx.md | 10 +- docs/command/okp4d_query_txs.md | 28 ++--- docs/command/okp4d_query_upgrade.md | 15 ++- docs/command/okp4d_query_upgrade_applied.md | 16 +-- docs/command/okp4d_query_upgrade_authority.md | 23 ++++ .../okp4d_query_upgrade_module-versions.md | 27 +++++ .../okp4d_query_upgrade_module_versions.md | 34 ------ docs/command/okp4d_query_upgrade_plan.md | 13 +-- docs/command/okp4d_query_wasm.md | 6 -- .../command/okp4d_query_wasm_build-address.md | 6 -- docs/command/okp4d_query_wasm_code-info.md | 10 +- docs/command/okp4d_query_wasm_code.md | 10 +- .../okp4d_query_wasm_contract-history.md | 13 +-- .../okp4d_query_wasm_contract-state.md | 6 -- .../okp4d_query_wasm_contract-state_all.md | 13 +-- .../okp4d_query_wasm_contract-state_raw.md | 10 +- .../okp4d_query_wasm_contract-state_smart.md | 10 +- docs/command/okp4d_query_wasm_contract.md | 10 +- .../okp4d_query_wasm_libwasmvm-version.md | 6 -- docs/command/okp4d_query_wasm_list-code.md | 13 +-- .../okp4d_query_wasm_list-contract-by-code.md | 13 +-- ...4d_query_wasm_list-contracts-by-creator.md | 13 +-- docs/command/okp4d_query_wasm_params.md | 10 +- docs/command/okp4d_query_wasm_pinned.md | 13 +-- docs/command/okp4d_rollback.md | 6 +- docs/command/okp4d_snapshots.md | 19 ++++ docs/command/okp4d_snapshots_delete.md | 17 +++ docs/command/okp4d_snapshots_dump.md | 18 ++++ docs/command/okp4d_snapshots_export.md | 18 ++++ docs/command/okp4d_snapshots_list.md | 17 +++ docs/command/okp4d_snapshots_load.md | 17 +++ docs/command/okp4d_snapshots_restore.md | 21 ++++ docs/command/okp4d_start.md | 26 ++--- docs/command/okp4d_status.md | 5 +- docs/command/okp4d_tendermint.md | 20 ---- docs/command/okp4d_tendermint_reset-state.md | 17 --- docs/command/okp4d_tendermint_show-address.md | 17 --- docs/command/okp4d_tendermint_show-node-id.md | 17 --- .../okp4d_tendermint_show-validator.md | 17 --- docs/command/okp4d_tx.md | 19 ++-- docs/command/okp4d_tx_.md | 21 ---- docs/command/okp4d_tx_auth.md | 17 +++ docs/command/okp4d_tx_authz.md | 6 -- docs/command/okp4d_tx_authz_exec.md | 8 +- docs/command/okp4d_tx_authz_grant.md | 8 +- docs/command/okp4d_tx_authz_revoke.md | 8 +- docs/command/okp4d_tx_bank.md | 6 -- docs/command/okp4d_tx_bank_multi-send.md | 19 ++-- docs/command/okp4d_tx_bank_send.md | 8 +- docs/command/okp4d_tx_broadcast.md | 4 +- docs/command/okp4d_tx_circuit.md | 20 ++++ ...lient.md => okp4d_tx_circuit_authorize.md} | 34 +++--- docs/command/okp4d_tx_circuit_disable.md | 48 +++++++++ docs/command/okp4d_tx_circuit_reset.md | 48 +++++++++ docs/command/okp4d_tx_consensus.md | 17 +++ docs/command/okp4d_tx_crisis.md | 10 +- .../okp4d_tx_crisis_invariant-broken.md | 14 +-- docs/command/okp4d_tx_decode.md | 5 +- docs/command/okp4d_tx_distribution.md | 7 +- ...p4d_tx_distribution_fund-community-pool.md | 8 +- ...istribution_fund-validator-rewards-pool.md | 48 +++++++++ ...okp4d_tx_distribution_set-withdraw-addr.md | 8 +- ...4d_tx_distribution_withdraw-all-rewards.md | 8 +- .../okp4d_tx_distribution_withdraw-rewards.md | 8 +- docs/command/okp4d_tx_encode.md | 5 +- docs/command/okp4d_tx_evidence.md | 6 -- docs/command/okp4d_tx_feegrant.md | 11 +- docs/command/okp4d_tx_feegrant_grant.md | 12 +-- docs/command/okp4d_tx_feegrant_prune.md | 52 +++++++++ docs/command/okp4d_tx_feegrant_revoke.md | 24 +++-- docs/command/okp4d_tx_gov.md | 7 +- docs/command/okp4d_tx_gov_cancel-proposal.md | 48 +++++++++ docs/command/okp4d_tx_gov_deposit.md | 8 +- docs/command/okp4d_tx_gov_draft-proposal.md | 9 +- .../okp4d_tx_gov_submit-legacy-proposal.md | 13 +-- docs/command/okp4d_tx_gov_submit-proposal.md | 17 +-- docs/command/okp4d_tx_gov_vote.md | 8 +- docs/command/okp4d_tx_gov_weighted-vote.md | 8 +- docs/command/okp4d_tx_group.md | 6 -- .../okp4d_tx_group_create-group-policy.md | 8 +- ...okp4d_tx_group_create-group-with-policy.md | 8 +- docs/command/okp4d_tx_group_create-group.md | 8 +- docs/command/okp4d_tx_group_draft-proposal.md | 9 +- docs/command/okp4d_tx_group_exec.md | 8 +- docs/command/okp4d_tx_group_leave-group.md | 8 +- .../command/okp4d_tx_group_submit-proposal.md | 12 +-- .../okp4d_tx_group_update-group-admin.md | 8 +- .../okp4d_tx_group_update-group-members.md | 8 +- .../okp4d_tx_group_update-group-metadata.md | 8 +- ...kp4d_tx_group_update-group-policy-admin.md | 8 +- ...oup_update-group-policy-decision-policy.md | 8 +- ...d_tx_group_update-group-policy-metadata.md | 8 +- docs/command/okp4d_tx_group_vote.md | 8 +- .../okp4d_tx_group_withdraw-proposal.md | 8 +- docs/command/okp4d_tx_ibc-fee.md | 6 -- .../okp4d_tx_ibc-fee_pay-packet-fee.md | 8 +- ..._tx_ibc-fee_register-counterparty-payee.md | 8 +- .../okp4d_tx_ibc-fee_register-payee.md | 8 +- docs/command/okp4d_tx_ibc-transfer.md | 6 -- .../command/okp4d_tx_ibc-transfer_transfer.md | 8 +- docs/command/okp4d_tx_ibc.md | 6 -- docs/command/okp4d_tx_ibc_channel.md | 6 -- docs/command/okp4d_tx_ibc_client.md | 8 +- docs/command/okp4d_tx_ibc_client_create.md | 8 +- .../okp4d_tx_ibc_client_misbehaviour.md | 8 +- .../okp4d_tx_ibc_client_recover-client.md | 53 +++++++++ ...p4d_tx_ibc_client_schedule-ibc-upgrade.md} | 102 +++++++++++++----- docs/command/okp4d_tx_ibc_client_update.md | 8 +- docs/command/okp4d_tx_ibc_client_upgrade.md | 8 +- docs/command/okp4d_tx_interchain-accounts.md | 6 -- ...okp4d_tx_interchain-accounts_controller.md | 6 -- ...interchain-accounts_controller_register.md | 8 +- ..._interchain-accounts_controller_send-tx.md | 8 +- .../okp4d_tx_interchain-accounts_host.md | 8 +- ...hain-accounts_host_generate-packet-data.md | 23 ++-- docs/command/okp4d_tx_logic.md | 9 +- docs/command/okp4d_tx_logic_update-params.md | 43 ++++++++ docs/command/okp4d_tx_mint.md | 18 ++++ docs/command/okp4d_tx_mint_update-params.md | 43 ++++++++ docs/command/okp4d_tx_multi-sign.md | 6 +- ...-change.md => okp4d_tx_multisign-batch.md} | 49 +++------ docs/command/okp4d_tx_sign-batch.md | 4 +- docs/command/okp4d_tx_sign.md | 5 +- docs/command/okp4d_tx_simulate.md | 91 ++++++++++++++++ docs/command/okp4d_tx_slashing.md | 10 +- docs/command/okp4d_tx_slashing_unjail.md | 22 ++-- docs/command/okp4d_tx_staking.md | 6 -- .../command/okp4d_tx_staking_cancel-unbond.md | 8 +- .../okp4d_tx_staking_create-validator.md | 97 ++++++++++------- docs/command/okp4d_tx_staking_delegate.md | 10 +- .../okp4d_tx_staking_edit-validator.md | 8 +- docs/command/okp4d_tx_staking_redelegate.md | 10 +- docs/command/okp4d_tx_staking_unbond.md | 8 +- docs/command/okp4d_tx_upgrade.md | 15 +++ ...kp4d_tx_upgrade_cancel-software-upgrade.md | 51 +++++++++ ...d => okp4d_tx_upgrade_software-upgrade.md} | 27 ++--- docs/command/okp4d_tx_validate-signatures.md | 4 +- docs/command/okp4d_tx_vesting.md | 6 -- ...tx_vesting_create-cliff-vesting-account.md | 8 +- ...vesting_create-periodic-vesting-account.md | 8 +- ...vesting_create-permanent-locked-account.md | 8 +- ...okp4d_tx_vesting_create-vesting-account.md | 8 +- docs/command/okp4d_tx_wasm.md | 9 +- .../okp4d_tx_wasm_clear-contract-admin.md | 8 +- docs/command/okp4d_tx_wasm_execute.md | 8 +- docs/command/okp4d_tx_wasm_grant.md | 52 +-------- docs/command/okp4d_tx_wasm_grant_contract.md | 59 ++++++++++ .../command/okp4d_tx_wasm_grant_store-code.md | 51 +++++++++ docs/command/okp4d_tx_wasm_instantiate.md | 8 +- docs/command/okp4d_tx_wasm_instantiate2.md | 8 +- docs/command/okp4d_tx_wasm_migrate.md | 8 +- .../okp4d_tx_wasm_set-contract-admin.md | 8 +- .../okp4d_tx_wasm_set-contract-label.md | 42 ++++++++ docs/command/okp4d_tx_wasm_store.md | 8 +- docs/command/okp4d_tx_wasm_submit-proposal.md | 11 +- ...oposal_add-code-upload-params-addresses.md | 47 ++++++++ ...sm_submit-proposal_clear-contract-admin.md | 9 +- ...x_wasm_submit-proposal_execute-contract.md | 11 +- ..._submit-proposal_instantiate-contract-2.md | 9 +- ...sm_submit-proposal_instantiate-contract.md | 9 +- ...x_wasm_submit-proposal_migrate-contract.md | 9 +- ...okp4d_tx_wasm_submit-proposal_pin-codes.md | 9 +- ...sal_remove-code-upload-params-addresses.md | 47 ++++++++ ...wasm_submit-proposal_set-contract-admin.md | 9 +- ..._wasm_submit-proposal_store-instantiate.md | 11 +- ...d_tx_wasm_submit-proposal_store-migrate.md | 51 +++++++++ ...d_tx_wasm_submit-proposal_sudo-contract.md | 9 +- ...p4d_tx_wasm_submit-proposal_unpin-codes.md | 9 +- ...bmit-proposal_update-instantiate-config.md | 9 +- ...kp4d_tx_wasm_submit-proposal_wasm-store.md | 9 +- ...okp4d_tx_wasm_update-instantiate-config.md | 8 +- docs/command/okp4d_validate-genesis.md | 17 --- 388 files changed, 3760 insertions(+), 2891 deletions(-) create mode 100644 docs/command/okp4d_comet.md rename docs/command/{okp4d_tendermint_bootstrap-state.md => okp4d_comet_bootstrap-state.md} (66%) create mode 100644 docs/command/okp4d_comet_reset-state.md create mode 100644 docs/command/okp4d_comet_show-address.md create mode 100644 docs/command/okp4d_comet_show-node-id.md create mode 100644 docs/command/okp4d_comet_show-validator.md rename docs/command/{okp4d_tendermint_unsafe-reset-all.md => okp4d_comet_unsafe-reset-all.md} (61%) rename docs/command/{okp4d_tendermint_version.md => okp4d_comet_version.md} (52%) create mode 100644 docs/command/okp4d_config_diff.md create mode 100644 docs/command/okp4d_config_get.md create mode 100644 docs/command/okp4d_config_home.md create mode 100644 docs/command/okp4d_config_migrate.md create mode 100644 docs/command/okp4d_config_set.md create mode 100644 docs/command/okp4d_config_view.md create mode 100644 docs/command/okp4d_genesis.md rename docs/command/{okp4d_add-genesis-account.md => okp4d_genesis_add-genesis-account.md} (71%) rename docs/command/{okp4d_collect-gentxs.md => okp4d_genesis_collect-gentxs.md} (71%) rename docs/command/{okp4d_gentx.md => okp4d_genesis_gentx.md} (92%) create mode 100644 docs/command/okp4d_genesis_migrate.md create mode 100644 docs/command/okp4d_genesis_validate.md create mode 100644 docs/command/okp4d_keys_import-hex.md delete mode 100644 docs/command/okp4d_migrate.md create mode 100644 docs/command/okp4d_prune.md delete mode 100644 docs/command/okp4d_query_account.md create mode 100644 docs/command/okp4d_query_auth_account-info.md create mode 100644 docs/command/okp4d_query_auth_address-bytes-to-string.md create mode 100644 docs/command/okp4d_query_auth_address-string-to-bytes.md create mode 100644 docs/command/okp4d_query_auth_bech32-prefix.md create mode 100644 docs/command/okp4d_query_bank_balance.md create mode 100644 docs/command/okp4d_query_bank_denom-metadata-by-query-string.md create mode 100644 docs/command/okp4d_query_bank_denom-owners.md create mode 100644 docs/command/okp4d_query_bank_denoms-metadata.md create mode 100644 docs/command/okp4d_query_bank_params.md create mode 100644 docs/command/okp4d_query_bank_spendable-balance.md create mode 100644 docs/command/okp4d_query_bank_total-supply-of.md create mode 100644 docs/command/okp4d_query_bank_total-supply.md delete mode 100644 docs/command/okp4d_query_bank_total.md create mode 100644 docs/command/okp4d_query_block-results.md create mode 100644 docs/command/okp4d_query_blocks.md create mode 100644 docs/command/okp4d_query_circuit.md create mode 100644 docs/command/okp4d_query_circuit_account.md create mode 100644 docs/command/okp4d_query_circuit_accounts.md create mode 100644 docs/command/okp4d_query_circuit_disabled-list.md create mode 100644 docs/command/okp4d_query_consensus.md create mode 100644 docs/command/okp4d_query_consensus_comet.md create mode 100644 docs/command/okp4d_query_consensus_comet_block-by-height.md create mode 100644 docs/command/okp4d_query_consensus_comet_block-latest.md create mode 100644 docs/command/okp4d_query_consensus_comet_node-info.md create mode 100644 docs/command/okp4d_query_consensus_comet_syncing.md create mode 100644 docs/command/okp4d_query_consensus_comet_validator-set-by-height.md create mode 100644 docs/command/okp4d_query_consensus_comet_validator-set.md create mode 100644 docs/command/okp4d_query_consensus_params.md create mode 100644 docs/command/okp4d_query_distribution_delegation-total-rewards.md create mode 100644 docs/command/okp4d_query_distribution_delegator-validators.md create mode 100644 docs/command/okp4d_query_distribution_delegator-withdraw-address.md rename docs/command/{okp4d_tx_gov_submit-legacy-proposal_cancel-software-upgrade.md => okp4d_query_event-query-tx-for.md} (78%) create mode 100644 docs/command/okp4d_query_evidence_evidence.md create mode 100644 docs/command/okp4d_query_evidence_list.md create mode 100644 docs/command/okp4d_query_gov_constitution.md delete mode 100644 docs/command/okp4d_query_gov_param.md create mode 100644 docs/command/okp4d_query_ibc_channel_next-sequence-send.md create mode 100644 docs/command/okp4d_query_params_subspaces.md create mode 100644 docs/command/okp4d_query_staking_delegator-validator.md create mode 100644 docs/command/okp4d_query_staking_delegator-validators.md delete mode 100644 docs/command/okp4d_query_staking_redelegations-from.md delete mode 100644 docs/command/okp4d_query_staking_redelegations.md delete mode 100644 docs/command/okp4d_query_tendermint-validator-set.md create mode 100644 docs/command/okp4d_query_upgrade_authority.md create mode 100644 docs/command/okp4d_query_upgrade_module-versions.md delete mode 100644 docs/command/okp4d_query_upgrade_module_versions.md create mode 100644 docs/command/okp4d_snapshots.md create mode 100644 docs/command/okp4d_snapshots_delete.md create mode 100644 docs/command/okp4d_snapshots_dump.md create mode 100644 docs/command/okp4d_snapshots_export.md create mode 100644 docs/command/okp4d_snapshots_list.md create mode 100644 docs/command/okp4d_snapshots_load.md create mode 100644 docs/command/okp4d_snapshots_restore.md delete mode 100644 docs/command/okp4d_tendermint.md delete mode 100644 docs/command/okp4d_tendermint_reset-state.md delete mode 100644 docs/command/okp4d_tendermint_show-address.md delete mode 100644 docs/command/okp4d_tendermint_show-node-id.md delete mode 100644 docs/command/okp4d_tendermint_show-validator.md delete mode 100644 docs/command/okp4d_tx_.md create mode 100644 docs/command/okp4d_tx_auth.md create mode 100644 docs/command/okp4d_tx_circuit.md rename docs/command/{okp4d_tx_gov_submit-legacy-proposal_update-client.md => okp4d_tx_circuit_authorize.md} (72%) create mode 100644 docs/command/okp4d_tx_circuit_disable.md create mode 100644 docs/command/okp4d_tx_circuit_reset.md create mode 100644 docs/command/okp4d_tx_consensus.md create mode 100644 docs/command/okp4d_tx_distribution_fund-validator-rewards-pool.md create mode 100644 docs/command/okp4d_tx_feegrant_prune.md create mode 100644 docs/command/okp4d_tx_gov_cancel-proposal.md create mode 100644 docs/command/okp4d_tx_ibc_client_recover-client.md rename docs/command/{okp4d_tx_gov_submit-legacy-proposal_ibc-upgrade.md => okp4d_tx_ibc_client_schedule-ibc-upgrade.md} (52%) create mode 100644 docs/command/okp4d_tx_logic_update-params.md create mode 100644 docs/command/okp4d_tx_mint.md create mode 100644 docs/command/okp4d_tx_mint_update-params.md rename docs/command/{okp4d_tx_gov_submit-legacy-proposal_param-change.md => okp4d_tx_multisign-batch.md} (63%) create mode 100644 docs/command/okp4d_tx_simulate.md create mode 100644 docs/command/okp4d_tx_upgrade.md create mode 100644 docs/command/okp4d_tx_upgrade_cancel-software-upgrade.md rename docs/command/{okp4d_tx_gov_submit-legacy-proposal_software-upgrade.md => okp4d_tx_upgrade_software-upgrade.md} (74%) create mode 100644 docs/command/okp4d_tx_wasm_grant_contract.md create mode 100644 docs/command/okp4d_tx_wasm_grant_store-code.md create mode 100644 docs/command/okp4d_tx_wasm_set-contract-label.md create mode 100644 docs/command/okp4d_tx_wasm_submit-proposal_add-code-upload-params-addresses.md create mode 100644 docs/command/okp4d_tx_wasm_submit-proposal_remove-code-upload-params-addresses.md create mode 100644 docs/command/okp4d_tx_wasm_submit-proposal_store-migrate.md delete mode 100644 docs/command/okp4d_validate-genesis.md diff --git a/docs/command/okp4d.md b/docs/command/okp4d.md index b0d43e5c..8149f7b6 100644 --- a/docs/command/okp4d.md +++ b/docs/command/okp4d.md @@ -17,20 +17,18 @@ Want to lean more about OKP4 network? Complete documentation is available at [ht ### SEE ALSO -* [okp4d add-genesis-account](okp4d_add-genesis-account.md) - Add a genesis account to genesis.json -* [okp4d collect-gentxs](okp4d_collect-gentxs.md) - Collect genesis txs and output a genesis.json file -* [okp4d config](okp4d_config.md) - Create or query an application CLI configuration file +* [okp4d comet](okp4d_comet.md) - CometBFT subcommands +* [okp4d config](okp4d_config.md) - Utilities for managing application configuration * [okp4d debug](okp4d_debug.md) - Tool for helping with debugging your application * [okp4d export](okp4d_export.md) - Export state to JSON -* [okp4d gentx](okp4d_gentx.md) - Generate a genesis tx carrying a self delegation +* [okp4d genesis](okp4d_genesis.md) - Application's genesis-related subcommands * [okp4d init](okp4d_init.md) - Initialize private validator, p2p, genesis, and application configuration files * [okp4d keys](okp4d_keys.md) - Manage your application's keys -* [okp4d migrate](okp4d_migrate.md) - Migrate genesis to a specified target version +* [okp4d prune](okp4d_prune.md) - Prune app history states by keeping the recent heights and deleting old heights * [okp4d query](okp4d_query.md) - Querying subcommands -* [okp4d rollback](okp4d_rollback.md) - rollback cosmos-sdk and tendermint state by one height +* [okp4d rollback](okp4d_rollback.md) - rollback Cosmos SDK and CometBFT state by one height +* [okp4d snapshots](okp4d_snapshots.md) - Manage local snapshots * [okp4d start](okp4d_start.md) - Run the full node * [okp4d status](okp4d_status.md) - Query remote node for status -* [okp4d tendermint](okp4d_tendermint.md) - Tendermint subcommands * [okp4d tx](okp4d_tx.md) - Transactions subcommands -* [okp4d validate-genesis](okp4d_validate-genesis.md) - validates the genesis file at the default location or at the location passed as an arg * [okp4d version](okp4d_version.md) - Print the application binary version information diff --git a/docs/command/okp4d_comet.md b/docs/command/okp4d_comet.md new file mode 100644 index 00000000..b1510705 --- /dev/null +++ b/docs/command/okp4d_comet.md @@ -0,0 +1,20 @@ +## okp4d comet + +CometBFT subcommands + +### Options + +``` + -h, --help help for comet +``` + +### SEE ALSO + +* [okp4d](okp4d.md) - OKP4 Daemon 👹 +* [okp4d comet bootstrap-state](okp4d_comet_bootstrap-state.md) - Bootstrap CometBFT state at an arbitrary block height using a light client +* [okp4d comet reset-state](okp4d_comet_reset-state.md) - Remove all the data and WAL +* [okp4d comet show-address](okp4d_comet_show-address.md) - Shows this node's CometBFT validator consensus address +* [okp4d comet show-node-id](okp4d_comet_show-node-id.md) - Show this node's ID +* [okp4d comet show-validator](okp4d_comet_show-validator.md) - Show this node's CometBFT validator info +* [okp4d comet unsafe-reset-all](okp4d_comet_unsafe-reset-all.md) - (unsafe) Remove all the data and WAL, reset this node's validator to genesis state +* [okp4d comet version](okp4d_comet_version.md) - Print CometBFT libraries' version diff --git a/docs/command/okp4d_tendermint_bootstrap-state.md b/docs/command/okp4d_comet_bootstrap-state.md similarity index 66% rename from docs/command/okp4d_tendermint_bootstrap-state.md rename to docs/command/okp4d_comet_bootstrap-state.md index e188f595..e2a6db95 100644 --- a/docs/command/okp4d_tendermint_bootstrap-state.md +++ b/docs/command/okp4d_comet_bootstrap-state.md @@ -1,9 +1,9 @@ -## okp4d tendermint bootstrap-state +## okp4d comet bootstrap-state Bootstrap CometBFT state at an arbitrary block height using a light client ``` -okp4d tendermint bootstrap-state [flags] +okp4d comet bootstrap-state [flags] ``` ### Options @@ -15,4 +15,4 @@ okp4d tendermint bootstrap-state [flags] ### SEE ALSO -* [okp4d tendermint](okp4d_tendermint.md) - Tendermint subcommands +* [okp4d comet](okp4d_comet.md) - CometBFT subcommands diff --git a/docs/command/okp4d_comet_reset-state.md b/docs/command/okp4d_comet_reset-state.md new file mode 100644 index 00000000..90b37748 --- /dev/null +++ b/docs/command/okp4d_comet_reset-state.md @@ -0,0 +1,17 @@ +## okp4d comet reset-state + +Remove all the data and WAL + +``` +okp4d comet reset-state [flags] +``` + +### Options + +``` + -h, --help help for reset-state +``` + +### SEE ALSO + +* [okp4d comet](okp4d_comet.md) - CometBFT subcommands diff --git a/docs/command/okp4d_comet_show-address.md b/docs/command/okp4d_comet_show-address.md new file mode 100644 index 00000000..ad2bdc30 --- /dev/null +++ b/docs/command/okp4d_comet_show-address.md @@ -0,0 +1,17 @@ +## okp4d comet show-address + +Shows this node's CometBFT validator consensus address + +``` +okp4d comet show-address [flags] +``` + +### Options + +``` + -h, --help help for show-address +``` + +### SEE ALSO + +* [okp4d comet](okp4d_comet.md) - CometBFT subcommands diff --git a/docs/command/okp4d_comet_show-node-id.md b/docs/command/okp4d_comet_show-node-id.md new file mode 100644 index 00000000..acc51bbd --- /dev/null +++ b/docs/command/okp4d_comet_show-node-id.md @@ -0,0 +1,17 @@ +## okp4d comet show-node-id + +Show this node's ID + +``` +okp4d comet show-node-id [flags] +``` + +### Options + +``` + -h, --help help for show-node-id +``` + +### SEE ALSO + +* [okp4d comet](okp4d_comet.md) - CometBFT subcommands diff --git a/docs/command/okp4d_comet_show-validator.md b/docs/command/okp4d_comet_show-validator.md new file mode 100644 index 00000000..69571c29 --- /dev/null +++ b/docs/command/okp4d_comet_show-validator.md @@ -0,0 +1,17 @@ +## okp4d comet show-validator + +Show this node's CometBFT validator info + +``` +okp4d comet show-validator [flags] +``` + +### Options + +``` + -h, --help help for show-validator +``` + +### SEE ALSO + +* [okp4d comet](okp4d_comet.md) - CometBFT subcommands diff --git a/docs/command/okp4d_tendermint_unsafe-reset-all.md b/docs/command/okp4d_comet_unsafe-reset-all.md similarity index 61% rename from docs/command/okp4d_tendermint_unsafe-reset-all.md rename to docs/command/okp4d_comet_unsafe-reset-all.md index 80851a24..0123f67f 100644 --- a/docs/command/okp4d_tendermint_unsafe-reset-all.md +++ b/docs/command/okp4d_comet_unsafe-reset-all.md @@ -1,9 +1,9 @@ -## okp4d tendermint unsafe-reset-all +## okp4d comet unsafe-reset-all (unsafe) Remove all the data and WAL, reset this node's validator to genesis state ``` -okp4d tendermint unsafe-reset-all [flags] +okp4d comet unsafe-reset-all [flags] ``` ### Options @@ -15,4 +15,4 @@ okp4d tendermint unsafe-reset-all [flags] ### SEE ALSO -* [okp4d tendermint](okp4d_tendermint.md) - Tendermint subcommands +* [okp4d comet](okp4d_comet.md) - CometBFT subcommands diff --git a/docs/command/okp4d_tendermint_version.md b/docs/command/okp4d_comet_version.md similarity index 52% rename from docs/command/okp4d_tendermint_version.md rename to docs/command/okp4d_comet_version.md index e39f88be..6a3843bd 100644 --- a/docs/command/okp4d_tendermint_version.md +++ b/docs/command/okp4d_comet_version.md @@ -1,13 +1,13 @@ -## okp4d tendermint version +## okp4d comet version -Print tendermint libraries' version +Print CometBFT libraries' version ### Synopsis Print protocols' and libraries' version numbers against which this app has been compiled. ``` -okp4d tendermint version [flags] +okp4d comet version [flags] ``` ### Options @@ -18,4 +18,4 @@ okp4d tendermint version [flags] ### SEE ALSO -* [okp4d tendermint](okp4d_tendermint.md) - Tendermint subcommands +* [okp4d comet](okp4d_comet.md) - CometBFT subcommands diff --git a/docs/command/okp4d_config.md b/docs/command/okp4d_config.md index 62cf6beb..9dd7cd9d 100644 --- a/docs/command/okp4d_config.md +++ b/docs/command/okp4d_config.md @@ -1,10 +1,6 @@ ## okp4d config -Create or query an application CLI configuration file - -``` -okp4d config [value] [flags] -``` +Utilities for managing application configuration ### Options @@ -15,3 +11,9 @@ okp4d config [value] [flags] ### SEE ALSO * [okp4d](okp4d.md) - OKP4 Daemon 👹 +* [okp4d config diff](okp4d_config_diff.md) - Outputs all config values that are different from the app.toml defaults. +* [okp4d config get](okp4d_config_get.md) - Get an application config value +* [okp4d config home](okp4d_config_home.md) - Outputs the folder used as the binary home. No home directory is set when using the tool standalone. +* [okp4d config migrate](okp4d_config_migrate.md) - Migrate Cosmos SDK app configuration file to the specified version +* [okp4d config set](okp4d_config_set.md) - Set an application config value +* [okp4d config view](okp4d_config_view.md) - View the config file diff --git a/docs/command/okp4d_config_diff.md b/docs/command/okp4d_config_diff.md new file mode 100644 index 00000000..61d9ee07 --- /dev/null +++ b/docs/command/okp4d_config_diff.md @@ -0,0 +1,17 @@ +## okp4d config diff + +Outputs all config values that are different from the app.toml defaults. + +``` +okp4d config diff [target-version] [flags] +``` + +### Options + +``` + -h, --help help for diff +``` + +### SEE ALSO + +* [okp4d config](okp4d_config.md) - Utilities for managing application configuration diff --git a/docs/command/okp4d_config_get.md b/docs/command/okp4d_config_get.md new file mode 100644 index 00000000..2ffc680c --- /dev/null +++ b/docs/command/okp4d_config_get.md @@ -0,0 +1,21 @@ +## okp4d config get + +Get an application config value + +### Synopsis + +Get an application config value. The [config] argument must be the path of the file when using the too standalone, otherwise it must be the name of the config file without the .toml extension. + +``` +okp4d config get [config] [key] [flags] +``` + +### Options + +``` + -h, --help help for get +``` + +### SEE ALSO + +* [okp4d config](okp4d_config.md) - Utilities for managing application configuration diff --git a/docs/command/okp4d_config_home.md b/docs/command/okp4d_config_home.md new file mode 100644 index 00000000..66f7dcdc --- /dev/null +++ b/docs/command/okp4d_config_home.md @@ -0,0 +1,21 @@ +## okp4d config home + +Outputs the folder used as the binary home. No home directory is set when using the tool standalone. + +### Synopsis + +Outputs the folder used as the binary home. In order to change the home directory path, set the $APPD_HOME environment variable, or use the "--home" flag. + +``` +okp4d config home [flags] +``` + +### Options + +``` + -h, --help help for home +``` + +### SEE ALSO + +* [okp4d config](okp4d_config.md) - Utilities for managing application configuration diff --git a/docs/command/okp4d_config_migrate.md b/docs/command/okp4d_config_migrate.md new file mode 100644 index 00000000..82d68343 --- /dev/null +++ b/docs/command/okp4d_config_migrate.md @@ -0,0 +1,26 @@ +## okp4d config migrate + +Migrate Cosmos SDK app configuration file to the specified version + +### Synopsis + +Migrate the contents of the Cosmos SDK app configuration (app.toml) to the specified version. +The output is written in-place unless --stdout is provided. +In case of any error in updating the file, no output is written. + +``` +okp4d config migrate [target-version] (options) [flags] +``` + +### Options + +``` + -h, --help help for migrate + --skip-validate skip configuration validation (allows to migrate unknown configurations) + --stdout print the updated config to stdout + --verbose log changes to stderr +``` + +### SEE ALSO + +* [okp4d config](okp4d_config.md) - Utilities for managing application configuration diff --git a/docs/command/okp4d_config_set.md b/docs/command/okp4d_config_set.md new file mode 100644 index 00000000..89b9e9d7 --- /dev/null +++ b/docs/command/okp4d_config_set.md @@ -0,0 +1,24 @@ +## okp4d config set + +Set an application config value + +### Synopsis + +Set an application config value. The [config] argument must be the path of the file when using the tool standalone, otherwise it must be the name of the config file without the .toml extension. + +``` +okp4d config set [config] [key] [value] [flags] +``` + +### Options + +``` + -h, --help help for set + -s, --skip-validate skip configuration validation (allows to mutate unknown configurations) + --stdout print the updated config to stdout + -v, --verbose log changes to stderr +``` + +### SEE ALSO + +* [okp4d config](okp4d_config.md) - Utilities for managing application configuration diff --git a/docs/command/okp4d_config_view.md b/docs/command/okp4d_config_view.md new file mode 100644 index 00000000..ce62cdd0 --- /dev/null +++ b/docs/command/okp4d_config_view.md @@ -0,0 +1,18 @@ +## okp4d config view + +View the config file + +``` +okp4d config view [config] [flags] +``` + +### Options + +``` + -h, --help help for view + --output-format string Output format (json|toml) (default "toml") +``` + +### SEE ALSO + +* [okp4d config](okp4d_config.md) - Utilities for managing application configuration diff --git a/docs/command/okp4d_genesis.md b/docs/command/okp4d_genesis.md new file mode 100644 index 00000000..50fff8c7 --- /dev/null +++ b/docs/command/okp4d_genesis.md @@ -0,0 +1,22 @@ +## okp4d genesis + +Application's genesis-related subcommands + +``` +okp4d genesis [flags] +``` + +### Options + +``` + -h, --help help for genesis +``` + +### SEE ALSO + +* [okp4d](okp4d.md) - OKP4 Daemon 👹 +* [okp4d genesis add-genesis-account](okp4d_genesis_add-genesis-account.md) - Add a genesis account to genesis.json +* [okp4d genesis collect-gentxs](okp4d_genesis_collect-gentxs.md) - Collect genesis txs and output a genesis.json file +* [okp4d genesis gentx](okp4d_genesis_gentx.md) - Generate a genesis tx carrying a self delegation +* [okp4d genesis migrate](okp4d_genesis_migrate.md) - Migrate genesis to a specified target version +* [okp4d genesis validate](okp4d_genesis_validate.md) - Validates the genesis file at the default location or at the location passed as an arg diff --git a/docs/command/okp4d_add-genesis-account.md b/docs/command/okp4d_genesis_add-genesis-account.md similarity index 71% rename from docs/command/okp4d_add-genesis-account.md rename to docs/command/okp4d_genesis_add-genesis-account.md index acf8a0b8..a45675c2 100644 --- a/docs/command/okp4d_add-genesis-account.md +++ b/docs/command/okp4d_genesis_add-genesis-account.md @@ -1,4 +1,4 @@ -## okp4d add-genesis-account +## okp4d genesis add-genesis-account Add a genesis account to genesis.json @@ -10,26 +10,27 @@ the address will be looked up in the local Keybase. The list of initial tokens m contain valid denominations. Accounts may optionally be supplied with vesting parameters. ``` -okp4d add-genesis-account [address_or_key_name] [coin][,[coin]] [flags] +okp4d genesis add-genesis-account [address_or_key_name] [coin][,[coin]] [flags] ``` ### Options ``` + --append append the coins to an account already in the genesis.json file --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for add-genesis-account --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test) (default "test") - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --module-name string module account name + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --vesting-amount string amount of coins for vesting accounts - --vesting-cliff-time int schedule cliff time (unix epoch) for vesting accounts --vesting-end-time int schedule end time (unix epoch) for vesting accounts --vesting-start-time int schedule start time (unix epoch) for vesting accounts ``` ### SEE ALSO -* [okp4d](okp4d.md) - OKP4 Daemon 👹 +* [okp4d genesis](okp4d_genesis.md) - Application's genesis-related subcommands diff --git a/docs/command/okp4d_collect-gentxs.md b/docs/command/okp4d_genesis_collect-gentxs.md similarity index 71% rename from docs/command/okp4d_collect-gentxs.md rename to docs/command/okp4d_genesis_collect-gentxs.md index 91fec91b..c59dfe7f 100644 --- a/docs/command/okp4d_collect-gentxs.md +++ b/docs/command/okp4d_genesis_collect-gentxs.md @@ -1,9 +1,9 @@ -## okp4d collect-gentxs +## okp4d genesis collect-gentxs Collect genesis txs and output a genesis.json file ``` -okp4d collect-gentxs [flags] +okp4d genesis collect-gentxs [flags] ``` ### Options @@ -16,4 +16,4 @@ okp4d collect-gentxs [flags] ### SEE ALSO -* [okp4d](okp4d.md) - OKP4 Daemon 👹 +* [okp4d genesis](okp4d_genesis.md) - Application's genesis-related subcommands diff --git a/docs/command/okp4d_gentx.md b/docs/command/okp4d_genesis_gentx.md similarity index 92% rename from docs/command/okp4d_gentx.md rename to docs/command/okp4d_genesis_gentx.md index 55485fc3..47f6de86 100644 --- a/docs/command/okp4d_gentx.md +++ b/docs/command/okp4d_genesis_gentx.md @@ -1,11 +1,11 @@ -## okp4d gentx +## okp4d genesis gentx Generate a genesis tx carrying a self delegation ### Synopsis Generate a genesis transaction that creates a validator with a self-delegation, -that is signed by the key in the Keyring referenced by a given name. A node ID and Bech32 consensus +that is signed by the key in the Keyring referenced by a given name. A node ID and consensus pubkey may optionally be provided. If they are omitted, they will be retrieved from the priv_validator.json file. The following default parameters are included: @@ -26,7 +26,7 @@ $ okp4d gentx my-key-name 1000000stake --home=/path/to/home/dir --keyring-backen --website="..." ``` -okp4d gentx [key_name] [amount] [flags] +okp4d genesis gentx [key_name] [amount] [flags] ``` ### Options @@ -59,17 +59,16 @@ okp4d gentx [key_name] [amount] [flags] --ledger Use a connected Ledger device --min-self-delegation string The minimum self delegation required on the validator --moniker string The validator's (optional) moniker - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --node-id string The node's NodeID --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) - -o, --output string Output format (text|json) (default "json") --output-document string Write the genesis transaction JSON document to the given file instead of the default location --p2p-port uint The node's public P2P port (default 26656) --pubkey string The validator's Protobuf JSON encoded public key --security-contact string The validator's (optional) security contact email -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator --website string The validator's (optional) website @@ -78,4 +77,4 @@ okp4d gentx [key_name] [amount] [flags] ### SEE ALSO -* [okp4d](okp4d.md) - OKP4 Daemon 👹 +* [okp4d genesis](okp4d_genesis.md) - Application's genesis-related subcommands diff --git a/docs/command/okp4d_genesis_migrate.md b/docs/command/okp4d_genesis_migrate.md new file mode 100644 index 00000000..ce497c77 --- /dev/null +++ b/docs/command/okp4d_genesis_migrate.md @@ -0,0 +1,30 @@ +## okp4d genesis migrate + +Migrate genesis to a specified target version + +### Synopsis + +Migrate the source genesis into the target version and print to STDOUT + +``` +okp4d genesis migrate [target-version] [genesis-file] [flags] +``` + +### Examples + +``` +okp4d migrate v0.47 /path/to/genesis.json --chain-id=cosmoshub-3 --genesis-time=2019-04-22T17:00:00Z +``` + +### Options + +``` + --chain-id string Override chain_id with this flag (default "okp4d") + --genesis-time string Override genesis_time with this flag + -h, --help help for migrate + --output-document string Exported state is written to the given file instead of STDOUT +``` + +### SEE ALSO + +* [okp4d genesis](okp4d_genesis.md) - Application's genesis-related subcommands diff --git a/docs/command/okp4d_genesis_validate.md b/docs/command/okp4d_genesis_validate.md new file mode 100644 index 00000000..c6ac8f9c --- /dev/null +++ b/docs/command/okp4d_genesis_validate.md @@ -0,0 +1,17 @@ +## okp4d genesis validate + +Validates the genesis file at the default location or at the location passed as an arg + +``` +okp4d genesis validate [file] [flags] +``` + +### Options + +``` + -h, --help help for validate +``` + +### SEE ALSO + +* [okp4d genesis](okp4d_genesis.md) - Application's genesis-related subcommands diff --git a/docs/command/okp4d_keys.md b/docs/command/okp4d_keys.md index 1d70e3f2..19b32015 100644 --- a/docs/command/okp4d_keys.md +++ b/docs/command/okp4d_keys.md @@ -5,7 +5,7 @@ Manage your application's keys ### Synopsis Keyring management commands. These keys may be in any format supported by the -Tendermint crypto library and can be used by light-clients, full nodes, or any other application +CometBFT crypto library and can be used by light-clients, full nodes, or any other application that needs to sign with a private key. The keyring supports the following backends: @@ -30,7 +30,6 @@ The pass backend requires GnuPG: [https://gnupg.org/](https://gnupg.org/) ``` -h, --help help for keys - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") @@ -43,6 +42,7 @@ The pass backend requires GnuPG: [https://gnupg.org/](https://gnupg.org/) * [okp4d keys delete](okp4d_keys_delete.md) - Delete the given keys * [okp4d keys export](okp4d_keys_export.md) - Export private keys * [okp4d keys import](okp4d_keys_import.md) - Import private keys into the local keybase +* [okp4d keys import-hex](okp4d_keys_import-hex.md) - Import private keys into the local keybase * [okp4d keys list](okp4d_keys_list.md) - List all keys * [okp4d keys list-key-types](okp4d_keys_list-key-types.md) - List all key types * [okp4d keys migrate](okp4d_keys_migrate.md) - Migrate keys from amino to proto serialization format diff --git a/docs/command/okp4d_keys_add.md b/docs/command/okp4d_keys_add.md index e90cce4d..8f059323 100644 --- a/docs/command/okp4d_keys_add.md +++ b/docs/command/okp4d_keys_add.md @@ -50,7 +50,6 @@ okp4d keys add [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_delete.md b/docs/command/okp4d_keys_delete.md index 85ee8630..9c50edc1 100644 --- a/docs/command/okp4d_keys_delete.md +++ b/docs/command/okp4d_keys_delete.md @@ -25,7 +25,6 @@ okp4d keys delete ... [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_export.md b/docs/command/okp4d_keys_export.md index fcc04595..4a03802d 100644 --- a/docs/command/okp4d_keys_export.md +++ b/docs/command/okp4d_keys_export.md @@ -28,7 +28,6 @@ okp4d keys export [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_import-hex.md b/docs/command/okp4d_keys_import-hex.md new file mode 100644 index 00000000..f8b3c373 --- /dev/null +++ b/docs/command/okp4d_keys_import-hex.md @@ -0,0 +1,32 @@ +## okp4d keys import-hex + +Import private keys into the local keybase + +### Synopsis + +Import hex encoded private key into the local keybase. +Supported key-types can be obtained with: +okp4d list-key-types + +``` +okp4d keys import-hex [flags] +``` + +### Options + +``` + -h, --help help for import-hex + --key-type string private key signing algorithm kind (default "secp256k1") +``` + +### Options inherited from parent commands + +``` + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d keys](okp4d_keys.md) - Manage your application's keys diff --git a/docs/command/okp4d_keys_import.md b/docs/command/okp4d_keys_import.md index 89d92321..b94285b4 100644 --- a/docs/command/okp4d_keys_import.md +++ b/docs/command/okp4d_keys_import.md @@ -19,7 +19,6 @@ okp4d keys import [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_list-key-types.md b/docs/command/okp4d_keys_list-key-types.md index aeadcbf6..2f401d1f 100644 --- a/docs/command/okp4d_keys_list-key-types.md +++ b/docs/command/okp4d_keys_list-key-types.md @@ -19,7 +19,6 @@ okp4d keys list-key-types [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_list.md b/docs/command/okp4d_keys_list.md index c66f9dfa..be24bf14 100644 --- a/docs/command/okp4d_keys_list.md +++ b/docs/command/okp4d_keys_list.md @@ -21,7 +21,6 @@ okp4d keys list [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_migrate.md b/docs/command/okp4d_keys_migrate.md index 57623c78..ac9487d9 100644 --- a/docs/command/okp4d_keys_migrate.md +++ b/docs/command/okp4d_keys_migrate.md @@ -27,7 +27,6 @@ okp4d keys migrate [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_mnemonic.md b/docs/command/okp4d_keys_mnemonic.md index 2356c958..6b3ad2eb 100644 --- a/docs/command/okp4d_keys_mnemonic.md +++ b/docs/command/okp4d_keys_mnemonic.md @@ -20,7 +20,6 @@ okp4d keys mnemonic [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_parse.md b/docs/command/okp4d_keys_parse.md index 9dcaeb3a..72798d4c 100644 --- a/docs/command/okp4d_keys_parse.md +++ b/docs/command/okp4d_keys_parse.md @@ -20,7 +20,6 @@ okp4d keys parse [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_rename.md b/docs/command/okp4d_keys_rename.md index 62e720d2..fd69d53a 100644 --- a/docs/command/okp4d_keys_rename.md +++ b/docs/command/okp4d_keys_rename.md @@ -24,7 +24,6 @@ okp4d keys rename [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_keys_show.md b/docs/command/okp4d_keys_show.md index c9cd5208..ab16c04e 100644 --- a/docs/command/okp4d_keys_show.md +++ b/docs/command/okp4d_keys_show.md @@ -26,7 +26,6 @@ okp4d keys show [name_or_address [name_or_address...]] [flags] ### Options inherited from parent commands ``` - --home string The application home directory (default "/home/john/.okp4d") --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --output string Output format (text|json) (default "text") diff --git a/docs/command/okp4d_migrate.md b/docs/command/okp4d_migrate.md deleted file mode 100644 index 655c1774..00000000 --- a/docs/command/okp4d_migrate.md +++ /dev/null @@ -1,26 +0,0 @@ -## okp4d migrate - -Migrate genesis to a specified target version - -### Synopsis - -Migrate the source genesis into the target version and print to STDOUT. - -Example: -$ okp4d migrate v0.36 /path/to/genesis.json --chain-id=cosmoshub-3 --genesis-time=2019-04-22T17:00:00Z - -``` -okp4d migrate [target-version] [genesis-file] [flags] -``` - -### Options - -``` - --chain-id string override chain_id with this flag (default "okp4d") - --genesis-time string override genesis_time with this flag - -h, --help help for migrate -``` - -### SEE ALSO - -* [okp4d](okp4d.md) - OKP4 Daemon 👹 diff --git a/docs/command/okp4d_prune.md b/docs/command/okp4d_prune.md new file mode 100644 index 00000000..6e79989e --- /dev/null +++ b/docs/command/okp4d_prune.md @@ -0,0 +1,41 @@ +## okp4d prune + +Prune app history states by keeping the recent heights and deleting old heights + +### Synopsis + +Prune app history states by keeping the recent heights and deleting old heights. +The pruning option is provided via the 'pruning' argument or alternatively with '--pruning-keep-recent' + +- default: the last 362880 states are kept +- nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +- everything: 2 latest states will be kept +- custom: allow pruning options to be manually specified through 'pruning-keep-recent' + +Note: When the --app-db-backend flag is not specified, the default backend type is 'goleveldb'. +Supported app-db-backend types include 'goleveldb', 'rocksdb', 'pebbledb'. + +``` +okp4d prune [pruning-method] [flags] +``` + +### Examples + +``` +prune custom --pruning-keep-recent 100 --app-db-backend 'goleveldb' +``` + +### Options + +``` + --app-db-backend string The type of database for application and snapshots databases + -h, --help help for prune + --home string The application home directory (default "/home/john/.okp4d") + --pruning-interval uint Height interval at which pruned heights are removed from disk (ignored if pruning is not 'custom'), + this is not used by this command but kept for compatibility with the complete pruning options (default 10) + --pruning-keep-recent uint Number of recent heights to keep on disk (ignored if pruning is not 'custom') +``` + +### SEE ALSO + +- [okp4d](okp4d.md) - OKP4 Daemon 👹 diff --git a/docs/command/okp4d_query.md b/docs/command/okp4d_query.md index 00c37313..cbdcdcae 100644 --- a/docs/command/okp4d_query.md +++ b/docs/command/okp4d_query.md @@ -9,22 +9,25 @@ okp4d query [flags] ### Options ``` - --chain-id string The network chain ID (default "okp4d") - -h, --help help for query + -h, --help help for query ``` ### SEE ALSO * [okp4d](okp4d.md) - OKP4 Daemon 👹 -* [okp4d query account](okp4d_query_account.md) - Query for account by address * [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module * [okp4d query authz](okp4d_query_authz.md) - Querying commands for the authz module * [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module -* [okp4d query block](okp4d_query_block.md) - Get verified data for the block at given height +* [okp4d query block](okp4d_query_block.md) - Query for a committed block by height, hash, or event(s) +* [okp4d query block-results](okp4d_query_block-results.md) - Query for a committed block's results by height +* [okp4d query blocks](okp4d_query_blocks.md) - Query for paginated blocks that match a set of events +* [okp4d query circuit](okp4d_query_circuit.md) - Querying commands for the circuit module +* [okp4d query consensus](okp4d_query_consensus.md) - Querying commands for the consensus module * [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module -* [okp4d query evidence](okp4d_query_evidence.md) - Query for evidence by hash or for all (paginated) submitted evidence +* [okp4d query event-query-tx-for](okp4d_query_event-query-tx-for.md) - Query for a transaction by hash +* [okp4d query evidence](okp4d_query_evidence.md) - Querying commands for the evidence module * [okp4d query feegrant](okp4d_query_feegrant.md) - Querying commands for the feegrant module -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module * [okp4d query group](okp4d_query_group.md) - Querying commands for the group module * [okp4d query ibc](okp4d_query_ibc.md) - Querying commands for the IBC module * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands @@ -35,7 +38,6 @@ okp4d query [flags] * [okp4d query params](okp4d_query_params.md) - Querying commands for the params module * [okp4d query slashing](okp4d_query_slashing.md) - Querying commands for the slashing module * [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module -* [okp4d query tendermint-validator-set](okp4d_query_tendermint-validator-set.md) - Get the full tendermint validator set at given height * [okp4d query tx](okp4d_query_tx.md) - Query for a transaction by hash, "<addr>/<seq>" combination or comma-separated signatures in a committed block * [okp4d query txs](okp4d_query_txs.md) - Query for paginated transactions that match a set of events * [okp4d query upgrade](okp4d_query_upgrade.md) - Querying commands for the upgrade module diff --git a/docs/command/okp4d_query_account.md b/docs/command/okp4d_query_account.md deleted file mode 100644 index 71e999a4..00000000 --- a/docs/command/okp4d_query_account.md +++ /dev/null @@ -1,28 +0,0 @@ -## okp4d query account - -Query for account by address - -``` -okp4d query account [address] [flags] -``` - -### Options - -``` - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for account - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - -o, --output string Output format (text|json) (default "text") -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - -### SEE ALSO - -* [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_auth.md b/docs/command/okp4d_query_auth.md index 1b6a5202..fc4fa4bc 100644 --- a/docs/command/okp4d_query_auth.md +++ b/docs/command/okp4d_query_auth.md @@ -12,18 +12,16 @@ okp4d query auth [flags] -h, --help help for auth ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands -* [okp4d query auth account](okp4d_query_auth_account.md) - Query for account by address +* [okp4d query auth account](okp4d_query_auth_account.md) - Query account by address +* [okp4d query auth account-info](okp4d_query_auth_account-info.md) - Query account info which is common to all account types. * [okp4d query auth accounts](okp4d_query_auth_accounts.md) - Query all the accounts -* [okp4d query auth address-by-acc-num](okp4d_query_auth_address-by-acc-num.md) - Query for an address by account number +* [okp4d query auth address-by-acc-num](okp4d_query_auth_address-by-acc-num.md) - Query account address by account number +* [okp4d query auth address-bytes-to-string](okp4d_query_auth_address-bytes-to-string.md) - Transform an address bytes to string +* [okp4d query auth address-string-to-bytes](okp4d_query_auth_address-string-to-bytes.md) - Transform an address string to bytes +* [okp4d query auth bech32-prefix](okp4d_query_auth_bech32-prefix.md) - Query the chain bech32 prefix (if applicable) * [okp4d query auth module-account](okp4d_query_auth_module-account.md) - Query module account info by module name * [okp4d query auth module-accounts](okp4d_query_auth_module-accounts.md) - Query all module accounts * [okp4d query auth params](okp4d_query_auth_params.md) - Query the current auth parameters diff --git a/docs/command/okp4d_query_auth_account-info.md b/docs/command/okp4d_query_auth_account-info.md new file mode 100644 index 00000000..4de7d6b6 --- /dev/null +++ b/docs/command/okp4d_query_auth_account-info.md @@ -0,0 +1,23 @@ +## okp4d query auth account-info + +Query account info which is common to all account types. + +``` +okp4d query auth account-info [address] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for account-info + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module diff --git a/docs/command/okp4d_query_auth_account.md b/docs/command/okp4d_query_auth_account.md index 91b9a85b..035b132d 100644 --- a/docs/command/okp4d_query_auth_account.md +++ b/docs/command/okp4d_query_auth_account.md @@ -1,6 +1,6 @@ ## okp4d query auth account -Query for account by address +Query account by address ``` okp4d query auth account [address] [flags] @@ -10,19 +10,14 @@ okp4d query auth account [address] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for account - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module diff --git a/docs/command/okp4d_query_auth_accounts.md b/docs/command/okp4d_query_auth_accounts.md index 5948be62..3e1c1f79 100644 --- a/docs/command/okp4d_query_auth_accounts.md +++ b/docs/command/okp4d_query_auth_accounts.md @@ -9,24 +9,18 @@ okp4d query auth accounts [flags] ### Options ``` - --count-total count total number of records in all-accounts to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for accounts - --limit uint pagination limit of all-accounts to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of all-accounts to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of all-accounts to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of all-accounts to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_auth_address-by-acc-num.md b/docs/command/okp4d_query_auth_address-by-acc-num.md index a8a49e23..e4254432 100644 --- a/docs/command/okp4d_query_auth_address-by-acc-num.md +++ b/docs/command/okp4d_query_auth_address-by-acc-num.md @@ -1,34 +1,24 @@ ## okp4d query auth address-by-acc-num -Query for an address by account number +Query account address by account number ``` okp4d query auth address-by-acc-num [acc-num] [flags] ``` -### Examples - -``` -okp4d q auth address-by-acc-num 1 -``` - ### Options ``` + --account-id uint --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for address-by-acc-num - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module diff --git a/docs/command/okp4d_query_auth_address-bytes-to-string.md b/docs/command/okp4d_query_auth_address-bytes-to-string.md new file mode 100644 index 00000000..41b323aa --- /dev/null +++ b/docs/command/okp4d_query_auth_address-bytes-to-string.md @@ -0,0 +1,23 @@ +## okp4d query auth address-bytes-to-string + +Transform an address bytes to string + +``` +okp4d query auth address-bytes-to-string [address-bytes] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for address-bytes-to-string + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module diff --git a/docs/command/okp4d_query_auth_address-string-to-bytes.md b/docs/command/okp4d_query_auth_address-string-to-bytes.md new file mode 100644 index 00000000..e1e65f26 --- /dev/null +++ b/docs/command/okp4d_query_auth_address-string-to-bytes.md @@ -0,0 +1,23 @@ +## okp4d query auth address-string-to-bytes + +Transform an address string to bytes + +``` +okp4d query auth address-string-to-bytes [address-string] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for address-string-to-bytes + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module diff --git a/docs/command/okp4d_query_auth_bech32-prefix.md b/docs/command/okp4d_query_auth_bech32-prefix.md new file mode 100644 index 00000000..6961d77c --- /dev/null +++ b/docs/command/okp4d_query_auth_bech32-prefix.md @@ -0,0 +1,23 @@ +## okp4d query auth bech32-prefix + +Query the chain bech32 prefix (if applicable) + +``` +okp4d query auth bech32-prefix [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for bech32-prefix + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module diff --git a/docs/command/okp4d_query_auth_module-account.md b/docs/command/okp4d_query_auth_module-account.md index dbc847ed..c459edc9 100644 --- a/docs/command/okp4d_query_auth_module-account.md +++ b/docs/command/okp4d_query_auth_module-account.md @@ -9,26 +9,21 @@ okp4d query auth module-account [module-name] [flags] ### Examples ``` -okp4d q auth module-account auth +okp4d q auth module-account gov ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for module-account - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module diff --git a/docs/command/okp4d_query_auth_module-accounts.md b/docs/command/okp4d_query_auth_module-accounts.md index 693be70f..d32955f3 100644 --- a/docs/command/okp4d_query_auth_module-accounts.md +++ b/docs/command/okp4d_query_auth_module-accounts.md @@ -10,19 +10,14 @@ okp4d query auth module-accounts [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for module-accounts - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module diff --git a/docs/command/okp4d_query_auth_params.md b/docs/command/okp4d_query_auth_params.md index 528c63fa..7a0fb565 100644 --- a/docs/command/okp4d_query_auth_params.md +++ b/docs/command/okp4d_query_auth_params.md @@ -2,12 +2,6 @@ Query the current auth parameters -### Synopsis - -Query the current auth parameters: - -$ okp4d query auth params - ``` okp4d query auth params [flags] ``` @@ -16,19 +10,14 @@ okp4d query auth params [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query auth](okp4d_query_auth.md) - Querying commands for the auth module diff --git a/docs/command/okp4d_query_authz.md b/docs/command/okp4d_query_authz.md index 621e317b..8aa754aa 100644 --- a/docs/command/okp4d_query_authz.md +++ b/docs/command/okp4d_query_authz.md @@ -12,15 +12,9 @@ okp4d query authz [flags] -h, --help help for authz ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands -* [okp4d query authz grants](okp4d_query_authz_grants.md) - query grants for a granter-grantee pair and optionally a msg-type-url -* [okp4d query authz grants-by-grantee](okp4d_query_authz_grants-by-grantee.md) - query authorization grants granted to a grantee -* [okp4d query authz grants-by-granter](okp4d_query_authz_grants-by-granter.md) - query authorization grants granted by granter +* [okp4d query authz grants](okp4d_query_authz_grants.md) - Query grants for a granter-grantee pair and optionally a msg-type-url +* [okp4d query authz grants-by-grantee](okp4d_query_authz_grants-by-grantee.md) - Query authorization grants granted to a grantee +* [okp4d query authz grants-by-granter](okp4d_query_authz_grants-by-granter.md) - Query authorization grants granted by granter diff --git a/docs/command/okp4d_query_authz_grants-by-grantee.md b/docs/command/okp4d_query_authz_grants-by-grantee.md index d8bbb94c..27334692 100644 --- a/docs/command/okp4d_query_authz_grants-by-grantee.md +++ b/docs/command/okp4d_query_authz_grants-by-grantee.md @@ -1,12 +1,6 @@ ## okp4d query authz grants-by-grantee -query authorization grants granted to a grantee - -### Synopsis - -Query authorization grants granted to a grantee. -Examples: -$ okp4d q authz grants-by-grantee cosmos1skj.. +Query authorization grants granted to a grantee ``` okp4d query authz grants-by-grantee [grantee-addr] [flags] @@ -15,24 +9,18 @@ okp4d query authz grants-by-grantee [grantee-addr] [flags] ### Options ``` - --count-total count total number of records in grantee-grants to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for grants-by-grantee - --limit uint pagination limit of grantee-grants to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of grantee-grants to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of grantee-grants to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of grantee-grants to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_authz_grants-by-granter.md b/docs/command/okp4d_query_authz_grants-by-granter.md index b236f4ea..1f5da11c 100644 --- a/docs/command/okp4d_query_authz_grants-by-granter.md +++ b/docs/command/okp4d_query_authz_grants-by-granter.md @@ -1,12 +1,6 @@ ## okp4d query authz grants-by-granter -query authorization grants granted by granter - -### Synopsis - -Query authorization grants granted by granter. -Examples: -$ okp4d q authz grants-by-granter cosmos1skj.. +Query authorization grants granted by granter ``` okp4d query authz grants-by-granter [granter-addr] [flags] @@ -15,24 +9,18 @@ okp4d query authz grants-by-granter [granter-addr] [flags] ### Options ``` - --count-total count total number of records in granter-grants to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for grants-by-granter - --limit uint pagination limit of granter-grants to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of granter-grants to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of granter-grants to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of granter-grants to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_authz_grants.md b/docs/command/okp4d_query_authz_grants.md index b76fa30c..9e55a763 100644 --- a/docs/command/okp4d_query_authz_grants.md +++ b/docs/command/okp4d_query_authz_grants.md @@ -1,40 +1,36 @@ ## okp4d query authz grants -query grants for a granter-grantee pair and optionally a msg-type-url +Query grants for a granter-grantee pair and optionally a msg-type-url ### Synopsis -Query authorization grants for a granter-grantee pair. If msg-type-url -is set, it will select grants only for that msg type. -Examples: -$ okp4d query authz grants cosmos1skj.. cosmos1skjwj.. -$ okp4d query authz grants cosmos1skjw.. cosmos1skjwj.. /cosmos.bank.v1beta1.MsgSend +Query authorization grants for a granter-grantee pair. If msg-type-url is set, it will select grants only for that msg type. ``` -okp4d query authz grants [granter-addr] [grantee-addr] [msg-type-url]? [flags] +okp4d query authz grants [granter-addr] [grantee-addr] [flags] +``` + +### Examples + +``` +okp4d query authz grants cosmos1skj.. cosmos1skjwj.. /cosmos.bank.v1beta1.MsgSend ``` ### Options ``` - --count-total count total number of records in grants to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for grants - --limit uint pagination limit of grants to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of grants to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of grants to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of grants to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_bank.md b/docs/command/okp4d_query_bank.md index 99a4c648..a0f3c869 100644 --- a/docs/command/okp4d_query_bank.md +++ b/docs/command/okp4d_query_bank.md @@ -12,17 +12,18 @@ okp4d query bank [flags] -h, --help help for bank ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands +* [okp4d query bank balance](okp4d_query_bank_balance.md) - Query an account balance by address and denom * [okp4d query bank balances](okp4d_query_bank_balances.md) - Query for account balances by address -* [okp4d query bank denom-metadata](okp4d_query_bank_denom-metadata.md) - Query the client metadata for coin denominations +* [okp4d query bank denom-metadata](okp4d_query_bank_denom-metadata.md) - Query the client metadata of a given coin denomination +* [okp4d query bank denom-metadata-by-query-string](okp4d_query_bank_denom-metadata-by-query-string.md) - Execute the DenomMetadataByQueryString RPC method +* [okp4d query bank denom-owners](okp4d_query_bank_denom-owners.md) - Query for all account addresses that own a particular token denomination. +* [okp4d query bank denoms-metadata](okp4d_query_bank_denoms-metadata.md) - Query the client metadata for all registered coin denominations +* [okp4d query bank params](okp4d_query_bank_params.md) - Query the current bank parameters * [okp4d query bank send-enabled](okp4d_query_bank_send-enabled.md) - Query for send enabled entries +* [okp4d query bank spendable-balance](okp4d_query_bank_spendable-balance.md) - Query the spendable balance of a single denom for a single account. * [okp4d query bank spendable-balances](okp4d_query_bank_spendable-balances.md) - Query for account spendable balances by address -* [okp4d query bank total](okp4d_query_bank_total.md) - Query the total supply of coins of the chain +* [okp4d query bank total-supply](okp4d_query_bank_total-supply.md) - Query the total supply of coins of the chain +* [okp4d query bank total-supply-of](okp4d_query_bank_total-supply-of.md) - Query the supply of a single coin denom diff --git a/docs/command/okp4d_query_bank_balance.md b/docs/command/okp4d_query_bank_balance.md new file mode 100644 index 00000000..0a6e924c --- /dev/null +++ b/docs/command/okp4d_query_bank_balance.md @@ -0,0 +1,23 @@ +## okp4d query bank balance + +Query an account balance by address and denom + +``` +okp4d query bank balance [address] [denom] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for balance + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_bank_balances.md b/docs/command/okp4d_query_bank_balances.md index 86873b15..158360a1 100644 --- a/docs/command/okp4d_query_bank_balances.md +++ b/docs/command/okp4d_query_bank_balances.md @@ -6,10 +6,6 @@ Query for account balances by address Query the total balance of an account or of a specific denomination. -Example: - $ okp4d query bank balances [address] - $ okp4d query bank balances [address] --denom=[denom] - ``` okp4d query bank balances [address] [flags] ``` @@ -17,25 +13,19 @@ okp4d query bank balances [address] [flags] ### Options ``` - --count-total count total number of records in all balances to query for - --denom string The specific balance denomination to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for balances - --limit uint pagination limit of all balances to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of all balances to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of all balances to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of all balances to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse + --resolve-denom ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_bank_denom-metadata-by-query-string.md b/docs/command/okp4d_query_bank_denom-metadata-by-query-string.md new file mode 100644 index 00000000..c01d4fc3 --- /dev/null +++ b/docs/command/okp4d_query_bank_denom-metadata-by-query-string.md @@ -0,0 +1,24 @@ +## okp4d query bank denom-metadata-by-query-string + +Execute the DenomMetadataByQueryString RPC method + +``` +okp4d query bank denom-metadata-by-query-string [flags] +``` + +### Options + +``` + --denom string + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for denom-metadata-by-query-string + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_bank_denom-metadata.md b/docs/command/okp4d_query_bank_denom-metadata.md index 4c21bd6b..e14974b3 100644 --- a/docs/command/okp4d_query_bank_denom-metadata.md +++ b/docs/command/okp4d_query_bank_denom-metadata.md @@ -1,40 +1,23 @@ ## okp4d query bank denom-metadata -Query the client metadata for coin denominations - -### Synopsis - -Query the client metadata for all the registered coin denominations - -Example: - To query for the client metadata of all coin denominations use: - $ okp4d query bank denom-metadata - -To query for the client metadata of a specific coin denomination use: - $ okp4d query bank denom-metadata --denom=[denom] +Query the client metadata of a given coin denomination ``` -okp4d query bank denom-metadata [flags] +okp4d query bank denom-metadata [denom] [flags] ``` ### Options ``` - --denom string The specific denomination to query client metadata for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for denom-metadata - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_bank_denom-owners.md b/docs/command/okp4d_query_bank_denom-owners.md new file mode 100644 index 00000000..453e0e9a --- /dev/null +++ b/docs/command/okp4d_query_bank_denom-owners.md @@ -0,0 +1,28 @@ +## okp4d query bank denom-owners + +Query for all account addresses that own a particular token denomination. + +``` +okp4d query bank denom-owners [denom] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for denom-owners + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse +``` + +### SEE ALSO + +* [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_bank_denoms-metadata.md b/docs/command/okp4d_query_bank_denoms-metadata.md new file mode 100644 index 00000000..95b95f14 --- /dev/null +++ b/docs/command/okp4d_query_bank_denoms-metadata.md @@ -0,0 +1,28 @@ +## okp4d query bank denoms-metadata + +Query the client metadata for all registered coin denominations + +``` +okp4d query bank denoms-metadata [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for denoms-metadata + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse +``` + +### SEE ALSO + +* [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_bank_params.md b/docs/command/okp4d_query_bank_params.md new file mode 100644 index 00000000..6a279126 --- /dev/null +++ b/docs/command/okp4d_query_bank_params.md @@ -0,0 +1,23 @@ +## okp4d query bank params + +Query the current bank parameters + +``` +okp4d query bank params [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for params + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_bank_send-enabled.md b/docs/command/okp4d_query_bank_send-enabled.md index b139a660..bc981ead 100644 --- a/docs/command/okp4d_query_bank_send-enabled.md +++ b/docs/command/okp4d_query_bank_send-enabled.md @@ -13,40 +13,21 @@ To look up all denoms, do not provide any arguments. okp4d query bank send-enabled [denom1 ...] [flags] ``` -### Examples - -``` -Getting one specific entry: - $ okp4d query bank send-enabled foocoin - -Getting two specific entries: - $ okp4d query bank send-enabled foocoin barcoin - -Getting all entries: - $ okp4d query bank send-enabled -``` - ### Options ``` - --count-total count total number of records in send enabled entries to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for send-enabled - --limit uint pagination limit of send enabled entries to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of send enabled entries to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of send enabled entries to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of send enabled entries to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_bank_spendable-balance.md b/docs/command/okp4d_query_bank_spendable-balance.md new file mode 100644 index 00000000..3b11fe62 --- /dev/null +++ b/docs/command/okp4d_query_bank_spendable-balance.md @@ -0,0 +1,23 @@ +## okp4d query bank spendable-balance + +Query the spendable balance of a single denom for a single account. + +``` +okp4d query bank spendable-balance [address] [denom] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for spendable-balance + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_bank_spendable-balances.md b/docs/command/okp4d_query_bank_spendable-balances.md index a0198731..844f5cdc 100644 --- a/docs/command/okp4d_query_bank_spendable-balances.md +++ b/docs/command/okp4d_query_bank_spendable-balances.md @@ -6,34 +6,21 @@ Query for account spendable balances by address okp4d query bank spendable-balances [address] [flags] ``` -### Examples - -``` -$ okp4d query bank spendable-balances [address] -``` - ### Options ``` - --count-total count total number of records in spendable balances to query for - --denom string The specific balance denomination to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for spendable-balances - --limit uint pagination limit of spendable balances to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of spendable balances to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of spendable balances to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of spendable balances to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_bank_total-supply-of.md b/docs/command/okp4d_query_bank_total-supply-of.md new file mode 100644 index 00000000..c28fe98f --- /dev/null +++ b/docs/command/okp4d_query_bank_total-supply-of.md @@ -0,0 +1,23 @@ +## okp4d query bank total-supply-of + +Query the supply of a single coin denom + +``` +okp4d query bank total-supply-of [denom] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for total-supply-of + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_bank_total-supply.md b/docs/command/okp4d_query_bank_total-supply.md new file mode 100644 index 00000000..38277653 --- /dev/null +++ b/docs/command/okp4d_query_bank_total-supply.md @@ -0,0 +1,32 @@ +## okp4d query bank total-supply + +Query the total supply of coins of the chain + +### Synopsis + +Query total supply of coins that are held by accounts in the chain. To query for the total supply of a specific coin denomination use --denom flag. + +``` +okp4d query bank total-supply [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for total-supply + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse +``` + +### SEE ALSO + +* [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_bank_total.md b/docs/command/okp4d_query_bank_total.md deleted file mode 100644 index 93cdb3ab..00000000 --- a/docs/command/okp4d_query_bank_total.md +++ /dev/null @@ -1,45 +0,0 @@ -## okp4d query bank total - -Query the total supply of coins of the chain - -### Synopsis - -Query total supply of coins that are held by accounts in the chain. - -Example: - $ okp4d query bank total - -To query for the total supply of a specific coin denomination use: - $ okp4d query bank total --denom=[denom] - -``` -okp4d query bank total [flags] -``` - -### Options - -``` - --count-total count total number of records in all supply totals to query for - --denom string The specific balance denomination to query for - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for total - --limit uint pagination limit of all supply totals to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of all supply totals to query for - -o, --output string Output format (text|json) (default "text") - --page uint pagination page of all supply totals to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of all supply totals to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - -### SEE ALSO - -* [okp4d query bank](okp4d_query_bank.md) - Querying commands for the bank module diff --git a/docs/command/okp4d_query_block-results.md b/docs/command/okp4d_query_block-results.md new file mode 100644 index 00000000..8a1e8e82 --- /dev/null +++ b/docs/command/okp4d_query_block-results.md @@ -0,0 +1,26 @@ +## okp4d query block-results + +Query for a committed block's results by height + +### Synopsis + +Query for a specific committed block's results using the CometBFT RPC `block_results` method + +``` +okp4d query block-results [height] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for block-results + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_block.md b/docs/command/okp4d_query_block.md index c77f1b17..08cd67d6 100644 --- a/docs/command/okp4d_query_block.md +++ b/docs/command/okp4d_query_block.md @@ -1,22 +1,32 @@ ## okp4d query block -Get verified data for the block at given height +Query for a committed block by height, hash, or event(s) + +### Synopsis + +Query for a specific committed block using the CometBFT RPC `block` and `block_by_hash` method ``` -okp4d query block [height] [flags] +okp4d query block --type=[height|hash] [height|hash] [flags] ``` -### Options +### Examples ``` - -h, --help help for block - -n, --node string Node to connect to (default "tcp://localhost:26657") +$ okp4d query block --type=height +$ okp4d query block --type=hash ``` -### Options inherited from parent commands +### Options ``` - --chain-id string The network chain ID (default "okp4d") + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for block + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --type string The type to be used when querying tx, can be one of "height", "hash" (default "hash") ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_blocks.md b/docs/command/okp4d_query_blocks.md new file mode 100644 index 00000000..bd75ae08 --- /dev/null +++ b/docs/command/okp4d_query_blocks.md @@ -0,0 +1,40 @@ +## okp4d query blocks + +Query for paginated blocks that match a set of events + +### Synopsis + +Search for blocks that match the exact given events where results are paginated. +The events query is directly passed to CometBFT's RPC BlockSearch method and must +conform to CometBFT's query syntax. +Please refer to each module's documentation for the full set of events to query +for. Each module documents its respective events under 'xx_events.md'. + +``` +okp4d query blocks [flags] +``` + +### Examples + +``` +$ okp4d query blocks --query "message.sender='cosmos1...' AND block.height > 7" --page 1 --limit 30 --order-by ASC +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for blocks + --limit int Query number of transactions results per page returned (default 100) + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + --order_by string The ordering semantics (asc|dsc) + -o, --output string Output format (text|json) (default "text") + --page int Query a specific page of paginated results (default 1) + --query string The blocks events query per CometBFT's query semantics +``` + +### SEE ALSO + +* [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_circuit.md b/docs/command/okp4d_query_circuit.md new file mode 100644 index 00000000..9d001d35 --- /dev/null +++ b/docs/command/okp4d_query_circuit.md @@ -0,0 +1,20 @@ +## okp4d query circuit + +Querying commands for the circuit module + +``` +okp4d query circuit [flags] +``` + +### Options + +``` + -h, --help help for circuit +``` + +### SEE ALSO + +* [okp4d query](okp4d_query.md) - Querying subcommands +* [okp4d query circuit account](okp4d_query_circuit_account.md) - Query a specific account's permissions +* [okp4d query circuit accounts](okp4d_query_circuit_accounts.md) - Query all account permissions +* [okp4d query circuit disabled-list](okp4d_query_circuit_disabled-list.md) - Query a list of all disabled message types diff --git a/docs/command/okp4d_query_circuit_account.md b/docs/command/okp4d_query_circuit_account.md new file mode 100644 index 00000000..2f66a9f2 --- /dev/null +++ b/docs/command/okp4d_query_circuit_account.md @@ -0,0 +1,23 @@ +## okp4d query circuit account + +Query a specific account's permissions + +``` +okp4d query circuit account [address] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for account + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query circuit](okp4d_query_circuit.md) - Querying commands for the circuit module diff --git a/docs/command/okp4d_query_circuit_accounts.md b/docs/command/okp4d_query_circuit_accounts.md new file mode 100644 index 00000000..18893185 --- /dev/null +++ b/docs/command/okp4d_query_circuit_accounts.md @@ -0,0 +1,28 @@ +## okp4d query circuit accounts + +Query all account permissions + +``` +okp4d query circuit accounts [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for accounts + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse +``` + +### SEE ALSO + +* [okp4d query circuit](okp4d_query_circuit.md) - Querying commands for the circuit module diff --git a/docs/command/okp4d_query_circuit_disabled-list.md b/docs/command/okp4d_query_circuit_disabled-list.md new file mode 100644 index 00000000..f1c3c547 --- /dev/null +++ b/docs/command/okp4d_query_circuit_disabled-list.md @@ -0,0 +1,23 @@ +## okp4d query circuit disabled-list + +Query a list of all disabled message types + +``` +okp4d query circuit disabled-list [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for disabled-list + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query circuit](okp4d_query_circuit.md) - Querying commands for the circuit module diff --git a/docs/command/okp4d_query_consensus.md b/docs/command/okp4d_query_consensus.md new file mode 100644 index 00000000..9b9517d1 --- /dev/null +++ b/docs/command/okp4d_query_consensus.md @@ -0,0 +1,19 @@ +## okp4d query consensus + +Querying commands for the consensus module + +``` +okp4d query consensus [flags] +``` + +### Options + +``` + -h, --help help for consensus +``` + +### SEE ALSO + +* [okp4d query](okp4d_query.md) - Querying subcommands +* [okp4d query consensus comet](okp4d_query_consensus_comet.md) - Querying commands for the cosmos.base.tendermint.v1beta1.Service service +* [okp4d query consensus params](okp4d_query_consensus_params.md) - Query the current consensus parameters diff --git a/docs/command/okp4d_query_consensus_comet.md b/docs/command/okp4d_query_consensus_comet.md new file mode 100644 index 00000000..a592050d --- /dev/null +++ b/docs/command/okp4d_query_consensus_comet.md @@ -0,0 +1,23 @@ +## okp4d query consensus comet + +Querying commands for the cosmos.base.tendermint.v1beta1.Service service + +``` +okp4d query consensus comet [flags] +``` + +### Options + +``` + -h, --help help for comet +``` + +### SEE ALSO + +* [okp4d query consensus](okp4d_query_consensus.md) - Querying commands for the consensus module +* [okp4d query consensus comet block-by-height](okp4d_query_consensus_comet_block-by-height.md) - Query for a committed block by height +* [okp4d query consensus comet block-latest](okp4d_query_consensus_comet_block-latest.md) - Query for the latest committed block +* [okp4d query consensus comet node-info](okp4d_query_consensus_comet_node-info.md) - Query the current node info +* [okp4d query consensus comet syncing](okp4d_query_consensus_comet_syncing.md) - Query node syncing status +* [okp4d query consensus comet validator-set](okp4d_query_consensus_comet_validator-set.md) - Query for the latest validator set +* [okp4d query consensus comet validator-set-by-height](okp4d_query_consensus_comet_validator-set-by-height.md) - Query for a validator set by height diff --git a/docs/command/okp4d_query_consensus_comet_block-by-height.md b/docs/command/okp4d_query_consensus_comet_block-by-height.md new file mode 100644 index 00000000..1c5bf316 --- /dev/null +++ b/docs/command/okp4d_query_consensus_comet_block-by-height.md @@ -0,0 +1,27 @@ +## okp4d query consensus comet block-by-height + +Query for a committed block by height + +### Synopsis + +Query for a specific committed block using the CometBFT RPC `block_by_height` method + +``` +okp4d query consensus comet block-by-height [height] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for block-by-height + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query consensus comet](okp4d_query_consensus_comet.md) - Querying commands for the cosmos.base.tendermint.v1beta1.Service service diff --git a/docs/command/okp4d_query_consensus_comet_block-latest.md b/docs/command/okp4d_query_consensus_comet_block-latest.md new file mode 100644 index 00000000..fb1a19f5 --- /dev/null +++ b/docs/command/okp4d_query_consensus_comet_block-latest.md @@ -0,0 +1,23 @@ +## okp4d query consensus comet block-latest + +Query for the latest committed block + +``` +okp4d query consensus comet block-latest [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for block-latest + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query consensus comet](okp4d_query_consensus_comet.md) - Querying commands for the cosmos.base.tendermint.v1beta1.Service service diff --git a/docs/command/okp4d_query_consensus_comet_node-info.md b/docs/command/okp4d_query_consensus_comet_node-info.md new file mode 100644 index 00000000..770ebec2 --- /dev/null +++ b/docs/command/okp4d_query_consensus_comet_node-info.md @@ -0,0 +1,23 @@ +## okp4d query consensus comet node-info + +Query the current node info + +``` +okp4d query consensus comet node-info [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for node-info + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query consensus comet](okp4d_query_consensus_comet.md) - Querying commands for the cosmos.base.tendermint.v1beta1.Service service diff --git a/docs/command/okp4d_query_consensus_comet_syncing.md b/docs/command/okp4d_query_consensus_comet_syncing.md new file mode 100644 index 00000000..f1000334 --- /dev/null +++ b/docs/command/okp4d_query_consensus_comet_syncing.md @@ -0,0 +1,23 @@ +## okp4d query consensus comet syncing + +Query node syncing status + +``` +okp4d query consensus comet syncing [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for syncing + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query consensus comet](okp4d_query_consensus_comet.md) - Querying commands for the cosmos.base.tendermint.v1beta1.Service service diff --git a/docs/command/okp4d_query_consensus_comet_validator-set-by-height.md b/docs/command/okp4d_query_consensus_comet_validator-set-by-height.md new file mode 100644 index 00000000..893320c4 --- /dev/null +++ b/docs/command/okp4d_query_consensus_comet_validator-set-by-height.md @@ -0,0 +1,28 @@ +## okp4d query consensus comet validator-set-by-height + +Query for a validator set by height + +``` +okp4d query consensus comet validator-set-by-height [height] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for validator-set-by-height + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse +``` + +### SEE ALSO + +* [okp4d query consensus comet](okp4d_query_consensus_comet.md) - Querying commands for the cosmos.base.tendermint.v1beta1.Service service diff --git a/docs/command/okp4d_query_consensus_comet_validator-set.md b/docs/command/okp4d_query_consensus_comet_validator-set.md new file mode 100644 index 00000000..7531950c --- /dev/null +++ b/docs/command/okp4d_query_consensus_comet_validator-set.md @@ -0,0 +1,28 @@ +## okp4d query consensus comet validator-set + +Query for the latest validator set + +``` +okp4d query consensus comet validator-set [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for validator-set + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse +``` + +### SEE ALSO + +* [okp4d query consensus comet](okp4d_query_consensus_comet.md) - Querying commands for the cosmos.base.tendermint.v1beta1.Service service diff --git a/docs/command/okp4d_query_consensus_params.md b/docs/command/okp4d_query_consensus_params.md new file mode 100644 index 00000000..eca67e7a --- /dev/null +++ b/docs/command/okp4d_query_consensus_params.md @@ -0,0 +1,23 @@ +## okp4d query consensus params + +Query the current consensus parameters + +``` +okp4d query consensus params [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for params + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query consensus](okp4d_query_consensus.md) - Querying commands for the consensus module diff --git a/docs/command/okp4d_query_distribution.md b/docs/command/okp4d_query_distribution.md index f9406c45..442d8fb0 100644 --- a/docs/command/okp4d_query_distribution.md +++ b/docs/command/okp4d_query_distribution.md @@ -12,18 +12,15 @@ okp4d query distribution [flags] -h, --help help for distribution ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands * [okp4d query distribution commission](okp4d_query_distribution_commission.md) - Query distribution validator commission * [okp4d query distribution community-pool](okp4d_query_distribution_community-pool.md) - Query the amount of coins in the community pool -* [okp4d query distribution params](okp4d_query_distribution_params.md) - Query distribution params +* [okp4d query distribution delegation-total-rewards](okp4d_query_distribution_delegation-total-rewards.md) - Execute the DelegationTotalRewards RPC method +* [okp4d query distribution delegator-validators](okp4d_query_distribution_delegator-validators.md) - Execute the DelegatorValidators RPC method +* [okp4d query distribution delegator-withdraw-address](okp4d_query_distribution_delegator-withdraw-address.md) - Execute the DelegatorWithdrawAddress RPC method +* [okp4d query distribution params](okp4d_query_distribution_params.md) - Query the current distribution parameters. * [okp4d query distribution rewards](okp4d_query_distribution_rewards.md) - Query all distribution delegator rewards or rewards from a particular validator * [okp4d query distribution slashes](okp4d_query_distribution_slashes.md) - Query distribution validator slashes * [okp4d query distribution validator-distribution-info](okp4d_query_distribution_validator-distribution-info.md) - Query validator distribution info diff --git a/docs/command/okp4d_query_distribution_commission.md b/docs/command/okp4d_query_distribution_commission.md index 6e4fb0da..3af8bbe1 100644 --- a/docs/command/okp4d_query_distribution_commission.md +++ b/docs/command/okp4d_query_distribution_commission.md @@ -2,34 +2,28 @@ Query distribution validator commission -### Synopsis - -Query validator commission rewards from delegators to that validator. +``` +okp4d query distribution commission [validator] [flags] +``` -Example: -$ okp4d query distribution commission okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj +### Examples ``` -okp4d query distribution commission [validator] [flags] +$ okp4d query distribution commission [validator-address] ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for commission - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module diff --git a/docs/command/okp4d_query_distribution_community-pool.md b/docs/command/okp4d_query_distribution_community-pool.md index cf54a642..b892d442 100644 --- a/docs/command/okp4d_query_distribution_community-pool.md +++ b/docs/command/okp4d_query_distribution_community-pool.md @@ -2,34 +2,28 @@ Query the amount of coins in the community pool -### Synopsis - -Query all coins in the community pool which is under Governance control. +``` +okp4d query distribution community-pool [flags] +``` -Example: -$ okp4d query distribution community-pool +### Examples ``` -okp4d query distribution community-pool [flags] +$ okp4d query distribution community-pool ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for community-pool - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module diff --git a/docs/command/okp4d_query_distribution_delegation-total-rewards.md b/docs/command/okp4d_query_distribution_delegation-total-rewards.md new file mode 100644 index 00000000..96cf2541 --- /dev/null +++ b/docs/command/okp4d_query_distribution_delegation-total-rewards.md @@ -0,0 +1,24 @@ +## okp4d query distribution delegation-total-rewards + +Execute the DelegationTotalRewards RPC method + +``` +okp4d query distribution delegation-total-rewards [flags] +``` + +### Options + +``` + --delegator-address account address or key name + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for delegation-total-rewards + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module diff --git a/docs/command/okp4d_query_distribution_delegator-validators.md b/docs/command/okp4d_query_distribution_delegator-validators.md new file mode 100644 index 00000000..496a2e46 --- /dev/null +++ b/docs/command/okp4d_query_distribution_delegator-validators.md @@ -0,0 +1,24 @@ +## okp4d query distribution delegator-validators + +Execute the DelegatorValidators RPC method + +``` +okp4d query distribution delegator-validators [flags] +``` + +### Options + +``` + --delegator-address account address or key name + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for delegator-validators + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module diff --git a/docs/command/okp4d_query_distribution_delegator-withdraw-address.md b/docs/command/okp4d_query_distribution_delegator-withdraw-address.md new file mode 100644 index 00000000..764cd2cc --- /dev/null +++ b/docs/command/okp4d_query_distribution_delegator-withdraw-address.md @@ -0,0 +1,24 @@ +## okp4d query distribution delegator-withdraw-address + +Execute the DelegatorWithdrawAddress RPC method + +``` +okp4d query distribution delegator-withdraw-address [flags] +``` + +### Options + +``` + --delegator-address account address or key name + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for delegator-withdraw-address + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module diff --git a/docs/command/okp4d_query_distribution_params.md b/docs/command/okp4d_query_distribution_params.md index eb7cc98e..b190a576 100644 --- a/docs/command/okp4d_query_distribution_params.md +++ b/docs/command/okp4d_query_distribution_params.md @@ -1,6 +1,6 @@ ## okp4d query distribution params -Query distribution params +Query the current distribution parameters. ``` okp4d query distribution params [flags] @@ -10,19 +10,14 @@ okp4d query distribution params [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module diff --git a/docs/command/okp4d_query_distribution_rewards.md b/docs/command/okp4d_query_distribution_rewards.md index 41fb8aa0..c9225d26 100644 --- a/docs/command/okp4d_query_distribution_rewards.md +++ b/docs/command/okp4d_query_distribution_rewards.md @@ -6,31 +6,28 @@ Query all distribution delegator rewards or rewards from a particular validator Query all rewards earned by a delegator, optionally restrict to rewards from a single validator. -Example: -$ okp4d query distribution rewards okp41gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p -$ okp4d query distribution rewards okp41gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj - ``` okp4d query distribution rewards [delegator-addr] [validator-addr] [flags] ``` +### Examples + +``` +$ okp4d query distribution rewards [delegator-address] [validator-address] +``` + ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for rewards - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module diff --git a/docs/command/okp4d_query_distribution_slashes.md b/docs/command/okp4d_query_distribution_slashes.md index 8bf76b32..11a64ec5 100644 --- a/docs/command/okp4d_query_distribution_slashes.md +++ b/docs/command/okp4d_query_distribution_slashes.md @@ -2,38 +2,31 @@ Query distribution validator slashes -### Synopsis - -Query all slashes of a validator for a given block range. +``` +okp4d query distribution slashes [validator] [start-height] [end-height] [flags] +``` -Example: -$ okp4d query distribution slashes okp4valopervaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj 0 100 +### Examples ``` -okp4d query distribution slashes [validator] [start-height] [end-height] [flags] +$ okp4d query distribution slashes [validator-address] 0 100 ``` ### Options ``` - --count-total count total number of records in validator slashes to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for slashes - --limit uint pagination limit of validator slashes to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of validator slashes to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of validator slashes to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of validator slashes to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_distribution_validator-distribution-info.md b/docs/command/okp4d_query_distribution_validator-distribution-info.md index 2f592678..f4908d7f 100644 --- a/docs/command/okp4d_query_distribution_validator-distribution-info.md +++ b/docs/command/okp4d_query_distribution_validator-distribution-info.md @@ -2,33 +2,28 @@ Query validator distribution info -### Synopsis +``` +okp4d query distribution validator-distribution-info [validator] [flags] +``` -Query validator distribution info. -Example: -$ okp4d query distribution validator-distribution-info okp4valoper1lwjmdnks33xwnmfayc64ycprww49n33mtm92ne +### Examples ``` -okp4d query distribution validator-distribution-info [validator] [flags] +Example: $ okp4d query distribution validator-distribution-info [validator-address] ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for validator-distribution-info - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module diff --git a/docs/command/okp4d_query_distribution_validator-outstanding-rewards.md b/docs/command/okp4d_query_distribution_validator-outstanding-rewards.md index 1b1a349c..144a7fc0 100644 --- a/docs/command/okp4d_query_distribution_validator-outstanding-rewards.md +++ b/docs/command/okp4d_query_distribution_validator-outstanding-rewards.md @@ -2,34 +2,28 @@ Query distribution outstanding (un-withdrawn) rewards for a validator and all their delegations -### Synopsis - -Query distribution outstanding (un-withdrawn) rewards for a validator and all their delegations. +``` +okp4d query distribution validator-outstanding-rewards [validator] [flags] +``` -Example: -$ okp4d query distribution validator-outstanding-rewards okp4valoper1lwjmdnks33xwnmfayc64ycprww49n33mtm92ne +### Examples ``` -okp4d query distribution validator-outstanding-rewards [validator] [flags] +$ okp4d query distribution validator-outstanding-rewards [validator-address] ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for validator-outstanding-rewards - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query distribution](okp4d_query_distribution.md) - Querying commands for the distribution module diff --git a/docs/command/okp4d_tx_gov_submit-legacy-proposal_cancel-software-upgrade.md b/docs/command/okp4d_query_event-query-tx-for.md similarity index 78% rename from docs/command/okp4d_tx_gov_submit-legacy-proposal_cancel-software-upgrade.md rename to docs/command/okp4d_query_event-query-tx-for.md index 8898f70f..69e5d147 100644 --- a/docs/command/okp4d_tx_gov_submit-legacy-proposal_cancel-software-upgrade.md +++ b/docs/command/okp4d_query_event-query-tx-for.md @@ -1,13 +1,13 @@ -## okp4d tx gov submit-legacy-proposal cancel-software-upgrade +## okp4d query event-query-tx-for -Cancel the current software upgrade proposal +Query for a transaction by hash ### Synopsis -Cancel a software upgrade along with an initial deposit. +Subscribes to a CometBFT WebSocket connection and waits for a transaction event with the given hash. ``` -okp4d tx gov submit-legacy-proposal cancel-software-upgrade [flags] +okp4d query event-query-tx-for [hash] [flags] ``` ### Options @@ -17,8 +17,6 @@ okp4d tx gov submit-legacy-proposal cancel-software-upgrade [flags] --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") --chain-id string The network chain ID (default "okp4d") - --deposit string deposit of proposal - --description string description of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -28,22 +26,21 @@ okp4d tx gov submit-legacy-proposal cancel-software-upgrade [flags] --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) - -h, --help help for cancel-software-upgrade + -h, --help help for event-query-tx-for --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator - --title string title of proposal -y, --yes Skip tx broadcasting prompt confirmation ``` ### SEE ALSO -* [okp4d tx gov submit-legacy-proposal](okp4d_tx_gov_submit-legacy-proposal.md) - Submit a legacy proposal along with an initial deposit +* [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_evidence.md b/docs/command/okp4d_query_evidence.md index 792bb799..53abbb67 100644 --- a/docs/command/okp4d_query_evidence.md +++ b/docs/command/okp4d_query_evidence.md @@ -1,14 +1,6 @@ ## okp4d query evidence -Query for evidence by hash or for all (paginated) submitted evidence - -### Synopsis - -Query for specific submitted evidence by hash or query for all (paginated) evidence: - -Example: -$ okp4d query evidence DF0C23E8634E480F84B9D5674A7CDC9816466DEC28A3358F73260F68D28D7660 -$ okp4d query evidence --page=2 --limit=50 +Querying commands for the evidence module ``` okp4d query evidence [flags] @@ -17,26 +9,11 @@ okp4d query evidence [flags] ### Options ``` - --count-total count total number of records in evidence to query for - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for evidence - --limit uint pagination limit of evidence to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of evidence to query for - -o, --output string Output format (text|json) (default "text") - --page uint pagination page of evidence to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of evidence to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + -h, --help help for evidence ``` ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands +* [okp4d query evidence evidence](okp4d_query_evidence_evidence.md) - Query for evidence by hash +* [okp4d query evidence list](okp4d_query_evidence_list.md) - Query all (paginated) submitted evidence diff --git a/docs/command/okp4d_query_evidence_evidence.md b/docs/command/okp4d_query_evidence_evidence.md new file mode 100644 index 00000000..2b1cbefc --- /dev/null +++ b/docs/command/okp4d_query_evidence_evidence.md @@ -0,0 +1,30 @@ +## okp4d query evidence evidence + +Query for evidence by hash + +``` +okp4d query evidence evidence [hash] [flags] +``` + +### Examples + +``` +okp4d query evidence DF0C23E8634E480F84B9D5674A7CDC9816466DEC28A3358F73260F68D28D7660 +``` + +### Options + +``` + --evidence-hash binary + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for evidence + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query evidence](okp4d_query_evidence.md) - Querying commands for the evidence module diff --git a/docs/command/okp4d_query_evidence_list.md b/docs/command/okp4d_query_evidence_list.md new file mode 100644 index 00000000..c98603d8 --- /dev/null +++ b/docs/command/okp4d_query_evidence_list.md @@ -0,0 +1,34 @@ +## okp4d query evidence list + +Query all (paginated) submitted evidence + +``` +okp4d query evidence list [flags] +``` + +### Examples + +``` +okp4d query evidence --page=2 --page-limit=50 +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for list + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse +``` + +### SEE ALSO + +* [okp4d query evidence](okp4d_query_evidence.md) - Querying commands for the evidence module diff --git a/docs/command/okp4d_query_feegrant.md b/docs/command/okp4d_query_feegrant.md index 5a4a5729..351d9821 100644 --- a/docs/command/okp4d_query_feegrant.md +++ b/docs/command/okp4d_query_feegrant.md @@ -12,12 +12,6 @@ okp4d query feegrant [flags] -h, --help help for feegrant ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_feegrant_grant.md b/docs/command/okp4d_query_feegrant_grant.md index 1d979914..2504ee58 100644 --- a/docs/command/okp4d_query_feegrant_grant.md +++ b/docs/command/okp4d_query_feegrant_grant.md @@ -4,33 +4,30 @@ Query details of a single grant ### Synopsis -Query details for a grant. -You can find the fee-grant of a granter and grantee. - -Example: -$ okp4d query feegrant grant [granter] [grantee] +Query details for a grant. You can find the fee-grant of a granter and grantee. ``` okp4d query feegrant grant [granter] [grantee] [flags] ``` +### Examples + +``` +$ okp4d query feegrant grant [granter] [grantee] +``` + ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for grant - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query feegrant](okp4d_query_feegrant.md) - Querying commands for the feegrant module diff --git a/docs/command/okp4d_query_feegrant_grants-by-grantee.md b/docs/command/okp4d_query_feegrant_grants-by-grantee.md index f7627e8f..e69d2b21 100644 --- a/docs/command/okp4d_query_feegrant_grants-by-grantee.md +++ b/docs/command/okp4d_query_feegrant_grants-by-grantee.md @@ -6,34 +6,31 @@ Query all grants of a grantee Queries all the grants for a grantee address. -Example: -$ okp4d query feegrant grants-by-grantee [grantee] - ``` okp4d query feegrant grants-by-grantee [grantee] [flags] ``` +### Examples + +``` +$ okp4d query feegrant grants-by-grantee [grantee] +``` + ### Options ``` - --count-total count total number of records in grants to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for grants-by-grantee - --limit uint pagination limit of grants to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of grants to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of grants to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of grants to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_feegrant_grants-by-granter.md b/docs/command/okp4d_query_feegrant_grants-by-granter.md index 1f47f046..4f894e82 100644 --- a/docs/command/okp4d_query_feegrant_grants-by-granter.md +++ b/docs/command/okp4d_query_feegrant_grants-by-granter.md @@ -2,38 +2,31 @@ Query all grants by a granter -### Synopsis - -Queries all the grants issued for a granter address. +``` +okp4d query feegrant grants-by-granter [granter] [flags] +``` -Example: -$ okp4d query feegrant grants-by-granter [granter] +### Examples ``` -okp4d query feegrant grants-by-granter [granter] [flags] +$ okp4d query feegrant grants-by-granter [granter] ``` ### Options ``` - --count-total count total number of records in grants to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for grants-by-granter - --limit uint pagination limit of grants to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of grants to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of grants to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of grants to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_gov.md b/docs/command/okp4d_query_gov.md index 60dff29e..8c350a3f 100644 --- a/docs/command/okp4d_query_gov.md +++ b/docs/command/okp4d_query_gov.md @@ -1,6 +1,6 @@ ## okp4d query gov -Querying commands for the governance module +Querying commands for the gov module ``` okp4d query gov [flags] @@ -12,22 +12,16 @@ okp4d query gov [flags] -h, --help help for gov ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands +* [okp4d query gov constitution](okp4d_query_gov_constitution.md) - Query the current chain constitution * [okp4d query gov deposit](okp4d_query_gov_deposit.md) - Query details of a deposit * [okp4d query gov deposits](okp4d_query_gov_deposits.md) - Query deposits on a proposal -* [okp4d query gov param](okp4d_query_gov_param.md) - Query the parameters (voting|tallying|deposit) of the governance process * [okp4d query gov params](okp4d_query_gov_params.md) - Query the parameters of the governance process * [okp4d query gov proposal](okp4d_query_gov_proposal.md) - Query details of a single proposal * [okp4d query gov proposals](okp4d_query_gov_proposals.md) - Query proposals with optional filters * [okp4d query gov proposer](okp4d_query_gov_proposer.md) - Query the proposer of a governance proposal -* [okp4d query gov tally](okp4d_query_gov_tally.md) - Get the tally of a proposal vote +* [okp4d query gov tally](okp4d_query_gov_tally.md) - Query the tally of a proposal vote * [okp4d query gov vote](okp4d_query_gov_vote.md) - Query details of a single vote -* [okp4d query gov votes](okp4d_query_gov_votes.md) - Query votes on a proposal +* [okp4d query gov votes](okp4d_query_gov_votes.md) - Query votes of a single proposal diff --git a/docs/command/okp4d_query_gov_constitution.md b/docs/command/okp4d_query_gov_constitution.md new file mode 100644 index 00000000..4ed10ffb --- /dev/null +++ b/docs/command/okp4d_query_gov_constitution.md @@ -0,0 +1,23 @@ +## okp4d query gov constitution + +Query the current chain constitution + +``` +okp4d query gov constitution [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for constitution + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_gov_deposit.md b/docs/command/okp4d_query_gov_deposit.md index 4b4431df..635a052b 100644 --- a/docs/command/okp4d_query_gov_deposit.md +++ b/docs/command/okp4d_query_gov_deposit.md @@ -2,13 +2,6 @@ Query details of a deposit -### Synopsis - -Query details for a single proposal deposit on a proposal by its identifier. - -Example: -$ okp4d query gov deposit 1 cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk - ``` okp4d query gov deposit [proposal-id] [depositer-addr] [flags] ``` @@ -17,19 +10,14 @@ okp4d query gov deposit [proposal-id] [depositer-addr] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for deposit - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_gov_deposits.md b/docs/command/okp4d_query_gov_deposits.md index 3ac3b331..3a6a4552 100644 --- a/docs/command/okp4d_query_gov_deposits.md +++ b/docs/command/okp4d_query_gov_deposits.md @@ -2,14 +2,6 @@ Query deposits on a proposal -### Synopsis - -Query details for all deposits on a proposal. -You can find the proposal-id by running "okp4d query gov proposals". - -Example: -$ okp4d query gov deposits 1 - ``` okp4d query gov deposits [proposal-id] [flags] ``` @@ -17,26 +9,20 @@ okp4d query gov deposits [proposal-id] [flags] ### Options ``` - --count-total count total number of records in deposits to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for deposits - --limit uint pagination limit of deposits to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of deposits to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of deposits to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of deposits to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_gov_param.md b/docs/command/okp4d_query_gov_param.md deleted file mode 100644 index 8df423e6..00000000 --- a/docs/command/okp4d_query_gov_param.md +++ /dev/null @@ -1,36 +0,0 @@ -## okp4d query gov param - -Query the parameters (voting|tallying|deposit) of the governance process - -### Synopsis - -Query the all the parameters for the governance process. -Example: -$ okp4d query gov param voting -$ okp4d query gov param tallying -$ okp4d query gov param deposit - -``` -okp4d query gov param [param-type] [flags] -``` - -### Options - -``` - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for param - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - -o, --output string Output format (text|json) (default "text") -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - -### SEE ALSO - -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module diff --git a/docs/command/okp4d_query_gov_params.md b/docs/command/okp4d_query_gov_params.md index 6226a20a..16ce1d20 100644 --- a/docs/command/okp4d_query_gov_params.md +++ b/docs/command/okp4d_query_gov_params.md @@ -4,10 +4,7 @@ Query the parameters of the governance process ### Synopsis -Query the all the parameters for the governance process. - -Example: -$ okp4d query gov params +Query the parameters of the governance process. Specify specific param types (voting|tallying|deposit) to filter results. ``` okp4d query gov params [flags] @@ -17,19 +14,14 @@ okp4d query gov params [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_gov_proposal.md b/docs/command/okp4d_query_gov_proposal.md index 555dba18..28b00388 100644 --- a/docs/command/okp4d_query_gov_proposal.md +++ b/docs/command/okp4d_query_gov_proposal.md @@ -2,35 +2,28 @@ Query details of a single proposal -### Synopsis - -Query details for a proposal. You can find the -proposal-id by running "okp4d query gov proposals". +``` +okp4d query gov proposal [proposal-id] [flags] +``` -Example: -$ okp4d query gov proposal 1 +### Examples ``` -okp4d query gov proposal [proposal-id] [flags] +okp4d query gov proposal 1 ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for proposal - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_gov_proposals.md b/docs/command/okp4d_query_gov_proposals.md index 01171103..4880b813 100644 --- a/docs/command/okp4d_query_gov_proposals.md +++ b/docs/command/okp4d_query_gov_proposals.md @@ -2,46 +2,38 @@ Query proposals with optional filters -### Synopsis - -Query for a all paginated proposals that match optional filters: - -Example: -$ okp4d query gov proposals --depositor cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk -$ okp4d query gov proposals --voter cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk -$ okp4d query gov proposals --status (DepositPeriod|VotingPeriod|Passed|Rejected) -$ okp4d query gov proposals --page=2 --limit=100 - ``` okp4d query gov proposals [flags] ``` -### Options +### Examples ``` - --count-total count total number of records in proposals to query for - --depositor string (optional) filter by proposals deposited on by depositor - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for proposals - --limit uint pagination limit of proposals to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of proposals to query for - -o, --output string Output format (text|json) (default "text") - --page uint pagination page of proposals to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of proposals to query for - --reverse results are sorted in descending order - --status string (optional) filter proposals by proposal status, status: deposit_period/voting_period/passed/rejected - --voter string (optional) filter by proposals voted on by voted +okp4d query gov proposals --depositor cosmos1... +okp4d query gov proposals --voter cosmos1... +okp4d query gov proposals --proposal-status (PROPOSAL_STATUS_DEPOSIT_PERIOD|PROPOSAL_STATUS_VOTING_PERIOD|PROPOSAL_STATUS_PASSED|PROPOSAL_STATUS_REJECTED|PROPOSAL_STATUS_FAILED) ``` -### Options inherited from parent commands +### Options ``` - --chain-id string The network chain ID (default "okp4d") + --depositor account address or key name + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for proposals + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse + --proposal-status ProposalStatus (unspecified | deposit-period | voting-period | passed | rejected | failed) (default unspecified) + --voter account address or key name ``` ### SEE ALSO -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_gov_proposer.md b/docs/command/okp4d_query_gov_proposer.md index 10b8f197..abac8a31 100644 --- a/docs/command/okp4d_query_gov_proposer.md +++ b/docs/command/okp4d_query_gov_proposer.md @@ -4,32 +4,29 @@ Query the proposer of a governance proposal ### Synopsis -Query which address proposed a proposal with a given ID. - -Example: -$ okp4d query gov proposer 1 +Query which address proposed a proposal with a given ID ``` okp4d query gov proposer [proposal-id] [flags] ``` +### Examples + +``` +okp4d query gov proposer 1 +``` + ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for proposer - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_gov_tally.md b/docs/command/okp4d_query_gov_tally.md index 29a7e64c..13ffe7ac 100644 --- a/docs/command/okp4d_query_gov_tally.md +++ b/docs/command/okp4d_query_gov_tally.md @@ -1,36 +1,29 @@ ## okp4d query gov tally -Get the tally of a proposal vote +Query the tally of a proposal vote -### Synopsis - -Query tally of votes on a proposal. You can find -the proposal-id by running "okp4d query gov proposals". +``` +okp4d query gov tally [proposal-id] [flags] +``` -Example: -$ okp4d query gov tally 1 +### Examples ``` -okp4d query gov tally [proposal-id] [flags] +okp4d query gov tally 1 ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for tally - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_gov_vote.md b/docs/command/okp4d_query_gov_vote.md index ef3014c1..860bd2b5 100644 --- a/docs/command/okp4d_query_gov_vote.md +++ b/docs/command/okp4d_query_gov_vote.md @@ -2,34 +2,28 @@ Query details of a single vote -### Synopsis - -Query details for a single vote on a proposal given its identifier. +``` +okp4d query gov vote [proposal-id] [voter-addr] [flags] +``` -Example: -$ okp4d query gov vote 1 cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk +### Examples ``` -okp4d query gov vote [proposal-id] [voter-addr] [flags] +okp4d query gov vote 1 cosmos1... ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for vote - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_gov_votes.md b/docs/command/okp4d_query_gov_votes.md index ffc290fe..b28a3481 100644 --- a/docs/command/okp4d_query_gov_votes.md +++ b/docs/command/okp4d_query_gov_votes.md @@ -1,42 +1,34 @@ ## okp4d query gov votes -Query votes on a proposal +Query votes of a single proposal -### Synopsis - -Query vote details for a single proposal by its identifier. +``` +okp4d query gov votes [proposal-id] [flags] +``` -Example: -$ okp4d query gov votes 1 -$ okp4d query gov votes 1 --page=2 --limit=100 +### Examples ``` -okp4d query gov votes [proposal-id] [flags] +okp4d query gov votes 1 ``` ### Options ``` - --count-total count total number of records in votes to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for votes - --limit uint pagination limit of votes to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of votes to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of votes to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of votes to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO -* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the governance module +* [okp4d query gov](okp4d_query_gov.md) - Querying commands for the gov module diff --git a/docs/command/okp4d_query_group.md b/docs/command/okp4d_query_group.md index e2fb242f..05e49cfe 100644 --- a/docs/command/okp4d_query_group.md +++ b/docs/command/okp4d_query_group.md @@ -12,26 +12,20 @@ okp4d query group [flags] -h, --help help for group ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands * [okp4d query group group-info](okp4d_query_group_group-info.md) - Query for group info by group id -* [okp4d query group group-members](okp4d_query_group_group-members.md) - Query for group members by group id with pagination flags -* [okp4d query group group-policies-by-admin](okp4d_query_group_group-policies-by-admin.md) - Query for group policies by admin account address with pagination flags -* [okp4d query group group-policies-by-group](okp4d_query_group_group-policies-by-group.md) - Query for group policies by group id with pagination flags +* [okp4d query group group-members](okp4d_query_group_group-members.md) - Query for group members by group id +* [okp4d query group group-policies-by-admin](okp4d_query_group_group-policies-by-admin.md) - Query for group policies by admin account address +* [okp4d query group group-policies-by-group](okp4d_query_group_group-policies-by-group.md) - Query for group policies by group id * [okp4d query group group-policy-info](okp4d_query_group_group-policy-info.md) - Query for group policy info by account address of group policy -* [okp4d query group groups](okp4d_query_group_groups.md) - Query for groups present in the state -* [okp4d query group groups-by-admin](okp4d_query_group_groups-by-admin.md) - Query for groups by admin account address with pagination flags -* [okp4d query group groups-by-member](okp4d_query_group_groups-by-member.md) - Query for groups by member address with pagination flags +* [okp4d query group groups](okp4d_query_group_groups.md) - Query for all groups on chain +* [okp4d query group groups-by-admin](okp4d_query_group_groups-by-admin.md) - Query for groups by admin account address +* [okp4d query group groups-by-member](okp4d_query_group_groups-by-member.md) - Query for groups by member address * [okp4d query group proposal](okp4d_query_group_proposal.md) - Query for proposal by id -* [okp4d query group proposals-by-group-policy](okp4d_query_group_proposals-by-group-policy.md) - Query for proposals by account address of group policy with pagination flags +* [okp4d query group proposals-by-group-policy](okp4d_query_group_proposals-by-group-policy.md) - Query for proposals by account address of group policy * [okp4d query group tally-result](okp4d_query_group_tally-result.md) - Query tally result of proposal * [okp4d query group vote](okp4d_query_group_vote.md) - Query for vote by proposal id and voter account address -* [okp4d query group votes-by-proposal](okp4d_query_group_votes-by-proposal.md) - Query for votes by proposal id with pagination flags -* [okp4d query group votes-by-voter](okp4d_query_group_votes-by-voter.md) - Query for votes by voter account address with pagination flags +* [okp4d query group votes-by-proposal](okp4d_query_group_votes-by-proposal.md) - Query for votes by proposal id +* [okp4d query group votes-by-voter](okp4d_query_group_votes-by-voter.md) - Query for votes by voter account address diff --git a/docs/command/okp4d_query_group_group-info.md b/docs/command/okp4d_query_group_group-info.md index 01163868..9f97031b 100644 --- a/docs/command/okp4d_query_group_group-info.md +++ b/docs/command/okp4d_query_group_group-info.md @@ -3,26 +3,21 @@ Query for group info by group id ``` -okp4d query group group-info [id] [flags] +okp4d query group group-info [group-id] [flags] ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for group-info - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query group](okp4d_query_group.md) - Querying commands for the group module diff --git a/docs/command/okp4d_query_group_group-members.md b/docs/command/okp4d_query_group_group-members.md index a920c14b..760e2599 100644 --- a/docs/command/okp4d_query_group_group-members.md +++ b/docs/command/okp4d_query_group_group-members.md @@ -1,32 +1,26 @@ ## okp4d query group group-members -Query for group members by group id with pagination flags +Query for group members by group id ``` -okp4d query group group-members [id] [flags] +okp4d query group group-members [group-id] [flags] ``` ### Options ``` - --count-total count total number of records in group-members to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for group-members - --limit uint pagination limit of group-members to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of group-members to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of group-members to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of group-members to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_group_group-policies-by-admin.md b/docs/command/okp4d_query_group_group-policies-by-admin.md index a4f377d4..919acc43 100644 --- a/docs/command/okp4d_query_group_group-policies-by-admin.md +++ b/docs/command/okp4d_query_group_group-policies-by-admin.md @@ -1,6 +1,6 @@ ## okp4d query group group-policies-by-admin -Query for group policies by admin account address with pagination flags +Query for group policies by admin account address ``` okp4d query group group-policies-by-admin [admin] [flags] @@ -9,24 +9,18 @@ okp4d query group group-policies-by-admin [admin] [flags] ### Options ``` - --count-total count total number of records in group-policies-by-admin to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for group-policies-by-admin - --limit uint pagination limit of group-policies-by-admin to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of group-policies-by-admin to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of group-policies-by-admin to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of group-policies-by-admin to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_group_group-policies-by-group.md b/docs/command/okp4d_query_group_group-policies-by-group.md index f0e8a257..0cf7a550 100644 --- a/docs/command/okp4d_query_group_group-policies-by-group.md +++ b/docs/command/okp4d_query_group_group-policies-by-group.md @@ -1,6 +1,6 @@ ## okp4d query group group-policies-by-group -Query for group policies by group id with pagination flags +Query for group policies by group id ``` okp4d query group group-policies-by-group [group-id] [flags] @@ -9,24 +9,18 @@ okp4d query group group-policies-by-group [group-id] [flags] ### Options ``` - --count-total count total number of records in groups-policies-by-group to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for group-policies-by-group - --limit uint pagination limit of groups-policies-by-group to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of groups-policies-by-group to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of groups-policies-by-group to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of groups-policies-by-group to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_group_group-policy-info.md b/docs/command/okp4d_query_group_group-policy-info.md index 04193700..cf482143 100644 --- a/docs/command/okp4d_query_group_group-policy-info.md +++ b/docs/command/okp4d_query_group_group-policy-info.md @@ -10,19 +10,14 @@ okp4d query group group-policy-info [group-policy-account] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for group-policy-info - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query group](okp4d_query_group.md) - Querying commands for the group module diff --git a/docs/command/okp4d_query_group_groups-by-admin.md b/docs/command/okp4d_query_group_groups-by-admin.md index c0f1c337..fe98ee63 100644 --- a/docs/command/okp4d_query_group_groups-by-admin.md +++ b/docs/command/okp4d_query_group_groups-by-admin.md @@ -1,6 +1,6 @@ ## okp4d query group groups-by-admin -Query for groups by admin account address with pagination flags +Query for groups by admin account address ``` okp4d query group groups-by-admin [admin] [flags] @@ -9,24 +9,18 @@ okp4d query group groups-by-admin [admin] [flags] ### Options ``` - --count-total count total number of records in groups-by-admin to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for groups-by-admin - --limit uint pagination limit of groups-by-admin to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of groups-by-admin to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of groups-by-admin to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of groups-by-admin to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_group_groups-by-member.md b/docs/command/okp4d_query_group_groups-by-member.md index 3f3d7949..b1ec50d8 100644 --- a/docs/command/okp4d_query_group_groups-by-member.md +++ b/docs/command/okp4d_query_group_groups-by-member.md @@ -1,6 +1,6 @@ ## okp4d query group groups-by-member -Query for groups by member address with pagination flags +Query for groups by member address ``` okp4d query group groups-by-member [address] [flags] @@ -9,24 +9,18 @@ okp4d query group groups-by-member [address] [flags] ### Options ``` - --count-total count total number of records in groups-by-members to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for groups-by-member - --limit uint pagination limit of groups-by-members to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of groups-by-members to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of groups-by-members to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of groups-by-members to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_group_groups.md b/docs/command/okp4d_query_group_groups.md index f531aedf..cee78202 100644 --- a/docs/command/okp4d_query_group_groups.md +++ b/docs/command/okp4d_query_group_groups.md @@ -1,6 +1,6 @@ ## okp4d query group groups -Query for groups present in the state +Query for all groups on chain ``` okp4d query group groups [flags] @@ -9,24 +9,18 @@ okp4d query group groups [flags] ### Options ``` - --count-total count total number of records in groups to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for groups - --limit uint pagination limit of groups to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of groups to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of groups to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of groups to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_group_proposal.md b/docs/command/okp4d_query_group_proposal.md index a2a07e5c..24468040 100644 --- a/docs/command/okp4d_query_group_proposal.md +++ b/docs/command/okp4d_query_group_proposal.md @@ -3,26 +3,21 @@ Query for proposal by id ``` -okp4d query group proposal [id] [flags] +okp4d query group proposal [proposal-id] [flags] ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for proposal - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query group](okp4d_query_group.md) - Querying commands for the group module diff --git a/docs/command/okp4d_query_group_proposals-by-group-policy.md b/docs/command/okp4d_query_group_proposals-by-group-policy.md index d15d0db4..0de4aa02 100644 --- a/docs/command/okp4d_query_group_proposals-by-group-policy.md +++ b/docs/command/okp4d_query_group_proposals-by-group-policy.md @@ -1,6 +1,6 @@ ## okp4d query group proposals-by-group-policy -Query for proposals by account address of group policy with pagination flags +Query for proposals by account address of group policy ``` okp4d query group proposals-by-group-policy [group-policy-account] [flags] @@ -9,24 +9,18 @@ okp4d query group proposals-by-group-policy [group-policy-account] [flags] ### Options ``` - --count-total count total number of records in proposals-by-group-policy to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for proposals-by-group-policy - --limit uint pagination limit of proposals-by-group-policy to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of proposals-by-group-policy to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of proposals-by-group-policy to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of proposals-by-group-policy to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_group_tally-result.md b/docs/command/okp4d_query_group_tally-result.md index 7b3253f5..b1783099 100644 --- a/docs/command/okp4d_query_group_tally-result.md +++ b/docs/command/okp4d_query_group_tally-result.md @@ -10,19 +10,14 @@ okp4d query group tally-result [proposal-id] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for tally-result - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query group](okp4d_query_group.md) - Querying commands for the group module diff --git a/docs/command/okp4d_query_group_vote.md b/docs/command/okp4d_query_group_vote.md index 0c84ec64..8a001d21 100644 --- a/docs/command/okp4d_query_group_vote.md +++ b/docs/command/okp4d_query_group_vote.md @@ -10,19 +10,14 @@ okp4d query group vote [proposal-id] [voter] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for vote - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query group](okp4d_query_group.md) - Querying commands for the group module diff --git a/docs/command/okp4d_query_group_votes-by-proposal.md b/docs/command/okp4d_query_group_votes-by-proposal.md index f0ff0de0..42170b32 100644 --- a/docs/command/okp4d_query_group_votes-by-proposal.md +++ b/docs/command/okp4d_query_group_votes-by-proposal.md @@ -1,6 +1,6 @@ ## okp4d query group votes-by-proposal -Query for votes by proposal id with pagination flags +Query for votes by proposal id ``` okp4d query group votes-by-proposal [proposal-id] [flags] @@ -9,24 +9,18 @@ okp4d query group votes-by-proposal [proposal-id] [flags] ### Options ``` - --count-total count total number of records in votes-by-proposal to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for votes-by-proposal - --limit uint pagination limit of votes-by-proposal to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of votes-by-proposal to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of votes-by-proposal to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of votes-by-proposal to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_group_votes-by-voter.md b/docs/command/okp4d_query_group_votes-by-voter.md index 3643813f..c70d70aa 100644 --- a/docs/command/okp4d_query_group_votes-by-voter.md +++ b/docs/command/okp4d_query_group_votes-by-voter.md @@ -1,6 +1,6 @@ ## okp4d query group votes-by-voter -Query for votes by voter account address with pagination flags +Query for votes by voter account address ``` okp4d query group votes-by-voter [voter] [flags] @@ -9,24 +9,18 @@ okp4d query group votes-by-voter [voter] [flags] ### Options ``` - --count-total count total number of records in votes-by-voter to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for votes-by-voter - --limit uint pagination limit of votes-by-voter to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of votes-by-voter to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of votes-by-voter to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of votes-by-voter to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_ibc-fee.md b/docs/command/okp4d_query_ibc-fee.md index 809c14e5..bd2e0f69 100644 --- a/docs/command/okp4d_query_ibc-fee.md +++ b/docs/command/okp4d_query_ibc-fee.md @@ -8,12 +8,6 @@ IBC relayer incentivization query subcommands -h, --help help for ibc-fee ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_ibc-fee_channel.md b/docs/command/okp4d_query_ibc-fee_channel.md index bb71bce6..6a0770b8 100644 --- a/docs/command/okp4d_query_ibc-fee_channel.md +++ b/docs/command/okp4d_query_ibc-fee_channel.md @@ -20,19 +20,13 @@ okp4d query ibc-fee channel transfer channel-6 ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for channel - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-fee_channels.md b/docs/command/okp4d_query_ibc-fee_channels.md index cbd081ce..8103522f 100644 --- a/docs/command/okp4d_query_ibc-fee_channels.md +++ b/docs/command/okp4d_query_ibc-fee_channels.md @@ -21,11 +21,11 @@ okp4d query ibc-fee channels ``` --count-total count total number of records in channels to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for channels --limit uint pagination limit of channels to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of channels to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of channels to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc-fee channels --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-fee_counterparty-payee.md b/docs/command/okp4d_query_ibc-fee_counterparty-payee.md index c7df2573..94e414b5 100644 --- a/docs/command/okp4d_query_ibc-fee_counterparty-payee.md +++ b/docs/command/okp4d_query_ibc-fee_counterparty-payee.md @@ -20,19 +20,13 @@ okp4d query ibc-fee counterparty-payee channel-5 cosmos1layxcsmyye0dc0har9sdfzwc ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for counterparty-payee - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-fee_packet.md b/docs/command/okp4d_query_ibc-fee_packet.md index a5c0ffdb..e685810e 100644 --- a/docs/command/okp4d_query_ibc-fee_packet.md +++ b/docs/command/okp4d_query_ibc-fee_packet.md @@ -20,19 +20,13 @@ okp4d query ibc-fee packet ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for packet - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-fee_packets-for-channel.md b/docs/command/okp4d_query_ibc-fee_packets-for-channel.md index 5ffa2e28..380878b7 100644 --- a/docs/command/okp4d_query_ibc-fee_packets-for-channel.md +++ b/docs/command/okp4d_query_ibc-fee_packets-for-channel.md @@ -21,11 +21,11 @@ okp4d query ibc-fee packets-for-channel ``` --count-total count total number of records in packets-for-channel to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for packets-for-channel --limit uint pagination limit of packets-for-channel to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of packets-for-channel to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of packets-for-channel to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc-fee packets-for-channel --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-fee_packets.md b/docs/command/okp4d_query_ibc-fee_packets.md index 275fe8eb..18b15695 100644 --- a/docs/command/okp4d_query_ibc-fee_packets.md +++ b/docs/command/okp4d_query_ibc-fee_packets.md @@ -21,11 +21,11 @@ okp4d query ibc-fee packets ``` --count-total count total number of records in packets to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for packets --limit uint pagination limit of packets to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of packets to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of packets to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc-fee packets --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-fee_payee.md b/docs/command/okp4d_query_ibc-fee_payee.md index cbd5ef53..ba1f0a5a 100644 --- a/docs/command/okp4d_query_ibc-fee_payee.md +++ b/docs/command/okp4d_query_ibc-fee_payee.md @@ -20,19 +20,13 @@ okp4d query ibc-fee payee channel-5 cosmos1layxcsmyye0dc0har9sdfzwckaz8sjwlfsj8z ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for payee - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-fee_total-ack-fees.md b/docs/command/okp4d_query_ibc-fee_total-ack-fees.md index 9fc3f946..6abba129 100644 --- a/docs/command/okp4d_query_ibc-fee_total-ack-fees.md +++ b/docs/command/okp4d_query_ibc-fee_total-ack-fees.md @@ -20,19 +20,13 @@ okp4d query ibc-fee total-ack-fees transfer channel-5 100 ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for total-ack-fees - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-fee_total-recv-fees.md b/docs/command/okp4d_query_ibc-fee_total-recv-fees.md index f9a6c52f..705d1df3 100644 --- a/docs/command/okp4d_query_ibc-fee_total-recv-fees.md +++ b/docs/command/okp4d_query_ibc-fee_total-recv-fees.md @@ -20,19 +20,13 @@ okp4d query ibc-fee total-recv-fees transfer channel-5 100 ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for total-recv-fees - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-fee_total-timeout-fees.md b/docs/command/okp4d_query_ibc-fee_total-timeout-fees.md index 2a582ac1..b7e2d515 100644 --- a/docs/command/okp4d_query_ibc-fee_total-timeout-fees.md +++ b/docs/command/okp4d_query_ibc-fee_total-timeout-fees.md @@ -20,19 +20,13 @@ okp4d query ibc-fee total-timeout-fees transfer channel-5 100 ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for total-timeout-fees - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-fee](okp4d_query_ibc-fee.md) - IBC relayer incentivization query subcommands diff --git a/docs/command/okp4d_query_ibc-transfer.md b/docs/command/okp4d_query_ibc-transfer.md index 5f2c5874..40a6e3d4 100644 --- a/docs/command/okp4d_query_ibc-transfer.md +++ b/docs/command/okp4d_query_ibc-transfer.md @@ -8,12 +8,6 @@ IBC fungible token transfer query subcommands -h, --help help for ibc-transfer ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_ibc-transfer_denom-hash.md b/docs/command/okp4d_query_ibc-transfer_denom-hash.md index e7f27362..93b39390 100644 --- a/docs/command/okp4d_query_ibc-transfer_denom-hash.md +++ b/docs/command/okp4d_query_ibc-transfer_denom-hash.md @@ -20,19 +20,13 @@ okp4d query ibc-transfer denom-hash transfer/channel-0/uatom ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for denom-hash - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-transfer](okp4d_query_ibc-transfer.md) - IBC fungible token transfer query subcommands diff --git a/docs/command/okp4d_query_ibc-transfer_denom-trace.md b/docs/command/okp4d_query_ibc-transfer_denom-trace.md index 6d2cc20b..97466356 100644 --- a/docs/command/okp4d_query_ibc-transfer_denom-trace.md +++ b/docs/command/okp4d_query_ibc-transfer_denom-trace.md @@ -20,19 +20,13 @@ okp4d query ibc-transfer denom-trace 27A6394C3F9FF9C9DCF5DFFADF9BB5FE9A37C7E92B0 ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for denom-trace - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-transfer](okp4d_query_ibc-transfer.md) - IBC fungible token transfer query subcommands diff --git a/docs/command/okp4d_query_ibc-transfer_denom-traces.md b/docs/command/okp4d_query_ibc-transfer_denom-traces.md index f8dc88e2..8bdd4bc0 100644 --- a/docs/command/okp4d_query_ibc-transfer_denom-traces.md +++ b/docs/command/okp4d_query_ibc-transfer_denom-traces.md @@ -21,11 +21,11 @@ okp4d query ibc-transfer denom-traces ``` --count-total count total number of records in denominations trace to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for denom-traces --limit uint pagination limit of denominations trace to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of denominations trace to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of denominations trace to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc-transfer denom-traces --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-transfer](okp4d_query_ibc-transfer.md) - IBC fungible token transfer query subcommands diff --git a/docs/command/okp4d_query_ibc-transfer_escrow-address.md b/docs/command/okp4d_query_ibc-transfer_escrow-address.md index 6e62afef..f706188d 100644 --- a/docs/command/okp4d_query_ibc-transfer_escrow-address.md +++ b/docs/command/okp4d_query_ibc-transfer_escrow-address.md @@ -20,19 +20,13 @@ okp4d query ibc-transfer escrow-address [port] [channel-id] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for escrow-address - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-transfer](okp4d_query_ibc-transfer.md) - IBC fungible token transfer query subcommands diff --git a/docs/command/okp4d_query_ibc-transfer_params.md b/docs/command/okp4d_query_ibc-transfer_params.md index d06a6904..e83e5fe5 100644 --- a/docs/command/okp4d_query_ibc-transfer_params.md +++ b/docs/command/okp4d_query_ibc-transfer_params.md @@ -20,19 +20,13 @@ okp4d query ibc-transfer params ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-transfer](okp4d_query_ibc-transfer.md) - IBC fungible token transfer query subcommands diff --git a/docs/command/okp4d_query_ibc-transfer_total-escrow.md b/docs/command/okp4d_query_ibc-transfer_total-escrow.md index 3719c92a..f5f3631d 100644 --- a/docs/command/okp4d_query_ibc-transfer_total-escrow.md +++ b/docs/command/okp4d_query_ibc-transfer_total-escrow.md @@ -20,19 +20,13 @@ okp4d query ibc-transfer total-escrow uosmo ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for total-escrow - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc-transfer](okp4d_query_ibc-transfer.md) - IBC fungible token transfer query subcommands diff --git a/docs/command/okp4d_query_ibc.md b/docs/command/okp4d_query_ibc.md index 53883968..8b496f72 100644 --- a/docs/command/okp4d_query_ibc.md +++ b/docs/command/okp4d_query_ibc.md @@ -12,12 +12,6 @@ okp4d query ibc [flags] -h, --help help for ibc ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_ibc_channel.md b/docs/command/okp4d_query_ibc_channel.md index 50cac0c7..d57c9e7d 100644 --- a/docs/command/okp4d_query_ibc_channel.md +++ b/docs/command/okp4d_query_ibc_channel.md @@ -12,12 +12,6 @@ okp4d query ibc channel [flags] -h, --help help for channel ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc](okp4d_query_ibc.md) - Querying commands for the IBC module @@ -26,6 +20,7 @@ okp4d query ibc channel [flags] * [okp4d query ibc channel connections](okp4d_query_ibc_channel_connections.md) - Query all channels associated with a connection * [okp4d query ibc channel end](okp4d_query_ibc_channel_end.md) - Query a channel end * [okp4d query ibc channel next-sequence-receive](okp4d_query_ibc_channel_next-sequence-receive.md) - Query a next receive sequence +* [okp4d query ibc channel next-sequence-send](okp4d_query_ibc_channel_next-sequence-send.md) - Query a next send sequence * [okp4d query ibc channel packet-ack](okp4d_query_ibc_channel_packet-ack.md) - Query a packet acknowledgement * [okp4d query ibc channel packet-commitment](okp4d_query_ibc_channel_packet-commitment.md) - Query a packet commitment * [okp4d query ibc channel packet-commitments](okp4d_query_ibc_channel_packet-commitments.md) - Query all packet commitments associated with a channel diff --git a/docs/command/okp4d_query_ibc_channel_channels.md b/docs/command/okp4d_query_ibc_channel_channels.md index 43c3fb71..b127e7a5 100644 --- a/docs/command/okp4d_query_ibc_channel_channels.md +++ b/docs/command/okp4d_query_ibc_channel_channels.md @@ -21,11 +21,11 @@ okp4d query ibc channel channels ``` --count-total count total number of records in channels to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for channels --limit uint pagination limit of channels to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of channels to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of channels to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc channel channels --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_client-state.md b/docs/command/okp4d_query_ibc_channel_client-state.md index 04f14e92..a31ab46d 100644 --- a/docs/command/okp4d_query_ibc_channel_client-state.md +++ b/docs/command/okp4d_query_ibc_channel_client-state.md @@ -20,19 +20,13 @@ okp4d query ibc channel client-state [port-id] [channel-id] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for client-state - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_connections.md b/docs/command/okp4d_query_ibc_channel_connections.md index 6de7020c..b8412496 100644 --- a/docs/command/okp4d_query_ibc_channel_connections.md +++ b/docs/command/okp4d_query_ibc_channel_connections.md @@ -21,11 +21,11 @@ okp4d query ibc channel connections [connection-id] ``` --count-total count total number of records in channels associated with a connection to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for connections --limit uint pagination limit of channels associated with a connection to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of channels associated with a connection to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of channels associated with a connection to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc channel connections [connection-id] --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_end.md b/docs/command/okp4d_query_ibc_channel_end.md index 93712c40..c607463a 100644 --- a/docs/command/okp4d_query_ibc_channel_end.md +++ b/docs/command/okp4d_query_ibc_channel_end.md @@ -20,20 +20,14 @@ okp4d query ibc channel end [port-id] [channel-id] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for end - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --prove show proofs for the query results (default true) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_next-sequence-receive.md b/docs/command/okp4d_query_ibc_channel_next-sequence-receive.md index 5043d6c5..dd331e8c 100644 --- a/docs/command/okp4d_query_ibc_channel_next-sequence-receive.md +++ b/docs/command/okp4d_query_ibc_channel_next-sequence-receive.md @@ -20,20 +20,14 @@ okp4d query ibc channel next-sequence-receive [port-id] [channel-id] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for next-sequence-receive - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --prove show proofs for the query results (default true) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_next-sequence-send.md b/docs/command/okp4d_query_ibc_channel_next-sequence-send.md new file mode 100644 index 00000000..42ab9af7 --- /dev/null +++ b/docs/command/okp4d_query_ibc_channel_next-sequence-send.md @@ -0,0 +1,33 @@ +## okp4d query ibc channel next-sequence-send + +Query a next send sequence + +### Synopsis + +Query the next sequence send for a given channel + +``` +okp4d query ibc channel next-sequence-send [port-id] [channel-id] [flags] +``` + +### Examples + +``` +okp4d query ibc channel next-sequence-send [port-id] [channel-id] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for next-sequence-send + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --prove show proofs for the query results (default true) +``` + +### SEE ALSO + +* [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_packet-ack.md b/docs/command/okp4d_query_ibc_channel_packet-ack.md index 29570c75..d612c2e3 100644 --- a/docs/command/okp4d_query_ibc_channel_packet-ack.md +++ b/docs/command/okp4d_query_ibc_channel_packet-ack.md @@ -20,20 +20,14 @@ okp4d query ibc channel packet-ack [port-id] [channel-id] [sequence] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for packet-ack - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --prove show proofs for the query results (default true) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_packet-commitment.md b/docs/command/okp4d_query_ibc_channel_packet-commitment.md index 226f575e..39ebe6c0 100644 --- a/docs/command/okp4d_query_ibc_channel_packet-commitment.md +++ b/docs/command/okp4d_query_ibc_channel_packet-commitment.md @@ -20,20 +20,14 @@ okp4d query ibc channel packet-commitment [port-id] [channel-id] [sequence] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for packet-commitment - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --prove show proofs for the query results (default true) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_packet-commitments.md b/docs/command/okp4d_query_ibc_channel_packet-commitments.md index 33890072..ce6c478c 100644 --- a/docs/command/okp4d_query_ibc_channel_packet-commitments.md +++ b/docs/command/okp4d_query_ibc_channel_packet-commitments.md @@ -21,11 +21,11 @@ okp4d query ibc channel packet-commitments [port-id] [channel-id] ``` --count-total count total number of records in packet commitments associated with a channel to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for packet-commitments --limit uint pagination limit of packet commitments associated with a channel to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of packet commitments associated with a channel to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of packet commitments associated with a channel to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc channel packet-commitments [port-id] [channel-id] --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_packet-receipt.md b/docs/command/okp4d_query_ibc_channel_packet-receipt.md index 47115256..b59c0065 100644 --- a/docs/command/okp4d_query_ibc_channel_packet-receipt.md +++ b/docs/command/okp4d_query_ibc_channel_packet-receipt.md @@ -20,20 +20,14 @@ okp4d query ibc channel packet-receipt [port-id] [channel-id] [sequence] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for packet-receipt - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --prove show proofs for the query results (default true) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_unreceived-acks.md b/docs/command/okp4d_query_ibc_channel_unreceived-acks.md index d49bdd79..a47b869f 100644 --- a/docs/command/okp4d_query_ibc_channel_unreceived-acks.md +++ b/docs/command/okp4d_query_ibc_channel_unreceived-acks.md @@ -24,20 +24,14 @@ okp4d query ibc channel unreceived-acks [port-id] [channel-id] --sequences=1,2,3 ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for unreceived-acks - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --sequences int64Slice comma separated list of packet sequence numbers (default []) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO - [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_channel_unreceived-packets.md b/docs/command/okp4d_query_ibc_channel_unreceived-packets.md index afb5d416..ec132c6e 100644 --- a/docs/command/okp4d_query_ibc_channel_unreceived-packets.md +++ b/docs/command/okp4d_query_ibc_channel_unreceived-packets.md @@ -24,20 +24,14 @@ okp4d query ibc channel unreceived-packets [port-id] [channel-id] --sequences=1, ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for unreceived-packets - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --sequences int64Slice comma separated list of packet sequence numbers (default []) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO - [okp4d query ibc channel](okp4d_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/okp4d_query_ibc_client.md b/docs/command/okp4d_query_ibc_client.md index 090b00c4..3cf82124 100644 --- a/docs/command/okp4d_query_ibc_client.md +++ b/docs/command/okp4d_query_ibc_client.md @@ -12,12 +12,6 @@ okp4d query ibc client [flags] -h, --help help for client ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc](okp4d_query_ibc.md) - Querying commands for the IBC module diff --git a/docs/command/okp4d_query_ibc_client_consensus-state-heights.md b/docs/command/okp4d_query_ibc_client_consensus-state-heights.md index 325a625b..8fb3dede 100644 --- a/docs/command/okp4d_query_ibc_client_consensus-state-heights.md +++ b/docs/command/okp4d_query_ibc_client_consensus-state-heights.md @@ -21,11 +21,11 @@ okp4d query ibc client consensus-state-heights [client-id] ``` --count-total count total number of records in consensus state heights to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for consensus-state-heights --limit uint pagination limit of consensus state heights to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of consensus state heights to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of consensus state heights to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc client consensus-state-heights [client-id] --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc client](okp4d_query_ibc_client.md) - IBC client query subcommands diff --git a/docs/command/okp4d_query_ibc_client_consensus-state.md b/docs/command/okp4d_query_ibc_client_consensus-state.md index 429767c7..b751a6bd 100644 --- a/docs/command/okp4d_query_ibc_client_consensus-state.md +++ b/docs/command/okp4d_query_ibc_client_consensus-state.md @@ -21,21 +21,15 @@ okp4d query ibc client consensus-state [client-id] [height] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for consensus-state --latest-height return latest stored consensus state - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --prove show proofs for the query results (default true) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc client](okp4d_query_ibc_client.md) - IBC client query subcommands diff --git a/docs/command/okp4d_query_ibc_client_consensus-states.md b/docs/command/okp4d_query_ibc_client_consensus-states.md index 29839c6b..321870e3 100644 --- a/docs/command/okp4d_query_ibc_client_consensus-states.md +++ b/docs/command/okp4d_query_ibc_client_consensus-states.md @@ -21,11 +21,11 @@ okp4d query ibc client consensus-states [client-id] ``` --count-total count total number of records in consensus states to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for consensus-states --limit uint pagination limit of consensus states to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of consensus states to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of consensus states to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc client consensus-states [client-id] --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc client](okp4d_query_ibc_client.md) - IBC client query subcommands diff --git a/docs/command/okp4d_query_ibc_client_header.md b/docs/command/okp4d_query_ibc_client_header.md index ac63a89a..28ce8849 100644 --- a/docs/command/okp4d_query_ibc_client_header.md +++ b/docs/command/okp4d_query_ibc_client_header.md @@ -20,19 +20,13 @@ okp4d query ibc client header ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for header - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc client](okp4d_query_ibc_client.md) - IBC client query subcommands diff --git a/docs/command/okp4d_query_ibc_client_params.md b/docs/command/okp4d_query_ibc_client_params.md index e632eaf7..e5053afe 100644 --- a/docs/command/okp4d_query_ibc_client_params.md +++ b/docs/command/okp4d_query_ibc_client_params.md @@ -20,19 +20,13 @@ okp4d query ibc client params ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc client](okp4d_query_ibc_client.md) - IBC client query subcommands diff --git a/docs/command/okp4d_query_ibc_client_self-consensus-state.md b/docs/command/okp4d_query_ibc_client_self-consensus-state.md index a356a7bc..1fefbc8c 100644 --- a/docs/command/okp4d_query_ibc_client_self-consensus-state.md +++ b/docs/command/okp4d_query_ibc_client_self-consensus-state.md @@ -20,19 +20,13 @@ okp4d query ibc client self-consensus-state ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for self-consensus-state - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc client](okp4d_query_ibc_client.md) - IBC client query subcommands diff --git a/docs/command/okp4d_query_ibc_client_state.md b/docs/command/okp4d_query_ibc_client_state.md index 78cba776..2e506766 100644 --- a/docs/command/okp4d_query_ibc_client_state.md +++ b/docs/command/okp4d_query_ibc_client_state.md @@ -20,20 +20,14 @@ okp4d query ibc client state [client-id] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for state - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --prove show proofs for the query results (default true) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc client](okp4d_query_ibc_client.md) - IBC client query subcommands diff --git a/docs/command/okp4d_query_ibc_client_states.md b/docs/command/okp4d_query_ibc_client_states.md index fe448e73..7d733526 100644 --- a/docs/command/okp4d_query_ibc_client_states.md +++ b/docs/command/okp4d_query_ibc_client_states.md @@ -21,11 +21,11 @@ okp4d query ibc client states ``` --count-total count total number of records in client states to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for states --limit uint pagination limit of client states to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of client states to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of client states to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc client states --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc client](okp4d_query_ibc_client.md) - IBC client query subcommands diff --git a/docs/command/okp4d_query_ibc_client_status.md b/docs/command/okp4d_query_ibc_client_status.md index 913be420..48d59fc5 100644 --- a/docs/command/okp4d_query_ibc_client_status.md +++ b/docs/command/okp4d_query_ibc_client_status.md @@ -20,19 +20,13 @@ okp4d query ibc client status [client-id] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for status - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc client](okp4d_query_ibc_client.md) - IBC client query subcommands diff --git a/docs/command/okp4d_query_ibc_connection.md b/docs/command/okp4d_query_ibc_connection.md index bfbc7499..dd8450db 100644 --- a/docs/command/okp4d_query_ibc_connection.md +++ b/docs/command/okp4d_query_ibc_connection.md @@ -8,12 +8,6 @@ IBC connection query subcommands -h, --help help for connection ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc](okp4d_query_ibc.md) - Querying commands for the IBC module diff --git a/docs/command/okp4d_query_ibc_connection_connections.md b/docs/command/okp4d_query_ibc_connection_connections.md index 2dfc9f7a..39070d06 100644 --- a/docs/command/okp4d_query_ibc_connection_connections.md +++ b/docs/command/okp4d_query_ibc_connection_connections.md @@ -21,11 +21,11 @@ okp4d query ibc connection connections ``` --count-total count total number of records in connection ends to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for connections --limit uint pagination limit of connection ends to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") --offset uint pagination offset of connection ends to query for -o, --output string Output format (text|json) (default "text") --page uint pagination page of connection ends to query for. This sets offset to a multiple of limit (default 1) @@ -33,12 +33,6 @@ okp4d query ibc connection connections --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc connection](okp4d_query_ibc_connection.md) - IBC connection query subcommands diff --git a/docs/command/okp4d_query_ibc_connection_end.md b/docs/command/okp4d_query_ibc_connection_end.md index 5898eb45..eb07b658 100644 --- a/docs/command/okp4d_query_ibc_connection_end.md +++ b/docs/command/okp4d_query_ibc_connection_end.md @@ -20,20 +20,14 @@ okp4d query ibc connection end [connection-id] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for end - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --prove show proofs for the query results (default true) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc connection](okp4d_query_ibc_connection.md) - IBC connection query subcommands diff --git a/docs/command/okp4d_query_ibc_connection_params.md b/docs/command/okp4d_query_ibc_connection_params.md index 150f89dc..6511644f 100644 --- a/docs/command/okp4d_query_ibc_connection_params.md +++ b/docs/command/okp4d_query_ibc_connection_params.md @@ -20,19 +20,13 @@ okp4d query ibc connection params ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc connection](okp4d_query_ibc_connection.md) - IBC connection query subcommands diff --git a/docs/command/okp4d_query_ibc_connection_path.md b/docs/command/okp4d_query_ibc_connection_path.md index ab5b058b..3b4d5922 100644 --- a/docs/command/okp4d_query_ibc_connection_path.md +++ b/docs/command/okp4d_query_ibc_connection_path.md @@ -20,20 +20,14 @@ okp4d query ibc connection path [client-id] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for path - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --prove show proofs for the query results (default true) ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query ibc connection](okp4d_query_ibc_connection.md) - IBC connection query subcommands diff --git a/docs/command/okp4d_query_interchain-accounts.md b/docs/command/okp4d_query_interchain-accounts.md index 46908d82..53d59891 100644 --- a/docs/command/okp4d_query_interchain-accounts.md +++ b/docs/command/okp4d_query_interchain-accounts.md @@ -8,12 +8,6 @@ IBC interchain accounts query subcommands -h, --help help for interchain-accounts ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_interchain-accounts_controller.md b/docs/command/okp4d_query_interchain-accounts_controller.md index ac433be6..2d77a925 100644 --- a/docs/command/okp4d_query_interchain-accounts_controller.md +++ b/docs/command/okp4d_query_interchain-accounts_controller.md @@ -8,12 +8,6 @@ IBC interchain accounts controller query subcommands -h, --help help for controller ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query interchain-accounts](okp4d_query_interchain-accounts.md) - IBC interchain accounts query subcommands diff --git a/docs/command/okp4d_query_interchain-accounts_controller_interchain-account.md b/docs/command/okp4d_query_interchain-accounts_controller_interchain-account.md index 50c83fd4..e5022b4d 100644 --- a/docs/command/okp4d_query_interchain-accounts_controller_interchain-account.md +++ b/docs/command/okp4d_query_interchain-accounts_controller_interchain-account.md @@ -20,19 +20,13 @@ okp4d query interchain-accounts controller interchain-account cosmos1layxcsmyye0 ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for interchain-account - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query interchain-accounts controller](okp4d_query_interchain-accounts_controller.md) - IBC interchain accounts controller query subcommands diff --git a/docs/command/okp4d_query_interchain-accounts_controller_params.md b/docs/command/okp4d_query_interchain-accounts_controller_params.md index f08cbd8d..376ae783 100644 --- a/docs/command/okp4d_query_interchain-accounts_controller_params.md +++ b/docs/command/okp4d_query_interchain-accounts_controller_params.md @@ -20,19 +20,13 @@ okp4d query interchain-accounts controller params ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query interchain-accounts controller](okp4d_query_interchain-accounts_controller.md) - IBC interchain accounts controller query subcommands diff --git a/docs/command/okp4d_query_interchain-accounts_host.md b/docs/command/okp4d_query_interchain-accounts_host.md index aaaf1ba6..073457ff 100644 --- a/docs/command/okp4d_query_interchain-accounts_host.md +++ b/docs/command/okp4d_query_interchain-accounts_host.md @@ -8,12 +8,6 @@ IBC interchain accounts host query subcommands -h, --help help for host ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query interchain-accounts](okp4d_query_interchain-accounts.md) - IBC interchain accounts query subcommands diff --git a/docs/command/okp4d_query_interchain-accounts_host_packet-events.md b/docs/command/okp4d_query_interchain-accounts_host_packet-events.md index 2108db60..25d7b243 100644 --- a/docs/command/okp4d_query_interchain-accounts_host_packet-events.md +++ b/docs/command/okp4d_query_interchain-accounts_host_packet-events.md @@ -20,19 +20,13 @@ okp4d query interchain-accounts host packet-events channel-0 100 ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for packet-events - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query interchain-accounts host](okp4d_query_interchain-accounts_host.md) - IBC interchain accounts host query subcommands diff --git a/docs/command/okp4d_query_interchain-accounts_host_params.md b/docs/command/okp4d_query_interchain-accounts_host_params.md index a4d9132b..42e60621 100644 --- a/docs/command/okp4d_query_interchain-accounts_host_params.md +++ b/docs/command/okp4d_query_interchain-accounts_host_params.md @@ -20,19 +20,13 @@ okp4d query interchain-accounts host params ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query interchain-accounts host](okp4d_query_interchain-accounts_host.md) - IBC interchain accounts host query subcommands diff --git a/docs/command/okp4d_query_logic.md b/docs/command/okp4d_query_logic.md index 755428f4..5daf1cdf 100644 --- a/docs/command/okp4d_query_logic.md +++ b/docs/command/okp4d_query_logic.md @@ -12,14 +12,8 @@ okp4d query logic [flags] -h, --help help for logic ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands -* [okp4d query logic ask](okp4d_query_logic_ask.md) - executes a logic query and returns the solutions found. -* [okp4d query logic params](okp4d_query_logic_params.md) - shows the parameters of the module +* [okp4d query logic ask](okp4d_query_logic_ask.md) - Execute the Ask RPC method +* [okp4d query logic params](okp4d_query_logic_params.md) - Execute the Params RPC method diff --git a/docs/command/okp4d_query_logic_ask.md b/docs/command/okp4d_query_logic_ask.md index 1ce993a8..1575bab2 100644 --- a/docs/command/okp4d_query_logic_ask.md +++ b/docs/command/okp4d_query_logic_ask.md @@ -1,44 +1,23 @@ ## okp4d query logic ask -executes a logic query and returns the solutions found. - -### Synopsis - -Executes the [query] and return the solution(s) found. - -Optionally, a program can be transmitted, which will be interpreted before the query is processed. - -Since the query is without any side-effect, the query is not executed in the context of a transaction and no fee -is charged for this, but the execution is constrained by the current limits configured in the module (that you can -query). - -``` -okp4d query logic ask [query] [flags] -``` - -### Examples +Execute the Ask RPC method ``` -$ okp4d query logic ask "chain_id(X)." # returns the chain-id +okp4d query logic ask [flags] ``` ### Options ``` - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for ask - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - -o, --output string Output format (text|json) (default "text") - --program string reads the program from the given string. - --program-file string reads the program from the given filename or from stdin if "-" is passed as the filename. -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for ask + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --program string + --query string ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_logic_params.md b/docs/command/okp4d_query_logic_params.md index 56a863a2..e0720d40 100644 --- a/docs/command/okp4d_query_logic_params.md +++ b/docs/command/okp4d_query_logic_params.md @@ -1,6 +1,6 @@ ## okp4d query logic params -shows the parameters of the module +Execute the Params RPC method ``` okp4d query logic params [flags] @@ -10,19 +10,14 @@ okp4d query logic params [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query logic](okp4d_query_logic.md) - Querying commands for the logic module diff --git a/docs/command/okp4d_query_mint.md b/docs/command/okp4d_query_mint.md index 78df747d..aa5a7994 100644 --- a/docs/command/okp4d_query_mint.md +++ b/docs/command/okp4d_query_mint.md @@ -12,12 +12,6 @@ okp4d query mint [flags] -h, --help help for mint ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_mint_annual-provisions.md b/docs/command/okp4d_query_mint_annual-provisions.md index 40296bd2..89622703 100644 --- a/docs/command/okp4d_query_mint_annual-provisions.md +++ b/docs/command/okp4d_query_mint_annual-provisions.md @@ -10,19 +10,13 @@ okp4d query mint annual-provisions [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for annual-provisions - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query mint](okp4d_query_mint.md) - Querying commands for the minting module diff --git a/docs/command/okp4d_query_mint_inflation.md b/docs/command/okp4d_query_mint_inflation.md index 281cd28e..9967d4c1 100644 --- a/docs/command/okp4d_query_mint_inflation.md +++ b/docs/command/okp4d_query_mint_inflation.md @@ -10,19 +10,13 @@ okp4d query mint inflation [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for inflation - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query mint](okp4d_query_mint.md) - Querying commands for the minting module diff --git a/docs/command/okp4d_query_mint_params.md b/docs/command/okp4d_query_mint_params.md index e2e817a6..82594f4a 100644 --- a/docs/command/okp4d_query_mint_params.md +++ b/docs/command/okp4d_query_mint_params.md @@ -10,19 +10,13 @@ okp4d query mint params [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query mint](okp4d_query_mint.md) - Querying commands for the minting module diff --git a/docs/command/okp4d_query_params.md b/docs/command/okp4d_query_params.md index 0f0f6203..fd16dbf6 100644 --- a/docs/command/okp4d_query_params.md +++ b/docs/command/okp4d_query_params.md @@ -12,13 +12,8 @@ okp4d query params [flags] -h, --help help for params ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands * [okp4d query params subspace](okp4d_query_params_subspace.md) - Query for raw parameters by subspace and key +* [okp4d query params subspaces](okp4d_query_params_subspaces.md) - Query for all registered subspaces and all keys for a subspace diff --git a/docs/command/okp4d_query_params_subspace.md b/docs/command/okp4d_query_params_subspace.md index ac71942d..5fe90022 100644 --- a/docs/command/okp4d_query_params_subspace.md +++ b/docs/command/okp4d_query_params_subspace.md @@ -10,19 +10,14 @@ okp4d query params subspace [subspace] [key] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for subspace - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query params](okp4d_query_params.md) - Querying commands for the params module diff --git a/docs/command/okp4d_query_params_subspaces.md b/docs/command/okp4d_query_params_subspaces.md new file mode 100644 index 00000000..1482ba40 --- /dev/null +++ b/docs/command/okp4d_query_params_subspaces.md @@ -0,0 +1,23 @@ +## okp4d query params subspaces + +Query for all registered subspaces and all keys for a subspace + +``` +okp4d query params subspaces [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for subspaces + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query params](okp4d_query_params.md) - Querying commands for the params module diff --git a/docs/command/okp4d_query_slashing.md b/docs/command/okp4d_query_slashing.md index 79d1beab..55a81a28 100644 --- a/docs/command/okp4d_query_slashing.md +++ b/docs/command/okp4d_query_slashing.md @@ -12,12 +12,6 @@ okp4d query slashing [flags] -h, --help help for slashing ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_slashing_params.md b/docs/command/okp4d_query_slashing_params.md index 6c48574f..c1995866 100644 --- a/docs/command/okp4d_query_slashing_params.md +++ b/docs/command/okp4d_query_slashing_params.md @@ -2,12 +2,6 @@ Query the current slashing parameters -### Synopsis - -Query genesis parameters for the slashing module: - -$ okp4d query slashing params - ``` okp4d query slashing params [flags] ``` @@ -16,19 +10,14 @@ okp4d query slashing params [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query slashing](okp4d_query_slashing.md) - Querying commands for the slashing module diff --git a/docs/command/okp4d_query_slashing_signing-info.md b/docs/command/okp4d_query_slashing_signing-info.md index eed92ae5..3a4e8e8f 100644 --- a/docs/command/okp4d_query_slashing_signing-info.md +++ b/docs/command/okp4d_query_slashing_signing-info.md @@ -4,31 +4,30 @@ Query a validator's signing information ### Synopsis -Use a validators' consensus public key to find the signing-info for that validator: +Query a validator's signing information, with a pubkey ('okp4d comet show-validator') or a validator consensus address -$ okp4d query slashing signing-info '\{"@type":"/cosmos.crypto.ed25519.PubKey","key":"OauFcTKbN5Lx3fJL689cikXBqe+hcp6Y+x0rYUdR9Jk="\}' +``` +okp4d query slashing signing-info [validator-conspub/address] [flags] +``` + +### Examples ``` -okp4d query slashing signing-info [validator-conspub] [flags] +okp4d query slashing signing-info '{"@type":"/cosmos.crypto.ed25519.PubKey","key":"OauFcTKbN5Lx3fJL689cikXBqe+hcp6Y+x0rYUdR9Jk="}' ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for signing-info - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query slashing](okp4d_query_slashing.md) - Querying commands for the slashing module diff --git a/docs/command/okp4d_query_slashing_signing-infos.md b/docs/command/okp4d_query_slashing_signing-infos.md index 41a3f00b..36d2fb90 100644 --- a/docs/command/okp4d_query_slashing_signing-infos.md +++ b/docs/command/okp4d_query_slashing_signing-infos.md @@ -2,12 +2,6 @@ Query signing information of all validators -### Synopsis - -signing infos of validators: - -$ okp4d query slashing signing-infos - ``` okp4d query slashing signing-infos [flags] ``` @@ -15,24 +9,18 @@ okp4d query slashing signing-infos [flags] ### Options ``` - --count-total count total number of records in signing infos to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for signing-infos - --limit uint pagination limit of signing infos to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of signing infos to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of signing infos to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of signing infos to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_staking.md b/docs/command/okp4d_query_staking.md index 3b3fdbf0..2b097a65 100644 --- a/docs/command/okp4d_query_staking.md +++ b/docs/command/okp4d_query_staking.md @@ -12,24 +12,18 @@ okp4d query staking [flags] -h, --help help for staking ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands * [okp4d query staking delegation](okp4d_query_staking_delegation.md) - Query a delegation based on address and validator address * [okp4d query staking delegations](okp4d_query_staking_delegations.md) - Query all delegations made by one delegator * [okp4d query staking delegations-to](okp4d_query_staking_delegations-to.md) - Query all delegations made to one validator +* [okp4d query staking delegator-validator](okp4d_query_staking_delegator-validator.md) - Query validator info for given delegator validator pair +* [okp4d query staking delegator-validators](okp4d_query_staking_delegator-validators.md) - Query all validators info for given delegator address * [okp4d query staking historical-info](okp4d_query_staking_historical-info.md) - Query historical info at given height * [okp4d query staking params](okp4d_query_staking_params.md) - Query the current staking parameters information * [okp4d query staking pool](okp4d_query_staking_pool.md) - Query the current staking pool values * [okp4d query staking redelegation](okp4d_query_staking_redelegation.md) - Query a redelegation record based on delegator and a source and destination validator address -* [okp4d query staking redelegations](okp4d_query_staking_redelegations.md) - Query all redelegations records for one delegator -* [okp4d query staking redelegations-from](okp4d_query_staking_redelegations-from.md) - Query all outgoing redelegatations from a validator * [okp4d query staking unbonding-delegation](okp4d_query_staking_unbonding-delegation.md) - Query an unbonding-delegation record based on delegator and validator address * [okp4d query staking unbonding-delegations](okp4d_query_staking_unbonding-delegations.md) - Query all unbonding-delegations records for one delegator * [okp4d query staking unbonding-delegations-from](okp4d_query_staking_unbonding-delegations-from.md) - Query all unbonding delegatations from a validator diff --git a/docs/command/okp4d_query_staking_delegation.md b/docs/command/okp4d_query_staking_delegation.md index 7a085347..903e5e2c 100644 --- a/docs/command/okp4d_query_staking_delegation.md +++ b/docs/command/okp4d_query_staking_delegation.md @@ -4,10 +4,7 @@ Query a delegation based on address and validator address ### Synopsis -Query delegations for an individual delegator on an individual validator. - -Example: -$ okp4d query staking delegation okp41gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj +Query delegations for an individual delegator on an individual validator ``` okp4d query staking delegation [delegator-addr] [validator-addr] [flags] @@ -17,19 +14,14 @@ okp4d query staking delegation [delegator-addr] [validator-addr] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for delegation - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_delegations-to.md b/docs/command/okp4d_query_staking_delegations-to.md index 443abbe5..a8d8a0b9 100644 --- a/docs/command/okp4d_query_staking_delegations-to.md +++ b/docs/command/okp4d_query_staking_delegations-to.md @@ -6,9 +6,6 @@ Query all delegations made to one validator Query delegations on an individual validator. -Example: -$ okp4d query staking delegations-to okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj - ``` okp4d query staking delegations-to [validator-addr] [flags] ``` @@ -16,24 +13,18 @@ okp4d query staking delegations-to [validator-addr] [flags] ### Options ``` - --count-total count total number of records in validator delegations to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for delegations-to - --limit uint pagination limit of validator delegations to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of validator delegations to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of validator delegations to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of validator delegations to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_staking_delegations.md b/docs/command/okp4d_query_staking_delegations.md index 2ce467d2..fd512bb4 100644 --- a/docs/command/okp4d_query_staking_delegations.md +++ b/docs/command/okp4d_query_staking_delegations.md @@ -6,9 +6,6 @@ Query all delegations made by one delegator Query delegations for an individual delegator on all validators. -Example: -$ okp4d query staking delegations okp41gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p - ``` okp4d query staking delegations [delegator-addr] [flags] ``` @@ -16,24 +13,18 @@ okp4d query staking delegations [delegator-addr] [flags] ### Options ``` - --count-total count total number of records in delegations to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for delegations - --limit uint pagination limit of delegations to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of delegations to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of delegations to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of delegations to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_staking_delegator-validator.md b/docs/command/okp4d_query_staking_delegator-validator.md new file mode 100644 index 00000000..5c6d4c11 --- /dev/null +++ b/docs/command/okp4d_query_staking_delegator-validator.md @@ -0,0 +1,23 @@ +## okp4d query staking delegator-validator + +Query validator info for given delegator validator pair + +``` +okp4d query staking delegator-validator [delegator-addr] [validator-addr] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for delegator-validator + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_delegator-validators.md b/docs/command/okp4d_query_staking_delegator-validators.md new file mode 100644 index 00000000..040af30a --- /dev/null +++ b/docs/command/okp4d_query_staking_delegator-validators.md @@ -0,0 +1,28 @@ +## okp4d query staking delegator-validators + +Query all validators info for given delegator address + +``` +okp4d query staking delegator-validators [delegator-addr] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for delegator-validators + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse +``` + +### SEE ALSO + +* [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_historical-info.md b/docs/command/okp4d_query_staking_historical-info.md index 2736d133..0cd75c32 100644 --- a/docs/command/okp4d_query_staking_historical-info.md +++ b/docs/command/okp4d_query_staking_historical-info.md @@ -2,34 +2,28 @@ Query historical info at given height -### Synopsis - -Query historical info at given height. +``` +okp4d query staking historical-info [height] [flags] +``` -Example: -$ okp4d query staking historical-info 5 +### Examples ``` -okp4d query staking historical-info [height] [flags] +$ okp4d query staking historical-info 5 ``` ### Options ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for historical-info - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_params.md b/docs/command/okp4d_query_staking_params.md index b46ca250..c2ad6b6f 100644 --- a/docs/command/okp4d_query_staking_params.md +++ b/docs/command/okp4d_query_staking_params.md @@ -6,9 +6,6 @@ Query the current staking parameters information Query values set as staking parameters. -Example: -$ okp4d query staking params - ``` okp4d query staking params [flags] ``` @@ -17,19 +14,14 @@ okp4d query staking params [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_pool.md b/docs/command/okp4d_query_staking_pool.md index 373884bf..421cf5e8 100644 --- a/docs/command/okp4d_query_staking_pool.md +++ b/docs/command/okp4d_query_staking_pool.md @@ -6,9 +6,6 @@ Query the current staking pool values Query values for amounts stored in the staking pool. -Example: -$ okp4d query staking pool - ``` okp4d query staking pool [flags] ``` @@ -17,19 +14,14 @@ okp4d query staking pool [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for pool - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_redelegation.md b/docs/command/okp4d_query_staking_redelegation.md index a9165446..ccd23be7 100644 --- a/docs/command/okp4d_query_staking_redelegation.md +++ b/docs/command/okp4d_query_staking_redelegation.md @@ -6,9 +6,6 @@ Query a redelegation record based on delegator and a source and destination vali Query a redelegation record for an individual delegator between a source and destination validator. -Example: -$ okp4d query staking redelegation okp41gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p okp4valoper1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj - ``` okp4d query staking redelegation [delegator-addr] [src-validator-addr] [dst-validator-addr] [flags] ``` @@ -17,17 +14,17 @@ okp4d query staking redelegation [delegator-addr] [src-validator-addr] [dst-vali ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for redelegation - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_staking_redelegations-from.md b/docs/command/okp4d_query_staking_redelegations-from.md deleted file mode 100644 index 90d62ce4..00000000 --- a/docs/command/okp4d_query_staking_redelegations-from.md +++ /dev/null @@ -1,41 +0,0 @@ -## okp4d query staking redelegations-from - -Query all outgoing redelegatations from a validator - -### Synopsis - -Query delegations that are redelegating _from_ a validator. - -Example: -$ okp4d query staking redelegations-from okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj - -``` -okp4d query staking redelegations-from [validator-addr] [flags] -``` - -### Options - -``` - --count-total count total number of records in validator redelegations to query for - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for redelegations-from - --limit uint pagination limit of validator redelegations to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of validator redelegations to query for - -o, --output string Output format (text|json) (default "text") - --page uint pagination page of validator redelegations to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of validator redelegations to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - -### SEE ALSO - -* [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_redelegations.md b/docs/command/okp4d_query_staking_redelegations.md deleted file mode 100644 index 29fd5d73..00000000 --- a/docs/command/okp4d_query_staking_redelegations.md +++ /dev/null @@ -1,41 +0,0 @@ -## okp4d query staking redelegations - -Query all redelegations records for one delegator - -### Synopsis - -Query all redelegation records for an individual delegator. - -Example: -$ okp4d query staking redelegation okp41gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p - -``` -okp4d query staking redelegations [delegator-addr] [flags] -``` - -### Options - -``` - --count-total count total number of records in delegator redelegations to query for - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for redelegations - --limit uint pagination limit of delegator redelegations to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of delegator redelegations to query for - -o, --output string Output format (text|json) (default "text") - --page uint pagination page of delegator redelegations to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of delegator redelegations to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - -### SEE ALSO - -* [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_unbonding-delegation.md b/docs/command/okp4d_query_staking_unbonding-delegation.md index 5481f786..6cac040d 100644 --- a/docs/command/okp4d_query_staking_unbonding-delegation.md +++ b/docs/command/okp4d_query_staking_unbonding-delegation.md @@ -6,9 +6,6 @@ Query an unbonding-delegation record based on delegator and validator address Query unbonding delegations for an individual delegator on an individual validator. -Example: -$ okp4d query staking unbonding-delegation okp41gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj - ``` okp4d query staking unbonding-delegation [delegator-addr] [validator-addr] [flags] ``` @@ -17,19 +14,14 @@ okp4d query staking unbonding-delegation [delegator-addr] [validator-addr] [flag ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for unbonding-delegation - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_unbonding-delegations-from.md b/docs/command/okp4d_query_staking_unbonding-delegations-from.md index 487537a4..84a6e336 100644 --- a/docs/command/okp4d_query_staking_unbonding-delegations-from.md +++ b/docs/command/okp4d_query_staking_unbonding-delegations-from.md @@ -6,34 +6,31 @@ Query all unbonding delegatations from a validator Query delegations that are unbonding _from_ a validator. -Example: -$ okp4d query staking unbonding-delegations-from okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj - ``` okp4d query staking unbonding-delegations-from [validator-addr] [flags] ``` +### Examples + +``` +$ okp4d query staking unbonding-delegations-from [val-addr] +``` + ### Options ``` - --count-total count total number of records in unbonding delegations to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for unbonding-delegations-from - --limit uint pagination limit of unbonding delegations to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of unbonding delegations to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of unbonding delegations to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of unbonding delegations to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_staking_unbonding-delegations.md b/docs/command/okp4d_query_staking_unbonding-delegations.md index 8243045b..8b662e60 100644 --- a/docs/command/okp4d_query_staking_unbonding-delegations.md +++ b/docs/command/okp4d_query_staking_unbonding-delegations.md @@ -6,9 +6,6 @@ Query all unbonding-delegations records for one delegator Query unbonding delegations for an individual delegator. -Example: -$ okp4d query staking unbonding-delegations okp41gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p - ``` okp4d query staking unbonding-delegations [delegator-addr] [flags] ``` @@ -16,24 +13,18 @@ okp4d query staking unbonding-delegations [delegator-addr] [flags] ### Options ``` - --count-total count total number of records in unbonding delegations to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for unbonding-delegations - --limit uint pagination limit of unbonding delegations to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of unbonding delegations to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of unbonding delegations to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of unbonding delegations to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_staking_validator.md b/docs/command/okp4d_query_staking_validator.md index a4eb440d..9272a921 100644 --- a/docs/command/okp4d_query_staking_validator.md +++ b/docs/command/okp4d_query_staking_validator.md @@ -6,9 +6,6 @@ Query a validator Query details about an individual validator. -Example: -$ okp4d query staking validator okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj - ``` okp4d query staking validator [validator-addr] [flags] ``` @@ -17,19 +14,14 @@ okp4d query staking validator [validator-addr] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for validator - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query staking](okp4d_query_staking.md) - Querying commands for the staking module diff --git a/docs/command/okp4d_query_staking_validators.md b/docs/command/okp4d_query_staking_validators.md index f508aff3..4c1e3be9 100644 --- a/docs/command/okp4d_query_staking_validators.md +++ b/docs/command/okp4d_query_staking_validators.md @@ -6,9 +6,6 @@ Query for all validators Query details about all validators on a network. -Example: -$ okp4d query staking validators - ``` okp4d query staking validators [flags] ``` @@ -16,24 +13,19 @@ okp4d query staking validators [flags] ### Options ``` - --count-total count total number of records in validators to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for validators - --limit uint pagination limit of validators to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of validators to query for + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of validators to query for. This sets offset to a multiple of limit (default 1) - --page-key string pagination page-key of validators to query for - --reverse results are sorted in descending order -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --page-count-total + --page-key binary + --page-limit uint + --page-offset uint + --page-reverse + --status string ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_tendermint-validator-set.md b/docs/command/okp4d_query_tendermint-validator-set.md deleted file mode 100644 index 35ff2158..00000000 --- a/docs/command/okp4d_query_tendermint-validator-set.md +++ /dev/null @@ -1,27 +0,0 @@ -## okp4d query tendermint-validator-set - -Get the full tendermint validator set at given height - -``` -okp4d query tendermint-validator-set [height] [flags] -``` - -### Options - -``` - -h, --help help for tendermint-validator-set - --limit int Query number of results returned per page (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - -o, --output string Output format (text|json) (default "text") - --page int Query a specific page of paginated results (default 1) -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - -### SEE ALSO - -* [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_tx.md b/docs/command/okp4d_query_tx.md index d8e636f5..e28ee93c 100644 --- a/docs/command/okp4d_query_tx.md +++ b/docs/command/okp4d_query_tx.md @@ -17,20 +17,14 @@ okp4d query tx --type=[hash|acc_seq|signature] [hash|acc_seq|signature] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for tx - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --type string The type to be used when querying tx, can be one of "hash", "acc_seq", "signature" (default "hash") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_txs.md b/docs/command/okp4d_query_txs.md index 7a38d40b..9bfa44a6 100644 --- a/docs/command/okp4d_query_txs.md +++ b/docs/command/okp4d_query_txs.md @@ -5,35 +5,35 @@ Query for paginated transactions that match a set of events ### Synopsis Search for transactions that match the exact given events where results are paginated. -Each event takes the form of '\{eventType\}.\{eventAttribute\}=\{value\}'. Please refer -to each module's documentation for the full set of events to query for. Each module -documents its respective events under 'xx_events.md'. +The events query is directly passed to Tendermint's RPC TxSearch method and must +conform to Tendermint's query syntax. -Example: -$ okp4d query txs --events 'message.sender=cosmos1...&message.action=withdraw_delegator_reward' --page 1 --limit 30 +Please refer to each module's documentation for the full set of events to query +for. Each module documents its respective events under 'xx_events.md'. ``` okp4d query txs [flags] ``` +### Examples + +``` +$ okp4d query txs --query "message.sender='cosmos1...' AND message.action='withdraw_delegator_reward' AND tx.height > 7" --page 1 --limit 30 +``` + ### Options ``` - --events string list of transaction events in the form of {eventType}.{eventAttribute}={value} --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for txs --limit int Query number of transactions results per page returned (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + --order_by string The ordering semantics (asc|dsc) -o, --output string Output format (text|json) (default "text") --page int Query a specific page of paginated results (default 1) -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --query string The transactions events query per Tendermint's query semantics ``` ### SEE ALSO diff --git a/docs/command/okp4d_query_upgrade.md b/docs/command/okp4d_query_upgrade.md index 451b87be..45e030d3 100644 --- a/docs/command/okp4d_query_upgrade.md +++ b/docs/command/okp4d_query_upgrade.md @@ -2,21 +2,20 @@ Querying commands for the upgrade module -### Options - ``` - -h, --help help for upgrade +okp4d query upgrade [flags] ``` -### Options inherited from parent commands +### Options ``` - --chain-id string The network chain ID (default "okp4d") + -h, --help help for upgrade ``` ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands -* [okp4d query upgrade applied](okp4d_query_upgrade_applied.md) - block header for height at which a completed upgrade was applied -* [okp4d query upgrade module_versions](okp4d_query_upgrade_module_versions.md) - get the list of module versions -* [okp4d query upgrade plan](okp4d_query_upgrade_plan.md) - get upgrade plan (if one exists) +* [okp4d query upgrade applied](okp4d_query_upgrade_applied.md) - Query the block header for height at which a completed upgrade was applied +* [okp4d query upgrade authority](okp4d_query_upgrade_authority.md) - Get the upgrade authority address +* [okp4d query upgrade module-versions](okp4d_query_upgrade_module-versions.md) - Query the list of module versions +* [okp4d query upgrade plan](okp4d_query_upgrade_plan.md) - Query the upgrade plan (if one exists) diff --git a/docs/command/okp4d_query_upgrade_applied.md b/docs/command/okp4d_query_upgrade_applied.md index 4c430ec4..0f3144df 100644 --- a/docs/command/okp4d_query_upgrade_applied.md +++ b/docs/command/okp4d_query_upgrade_applied.md @@ -1,11 +1,10 @@ ## okp4d query upgrade applied -block header for height at which a completed upgrade was applied +Query the block header for height at which a completed upgrade was applied ### Synopsis -If upgrade-name was previously executed on the chain, this returns the header for the block at which it was applied. -This helps a client determine which binary was valid over a given range of blocks, as well as more context to understand past migrations. +If upgrade-name was previously executed on the chain, this returns the header for the block at which it was applied. This helps a client determine which binary was valid over a given range of blocks, as well as more context to understand past migrations. ``` okp4d query upgrade applied [upgrade-name] [flags] @@ -15,19 +14,14 @@ okp4d query upgrade applied [upgrade-name] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for applied - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query upgrade](okp4d_query_upgrade.md) - Querying commands for the upgrade module diff --git a/docs/command/okp4d_query_upgrade_authority.md b/docs/command/okp4d_query_upgrade_authority.md new file mode 100644 index 00000000..234a2111 --- /dev/null +++ b/docs/command/okp4d_query_upgrade_authority.md @@ -0,0 +1,23 @@ +## okp4d query upgrade authority + +Get the upgrade authority address + +``` +okp4d query upgrade authority [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for authority + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query upgrade](okp4d_query_upgrade.md) - Querying commands for the upgrade module diff --git a/docs/command/okp4d_query_upgrade_module-versions.md b/docs/command/okp4d_query_upgrade_module-versions.md new file mode 100644 index 00000000..d151e153 --- /dev/null +++ b/docs/command/okp4d_query_upgrade_module-versions.md @@ -0,0 +1,27 @@ +## okp4d query upgrade module-versions + +Query the list of module versions + +### Synopsis + +Gets a list of module names and their respective consensus versions. Following the command with a specific module name will return only that module's information. + +``` +okp4d query upgrade module-versions [optional module_name] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for module-versions + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [okp4d query upgrade](okp4d_query_upgrade.md) - Querying commands for the upgrade module diff --git a/docs/command/okp4d_query_upgrade_module_versions.md b/docs/command/okp4d_query_upgrade_module_versions.md deleted file mode 100644 index c8ff225d..00000000 --- a/docs/command/okp4d_query_upgrade_module_versions.md +++ /dev/null @@ -1,34 +0,0 @@ -## okp4d query upgrade module_versions - -get the list of module versions - -### Synopsis - -Gets a list of module names and their respective consensus versions. -Following the command with a specific module name will return only -that module's information. - -``` -okp4d query upgrade module_versions [optional module_name] [flags] -``` - -### Options - -``` - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for module_versions - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - -o, --output string Output format (text|json) (default "text") -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - -### SEE ALSO - -* [okp4d query upgrade](okp4d_query_upgrade.md) - Querying commands for the upgrade module diff --git a/docs/command/okp4d_query_upgrade_plan.md b/docs/command/okp4d_query_upgrade_plan.md index 32615335..8e931b33 100644 --- a/docs/command/okp4d_query_upgrade_plan.md +++ b/docs/command/okp4d_query_upgrade_plan.md @@ -1,6 +1,6 @@ ## okp4d query upgrade plan -get upgrade plan (if one exists) +Query the upgrade plan (if one exists) ### Synopsis @@ -14,19 +14,14 @@ okp4d query upgrade plan [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for plan - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --no-indent Do not indent JSON output + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query upgrade](okp4d_query_upgrade.md) - Querying commands for the upgrade module diff --git a/docs/command/okp4d_query_wasm.md b/docs/command/okp4d_query_wasm.md index ec555455..2ff88ad9 100644 --- a/docs/command/okp4d_query_wasm.md +++ b/docs/command/okp4d_query_wasm.md @@ -12,12 +12,6 @@ okp4d query wasm [flags] -h, --help help for wasm ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query](okp4d_query.md) - Querying subcommands diff --git a/docs/command/okp4d_query_wasm_build-address.md b/docs/command/okp4d_query_wasm_build-address.md index 63b959cd..a3885fc8 100644 --- a/docs/command/okp4d_query_wasm_build-address.md +++ b/docs/command/okp4d_query_wasm_build-address.md @@ -15,12 +15,6 @@ okp4d query wasm build-address [code-hash] [creator-address] [salt-hex-encoded] --hex hex encoded salt ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_code-info.md b/docs/command/okp4d_query_wasm_code-info.md index 1e830ebd..ed16440a 100644 --- a/docs/command/okp4d_query_wasm_code-info.md +++ b/docs/command/okp4d_query_wasm_code-info.md @@ -14,19 +14,13 @@ okp4d query wasm code-info [code_id] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for code-info - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_code.md b/docs/command/okp4d_query_wasm_code.md index 0c62297f..84d20da9 100644 --- a/docs/command/okp4d_query_wasm_code.md +++ b/docs/command/okp4d_query_wasm_code.md @@ -14,19 +14,13 @@ okp4d query wasm code [code_id] [output filename] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for code - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_contract-history.md b/docs/command/okp4d_query_wasm_contract-history.md index 8317f9df..02557392 100644 --- a/docs/command/okp4d_query_wasm_contract-history.md +++ b/docs/command/okp4d_query_wasm_contract-history.md @@ -13,26 +13,17 @@ okp4d query wasm contract-history [bech32_address] [flags] ### Options ``` - --count-total count total number of records in contract history to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for contract-history --limit uint pagination limit of contract history to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of contract history to query for + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of contract history to query for. This sets offset to a multiple of limit (default 1) --page-key string pagination page-key of contract history to query for --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_contract-state.md b/docs/command/okp4d_query_wasm_contract-state.md index 2fafaa2f..b0491ecb 100644 --- a/docs/command/okp4d_query_wasm_contract-state.md +++ b/docs/command/okp4d_query_wasm_contract-state.md @@ -12,12 +12,6 @@ okp4d query wasm contract-state [flags] -h, --help help for contract-state ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_contract-state_all.md b/docs/command/okp4d_query_wasm_contract-state_all.md index 072a58ff..93c124ed 100644 --- a/docs/command/okp4d_query_wasm_contract-state_all.md +++ b/docs/command/okp4d_query_wasm_contract-state_all.md @@ -13,26 +13,17 @@ okp4d query wasm contract-state all [bech32_address] [flags] ### Options ``` - --count-total count total number of records in contract state to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for all --limit uint pagination limit of contract state to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of contract state to query for + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of contract state to query for. This sets offset to a multiple of limit (default 1) --page-key string pagination page-key of contract state to query for --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm contract-state](okp4d_query_wasm_contract-state.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_contract-state_raw.md b/docs/command/okp4d_query_wasm_contract-state_raw.md index aa0d7cf4..554e1879 100644 --- a/docs/command/okp4d_query_wasm_contract-state_raw.md +++ b/docs/command/okp4d_query_wasm_contract-state_raw.md @@ -16,20 +16,14 @@ okp4d query wasm contract-state raw [bech32_address] [key] [flags] --ascii ascii encoded key argument --b64 base64 encoded key argument --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for raw --hex hex encoded key argument - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm contract-state](okp4d_query_wasm_contract-state.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_contract-state_smart.md b/docs/command/okp4d_query_wasm_contract-state_smart.md index 70a279b8..cfab55b3 100644 --- a/docs/command/okp4d_query_wasm_contract-state_smart.md +++ b/docs/command/okp4d_query_wasm_contract-state_smart.md @@ -16,20 +16,14 @@ okp4d query wasm contract-state smart [bech32_address] [query] [flags] --ascii ascii encoded query argument --b64 base64 encoded query argument --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for smart --hex hex encoded query argument - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm contract-state](okp4d_query_wasm_contract-state.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_contract.md b/docs/command/okp4d_query_wasm_contract.md index 99714764..688a02f9 100644 --- a/docs/command/okp4d_query_wasm_contract.md +++ b/docs/command/okp4d_query_wasm_contract.md @@ -14,19 +14,13 @@ okp4d query wasm contract [bech32_address] [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for contract - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_libwasmvm-version.md b/docs/command/okp4d_query_wasm_libwasmvm-version.md index 0a4b2944..21e0ab49 100644 --- a/docs/command/okp4d_query_wasm_libwasmvm-version.md +++ b/docs/command/okp4d_query_wasm_libwasmvm-version.md @@ -16,12 +16,6 @@ okp4d query wasm libwasmvm-version [flags] -h, --help help for libwasmvm-version ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_list-code.md b/docs/command/okp4d_query_wasm_list-code.md index 7a443f0c..da8fdd52 100644 --- a/docs/command/okp4d_query_wasm_list-code.md +++ b/docs/command/okp4d_query_wasm_list-code.md @@ -13,26 +13,17 @@ okp4d query wasm list-code [flags] ### Options ``` - --count-total count total number of records in list codes to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for list-code --limit uint pagination limit of list codes to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of list codes to query for + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of list codes to query for. This sets offset to a multiple of limit (default 1) --page-key string pagination page-key of list codes to query for --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_list-contract-by-code.md b/docs/command/okp4d_query_wasm_list-contract-by-code.md index 32529ff5..aacd3b49 100644 --- a/docs/command/okp4d_query_wasm_list-contract-by-code.md +++ b/docs/command/okp4d_query_wasm_list-contract-by-code.md @@ -13,26 +13,17 @@ okp4d query wasm list-contract-by-code [code_id] [flags] ### Options ``` - --count-total count total number of records in list contracts by code to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for list-contract-by-code --limit uint pagination limit of list contracts by code to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of list contracts by code to query for + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of list contracts by code to query for. This sets offset to a multiple of limit (default 1) --page-key string pagination page-key of list contracts by code to query for --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_list-contracts-by-creator.md b/docs/command/okp4d_query_wasm_list-contracts-by-creator.md index 60fd4ba3..975ec1c3 100644 --- a/docs/command/okp4d_query_wasm_list-contracts-by-creator.md +++ b/docs/command/okp4d_query_wasm_list-contracts-by-creator.md @@ -13,26 +13,17 @@ okp4d query wasm list-contracts-by-creator [creator] [flags] ### Options ``` - --count-total count total number of records in list contracts by creator to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for list-contracts-by-creator --limit uint pagination limit of list contracts by creator to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of list contracts by creator to query for + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of list contracts by creator to query for. This sets offset to a multiple of limit (default 1) --page-key string pagination page-key of list contracts by creator to query for --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_params.md b/docs/command/okp4d_query_wasm_params.md index 94dd954b..79b61f44 100644 --- a/docs/command/okp4d_query_wasm_params.md +++ b/docs/command/okp4d_query_wasm_params.md @@ -10,19 +10,13 @@ okp4d query wasm params [flags] ``` --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for params - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_query_wasm_pinned.md b/docs/command/okp4d_query_wasm_pinned.md index 8eed9b50..e5426b9c 100644 --- a/docs/command/okp4d_query_wasm_pinned.md +++ b/docs/command/okp4d_query_wasm_pinned.md @@ -13,26 +13,17 @@ okp4d query wasm pinned [flags] ### Options ``` - --count-total count total number of records in list codes to query for --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for pinned --limit uint pagination limit of list codes to query for (default 100) - --node string : to Tendermint RPC interface for this chain (default "tcp://localhost:26657") - --offset uint pagination offset of list codes to query for + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") - --page uint pagination page of list codes to query for. This sets offset to a multiple of limit (default 1) --page-key string pagination page-key of list codes to query for --reverse results are sorted in descending order ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d query wasm](okp4d_query_wasm.md) - Querying commands for the wasm module diff --git a/docs/command/okp4d_rollback.md b/docs/command/okp4d_rollback.md index c71402fc..6a422408 100644 --- a/docs/command/okp4d_rollback.md +++ b/docs/command/okp4d_rollback.md @@ -1,14 +1,14 @@ ## okp4d rollback -rollback cosmos-sdk and tendermint state by one height +rollback Cosmos SDK and CometBFT state by one height ### Synopsis A state rollback is performed to recover from an incorrect application state transition, -when Tendermint has persisted an incorrect app hash and is thus unable to make +when CometBFT has persisted an incorrect app hash and is thus unable to make progress. Rollback overwrites a state at height n with the state at height n - 1. The application also rolls back to height n - 1. No blocks are removed, so upon -restarting Tendermint the transactions in block n will be re-executed against the +restarting CometBFT the transactions in block n will be re-executed against the application. ``` diff --git a/docs/command/okp4d_snapshots.md b/docs/command/okp4d_snapshots.md new file mode 100644 index 00000000..f15d9a57 --- /dev/null +++ b/docs/command/okp4d_snapshots.md @@ -0,0 +1,19 @@ +## okp4d snapshots + +Manage local snapshots + +### Options + +``` + -h, --help help for snapshots +``` + +### SEE ALSO + +* [okp4d](okp4d.md) - OKP4 Daemon 👹 +* [okp4d snapshots delete](okp4d_snapshots_delete.md) - Delete a local snapshot +* [okp4d snapshots dump](okp4d_snapshots_dump.md) - Dump the snapshot as portable archive format +* [okp4d snapshots export](okp4d_snapshots_export.md) - Export app state to snapshot store +* [okp4d snapshots list](okp4d_snapshots_list.md) - List local snapshots +* [okp4d snapshots load](okp4d_snapshots_load.md) - Load a snapshot archive file (.tar.gz) into snapshot store +* [okp4d snapshots restore](okp4d_snapshots_restore.md) - Restore app state from local snapshot diff --git a/docs/command/okp4d_snapshots_delete.md b/docs/command/okp4d_snapshots_delete.md new file mode 100644 index 00000000..eaa441d5 --- /dev/null +++ b/docs/command/okp4d_snapshots_delete.md @@ -0,0 +1,17 @@ +## okp4d snapshots delete + +Delete a local snapshot + +``` +okp4d snapshots delete [flags] +``` + +### Options + +``` + -h, --help help for delete +``` + +### SEE ALSO + +* [okp4d snapshots](okp4d_snapshots.md) - Manage local snapshots diff --git a/docs/command/okp4d_snapshots_dump.md b/docs/command/okp4d_snapshots_dump.md new file mode 100644 index 00000000..ab0222fb --- /dev/null +++ b/docs/command/okp4d_snapshots_dump.md @@ -0,0 +1,18 @@ +## okp4d snapshots dump + +Dump the snapshot as portable archive format + +``` +okp4d snapshots dump [flags] +``` + +### Options + +``` + -h, --help help for dump + -o, --output string output file +``` + +### SEE ALSO + +* [okp4d snapshots](okp4d_snapshots.md) - Manage local snapshots diff --git a/docs/command/okp4d_snapshots_export.md b/docs/command/okp4d_snapshots_export.md new file mode 100644 index 00000000..5c80f9d2 --- /dev/null +++ b/docs/command/okp4d_snapshots_export.md @@ -0,0 +1,18 @@ +## okp4d snapshots export + +Export app state to snapshot store + +``` +okp4d snapshots export [flags] +``` + +### Options + +``` + --height int Height to export, default to latest state height + -h, --help help for export +``` + +### SEE ALSO + +* [okp4d snapshots](okp4d_snapshots.md) - Manage local snapshots diff --git a/docs/command/okp4d_snapshots_list.md b/docs/command/okp4d_snapshots_list.md new file mode 100644 index 00000000..e2a0f34c --- /dev/null +++ b/docs/command/okp4d_snapshots_list.md @@ -0,0 +1,17 @@ +## okp4d snapshots list + +List local snapshots + +``` +okp4d snapshots list [flags] +``` + +### Options + +``` + -h, --help help for list +``` + +### SEE ALSO + +* [okp4d snapshots](okp4d_snapshots.md) - Manage local snapshots diff --git a/docs/command/okp4d_snapshots_load.md b/docs/command/okp4d_snapshots_load.md new file mode 100644 index 00000000..7b4a2ee9 --- /dev/null +++ b/docs/command/okp4d_snapshots_load.md @@ -0,0 +1,17 @@ +## okp4d snapshots load + +Load a snapshot archive file (.tar.gz) into snapshot store + +``` +okp4d snapshots load [flags] +``` + +### Options + +``` + -h, --help help for load +``` + +### SEE ALSO + +* [okp4d snapshots](okp4d_snapshots.md) - Manage local snapshots diff --git a/docs/command/okp4d_snapshots_restore.md b/docs/command/okp4d_snapshots_restore.md new file mode 100644 index 00000000..68e68e46 --- /dev/null +++ b/docs/command/okp4d_snapshots_restore.md @@ -0,0 +1,21 @@ +## okp4d snapshots restore + +Restore app state from local snapshot + +### Synopsis + +Restore app state from local snapshot + +``` +okp4d snapshots restore [flags] +``` + +### Options + +``` + -h, --help help for restore +``` + +### SEE ALSO + +* [okp4d snapshots](okp4d_snapshots.md) - Manage local snapshots diff --git a/docs/command/okp4d_start.md b/docs/command/okp4d_start.md index a8f1fac7..d6d874bc 100644 --- a/docs/command/okp4d_start.md +++ b/docs/command/okp4d_start.md @@ -4,8 +4,8 @@ Run the full node ### Synopsis -Run the full node application with Tendermint in or out of process. By -default, the application will run with Tendermint in process. +Run the full node application with CometBFT in or out of process. By +default, the application will run with CometBFT in process. Pruning options can be provided via the '--pruning' flag or alternatively with '--pruning-keep-recent', and 'pruning-interval' together. @@ -27,7 +27,7 @@ For profiling and benchmarking purposes, CPU profiling can be enabled via the '- which accepts a path for the resulting pprof file. The node may be started in a 'query only' mode where only the gRPC and JSON HTTP -API services are enabled via the 'grpc-only' flag. In this mode, Tendermint is +API services are enabled via the 'grpc-only' flag. In this mode, CometBFT is bypassed and can be used when legacy queries are needed after an on-chain upgrade is performed. Note, when enabled, gRPC will also be automatically enabled. @@ -44,11 +44,10 @@ okp4d start [flags] --api.enable Define if the API server should be enabled --api.enabled-unsafe-cors Define if CORS should be enabled (unsafe - use it at your own risk) --api.max-open-connections uint Define the number of maximum open connections (default 1000) - --api.rpc-max-body-bytes uint Define the Tendermint maximum request body (in bytes) (default 1000000) - --api.rpc-read-timeout uint Define the Tendermint RPC read timeout (in seconds) (default 10) - --api.rpc-write-timeout uint Define the Tendermint RPC write timeout (in seconds) + --api.rpc-max-body-bytes uint Define the CometBFT maximum request body (in bytes) (default 1000000) + --api.rpc-read-timeout uint Define the CometBFT RPC read timeout (in seconds) (default 10) + --api.rpc-write-timeout uint Define the CometBFT RPC write timeout (in seconds) --api.swagger Define if swagger documentation should automatically be registered (Note: the API must also be enabled) - --block_sync sync the block chain using the blocksync algorithm (default true) --consensus.create_empty_blocks set this to false to only produce blocks when there are txs or when the AppHash changes (default true) --consensus.create_empty_blocks_interval string the possible interval between empty blocks (default "0s") --consensus.double_sign_check_height int how many blocks to look back to check existence of the node's consensus votes before joining consensus @@ -56,8 +55,7 @@ okp4d start [flags] --db_backend string database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb (default "goleveldb") --db_dir string database directory (default "data") --genesis_hash bytesHex optional SHA-256 hash of the genesis file - --grpc-only Start the node in gRPC query only mode (no Tendermint process is started) - --grpc-web.address string The gRPC-Web server address to listen on (default "localhost:9091") + --grpc-only Start the node in gRPC query only mode (no CometBFT process is started) --grpc-web.enable Define if the gRPC-Web server should be enabled. (Note: gRPC must also be enabled) (default true) --grpc.address string the gRPC server address to listen on (default "localhost:9090") --grpc.enable Define if the gRPC server should be enabled (default true) @@ -69,7 +67,7 @@ okp4d start [flags] --inter-block-cache Enable inter-block caching (default true) --inv-check-period uint Assert registered invariants every N blocks --mempool.max-txs int Sets MaxTx value for the app-side mempool - --min-retain-blocks uint Minimum block height offset during ABCI commit to prune Tendermint blocks + --min-retain-blocks uint Minimum block height offset during ABCI commit to prune CometBFT blocks --minimum-gas-prices string Minimum gas prices to accept for transactions; Any fee in a tx must meet this minimum (e.g. 0.01photino;0.0001stake) --moniker string node name (default "my-machine") --p2p.external-address string ip:port address to advertise to peers for them to dial @@ -80,12 +78,12 @@ okp4d start [flags] --p2p.seed_mode enable/disable seed mode --p2p.seeds string comma-delimited ID@host:port seed nodes --p2p.unconditional_peer_ids string comma-delimited IDs of unconditional peers - --p2p.upnp enable/disable UPNP port forwarding --priv_validator_laddr string socket address to listen on for connections from external priv_validator process --proxy_app string proxy app address, or one of: 'kvstore', 'persistent_kvstore' or 'noop' for local testing. (default "tcp://127.0.0.1:26658") --pruning string Pruning strategy (default|nothing|everything|custom) (default "default") --pruning-interval uint Height interval at which pruned heights are removed from disk (ignored if pruning is not 'custom') --pruning-keep-recent uint Number of recent heights to keep on disk (ignored if pruning is not 'custom') + --query-gas-limit uint Maximum gas a Rest/Grpc query can consume. Blank and 0 imply unbounded. --rpc.grpc_laddr string GRPC listen address (BroadcastTx only). Port required --rpc.laddr string RPC listen address. Port required (default "tcp://127.0.0.1:26657") --rpc.pprof_laddr string pprof listen address (https://golang.org/pkg/net/http/pprof) @@ -96,7 +94,11 @@ okp4d start [flags] --trace-store string Enable KVStore tracing to an output file --transport string Transport protocol: socket, grpc (default "socket") --unsafe-skip-upgrades ints Skip a set of upgrade heights to continue the old binary - --with-tendermint Run abci app embedded in-process with tendermint (default true) + --wasm.memory_cache_size uint32 Sets the size in MiB (NOT bytes) of an in-memory cache for Wasm modules. Set to 0 to disable. (default 100) + --wasm.query_gas_limit uint Set the max gas that can be spent on executing a query with a Wasm contract (default 3000000) + --wasm.simulation_gas_limit string Set the max gas that can be spent when executing a simulation TX + --wasm.skip_wasmvm_version_check Skip check that ensures that libwasmvm version (the Rust project) and wasmvm version (the Go project) match + --with-comet Run abci app embedded in-process with CometBFT (default true) --x-crisis-skip-assert-invariants Skip x/crisis invariants check on startup ``` diff --git a/docs/command/okp4d_status.md b/docs/command/okp4d_status.md index 6eefb358..894772fc 100644 --- a/docs/command/okp4d_status.md +++ b/docs/command/okp4d_status.md @@ -9,8 +9,9 @@ okp4d status [flags] ### Options ``` - -h, --help help for status - -n, --node string Node to connect to (default "tcp://localhost:26657") + -h, --help help for status + -n, --node string Node to connect to (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "json") ``` ### SEE ALSO diff --git a/docs/command/okp4d_tendermint.md b/docs/command/okp4d_tendermint.md deleted file mode 100644 index 1375994d..00000000 --- a/docs/command/okp4d_tendermint.md +++ /dev/null @@ -1,20 +0,0 @@ -## okp4d tendermint - -Tendermint subcommands - -### Options - -``` - -h, --help help for tendermint -``` - -### SEE ALSO - -* [okp4d](okp4d.md) - OKP4 Daemon 👹 -* [okp4d tendermint bootstrap-state](okp4d_tendermint_bootstrap-state.md) - Bootstrap CometBFT state at an arbitrary block height using a light client -* [okp4d tendermint reset-state](okp4d_tendermint_reset-state.md) - Remove all the data and WAL -* [okp4d tendermint show-address](okp4d_tendermint_show-address.md) - Shows this node's tendermint validator consensus address -* [okp4d tendermint show-node-id](okp4d_tendermint_show-node-id.md) - Show this node's ID -* [okp4d tendermint show-validator](okp4d_tendermint_show-validator.md) - Show this node's tendermint validator info -* [okp4d tendermint unsafe-reset-all](okp4d_tendermint_unsafe-reset-all.md) - (unsafe) Remove all the data and WAL, reset this node's validator to genesis state -* [okp4d tendermint version](okp4d_tendermint_version.md) - Print tendermint libraries' version diff --git a/docs/command/okp4d_tendermint_reset-state.md b/docs/command/okp4d_tendermint_reset-state.md deleted file mode 100644 index 35ee3e1c..00000000 --- a/docs/command/okp4d_tendermint_reset-state.md +++ /dev/null @@ -1,17 +0,0 @@ -## okp4d tendermint reset-state - -Remove all the data and WAL - -``` -okp4d tendermint reset-state [flags] -``` - -### Options - -``` - -h, --help help for reset-state -``` - -### SEE ALSO - -* [okp4d tendermint](okp4d_tendermint.md) - Tendermint subcommands diff --git a/docs/command/okp4d_tendermint_show-address.md b/docs/command/okp4d_tendermint_show-address.md deleted file mode 100644 index 21405885..00000000 --- a/docs/command/okp4d_tendermint_show-address.md +++ /dev/null @@ -1,17 +0,0 @@ -## okp4d tendermint show-address - -Shows this node's tendermint validator consensus address - -``` -okp4d tendermint show-address [flags] -``` - -### Options - -``` - -h, --help help for show-address -``` - -### SEE ALSO - -* [okp4d tendermint](okp4d_tendermint.md) - Tendermint subcommands diff --git a/docs/command/okp4d_tendermint_show-node-id.md b/docs/command/okp4d_tendermint_show-node-id.md deleted file mode 100644 index 43583cc1..00000000 --- a/docs/command/okp4d_tendermint_show-node-id.md +++ /dev/null @@ -1,17 +0,0 @@ -## okp4d tendermint show-node-id - -Show this node's ID - -``` -okp4d tendermint show-node-id [flags] -``` - -### Options - -``` - -h, --help help for show-node-id -``` - -### SEE ALSO - -* [okp4d tendermint](okp4d_tendermint.md) - Tendermint subcommands diff --git a/docs/command/okp4d_tendermint_show-validator.md b/docs/command/okp4d_tendermint_show-validator.md deleted file mode 100644 index 35aa61bd..00000000 --- a/docs/command/okp4d_tendermint_show-validator.md +++ /dev/null @@ -1,17 +0,0 @@ -## okp4d tendermint show-validator - -Show this node's tendermint validator info - -``` -okp4d tendermint show-validator [flags] -``` - -### Options - -``` - -h, --help help for show-validator -``` - -### SEE ALSO - -* [okp4d tendermint](okp4d_tendermint.md) - Tendermint subcommands diff --git a/docs/command/okp4d_tx.md b/docs/command/okp4d_tx.md index 7184279c..03a4dfe1 100644 --- a/docs/command/okp4d_tx.md +++ b/docs/command/okp4d_tx.md @@ -9,35 +9,40 @@ okp4d tx [flags] ### Options ``` - --chain-id string The network chain ID (default "okp4d") - -h, --help help for tx + -h, --help help for tx ``` ### SEE ALSO * [okp4d](okp4d.md) - OKP4 Daemon 👹 -* [okp4d tx](okp4d_tx_.md) - +* [okp4d tx auth](okp4d_tx_auth.md) - Transactions commands for the auth module * [okp4d tx authz](okp4d_tx_authz.md) - Authorization transactions subcommands * [okp4d tx bank](okp4d_tx_bank.md) - Bank transaction subcommands * [okp4d tx broadcast](okp4d_tx_broadcast.md) - Broadcast transactions generated offline -* [okp4d tx crisis](okp4d_tx_crisis.md) - Crisis transactions subcommands +* [okp4d tx circuit](okp4d_tx_circuit.md) - Transactions commands for the circuit module +* [okp4d tx consensus](okp4d_tx_consensus.md) - Transactions commands for the consensus module +* [okp4d tx crisis](okp4d_tx_crisis.md) - Transactions commands for the crisis module * [okp4d tx decode](okp4d_tx_decode.md) - Decode a binary encoded transaction string * [okp4d tx distribution](okp4d_tx_distribution.md) - Distribution transactions subcommands * [okp4d tx encode](okp4d_tx_encode.md) - Encode transactions generated offline * [okp4d tx evidence](okp4d_tx_evidence.md) - Evidence transaction subcommands -* [okp4d tx feegrant](okp4d_tx_feegrant.md) - Feegrant transactions subcommands +* [okp4d tx feegrant](okp4d_tx_feegrant.md) - Feegrant transactions sub-commands * [okp4d tx gov](okp4d_tx_gov.md) - Governance transactions subcommands * [okp4d tx group](okp4d_tx_group.md) - Group transaction subcommands * [okp4d tx ibc](okp4d_tx_ibc.md) - IBC transaction subcommands * [okp4d tx ibc-fee](okp4d_tx_ibc-fee.md) - IBC relayer incentivization transaction subcommands * [okp4d tx ibc-transfer](okp4d_tx_ibc-transfer.md) - IBC fungible token transfer transaction subcommands * [okp4d tx interchain-accounts](okp4d_tx_interchain-accounts.md) - IBC interchain accounts transaction subcommands -* [okp4d tx logic](okp4d_tx_logic.md) - logic transactions subcommands +* [okp4d tx logic](okp4d_tx_logic.md) - Transactions commands for the logic module +* [okp4d tx mint](okp4d_tx_mint.md) - Transactions commands for the mint module * [okp4d tx multi-sign](okp4d_tx_multi-sign.md) - Generate multisig signatures for transactions generated offline +* [okp4d tx multisign-batch](okp4d_tx_multisign-batch.md) - Assemble multisig transactions in batch from batch signatures * [okp4d tx sign](okp4d_tx_sign.md) - Sign a transaction generated offline * [okp4d tx sign-batch](okp4d_tx_sign-batch.md) - Sign transaction batch files -* [okp4d tx slashing](okp4d_tx_slashing.md) - Slashing transaction subcommands +* [okp4d tx simulate](okp4d_tx_simulate.md) - Simulate the gas usage of a transaction +* [okp4d tx slashing](okp4d_tx_slashing.md) - Transactions commands for the slashing module * [okp4d tx staking](okp4d_tx_staking.md) - Staking transaction subcommands +* [okp4d tx upgrade](okp4d_tx_upgrade.md) - Upgrade transaction subcommands * [okp4d tx validate-signatures](okp4d_tx_validate-signatures.md) - validate transactions signatures * [okp4d tx vesting](okp4d_tx_vesting.md) - Vesting transaction subcommands * [okp4d tx wasm](okp4d_tx_wasm.md) - Wasm transaction subcommands diff --git a/docs/command/okp4d_tx_.md b/docs/command/okp4d_tx_.md deleted file mode 100644 index a5475c14..00000000 --- a/docs/command/okp4d_tx_.md +++ /dev/null @@ -1,21 +0,0 @@ -## okp4d tx - -``` -okp4d tx [flags] -``` - -### Options - -``` - -h, --help help for this command -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - -### SEE ALSO - -* [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_auth.md b/docs/command/okp4d_tx_auth.md new file mode 100644 index 00000000..2f39dfcf --- /dev/null +++ b/docs/command/okp4d_tx_auth.md @@ -0,0 +1,17 @@ +## okp4d tx auth + +Transactions commands for the auth module + +``` +okp4d tx auth [flags] +``` + +### Options + +``` + -h, --help help for auth +``` + +### SEE ALSO + +* [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_authz.md b/docs/command/okp4d_tx_authz.md index 83104813..c2f0e48c 100644 --- a/docs/command/okp4d_tx_authz.md +++ b/docs/command/okp4d_tx_authz.md @@ -16,12 +16,6 @@ okp4d tx authz [flags] -h, --help help for authz ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_authz_exec.md b/docs/command/okp4d_tx_authz_exec.md index 0771ee54..fe8494e2 100644 --- a/docs/command/okp4d_tx_authz_exec.md +++ b/docs/command/okp4d_tx_authz_exec.md @@ -19,7 +19,7 @@ okp4d tx authz exec [tx-json-file] --from [grantee] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -30,15 +30,15 @@ okp4d tx authz exec [tx-json-file] --from [grantee] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for exec - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_authz_grant.md b/docs/command/okp4d_tx_authz_grant.md index dbbe1d37..7c882cb5 100644 --- a/docs/command/okp4d_tx_authz_grant.md +++ b/docs/command/okp4d_tx_authz_grant.md @@ -22,7 +22,7 @@ okp4d tx authz grant : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --spend-limit string SpendLimit for Send Authorization, an array of Coins allowed spend --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_authz_revoke.md b/docs/command/okp4d_tx_authz_revoke.md index 7e9cb1bc..bb54344c 100644 --- a/docs/command/okp4d_tx_authz_revoke.md +++ b/docs/command/okp4d_tx_authz_revoke.md @@ -18,7 +18,7 @@ okp4d tx authz revoke [grantee] [msg-type-url] --from=[granter] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -29,15 +29,15 @@ okp4d tx authz revoke [grantee] [msg-type-url] --from=[granter] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for revoke - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_bank.md b/docs/command/okp4d_tx_bank.md index 02561466..225edcf2 100644 --- a/docs/command/okp4d_tx_bank.md +++ b/docs/command/okp4d_tx_bank.md @@ -12,12 +12,6 @@ okp4d tx bank [flags] -h, --help help for bank ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_bank_multi-send.md b/docs/command/okp4d_tx_bank_multi-send.md index fb2e3e81..458119eb 100644 --- a/docs/command/okp4d_tx_bank_multi-send.md +++ b/docs/command/okp4d_tx_bank_multi-send.md @@ -7,11 +7,18 @@ Send funds from one account to two or more accounts. Send funds from one account to two or more accounts. By default, sends the [amount] to each address of the list. Using the '--split' flag, the [amount] is split equally between the addresses. -Note, the '--from' flag is ignored as it is implied from [from_key_or_address]. +Note, the '--from' flag is ignored as it is implied from [from_key_or_address] and +separate addresses with space. When using '--dry-run' a key name cannot be used, only a bech32 address. ``` -okp4d tx bank multi-send [from_key_or_address] [to_address_1, to_address_2, ...] [amount] [flags] +okp4d tx bank multi-send [from_key_or_address] [to_address_1 to_address_2 ...] [amount] [flags] +``` + +### Examples + +``` +okp4d tx bank multi-send cosmos1... cosmos1... cosmos1... cosmos1... 10stake ``` ### Options @@ -20,7 +27,7 @@ okp4d tx bank multi-send [from_key_or_address] [to_address_1, to_address_2, ...] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -31,15 +38,15 @@ okp4d tx bank multi-send [from_key_or_address] [to_address_1, to_address_2, ...] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for multi-send - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --split Send the equally split token amount to each address --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_bank_send.md b/docs/command/okp4d_tx_bank_send.md index 5f35fb47..784ec846 100644 --- a/docs/command/okp4d_tx_bank_send.md +++ b/docs/command/okp4d_tx_bank_send.md @@ -18,7 +18,7 @@ okp4d tx bank send [from_key_or_address] [to_address] [amount] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -29,15 +29,15 @@ okp4d tx bank send [from_key_or_address] [to_address] [amount] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for send - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_broadcast.md b/docs/command/okp4d_tx_broadcast.md index 204620a8..9b0f5428 100644 --- a/docs/command/okp4d_tx_broadcast.md +++ b/docs/command/okp4d_tx_broadcast.md @@ -35,12 +35,12 @@ okp4d tx broadcast [file_path] [flags] --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_circuit.md b/docs/command/okp4d_tx_circuit.md new file mode 100644 index 00000000..ccb233f0 --- /dev/null +++ b/docs/command/okp4d_tx_circuit.md @@ -0,0 +1,20 @@ +## okp4d tx circuit + +Transactions commands for the circuit module + +``` +okp4d tx circuit [flags] +``` + +### Options + +``` + -h, --help help for circuit +``` + +### SEE ALSO + +* [okp4d tx](okp4d_tx.md) - Transactions subcommands +* [okp4d tx circuit authorize](okp4d_tx_circuit_authorize.md) - Authorize an account to trip the circuit breaker. +* [okp4d tx circuit disable](okp4d_tx_circuit_disable.md) - Disable a message from being executed +* [okp4d tx circuit reset](okp4d_tx_circuit_reset.md) - Enable a message to be executed diff --git a/docs/command/okp4d_tx_gov_submit-legacy-proposal_update-client.md b/docs/command/okp4d_tx_circuit_authorize.md similarity index 72% rename from docs/command/okp4d_tx_gov_submit-legacy-proposal_update-client.md rename to docs/command/okp4d_tx_circuit_authorize.md index 80f28b7b..25d50438 100644 --- a/docs/command/okp4d_tx_gov_submit-legacy-proposal_update-client.md +++ b/docs/command/okp4d_tx_circuit_authorize.md @@ -1,15 +1,22 @@ -## okp4d tx gov submit-legacy-proposal update-client +## okp4d tx circuit authorize -Submit an update IBC client proposal +Authorize an account to trip the circuit breaker. ### Synopsis -Submit an update IBC client proposal along with an initial deposit. -Please specify a subject client identifier you want to update.. -Please specify the substitute client the subject client will be updated to. +Authorize an account to trip the circuit breaker. +"SOME_MSGS" = 1, +"ALL_MSGS" = 2, +"SUPER_ADMIN" = 3, ``` -okp4d tx gov submit-legacy-proposal update-client [subject-client-id] [substitute-client-id] [flags] +okp4d tx circuit authorize [grantee] [permissions_json] --from [granter] [flags] +``` + +### Examples + +``` +okp4d circuit authorize [address] '{"level":1,"limit_type_urls":["cosmos.bank.v1beta1.MsgSend,cosmos.bank.v1beta1.MsgMultiSend"]}'" ``` ### Options @@ -18,9 +25,7 @@ okp4d tx gov submit-legacy-proposal update-client [subject-client-id] [substitut -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") - --deposit string deposit of proposal - --description string description of proposal + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -30,22 +35,21 @@ okp4d tx gov submit-legacy-proposal update-client [subject-client-id] [substitut --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) - -h, --help help for update-client - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + -h, --help help for authorize + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator - --title string title of proposal -y, --yes Skip tx broadcasting prompt confirmation ``` ### SEE ALSO -* [okp4d tx gov submit-legacy-proposal](okp4d_tx_gov_submit-legacy-proposal.md) - Submit a legacy proposal along with an initial deposit +* [okp4d tx circuit](okp4d_tx_circuit.md) - Transactions commands for the circuit module diff --git a/docs/command/okp4d_tx_circuit_disable.md b/docs/command/okp4d_tx_circuit_disable.md new file mode 100644 index 00000000..d27cd062 --- /dev/null +++ b/docs/command/okp4d_tx_circuit_disable.md @@ -0,0 +1,48 @@ +## okp4d tx circuit disable + +Disable a message from being executed + +``` +okp4d tx circuit disable [msg_type_urls] [flags] +``` + +### Examples + +``` +okp4d circuit disable "cosmos.bank.v1beta1.MsgSend cosmos.bank.v1beta1.MsgMultiSend" +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for disable + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx circuit](okp4d_tx_circuit.md) - Transactions commands for the circuit module diff --git a/docs/command/okp4d_tx_circuit_reset.md b/docs/command/okp4d_tx_circuit_reset.md new file mode 100644 index 00000000..99c18e76 --- /dev/null +++ b/docs/command/okp4d_tx_circuit_reset.md @@ -0,0 +1,48 @@ +## okp4d tx circuit reset + +Enable a message to be executed + +``` +okp4d tx circuit reset [msg_type_urls] [flags] +``` + +### Examples + +``` +okp4d circuit reset "cosmos.bank.v1beta1.MsgSend cosmos.bank.v1beta1.MsgMultiSend" +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for reset + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx circuit](okp4d_tx_circuit.md) - Transactions commands for the circuit module diff --git a/docs/command/okp4d_tx_consensus.md b/docs/command/okp4d_tx_consensus.md new file mode 100644 index 00000000..2aa6e8fe --- /dev/null +++ b/docs/command/okp4d_tx_consensus.md @@ -0,0 +1,17 @@ +## okp4d tx consensus + +Transactions commands for the consensus module + +``` +okp4d tx consensus [flags] +``` + +### Options + +``` + -h, --help help for consensus +``` + +### SEE ALSO + +* [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_crisis.md b/docs/command/okp4d_tx_crisis.md index aa450749..760dfbf5 100644 --- a/docs/command/okp4d_tx_crisis.md +++ b/docs/command/okp4d_tx_crisis.md @@ -1,6 +1,6 @@ ## okp4d tx crisis -Crisis transactions subcommands +Transactions commands for the crisis module ``` okp4d tx crisis [flags] @@ -12,13 +12,7 @@ okp4d tx crisis [flags] -h, --help help for crisis ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands -* [okp4d tx crisis invariant-broken](okp4d_tx_crisis_invariant-broken.md) - Submit proof that an invariant broken to halt the chain +* [okp4d tx crisis invariant-broken](okp4d_tx_crisis_invariant-broken.md) - Submit proof that an invariant broken diff --git a/docs/command/okp4d_tx_crisis_invariant-broken.md b/docs/command/okp4d_tx_crisis_invariant-broken.md index f8dd5202..561a62d0 100644 --- a/docs/command/okp4d_tx_crisis_invariant-broken.md +++ b/docs/command/okp4d_tx_crisis_invariant-broken.md @@ -1,9 +1,9 @@ ## okp4d tx crisis invariant-broken -Submit proof that an invariant broken to halt the chain +Submit proof that an invariant broken ``` -okp4d tx crisis invariant-broken [module-name] [invariant-route] [flags] +okp4d tx crisis invariant-broken [module-name] [invariant-route] --from mykey [flags] ``` ### Options @@ -12,7 +12,7 @@ okp4d tx crisis invariant-broken [module-name] [invariant-route] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx crisis invariant-broken [module-name] [invariant-route] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for invariant-broken - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation @@ -39,4 +39,4 @@ okp4d tx crisis invariant-broken [module-name] [invariant-route] [flags] ### SEE ALSO -* [okp4d tx crisis](okp4d_tx_crisis.md) - Crisis transactions subcommands +* [okp4d tx crisis](okp4d_tx_crisis.md) - Transactions commands for the crisis module diff --git a/docs/command/okp4d_tx_decode.md b/docs/command/okp4d_tx_decode.md index cdc7ef56..029f49de 100644 --- a/docs/command/okp4d_tx_decode.md +++ b/docs/command/okp4d_tx_decode.md @@ -27,12 +27,11 @@ okp4d tx decode [protobuf-byte-string] [flags] --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) - -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_distribution.md b/docs/command/okp4d_tx_distribution.md index ef3bad6c..5ecde879 100644 --- a/docs/command/okp4d_tx_distribution.md +++ b/docs/command/okp4d_tx_distribution.md @@ -12,16 +12,11 @@ okp4d tx distribution [flags] -h, --help help for distribution ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands * [okp4d tx distribution fund-community-pool](okp4d_tx_distribution_fund-community-pool.md) - Funds the community pool with the specified amount +* [okp4d tx distribution fund-validator-rewards-pool](okp4d_tx_distribution_fund-validator-rewards-pool.md) - Fund the validator rewards pool with the specified amount * [okp4d tx distribution set-withdraw-addr](okp4d_tx_distribution_set-withdraw-addr.md) - change the default withdraw address for rewards associated with an address * [okp4d tx distribution withdraw-all-rewards](okp4d_tx_distribution_withdraw-all-rewards.md) - withdraw all delegations rewards for a delegator * [okp4d tx distribution withdraw-rewards](okp4d_tx_distribution_withdraw-rewards.md) - Withdraw rewards from a given delegation address, and optionally withdraw validator commission if the delegation address given is a validator operator diff --git a/docs/command/okp4d_tx_distribution_fund-community-pool.md b/docs/command/okp4d_tx_distribution_fund-community-pool.md index 23980d0c..6cf1eb05 100644 --- a/docs/command/okp4d_tx_distribution_fund-community-pool.md +++ b/docs/command/okp4d_tx_distribution_fund-community-pool.md @@ -19,7 +19,7 @@ okp4d tx distribution fund-community-pool [amount] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -30,15 +30,15 @@ okp4d tx distribution fund-community-pool [amount] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for fund-community-pool - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_distribution_fund-validator-rewards-pool.md b/docs/command/okp4d_tx_distribution_fund-validator-rewards-pool.md new file mode 100644 index 00000000..5a77adb8 --- /dev/null +++ b/docs/command/okp4d_tx_distribution_fund-validator-rewards-pool.md @@ -0,0 +1,48 @@ +## okp4d tx distribution fund-validator-rewards-pool + +Fund the validator rewards pool with the specified amount + +``` +okp4d tx distribution fund-validator-rewards-pool [val_addr] [amount] [flags] +``` + +### Examples + +``` +okp4d tx distribution fund-validator-rewards-pool cosmosvaloper1x20lytyf6zkcrv5edpkfkn8sz578qg5sqfyqnp 100uatom --from mykey +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for fund-validator-rewards-pool + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx distribution](okp4d_tx_distribution.md) - Distribution transactions subcommands diff --git a/docs/command/okp4d_tx_distribution_set-withdraw-addr.md b/docs/command/okp4d_tx_distribution_set-withdraw-addr.md index 8163e201..f92a6f0e 100644 --- a/docs/command/okp4d_tx_distribution_set-withdraw-addr.md +++ b/docs/command/okp4d_tx_distribution_set-withdraw-addr.md @@ -19,7 +19,7 @@ okp4d tx distribution set-withdraw-addr [withdraw-addr] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -30,15 +30,15 @@ okp4d tx distribution set-withdraw-addr [withdraw-addr] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for set-withdraw-addr - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_distribution_withdraw-all-rewards.md b/docs/command/okp4d_tx_distribution_withdraw-all-rewards.md index 27dbad53..67bba3d3 100644 --- a/docs/command/okp4d_tx_distribution_withdraw-all-rewards.md +++ b/docs/command/okp4d_tx_distribution_withdraw-all-rewards.md @@ -20,7 +20,7 @@ okp4d tx distribution withdraw-all-rewards [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -31,16 +31,16 @@ okp4d tx distribution withdraw-all-rewards [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for withdraw-all-rewards - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device --max-msgs int Limit the number of messages per tx (0 for unlimited) - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_distribution_withdraw-rewards.md b/docs/command/okp4d_tx_distribution_withdraw-rewards.md index 950a8a73..8209c99e 100644 --- a/docs/command/okp4d_tx_distribution_withdraw-rewards.md +++ b/docs/command/okp4d_tx_distribution_withdraw-rewards.md @@ -21,7 +21,7 @@ okp4d tx distribution withdraw-rewards [validator-addr] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --commission Withdraw the validator's commission in addition to the rewards --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction @@ -33,15 +33,15 @@ okp4d tx distribution withdraw-rewards [validator-addr] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for withdraw-rewards - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_encode.md b/docs/command/okp4d_tx_encode.md index b9136c44..efa8bb34 100644 --- a/docs/command/okp4d_tx_encode.md +++ b/docs/command/okp4d_tx_encode.md @@ -32,12 +32,11 @@ okp4d tx encode [file] [flags] --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) - -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_evidence.md b/docs/command/okp4d_tx_evidence.md index 4ee397a7..8dd74d7d 100644 --- a/docs/command/okp4d_tx_evidence.md +++ b/docs/command/okp4d_tx_evidence.md @@ -12,12 +12,6 @@ okp4d tx evidence [flags] -h, --help help for evidence ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_feegrant.md b/docs/command/okp4d_tx_feegrant.md index a049039f..e8902c8b 100644 --- a/docs/command/okp4d_tx_feegrant.md +++ b/docs/command/okp4d_tx_feegrant.md @@ -1,6 +1,6 @@ ## okp4d tx feegrant -Feegrant transactions subcommands +Feegrant transactions sub-commands ### Synopsis @@ -16,14 +16,9 @@ okp4d tx feegrant [flags] -h, --help help for feegrant ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands * [okp4d tx feegrant grant](okp4d_tx_feegrant_grant.md) - Grant Fee allowance to an address -* [okp4d tx feegrant revoke](okp4d_tx_feegrant_revoke.md) - revoke fee-grant +* [okp4d tx feegrant prune](okp4d_tx_feegrant_prune.md) - Prune expired allowances +* [okp4d tx feegrant revoke](okp4d_tx_feegrant_revoke.md) - Revoke a fee grant diff --git a/docs/command/okp4d_tx_feegrant_grant.md b/docs/command/okp4d_tx_feegrant_grant.md index 8affc6c2..82be35d2 100644 --- a/docs/command/okp4d_tx_feegrant_grant.md +++ b/docs/command/okp4d_tx_feegrant_grant.md @@ -4,7 +4,7 @@ Grant Fee allowance to an address ### Synopsis -Grant authorization to pay fees from your address. Note, the'--from' flag is +Grant authorization to pay fees from your address. Note, the '--from' flag is ignored as it is implied from [granter]. Examples: @@ -24,7 +24,7 @@ okp4d tx feegrant grant [granter_key_or_address] [grantee] [flags] --allowed-messages strings Set of allowed messages for fee allowance --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --expiration string The RFC 3339 timestamp after which the grant expires for the user --fee-granter string Fee granter grants fees for the transaction @@ -36,17 +36,17 @@ okp4d tx feegrant grant [granter_key_or_address] [grantee] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for grant - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") --period int period specifies the time duration(in seconds) in which period_limit coins can be spent before that allowance is reset (ex: 3600) --period-limit string period limit specifies the maximum number of coins that can be spent in the period -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --spend-limit string Spend limit specifies the max limit can be used, if not mentioned there is no limit --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator @@ -55,4 +55,4 @@ okp4d tx feegrant grant [granter_key_or_address] [grantee] [flags] ### SEE ALSO -* [okp4d tx feegrant](okp4d_tx_feegrant.md) - Feegrant transactions subcommands +* [okp4d tx feegrant](okp4d_tx_feegrant.md) - Feegrant transactions sub-commands diff --git a/docs/command/okp4d_tx_feegrant_prune.md b/docs/command/okp4d_tx_feegrant_prune.md new file mode 100644 index 00000000..7162acfd --- /dev/null +++ b/docs/command/okp4d_tx_feegrant_prune.md @@ -0,0 +1,52 @@ +## okp4d tx feegrant prune + +Prune expired allowances + +### Synopsis + +Prune up to 75 expired allowances in order to reduce the size of the store when the number of expired allowances is large. + +``` +okp4d tx feegrant prune [flags] +``` + +### Examples + +``` +$ okp4d tx feegrant prune --from [mykey] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for prune + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx feegrant](okp4d_tx_feegrant.md) - Feegrant transactions sub-commands diff --git a/docs/command/okp4d_tx_feegrant_revoke.md b/docs/command/okp4d_tx_feegrant_revoke.md index fb84324e..0b2e512e 100644 --- a/docs/command/okp4d_tx_feegrant_revoke.md +++ b/docs/command/okp4d_tx_feegrant_revoke.md @@ -1,26 +1,28 @@ ## okp4d tx feegrant revoke -revoke fee-grant +Revoke a fee grant ### Synopsis -revoke fee grant from a granter to a grantee. Note, the'--from' flag is - ignored as it is implied from [granter]. - -Example: - $ okp4d tx feegrant revoke cosmos1skj.. cosmos1skj.. +Revoke fee grant from a granter to a grantee. Note, the '--from' flag is ignored as it is implied from [granter] ``` okp4d tx feegrant revoke [granter] [grantee] [flags] ``` +### Examples + +``` +$ okp4d tx feegrant revoke [granter] [grantee] +``` + ### Options ``` -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -31,15 +33,15 @@ okp4d tx feegrant revoke [granter] [grantee] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for revoke - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation @@ -47,4 +49,4 @@ okp4d tx feegrant revoke [granter] [grantee] [flags] ### SEE ALSO -* [okp4d tx feegrant](okp4d_tx_feegrant.md) - Feegrant transactions subcommands +* [okp4d tx feegrant](okp4d_tx_feegrant.md) - Feegrant transactions sub-commands diff --git a/docs/command/okp4d_tx_gov.md b/docs/command/okp4d_tx_gov.md index dc68bd30..3857243e 100644 --- a/docs/command/okp4d_tx_gov.md +++ b/docs/command/okp4d_tx_gov.md @@ -12,15 +12,10 @@ okp4d tx gov [flags] -h, --help help for gov ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands +* [okp4d tx gov cancel-proposal](okp4d_tx_gov_cancel-proposal.md) - Cancel governance proposal before the voting period ends. Must be signed by the proposal creator. * [okp4d tx gov deposit](okp4d_tx_gov_deposit.md) - Deposit tokens for an active proposal * [okp4d tx gov draft-proposal](okp4d_tx_gov_draft-proposal.md) - Generate a draft proposal json file. The generated proposal json contains only one message (skeleton). * [okp4d tx gov submit-legacy-proposal](okp4d_tx_gov_submit-legacy-proposal.md) - Submit a legacy proposal along with an initial deposit diff --git a/docs/command/okp4d_tx_gov_cancel-proposal.md b/docs/command/okp4d_tx_gov_cancel-proposal.md new file mode 100644 index 00000000..4f4430dd --- /dev/null +++ b/docs/command/okp4d_tx_gov_cancel-proposal.md @@ -0,0 +1,48 @@ +## okp4d tx gov cancel-proposal + +Cancel governance proposal before the voting period ends. Must be signed by the proposal creator. + +``` +okp4d tx gov cancel-proposal [proposal-id] [flags] +``` + +### Examples + +``` +$ okp4d tx gov cancel-proposal 1 --from mykey +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for cancel-proposal + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx gov](okp4d_tx_gov.md) - Governance transactions subcommands diff --git a/docs/command/okp4d_tx_gov_deposit.md b/docs/command/okp4d_tx_gov_deposit.md index 4dfc05b4..dc54497b 100644 --- a/docs/command/okp4d_tx_gov_deposit.md +++ b/docs/command/okp4d_tx_gov_deposit.md @@ -20,7 +20,7 @@ okp4d tx gov deposit [proposal-id] [deposit] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -31,15 +31,15 @@ okp4d tx gov deposit [proposal-id] [deposit] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for deposit - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_gov_draft-proposal.md b/docs/command/okp4d_tx_gov_draft-proposal.md index 7c8702f3..1b9204ee 100644 --- a/docs/command/okp4d_tx_gov_draft-proposal.md +++ b/docs/command/okp4d_tx_gov_draft-proposal.md @@ -12,7 +12,7 @@ okp4d tx gov draft-proposal [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,16 @@ okp4d tx gov draft-proposal [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for draft-proposal - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --skip-metadata skip metadata prompt --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_gov_submit-legacy-proposal.md b/docs/command/okp4d_tx_gov_submit-legacy-proposal.md index c8397b7d..aa5e0298 100644 --- a/docs/command/okp4d_tx_gov_submit-legacy-proposal.md +++ b/docs/command/okp4d_tx_gov_submit-legacy-proposal.md @@ -33,7 +33,7 @@ okp4d tx gov submit-legacy-proposal [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string The proposal deposit --description string The proposal description --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) @@ -46,16 +46,16 @@ okp4d tx gov submit-legacy-proposal [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for submit-legacy-proposal - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") --proposal string Proposal file path (if this path is given, other proposal flags are ignored) -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator --title string The proposal title @@ -66,8 +66,3 @@ okp4d tx gov submit-legacy-proposal [flags] ### SEE ALSO * [okp4d tx gov](okp4d_tx_gov.md) - Governance transactions subcommands -* [okp4d tx gov submit-legacy-proposal cancel-software-upgrade](okp4d_tx_gov_submit-legacy-proposal_cancel-software-upgrade.md) - Cancel the current software upgrade proposal -* [okp4d tx gov submit-legacy-proposal ibc-upgrade](okp4d_tx_gov_submit-legacy-proposal_ibc-upgrade.md) - Submit an IBC upgrade proposal -* [okp4d tx gov submit-legacy-proposal param-change](okp4d_tx_gov_submit-legacy-proposal_param-change.md) - Submit a parameter change proposal -* [okp4d tx gov submit-legacy-proposal software-upgrade](okp4d_tx_gov_submit-legacy-proposal_software-upgrade.md) - Submit a software upgrade proposal -* [okp4d tx gov submit-legacy-proposal update-client](okp4d_tx_gov_submit-legacy-proposal_update-client.md) - Submit an update IBC client proposal diff --git a/docs/command/okp4d_tx_gov_submit-proposal.md b/docs/command/okp4d_tx_gov_submit-proposal.md index 84db5d25..f29344eb 100644 --- a/docs/command/okp4d_tx_gov_submit-proposal.md +++ b/docs/command/okp4d_tx_gov_submit-proposal.md @@ -24,10 +24,11 @@ Where proposal.json contains: ], // metadata can be any of base64 encoded, raw text, stringified json, IPFS link to json // see below for example metadata - "metadata: "4pIMOgIGx1vZGU=", - "deposit": "10stake" - "title: "My proposal" - "summary": "A short summary of my proposal" + "metadata": "4pIMOgIGx1vZGU=", + "deposit": "10stake", + "title": "My proposal", + "summary": "A short summary of my proposal", + "expedited": false \} metadata example: @@ -50,7 +51,7 @@ okp4d tx gov submit-proposal [path/to/proposal.json] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -61,15 +62,15 @@ okp4d tx gov submit-proposal [path/to/proposal.json] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for submit-proposal - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_gov_vote.md b/docs/command/okp4d_tx_gov_vote.md index 069bdfd3..c0fa07bb 100644 --- a/docs/command/okp4d_tx_gov_vote.md +++ b/docs/command/okp4d_tx_gov_vote.md @@ -20,7 +20,7 @@ okp4d tx gov vote [proposal-id] [option] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -31,16 +31,16 @@ okp4d tx gov vote [proposal-id] [option] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for vote - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device --metadata string Specify metadata of the vote - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_gov_weighted-vote.md b/docs/command/okp4d_tx_gov_weighted-vote.md index 4263ed97..516cf85a 100644 --- a/docs/command/okp4d_tx_gov_weighted-vote.md +++ b/docs/command/okp4d_tx_gov_weighted-vote.md @@ -20,7 +20,7 @@ okp4d tx gov weighted-vote [proposal-id] [weighted-options] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -31,16 +31,16 @@ okp4d tx gov weighted-vote [proposal-id] [weighted-options] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for weighted-vote - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device --metadata string Specify metadata of the weighted vote - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group.md b/docs/command/okp4d_tx_group.md index de7b42f2..3362f464 100644 --- a/docs/command/okp4d_tx_group.md +++ b/docs/command/okp4d_tx_group.md @@ -12,12 +12,6 @@ okp4d tx group [flags] -h, --help help for group ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_group_create-group-policy.md b/docs/command/okp4d_tx_group_create-group-policy.md index f3c2ef4f..5610338b 100644 --- a/docs/command/okp4d_tx_group_create-group-policy.md +++ b/docs/command/okp4d_tx_group_create-group-policy.md @@ -41,7 +41,7 @@ Here, we can use percentage decision policy when needed, where 0 < percentage <= -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -52,15 +52,15 @@ Here, we can use percentage decision policy when needed, where 0 < percentage <= --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for create-group-policy - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_create-group-with-policy.md b/docs/command/okp4d_tx_group_create-group-with-policy.md index a8635f0c..9f7ff09f 100644 --- a/docs/command/okp4d_tx_group_create-group-with-policy.md +++ b/docs/command/okp4d_tx_group_create-group-with-policy.md @@ -55,7 +55,7 @@ and policy.json contains: -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -67,15 +67,15 @@ and policy.json contains: --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) --group-policy-as-admin Sets admin of the newly created group and group policy with group policy address itself when true -h, --help help for create-group-with-policy - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_create-group.md b/docs/command/okp4d_tx_group_create-group.md index b16a5842..0e14397c 100644 --- a/docs/command/okp4d_tx_group_create-group.md +++ b/docs/command/okp4d_tx_group_create-group.md @@ -41,7 +41,7 @@ Where members.json contains: -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -52,15 +52,15 @@ Where members.json contains: --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for create-group - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_draft-proposal.md b/docs/command/okp4d_tx_group_draft-proposal.md index a5b9da6c..127ddef8 100644 --- a/docs/command/okp4d_tx_group_draft-proposal.md +++ b/docs/command/okp4d_tx_group_draft-proposal.md @@ -12,7 +12,7 @@ okp4d tx group draft-proposal [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,16 @@ okp4d tx group draft-proposal [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for draft-proposal - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --skip-metadata skip metadata prompt --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_exec.md b/docs/command/okp4d_tx_group_exec.md index 5a39fa2c..dedfe6cb 100644 --- a/docs/command/okp4d_tx_group_exec.md +++ b/docs/command/okp4d_tx_group_exec.md @@ -12,7 +12,7 @@ okp4d tx group exec [proposal-id] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx group exec [proposal-id] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for exec - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_leave-group.md b/docs/command/okp4d_tx_group_leave-group.md index 89fefe5d..1540f1db 100644 --- a/docs/command/okp4d_tx_group_leave-group.md +++ b/docs/command/okp4d_tx_group_leave-group.md @@ -21,7 +21,7 @@ okp4d tx group leave-group [member-address] [group-id] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -32,15 +32,15 @@ okp4d tx group leave-group [member-address] [group-id] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for leave-group - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_submit-proposal.md b/docs/command/okp4d_tx_group_submit-proposal.md index 0606ba47..82c7b22d 100644 --- a/docs/command/okp4d_tx_group_submit-proposal.md +++ b/docs/command/okp4d_tx_group_submit-proposal.md @@ -29,13 +29,13 @@ okp4d tx group submit-proposal path/to/proposal.json "from_address": "cosmos1...", "to_address": "cosmos1...", "amount":[{"denom": "stake","amount": "10"}] - "title": "My proposal", - "summary": "This is a proposal to send 10 stake to cosmos1...", } ], // metadata can be any of base64 encoded, raw text, stringified json, IPFS link to json // see below for example metadata "metadata": "4pIMOgIGx1vZGU=", // base64-encoded metadata + "title": "My proposal", + "summary": "This is a proposal to send 10 stake to cosmos1...", "proposers": ["cosmos1...", "cosmos1..."], } @@ -57,7 +57,7 @@ metadata example: -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --exec string Set to 1 to try to execute proposal immediately after creation (proposers signatures are considered as Yes votes) --fee-granter string Fee granter grants fees for the transaction @@ -69,15 +69,15 @@ metadata example: --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for submit-proposal - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_update-group-admin.md b/docs/command/okp4d_tx_group_update-group-admin.md index 8771f8df..c941162c 100644 --- a/docs/command/okp4d_tx_group_update-group-admin.md +++ b/docs/command/okp4d_tx_group_update-group-admin.md @@ -12,7 +12,7 @@ okp4d tx group update-group-admin [admin] [group-id] [new-admin] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx group update-group-admin [admin] [group-id] [new-admin] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for update-group-admin - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_update-group-members.md b/docs/command/okp4d_tx_group_update-group-members.md index 0135ad6b..4e0b4459 100644 --- a/docs/command/okp4d_tx_group_update-group-members.md +++ b/docs/command/okp4d_tx_group_update-group-members.md @@ -39,7 +39,7 @@ Set a member's weight to "0" to delete it. -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -50,15 +50,15 @@ Set a member's weight to "0" to delete it. --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for update-group-members - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_update-group-metadata.md b/docs/command/okp4d_tx_group_update-group-metadata.md index e48c69cb..ec35833f 100644 --- a/docs/command/okp4d_tx_group_update-group-metadata.md +++ b/docs/command/okp4d_tx_group_update-group-metadata.md @@ -12,7 +12,7 @@ okp4d tx group update-group-metadata [admin] [group-id] [metadata] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx group update-group-metadata [admin] [group-id] [metadata] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for update-group-metadata - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_update-group-policy-admin.md b/docs/command/okp4d_tx_group_update-group-policy-admin.md index da3e1cce..20d98c2e 100644 --- a/docs/command/okp4d_tx_group_update-group-policy-admin.md +++ b/docs/command/okp4d_tx_group_update-group-policy-admin.md @@ -12,7 +12,7 @@ okp4d tx group update-group-policy-admin [admin] [group-policy-account] [new-adm -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx group update-group-policy-admin [admin] [group-policy-account] [new-adm --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for update-group-policy-admin - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_update-group-policy-decision-policy.md b/docs/command/okp4d_tx_group_update-group-policy-decision-policy.md index 6b5cdd97..255b64f7 100644 --- a/docs/command/okp4d_tx_group_update-group-policy-decision-policy.md +++ b/docs/command/okp4d_tx_group_update-group-policy-decision-policy.md @@ -12,7 +12,7 @@ okp4d tx group update-group-policy-decision-policy [admin] [group-policy-account -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx group update-group-policy-decision-policy [admin] [group-policy-account --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for update-group-policy-decision-policy - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_update-group-policy-metadata.md b/docs/command/okp4d_tx_group_update-group-policy-metadata.md index b306e6e4..9791b6be 100644 --- a/docs/command/okp4d_tx_group_update-group-policy-metadata.md +++ b/docs/command/okp4d_tx_group_update-group-policy-metadata.md @@ -12,7 +12,7 @@ okp4d tx group update-group-policy-metadata [admin] [group-policy-account] [new- -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx group update-group-policy-metadata [admin] [group-policy-account] [new- --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for update-group-policy-metadata - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_vote.md b/docs/command/okp4d_tx_group_vote.md index 372a096d..526c69f4 100644 --- a/docs/command/okp4d_tx_group_vote.md +++ b/docs/command/okp4d_tx_group_vote.md @@ -27,7 +27,7 @@ okp4d tx group vote [proposal-id] [voter] [vote-option] [metadata] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --exec string Set to 1 to try to execute proposal immediately after voting --fee-granter string Fee granter grants fees for the transaction @@ -39,15 +39,15 @@ okp4d tx group vote [proposal-id] [voter] [vote-option] [metadata] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for vote - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_group_withdraw-proposal.md b/docs/command/okp4d_tx_group_withdraw-proposal.md index 03a5a8b7..60c6db48 100644 --- a/docs/command/okp4d_tx_group_withdraw-proposal.md +++ b/docs/command/okp4d_tx_group_withdraw-proposal.md @@ -21,7 +21,7 @@ okp4d tx group withdraw-proposal [proposal-id] [group-policy-admin-or-proposer] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -32,15 +32,15 @@ okp4d tx group withdraw-proposal [proposal-id] [group-policy-admin-or-proposer] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for withdraw-proposal - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_ibc-fee.md b/docs/command/okp4d_tx_ibc-fee.md index 8f65edaa..ed8ff640 100644 --- a/docs/command/okp4d_tx_ibc-fee.md +++ b/docs/command/okp4d_tx_ibc-fee.md @@ -12,12 +12,6 @@ okp4d tx ibc-fee [flags] -h, --help help for ibc-fee ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_ibc-fee_pay-packet-fee.md b/docs/command/okp4d_tx_ibc-fee_pay-packet-fee.md index 89e9e856..7fd50cb9 100644 --- a/docs/command/okp4d_tx_ibc-fee_pay-packet-fee.md +++ b/docs/command/okp4d_tx_ibc-fee_pay-packet-fee.md @@ -23,7 +23,7 @@ okp4d tx ibc-fee pay-packet-fee transfer channel-0 1 --recv-fee 10stake --ack-fe --ack-fee string Fee paid to a relayer for relaying a packet acknowledgement. --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -34,16 +34,16 @@ okp4d tx ibc-fee pay-packet-fee transfer channel-0 1 --recv-fee 10stake --ack-fe --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for pay-packet-fee - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") --recv-fee string Fee paid to a relayer for relaying a packet receive. -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-fee string Fee paid to a relayer for relaying a packet timeout. --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_ibc-fee_register-counterparty-payee.md b/docs/command/okp4d_tx_ibc-fee_register-counterparty-payee.md index 56d8d0b9..516f9a9a 100644 --- a/docs/command/okp4d_tx_ibc-fee_register-counterparty-payee.md +++ b/docs/command/okp4d_tx_ibc-fee_register-counterparty-payee.md @@ -22,7 +22,7 @@ okp4d tx ibc-fee register-counterparty-payee transfer channel-0 cosmos1rsp837a4k -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -33,15 +33,15 @@ okp4d tx ibc-fee register-counterparty-payee transfer channel-0 cosmos1rsp837a4k --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for register-counterparty-payee - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_ibc-fee_register-payee.md b/docs/command/okp4d_tx_ibc-fee_register-payee.md index f7c9eb0d..373609b3 100644 --- a/docs/command/okp4d_tx_ibc-fee_register-payee.md +++ b/docs/command/okp4d_tx_ibc-fee_register-payee.md @@ -22,7 +22,7 @@ okp4d tx ibc-fee register-payee transfer channel-0 cosmos1rsp837a4kvtgp2m4uqzdge -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -33,15 +33,15 @@ okp4d tx ibc-fee register-payee transfer channel-0 cosmos1rsp837a4kvtgp2m4uqzdge --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for register-payee - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_ibc-transfer.md b/docs/command/okp4d_tx_ibc-transfer.md index 3a580547..c0417d4c 100644 --- a/docs/command/okp4d_tx_ibc-transfer.md +++ b/docs/command/okp4d_tx_ibc-transfer.md @@ -12,12 +12,6 @@ okp4d tx ibc-transfer [flags] -h, --help help for ibc-transfer ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_ibc-transfer_transfer.md b/docs/command/okp4d_tx_ibc-transfer_transfer.md index b53063f3..bda56d2d 100644 --- a/docs/command/okp4d_tx_ibc-transfer_transfer.md +++ b/docs/command/okp4d_tx_ibc-transfer_transfer.md @@ -28,7 +28,7 @@ okp4d tx ibc-transfer transfer [src-port] [src-channel] [receiver] [amount] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -39,18 +39,18 @@ okp4d tx ibc-transfer transfer [src-port] [src-channel] [receiver] [amount] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for transfer - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device --memo string Memo to be sent along with the packet. - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") --packet-timeout-height string Packet timeout block height. The timeout is disabled when set to 0-0. (default "0-1000") --packet-timeout-timestamp uint Packet timeout timestamp in nanoseconds from now. Default is 10 minutes. The timeout is disabled when set to 0. (default 600000000000) -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_ibc.md b/docs/command/okp4d_tx_ibc.md index 1de45d57..302a6ba6 100644 --- a/docs/command/okp4d_tx_ibc.md +++ b/docs/command/okp4d_tx_ibc.md @@ -12,12 +12,6 @@ okp4d tx ibc [flags] -h, --help help for ibc ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_ibc_channel.md b/docs/command/okp4d_tx_ibc_channel.md index f72cc495..4ddc9138 100644 --- a/docs/command/okp4d_tx_ibc_channel.md +++ b/docs/command/okp4d_tx_ibc_channel.md @@ -12,12 +12,6 @@ okp4d tx ibc channel [flags] -h, --help help for channel ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx ibc](okp4d_tx_ibc.md) - IBC transaction subcommands diff --git a/docs/command/okp4d_tx_ibc_client.md b/docs/command/okp4d_tx_ibc_client.md index c8fbe86c..f5522a94 100644 --- a/docs/command/okp4d_tx_ibc_client.md +++ b/docs/command/okp4d_tx_ibc_client.md @@ -12,16 +12,12 @@ okp4d tx ibc client [flags] -h, --help help for client ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx ibc](okp4d_tx_ibc.md) - IBC transaction subcommands * [okp4d tx ibc client create](okp4d_tx_ibc_client_create.md) - create new IBC client * [okp4d tx ibc client misbehaviour](okp4d_tx_ibc_client_misbehaviour.md) - submit a client misbehaviour +* [okp4d tx ibc client recover-client](okp4d_tx_ibc_client_recover-client.md) - recover an IBC client +* [okp4d tx ibc client schedule-ibc-upgrade](okp4d_tx_ibc_client_schedule-ibc-upgrade.md) - Submit an IBC software upgrade proposal * [okp4d tx ibc client update](okp4d_tx_ibc_client_update.md) - update existing client with a client message * [okp4d tx ibc client upgrade](okp4d_tx_ibc_client_upgrade.md) - upgrade an IBC client diff --git a/docs/command/okp4d_tx_ibc_client_create.md b/docs/command/okp4d_tx_ibc_client_create.md index 14aab933..cc1039ed 100644 --- a/docs/command/okp4d_tx_ibc_client_create.md +++ b/docs/command/okp4d_tx_ibc_client_create.md @@ -24,7 +24,7 @@ okp4d tx ibc client create [path/to/client_state.json] [path/to/consensus_state. -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -35,15 +35,15 @@ okp4d tx ibc client create [path/to/client_state.json] [path/to/consensus_state. --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for create - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_ibc_client_misbehaviour.md b/docs/command/okp4d_tx_ibc_client_misbehaviour.md index 32191512..eff86c24 100644 --- a/docs/command/okp4d_tx_ibc_client_misbehaviour.md +++ b/docs/command/okp4d_tx_ibc_client_misbehaviour.md @@ -22,7 +22,7 @@ okp4d tx ibc client misbehaviour [clientID] [path/to/misbehaviour.json] --from n -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -33,15 +33,15 @@ okp4d tx ibc client misbehaviour [clientID] [path/to/misbehaviour.json] --from n --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for misbehaviour - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_ibc_client_recover-client.md b/docs/command/okp4d_tx_ibc_client_recover-client.md new file mode 100644 index 00000000..a36cb91d --- /dev/null +++ b/docs/command/okp4d_tx_ibc_client_recover-client.md @@ -0,0 +1,53 @@ +## okp4d tx ibc client recover-client + +recover an IBC client + +### Synopsis + +Submit a recover IBC client proposal along with an initial deposit + Please specify a subject client identifier you want to recover + Please specify the substitute client the subject client will be recovered to. + +``` +okp4d tx ibc client recover-client [subject-client-id] [substitute-client-id] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --authority string The address of the client module authority (defaults to gov) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --deposit string The deposit to include with the governance proposal + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for recover-client + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --metadata string The metadata to include with the governance proposal + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --summary string The summary to include with the governance proposal + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + --title string The title to put on the governance proposal + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx ibc client](okp4d_tx_ibc_client.md) - IBC client transaction subcommands diff --git a/docs/command/okp4d_tx_gov_submit-legacy-proposal_ibc-upgrade.md b/docs/command/okp4d_tx_ibc_client_schedule-ibc-upgrade.md similarity index 52% rename from docs/command/okp4d_tx_gov_submit-legacy-proposal_ibc-upgrade.md rename to docs/command/okp4d_tx_ibc_client_schedule-ibc-upgrade.md index c2702975..6d4de938 100644 --- a/docs/command/okp4d_tx_gov_submit-legacy-proposal_ibc-upgrade.md +++ b/docs/command/okp4d_tx_ibc_client_schedule-ibc-upgrade.md @@ -1,34 +1,86 @@ -## okp4d tx gov submit-legacy-proposal ibc-upgrade +## okp4d tx ibc client schedule-ibc-upgrade -Submit an IBC upgrade proposal +Submit an IBC software upgrade proposal ### Synopsis -Submit an IBC client breaking upgrade proposal along with an initial deposit. -The client state specified is the upgraded client state representing the upgraded chain -Example Upgraded Client State JSON: -\{ - "@type":"/ibc.lightclients.tendermint.v1.ClientState", - "chain_id":"testchain1", - "unbonding_period":"1814400s", - "latest_height":\{"revision_number":"0","revision_height":"2"\}, - "proof_specs":[\{"leaf_spec":\{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="\},"inner_spec":\{"child_order":[0,1],"child_size":33,"min_prefix_length":4,"max_prefix_length":12,"empty_child":null,"hash":"SHA256"\},"max_depth":0,"min_depth":0\},\{"leaf_spec":\{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="\},"inner_spec":\{"child_order":[0,1],"child_size":32,"min_prefix_length":1,"max_prefix_length":1,"empty_child":null,"hash":"SHA256"\},"max_depth":0,"min_depth":0\}], - "upgrade_path":["upgrade","upgradedIBCState"], -\} - +Please specify a unique name and height for the upgrade to take effect. + The client state specified is the upgraded client state representing the upgraded chain + + Example Upgraded Client State JSON: + \{ + "@type":"/ibc.lightclients.tendermint.v1.ClientState", + "chain_id":"testchain1", + "unbonding_period":"1814400s", + "latest_height":\{ + "revision_number":"0", + "revision_height":"2" + \}, + "proof_specs":[ + \{ + "leaf_spec":\{ + "hash":"SHA256", + "prehash_key":"NO_HASH", + "prehash_value":"SHA256", + "length":"VAR_PROTO", + "prefix":"AA==" + \}, + "inner_spec":\{ + "child_order":[ + 0, + 1 + ], + "child_size":33, + "min_prefix_length":4, + "max_prefix_length":12, + "empty_child":null, + "hash":"SHA256" + \}, + "max_depth":0, + "min_depth":0 + \}, + \{ + "leaf_spec":\{ + "hash":"SHA256", + "prehash_key":"NO_HASH", + "prehash_value":"SHA256", + "length":"VAR_PROTO", + "prefix":"AA==" + \}, + "inner_spec":\{ + "child_order":[ + 0, + 1 + ], + "child_size":32, + "min_prefix_length":1, + "max_prefix_length":1, + "empty_child":null, + "hash":"SHA256" + \}, + "max_depth":0, + "min_depth":0 + \} + ], + "upgrade_path":[ + "upgrade", + "upgradedIBCState" + ] + \} + ``` -okp4d tx gov submit-legacy-proposal ibc-upgrade [name] [height] [path/to/upgraded_client_state.json] [flags] +okp4d tx ibc client schedule-ibc-upgrade [name] [height] [path/to/upgraded_client_state.json] [flags] ``` ### Options ``` -a, --account-number uint The account number of the signing account (offline mode only) + --authority string The address of the client module authority (defaults to gov) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") - --deposit string deposit of proposal - --description string description of proposal + --chain-id string The network chain ID + --deposit string The deposit to include with the governance proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -38,22 +90,24 @@ okp4d tx gov submit-legacy-proposal ibc-upgrade [name] [height] [path/to/upgrade --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) - -h, --help help for ibc-upgrade - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + -h, --help help for schedule-ibc-upgrade + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --metadata string The metadata to include with the governance proposal + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --summary string The summary to include with the governance proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator - --title string title of proposal + --title string The title to put on the governance proposal -y, --yes Skip tx broadcasting prompt confirmation ``` ### SEE ALSO -* [okp4d tx gov submit-legacy-proposal](okp4d_tx_gov_submit-legacy-proposal.md) - Submit a legacy proposal along with an initial deposit +* [okp4d tx ibc client](okp4d_tx_ibc_client.md) - IBC client transaction subcommands diff --git a/docs/command/okp4d_tx_ibc_client_update.md b/docs/command/okp4d_tx_ibc_client_update.md index 5e4374f0..b8fcc29a 100644 --- a/docs/command/okp4d_tx_ibc_client_update.md +++ b/docs/command/okp4d_tx_ibc_client_update.md @@ -22,7 +22,7 @@ okp4d tx ibc client update [client-id] [path/to/client_msg.json] --from node0 -- -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -33,15 +33,15 @@ okp4d tx ibc client update [client-id] [path/to/client_msg.json] --from node0 -- --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for update - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_ibc_client_upgrade.md b/docs/command/okp4d_tx_ibc_client_upgrade.md index 3c015a17..aefdfac8 100644 --- a/docs/command/okp4d_tx_ibc_client_upgrade.md +++ b/docs/command/okp4d_tx_ibc_client_upgrade.md @@ -24,7 +24,7 @@ okp4d tx ibc client upgrade [client-identifier] [path/to/client_state.json] [pat -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -35,15 +35,15 @@ okp4d tx ibc client upgrade [client-identifier] [path/to/client_state.json] [pat --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for upgrade - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_interchain-accounts.md b/docs/command/okp4d_tx_interchain-accounts.md index 3565e08e..f03c5506 100644 --- a/docs/command/okp4d_tx_interchain-accounts.md +++ b/docs/command/okp4d_tx_interchain-accounts.md @@ -8,12 +8,6 @@ IBC interchain accounts transaction subcommands -h, --help help for interchain-accounts ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_interchain-accounts_controller.md b/docs/command/okp4d_tx_interchain-accounts_controller.md index 1871de0d..90e5c7d9 100644 --- a/docs/command/okp4d_tx_interchain-accounts_controller.md +++ b/docs/command/okp4d_tx_interchain-accounts_controller.md @@ -12,12 +12,6 @@ okp4d tx interchain-accounts controller [flags] -h, --help help for controller ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx interchain-accounts](okp4d_tx_interchain-accounts.md) - IBC interchain accounts transaction subcommands diff --git a/docs/command/okp4d_tx_interchain-accounts_controller_register.md b/docs/command/okp4d_tx_interchain-accounts_controller_register.md index ac7907aa..2f93c626 100644 --- a/docs/command/okp4d_tx_interchain-accounts_controller_register.md +++ b/docs/command/okp4d_tx_interchain-accounts_controller_register.md @@ -21,7 +21,7 @@ okp4d tx interchain-accounts controller register [connection-id] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -32,15 +32,15 @@ okp4d tx interchain-accounts controller register [connection-id] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for register - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator --version string Controller chain channel version diff --git a/docs/command/okp4d_tx_interchain-accounts_controller_send-tx.md b/docs/command/okp4d_tx_interchain-accounts_controller_send-tx.md index 1ef47741..6a56b170 100644 --- a/docs/command/okp4d_tx_interchain-accounts_controller_send-tx.md +++ b/docs/command/okp4d_tx_interchain-accounts_controller_send-tx.md @@ -18,7 +18,7 @@ okp4d tx interchain-accounts controller send-tx [connection-id] [path/to/packet_ -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -29,16 +29,16 @@ okp4d tx interchain-accounts controller send-tx [connection-id] [path/to/packet_ --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for send-tx - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") --relative-packet-timeout uint Relative packet timeout in nanoseconds from now. Default is 10 minutes. (default 600000000000) -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_interchain-accounts_host.md b/docs/command/okp4d_tx_interchain-accounts_host.md index a93e3b71..4bc0ef81 100644 --- a/docs/command/okp4d_tx_interchain-accounts_host.md +++ b/docs/command/okp4d_tx_interchain-accounts_host.md @@ -12,13 +12,7 @@ okp4d tx interchain-accounts host [flags] -h, --help help for host ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx interchain-accounts](okp4d_tx_interchain-accounts.md) - IBC interchain accounts transaction subcommands -* [okp4d tx interchain-accounts host generate-packet-data](okp4d_tx_interchain-accounts_host_generate-packet-data.md) - Generates ICA packet data. +* [okp4d tx interchain-accounts host generate-packet-data](okp4d_tx_interchain-accounts_host_generate-packet-data.md) - Generates protobuf or proto3 JSON encoded ICA packet data. diff --git a/docs/command/okp4d_tx_interchain-accounts_host_generate-packet-data.md b/docs/command/okp4d_tx_interchain-accounts_host_generate-packet-data.md index fa03e3ca..dfebc371 100644 --- a/docs/command/okp4d_tx_interchain-accounts_host_generate-packet-data.md +++ b/docs/command/okp4d_tx_interchain-accounts_host_generate-packet-data.md @@ -1,12 +1,14 @@ ## okp4d tx interchain-accounts host generate-packet-data -Generates ICA packet data. +Generates protobuf or proto3 JSON encoded ICA packet data. ### Synopsis -generate-packet-data accepts a message string and serializes it -into packet data which is outputted to stdout. It can be used in conjunction with send-tx" -which submits pre-built packet data containing messages to be executed on the host chain. +generate-packet-data accepts a message string and serializes it (depending on the +encoding parameter) using protobuf or proto3 JSON into packet data which is outputted to stdout. +It can be used in conjunction with send-tx which submits pre-built packet data containing messages +to be executed on the host chain. The default encoding format is protobuf if none is specified; +otherwise the encoding flag can be used in combination with either "proto3" or "proto3json". ``` okp4d tx interchain-accounts host generate-packet-data [message] [flags] @@ -25,7 +27,7 @@ okp4d tx interchain-accounts host generate-packet-data '{ "amount": "1000" } ] -}' --memo memo +}' --memo memo --encoding proto3json okp4d tx interchain-accounts host generate-packet-data '[{ @@ -53,14 +55,9 @@ okp4d tx interchain-accounts host generate-packet-data '[{ ### Options ``` - -h, --help help for generate-packet-data - --memo string an optional memo to be included in the interchain account packet data -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") + --encoding string optional encoding format of the messages in the interchain accounts packet data + -h, --help help for generate-packet-data + --memo string optional memo to be included in the interchain accounts packet data ``` ### SEE ALSO diff --git a/docs/command/okp4d_tx_logic.md b/docs/command/okp4d_tx_logic.md index 415a0c2a..0f6a0ae4 100644 --- a/docs/command/okp4d_tx_logic.md +++ b/docs/command/okp4d_tx_logic.md @@ -1,6 +1,6 @@ ## okp4d tx logic -logic transactions subcommands +Transactions commands for the logic module ``` okp4d tx logic [flags] @@ -12,12 +12,7 @@ okp4d tx logic [flags] -h, --help help for logic ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands +* [okp4d tx logic update-params](okp4d_tx_logic_update-params.md) - Execute the UpdateParams RPC method diff --git a/docs/command/okp4d_tx_logic_update-params.md b/docs/command/okp4d_tx_logic_update-params.md new file mode 100644 index 00000000..613b0086 --- /dev/null +++ b/docs/command/okp4d_tx_logic_update-params.md @@ -0,0 +1,43 @@ +## okp4d tx logic update-params + +Execute the UpdateParams RPC method + +``` +okp4d tx logic update-params [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for update-params + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + --params logic.v1beta2.Params (json) + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx logic](okp4d_tx_logic.md) - Transactions commands for the logic module diff --git a/docs/command/okp4d_tx_mint.md b/docs/command/okp4d_tx_mint.md new file mode 100644 index 00000000..af8ea749 --- /dev/null +++ b/docs/command/okp4d_tx_mint.md @@ -0,0 +1,18 @@ +## okp4d tx mint + +Transactions commands for the mint module + +``` +okp4d tx mint [flags] +``` + +### Options + +``` + -h, --help help for mint +``` + +### SEE ALSO + +* [okp4d tx](okp4d_tx.md) - Transactions subcommands +* [okp4d tx mint update-params](okp4d_tx_mint_update-params.md) - Execute the UpdateParams RPC method diff --git a/docs/command/okp4d_tx_mint_update-params.md b/docs/command/okp4d_tx_mint_update-params.md new file mode 100644 index 00000000..520b6adc --- /dev/null +++ b/docs/command/okp4d_tx_mint_update-params.md @@ -0,0 +1,43 @@ +## okp4d tx mint update-params + +Execute the UpdateParams RPC method + +``` +okp4d tx mint update-params [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for update-params + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + --params mint.v1beta1.Params (json) + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx mint](okp4d_tx_mint.md) - Transactions commands for the mint module diff --git a/docs/command/okp4d_tx_multi-sign.md b/docs/command/okp4d_tx_multi-sign.md index b8e92559..f8cf87f5 100644 --- a/docs/command/okp4d_tx_multi-sign.md +++ b/docs/command/okp4d_tx_multi-sign.md @@ -30,7 +30,6 @@ okp4d tx multi-sign [file] [name] [[signature]...] [flags] ``` -a, --account-number uint The account number of the signing account (offline mode only) - --amino Generate Amino-encoded JSON suitable for submitting to the txs REST endpoint --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") --chain-id string The network chain ID (default "okp4d") @@ -47,13 +46,12 @@ okp4d tx multi-sign [file] [name] [[signature]...] [flags] --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) - -o, --output string Output format (text|json) (default "json") --output-document string The document is written to the given file instead of STDOUT -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --signature-only Print only the generated signature, then exit --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_gov_submit-legacy-proposal_param-change.md b/docs/command/okp4d_tx_multisign-batch.md similarity index 63% rename from docs/command/okp4d_tx_gov_submit-legacy-proposal_param-change.md rename to docs/command/okp4d_tx_multisign-batch.md index fa9dee45..089b0eb5 100644 --- a/docs/command/okp4d_tx_gov_submit-legacy-proposal_param-change.md +++ b/docs/command/okp4d_tx_multisign-batch.md @@ -1,41 +1,22 @@ -## okp4d tx gov submit-legacy-proposal param-change +## okp4d tx multisign-batch -Submit a parameter change proposal +Assemble multisig transactions in batch from batch signatures ### Synopsis -Submit a parameter proposal along with an initial deposit. -The proposal details must be supplied via a JSON file. For values that contains -objects, only non-empty fields will be updated. +Assemble a batch of multisig transactions generated by batch sign command. -IMPORTANT: Currently parameter changes are evaluated but not validated, so it is -very important that any "value" change is valid (ie. correct type and within bounds) -for its respective parameter, eg. "MaxValidators" should be an integer and not a decimal. - -Proper vetting of a parameter change proposal should prevent this from happening -(no deposits should occur during the governance process), but it should be noted -regardless. +Read one or more signatures from one or more [signature] file, generate a multisig signature compliant to the +multisig key [name], and attach the key name to the transaction read from [file]. Example: -$ okp4d tx gov submit-proposal param-change <path/to/proposal.json> --from=<key_or_address> - -Where proposal.json contains: +$ okp4d tx multisign-batch transactions.json multisigk1k2k3 k1sigs.json k2sigs.json k3sig.json -\{ - "title": "Staking Param Change", - "description": "Update max validators", - "changes": [ - \{ - "subspace": "staking", - "key": "MaxValidators", - "value": 105 - \} - ], - "deposit": "1000stake" -\} +The current multisig implementation defaults to amino-json sign mode. +The SIGN_MODE_DIRECT sign mode is not supported.' ``` -okp4d tx gov submit-legacy-proposal param-change [proposal-file] [flags] +okp4d tx multisign-batch [file] [name] [[signature-file]...] [flags] ``` ### Options @@ -54,16 +35,18 @@ okp4d tx gov submit-legacy-proposal param-change [proposal-file] [flags] --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) - -h, --help help for param-change + -h, --help help for multisign-batch --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --multisig string Address of the multisig account that the transaction signs on behalf of + --no-auto-increment disable sequence auto increment + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) - -o, --output string Output format (text|json) (default "json") + --output-document string The document is written to the given file instead of STDOUT -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation @@ -71,4 +54,4 @@ okp4d tx gov submit-legacy-proposal param-change [proposal-file] [flags] ### SEE ALSO -* [okp4d tx gov submit-legacy-proposal](okp4d_tx_gov_submit-legacy-proposal.md) - Submit a legacy proposal along with an initial deposit +* [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_sign-batch.md b/docs/command/okp4d_tx_sign-batch.md index ce512eea..daee8e63 100644 --- a/docs/command/okp4d_tx_sign-batch.md +++ b/docs/command/okp4d_tx_sign-batch.md @@ -49,13 +49,13 @@ okp4d tx sign-batch [file] ([file2]...) [flags] --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device --multisig string Address or key name of the multisig account on behalf of which the transaction shall be signed - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") --output-document string The document will be written to the given file instead of STDOUT -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --signature-only Print only the generated signature, then exit --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_sign.md b/docs/command/okp4d_tx_sign.md index 55a6c014..7da247e9 100644 --- a/docs/command/okp4d_tx_sign.md +++ b/docs/command/okp4d_tx_sign.md @@ -26,7 +26,6 @@ okp4d tx sign [file] [flags] ``` -a, --account-number uint The account number of the signing account (offline mode only) - --amino Generate Amino encoded JSON suitable for submiting to the txs REST endpoint --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") --chain-id string The network chain ID (default "okp4d") @@ -44,14 +43,14 @@ okp4d tx sign [file] [flags] --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device --multisig string Address or key name of the multisig account on behalf of which the transaction shall be signed - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") --output-document string The document will be written to the given file instead of STDOUT --overwrite Overwrite existing signatures with a new one. If disabled, new signature will be appended -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --signature-only Print only the signatures --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_simulate.md b/docs/command/okp4d_tx_simulate.md new file mode 100644 index 00000000..469f0813 --- /dev/null +++ b/docs/command/okp4d_tx_simulate.md @@ -0,0 +1,91 @@ +## okp4d tx simulate + +Simulate the gas usage of a transaction + +### Synopsis + +Simulate whether a transaction will be successful: + +- if successful, the simulation result is printed, which includes the gas + consumption, message response data, and events emitted; +- if unsuccessful, the error message is printed. + +The user must provide the path to a JSON-encoded unsigned transaction, typically +generated by any transaction command with the --generate-only flag. It should +look like below. Note that the "signer_infos" and "signatures" fields are left +empty; they will be auto-populated by dummy data for simulation purpose. + +\{ + "body": \{ + "messages": [ + \{ + "@type": "/cosmos.bank.v1beta1.MsgSend", + "from_address": "cosmos1...", + "to_address": "cosmos1...", + "amount": [ + \{ + "denom": "utoken", + "amount": "12345" + \} + ] + \} + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + \}, + "auth_info": \{ + "signer_infos": [], + "fee": \{ + "amount": [], + "gas_limit": "200000", + "payer": "", + "granter": "" + \}, + "tip": null + \}, + "signatures": [] +\} + +The --from flag is mandatory, as the signer account's correct sequence number is +necessary for simulation. + +``` +okp4d tx simulate /path/to/unsigned-tx.json --from keyname [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID (default "okp4d") + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for simulate + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +- [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_slashing.md b/docs/command/okp4d_tx_slashing.md index 963be87a..78f4d989 100644 --- a/docs/command/okp4d_tx_slashing.md +++ b/docs/command/okp4d_tx_slashing.md @@ -1,6 +1,6 @@ ## okp4d tx slashing -Slashing transaction subcommands +Transactions commands for the slashing module ``` okp4d tx slashing [flags] @@ -12,13 +12,7 @@ okp4d tx slashing [flags] -h, --help help for slashing ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands -* [okp4d tx slashing unjail](okp4d_tx_slashing_unjail.md) - unjail validator previously jailed for downtime +* [okp4d tx slashing unjail](okp4d_tx_slashing_unjail.md) - Unjail a jailed validator diff --git a/docs/command/okp4d_tx_slashing_unjail.md b/docs/command/okp4d_tx_slashing_unjail.md index 3b6f680c..5ce07c39 100644 --- a/docs/command/okp4d_tx_slashing_unjail.md +++ b/docs/command/okp4d_tx_slashing_unjail.md @@ -1,15 +1,15 @@ ## okp4d tx slashing unjail -unjail validator previously jailed for downtime +Unjail a jailed validator -### Synopsis - -unjail a jailed validator: +``` +okp4d tx slashing unjail [flags] +``` -$ okp4d tx slashing unjail --from mykey +### Examples ``` -okp4d tx slashing unjail [flags] +okp4d tx slashing unjail --from [validator] ``` ### Options @@ -18,7 +18,7 @@ okp4d tx slashing unjail [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -29,15 +29,15 @@ okp4d tx slashing unjail [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for unjail - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation @@ -45,4 +45,4 @@ okp4d tx slashing unjail [flags] ### SEE ALSO -* [okp4d tx slashing](okp4d_tx_slashing.md) - Slashing transaction subcommands +* [okp4d tx slashing](okp4d_tx_slashing.md) - Transactions commands for the slashing module diff --git a/docs/command/okp4d_tx_staking.md b/docs/command/okp4d_tx_staking.md index 63cb1a3d..baa97a49 100644 --- a/docs/command/okp4d_tx_staking.md +++ b/docs/command/okp4d_tx_staking.md @@ -12,12 +12,6 @@ okp4d tx staking [flags] -h, --help help for staking ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_staking_cancel-unbond.md b/docs/command/okp4d_tx_staking_cancel-unbond.md index aed722b6..ccfd586d 100644 --- a/docs/command/okp4d_tx_staking_cancel-unbond.md +++ b/docs/command/okp4d_tx_staking_cancel-unbond.md @@ -25,7 +25,7 @@ $ okp4d tx staking cancel-unbond okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqh -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -36,15 +36,15 @@ $ okp4d tx staking cancel-unbond okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqh --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for cancel-unbond - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_staking_create-validator.md b/docs/command/okp4d_tx_staking_create-validator.md index 341af88b..9529c984 100644 --- a/docs/command/okp4d_tx_staking_create-validator.md +++ b/docs/command/okp4d_tx_staking_create-validator.md @@ -2,52 +2,69 @@ create new validator initialized with a self-delegation to it +### Synopsis + +Create a new validator initialized with a self-delegation by submitting a JSON file with the new validator details. + +``` +okp4d tx staking create-validator [path/to/validator.json] [flags] ``` -okp4d tx staking create-validator [flags] + +### Examples + +``` +$ okp4d tx staking create-validator path/to/validator.json --from keyname + +Where validator.json contains: + +{ + "pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"oWg2ISpLF405Jcm2vXV+2v4fnjodh6aafuIdeoW+rUw="}, + "amount": "1000000stake", + "moniker": "myvalidator", + "identity": "optional identity signature (ex. UPort or Keybase)", + "website": "validator's (optional) website", + "security": "validator's (optional) security contact email", + "details": "validator's (optional) details", + "commission-rate": "0.1", + "commission-max-rate": "0.2", + "commission-max-change-rate": "0.01", + "min-self-delegation": "1" +} + +where we can get the pubkey using "okp4d tendermint show-validator" ``` ### Options ``` - -a, --account-number uint The account number of the signing account (offline mode only) - --amount string Amount of coins to bond - --aux Generate aux signer data instead of sending a tx - -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") - --commission-max-change-rate string The maximum commission change rate percentage (per day) - --commission-max-rate string The maximum commission rate percentage - --commission-rate string The initial commission rate percentage - --details string The validator's (optional) details - --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) - --fee-granter string Fee granter grants fees for the transaction - --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer - --fees string Fees to pay along with transaction; eg: 10uatom - --from string Name or address of private key with which to sign - --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) - --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) - --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) - --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) - -h, --help help for create-validator - --identity string The optional identity signature (ex. UPort or Keybase) - --ip string The node's public IP. It takes effect only when used in combination with --generate-only - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") - --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used - --ledger Use a connected Ledger device - --min-self-delegation string The minimum self delegation required on the validator - --moniker string The validator's name - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") - --node-id string The node's ID - --note string Note to add a description to the transaction (previously --memo) - --offline Offline mode (does not allow any online functionality) - -o, --output string Output format (text|json) (default "json") - --pubkey string The validator's Protobuf JSON encoded public key - --security-contact string The validator's (optional) security contact email - -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature - --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height - --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator - --website string The validator's (optional) website - -y, --yes Skip tx broadcasting prompt confirmation + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for create-validator + --ip string The node's public IP. It takes effect only when used in combination with --generate-only + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --node-id string The node's ID + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation ``` ### SEE ALSO diff --git a/docs/command/okp4d_tx_staking_delegate.md b/docs/command/okp4d_tx_staking_delegate.md index 35f86ca3..ae9af075 100644 --- a/docs/command/okp4d_tx_staking_delegate.md +++ b/docs/command/okp4d_tx_staking_delegate.md @@ -7,7 +7,7 @@ Delegate liquid tokens to a validator Delegate an amount of liquid coins to a validator from your wallet. Example: -$ okp4d tx staking delegate okp4valoper1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 1000stake --from mykey +$ okp4d tx staking delegate cosmosvalopers1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 1000stake --from mykey ``` okp4d tx staking delegate [validator-addr] [amount] [flags] @@ -19,7 +19,7 @@ okp4d tx staking delegate [validator-addr] [amount] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -30,15 +30,15 @@ okp4d tx staking delegate [validator-addr] [amount] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for delegate - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_staking_edit-validator.md b/docs/command/okp4d_tx_staking_edit-validator.md index 4a785721..79c233c9 100644 --- a/docs/command/okp4d_tx_staking_edit-validator.md +++ b/docs/command/okp4d_tx_staking_edit-validator.md @@ -12,7 +12,7 @@ okp4d tx staking edit-validator [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --commission-rate string The new commission rate percentage --details string The validator's (optional) details (default "[do-not-modify]") --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) @@ -26,18 +26,18 @@ okp4d tx staking edit-validator [flags] --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for edit-validator --identity string The (optional) identity signature (ex. UPort or Keybase) (default "[do-not-modify]") - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device --min-self-delegation string The minimum self delegation required on the validator --new-moniker string The validator's name (default "[do-not-modify]") - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") --security-contact string The validator's (optional) security contact email (default "[do-not-modify]") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator --website string The validator's (optional) website (default "[do-not-modify]") diff --git a/docs/command/okp4d_tx_staking_redelegate.md b/docs/command/okp4d_tx_staking_redelegate.md index be8f0bc7..a69c0152 100644 --- a/docs/command/okp4d_tx_staking_redelegate.md +++ b/docs/command/okp4d_tx_staking_redelegate.md @@ -7,7 +7,7 @@ Redelegate illiquid tokens from one validator to another Redelegate an amount of illiquid staking tokens from one validator to another. Example: -$ okp4d tx staking redelegate okp4valoper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj okp4valoper1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 100stake --from mykey +$ okp4d tx staking redelegate cosmosvalopers1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj cosmosvalopers1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 100stake --from mykey ``` okp4d tx staking redelegate [src-validator-addr] [dst-validator-addr] [amount] [flags] @@ -19,7 +19,7 @@ okp4d tx staking redelegate [src-validator-addr] [dst-validator-addr] [amount] [ -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -30,15 +30,15 @@ okp4d tx staking redelegate [src-validator-addr] [dst-validator-addr] [amount] [ --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for redelegate - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_staking_unbond.md b/docs/command/okp4d_tx_staking_unbond.md index bfaaab81..41f4e5cf 100644 --- a/docs/command/okp4d_tx_staking_unbond.md +++ b/docs/command/okp4d_tx_staking_unbond.md @@ -19,7 +19,7 @@ okp4d tx staking unbond [validator-addr] [amount] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -30,15 +30,15 @@ okp4d tx staking unbond [validator-addr] [amount] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for unbond - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_upgrade.md b/docs/command/okp4d_tx_upgrade.md new file mode 100644 index 00000000..a7d043dc --- /dev/null +++ b/docs/command/okp4d_tx_upgrade.md @@ -0,0 +1,15 @@ +## okp4d tx upgrade + +Upgrade transaction subcommands + +### Options + +``` + -h, --help help for upgrade +``` + +### SEE ALSO + +* [okp4d tx](okp4d_tx.md) - Transactions subcommands +* [okp4d tx upgrade cancel-software-upgrade](okp4d_tx_upgrade_cancel-software-upgrade.md) - Cancel the current software upgrade proposal +* [okp4d tx upgrade software-upgrade](okp4d_tx_upgrade_software-upgrade.md) - Submit a software upgrade proposal diff --git a/docs/command/okp4d_tx_upgrade_cancel-software-upgrade.md b/docs/command/okp4d_tx_upgrade_cancel-software-upgrade.md new file mode 100644 index 00000000..1393fe4b --- /dev/null +++ b/docs/command/okp4d_tx_upgrade_cancel-software-upgrade.md @@ -0,0 +1,51 @@ +## okp4d tx upgrade cancel-software-upgrade + +Cancel the current software upgrade proposal + +### Synopsis + +Cancel a software upgrade along with an initial deposit. + +``` +okp4d tx upgrade cancel-software-upgrade [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --authority string The address of the upgrade module authority (defaults to gov) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --deposit string The deposit to include with the governance proposal + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for cancel-software-upgrade + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --metadata string The metadata to include with the governance proposal + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --summary string The summary to include with the governance proposal + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + --title string The title to put on the governance proposal + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx upgrade](okp4d_tx_upgrade.md) - Upgrade transaction subcommands diff --git a/docs/command/okp4d_tx_gov_submit-legacy-proposal_software-upgrade.md b/docs/command/okp4d_tx_upgrade_software-upgrade.md similarity index 74% rename from docs/command/okp4d_tx_gov_submit-legacy-proposal_software-upgrade.md rename to docs/command/okp4d_tx_upgrade_software-upgrade.md index 84201501..1d7dd832 100644 --- a/docs/command/okp4d_tx_gov_submit-legacy-proposal_software-upgrade.md +++ b/docs/command/okp4d_tx_upgrade_software-upgrade.md @@ -1,4 +1,4 @@ -## okp4d tx gov submit-legacy-proposal software-upgrade +## okp4d tx upgrade software-upgrade Submit a software upgrade proposal @@ -6,22 +6,22 @@ Submit a software upgrade proposal Submit a software upgrade along with an initial deposit. Please specify a unique name and height for the upgrade to take effect. -You may include info to reference a binary download link, in a format compatible with: [https://github.com/cosmos/cosmos-sdk/tree/main/cosmovisor](https://github.com/cosmos/cosmos-sdk/tree/main/cosmovisor) +You may include info to reference a binary download link, in a format compatible with: [https://docs.cosmos.network/main/tooling/cosmovisor](https://docs.cosmos.network/main/tooling/cosmovisor) ``` -okp4d tx gov submit-legacy-proposal software-upgrade [name] (--upgrade-height [height]) (--upgrade-info [info]) [flags] +okp4d tx upgrade software-upgrade [name] (--upgrade-height [height]) (--upgrade-info [info]) [flags] ``` ### Options ``` -a, --account-number uint The account number of the signing account (offline mode only) + --authority string The address of the upgrade module authority (defaults to gov) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --daemon-name string The name of the executable being upgraded (for upgrade-info validation). Default is the DAEMON_NAME env var if set, or else this executable (default "okp4d") - --deposit string deposit of proposal - --description string description of proposal + --deposit string The deposit to include with the governance proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -32,19 +32,22 @@ okp4d tx gov submit-legacy-proposal software-upgrade [name] (--upgrade-height [h --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for software-upgrade - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --no-validate Skip validation of the upgrade info - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --metadata string The metadata to include with the governance proposal + --no-checksum-required Skip requirement of checksums for binaries in the upgrade info + --no-validate Skip validation of the upgrade info (dangerous!) + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --summary string The summary to include with the governance proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator - --title string title of proposal + --title string The title to put on the governance proposal --upgrade-height int The height at which the upgrade must happen --upgrade-info string Info for the upgrade plan such as new version download urls, etc. -y, --yes Skip tx broadcasting prompt confirmation @@ -52,4 +55,4 @@ okp4d tx gov submit-legacy-proposal software-upgrade [name] (--upgrade-height [h ### SEE ALSO -* [okp4d tx gov submit-legacy-proposal](okp4d_tx_gov_submit-legacy-proposal.md) - Submit a legacy proposal along with an initial deposit +* [okp4d tx upgrade](okp4d_tx_upgrade.md) - Upgrade transaction subcommands diff --git a/docs/command/okp4d_tx_validate-signatures.md b/docs/command/okp4d_tx_validate-signatures.md index b54ec1be..ebf1c3c1 100644 --- a/docs/command/okp4d_tx_validate-signatures.md +++ b/docs/command/okp4d_tx_validate-signatures.md @@ -36,12 +36,12 @@ okp4d tx validate-signatures [file] [flags] --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_vesting.md b/docs/command/okp4d_tx_vesting.md index 5bfcf3c7..592eaa14 100644 --- a/docs/command/okp4d_tx_vesting.md +++ b/docs/command/okp4d_tx_vesting.md @@ -12,12 +12,6 @@ okp4d tx vesting [flags] -h, --help help for vesting ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands diff --git a/docs/command/okp4d_tx_vesting_create-cliff-vesting-account.md b/docs/command/okp4d_tx_vesting_create-cliff-vesting-account.md index 9092eb1f..8b1cdc88 100644 --- a/docs/command/okp4d_tx_vesting_create-cliff-vesting-account.md +++ b/docs/command/okp4d_tx_vesting_create-cliff-vesting-account.md @@ -20,7 +20,7 @@ okp4d tx vesting create-cliff-vesting-account [to_address] [amount] [cliff_time] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -31,15 +31,15 @@ okp4d tx vesting create-cliff-vesting-account [to_address] [amount] [cliff_time] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for create-cliff-vesting-account - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_vesting_create-periodic-vesting-account.md b/docs/command/okp4d_tx_vesting_create-periodic-vesting-account.md index 80f6094d..9de0d608 100644 --- a/docs/command/okp4d_tx_vesting_create-periodic-vesting-account.md +++ b/docs/command/okp4d_tx_vesting_create-periodic-vesting-account.md @@ -31,7 +31,7 @@ okp4d tx vesting create-periodic-vesting-account [to_address] [periods_json_file -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -42,15 +42,15 @@ okp4d tx vesting create-periodic-vesting-account [to_address] [periods_json_file --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for create-periodic-vesting-account - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_vesting_create-permanent-locked-account.md b/docs/command/okp4d_tx_vesting_create-permanent-locked-account.md index ae95a551..2ea305d4 100644 --- a/docs/command/okp4d_tx_vesting_create-permanent-locked-account.md +++ b/docs/command/okp4d_tx_vesting_create-permanent-locked-account.md @@ -18,7 +18,7 @@ okp4d tx vesting create-permanent-locked-account [to_address] [amount] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -29,15 +29,15 @@ okp4d tx vesting create-permanent-locked-account [to_address] [amount] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for create-permanent-locked-account - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_vesting_create-vesting-account.md b/docs/command/okp4d_tx_vesting_create-vesting-account.md index feeb8e49..35eccacf 100644 --- a/docs/command/okp4d_tx_vesting_create-vesting-account.md +++ b/docs/command/okp4d_tx_vesting_create-vesting-account.md @@ -20,7 +20,7 @@ okp4d tx vesting create-vesting-account [to_address] [amount] [end_time] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --delayed Create a delayed vesting account if true --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction @@ -32,15 +32,15 @@ okp4d tx vesting create-vesting-account [to_address] [amount] [end_time] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for create-vesting-account - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_wasm.md b/docs/command/okp4d_tx_wasm.md index 4a6a882b..372d9c96 100644 --- a/docs/command/okp4d_tx_wasm.md +++ b/docs/command/okp4d_tx_wasm.md @@ -12,22 +12,17 @@ okp4d tx wasm [flags] -h, --help help for wasm ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx](okp4d_tx.md) - Transactions subcommands * [okp4d tx wasm clear-contract-admin](okp4d_tx_wasm_clear-contract-admin.md) - Clears admin for a contract to prevent further migrations * [okp4d tx wasm execute](okp4d_tx_wasm_execute.md) - Execute a command on a wasm contract -* [okp4d tx wasm grant](okp4d_tx_wasm_grant.md) - Grant authorization to an address +* [okp4d tx wasm grant](okp4d_tx_wasm_grant.md) - Grant a authz permission * [okp4d tx wasm instantiate](okp4d_tx_wasm_instantiate.md) - Instantiate a wasm contract * [okp4d tx wasm instantiate2](okp4d_tx_wasm_instantiate2.md) - Instantiate a wasm contract with predictable address * [okp4d tx wasm migrate](okp4d_tx_wasm_migrate.md) - Migrate a wasm contract to a new code version * [okp4d tx wasm set-contract-admin](okp4d_tx_wasm_set-contract-admin.md) - Set new admin for a contract +* [okp4d tx wasm set-contract-label](okp4d_tx_wasm_set-contract-label.md) - Set new label for a contract * [okp4d tx wasm store](okp4d_tx_wasm_store.md) - Upload a wasm binary * [okp4d tx wasm submit-proposal](okp4d_tx_wasm_submit-proposal.md) - Submit a wasm proposal. * [okp4d tx wasm update-instantiate-config](okp4d_tx_wasm_update-instantiate-config.md) - Update instantiate config for a codeID diff --git a/docs/command/okp4d_tx_wasm_clear-contract-admin.md b/docs/command/okp4d_tx_wasm_clear-contract-admin.md index 42dab526..6b0fc06d 100644 --- a/docs/command/okp4d_tx_wasm_clear-contract-admin.md +++ b/docs/command/okp4d_tx_wasm_clear-contract-admin.md @@ -12,7 +12,7 @@ okp4d tx wasm clear-contract-admin [contract_addr_bech32] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx wasm clear-contract-admin [contract_addr_bech32] [flags] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for clear-contract-admin - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_wasm_execute.md b/docs/command/okp4d_tx_wasm_execute.md index 66d0057d..bd038711 100644 --- a/docs/command/okp4d_tx_wasm_execute.md +++ b/docs/command/okp4d_tx_wasm_execute.md @@ -13,7 +13,7 @@ okp4d tx wasm execute [contract_addr_bech32] [json_encoded_send_args] --amount [ --amount string Coins to send to the contract along with command --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -24,15 +24,15 @@ okp4d tx wasm execute [contract_addr_bech32] [json_encoded_send_args] --amount [ --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for execute - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_wasm_grant.md b/docs/command/okp4d_tx_wasm_grant.md index 598af1d1..cae9406d 100644 --- a/docs/command/okp4d_tx_wasm_grant.md +++ b/docs/command/okp4d_tx_wasm_grant.md @@ -1,59 +1,15 @@ ## okp4d tx wasm grant -Grant authorization to an address - -### Synopsis - -Grant authorization to an address. -Examples: -$ okp4d tx grant <grantee_addr> execution <contract_addr> --allow-all-messages --max-calls 1 --no-token-transfer --expiration 1667979596 - -$ okp4d tx grant <grantee_addr> execution <contract_addr> --allow-all-messages --max-funds 100000uwasm --expiration 1667979596 - -$ okp4d tx grant <grantee_addr> execution <contract_addr> --allow-all-messages --max-calls 5 --max-funds 100000uwasm --expiration 1667979596 - -``` -okp4d tx wasm grant [grantee] [message_type="execution"|"migration"] [contract_addr_bech32] --allow-raw-msgs [msg1,msg2,...] --allow-msg-keys [key1,key2,...] --allow-all-messages [flags] -``` +Grant a authz permission ### Options ``` - -a, --account-number uint The account number of the signing account (offline mode only) - --allow-all-messages Allow all messages - --allow-msg-keys strings Allowed msg keys - --allow-raw-msgs strings Allowed raw msgs - --aux Generate aux signer data instead of sending a tx - -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") - --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) - --expiration int The Unix timestamp. - --fee-granter string Fee granter grants fees for the transaction - --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer - --fees string Fees to pay along with transaction; eg: 10uatom - --from string Name or address of private key with which to sign - --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) - --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) - --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) - --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) - -h, --help help for grant - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") - --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used - --ledger Use a connected Ledger device - --max-calls uint Maximal number of calls to the contract - --max-funds string Maximal amount of tokens transferable to the contract. - --no-token-transfer Don't allow token transfer - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") - --note string Note to add a description to the transaction (previously --memo) - --offline Offline mode (does not allow any online functionality) - -o, --output string Output format (text|json) (default "json") - -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature - --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height - --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator - -y, --yes Skip tx broadcasting prompt confirmation + -h, --help help for grant ``` ### SEE ALSO * [okp4d tx wasm](okp4d_tx_wasm.md) - Wasm transaction subcommands +* [okp4d tx wasm grant contract](okp4d_tx_wasm_grant_contract.md) - Grant authorization to interact with a contract on behalf of you +* [okp4d tx wasm grant store-code](okp4d_tx_wasm_grant_store-code.md) - Grant authorization to upload contract code on behalf of you diff --git a/docs/command/okp4d_tx_wasm_grant_contract.md b/docs/command/okp4d_tx_wasm_grant_contract.md new file mode 100644 index 00000000..ed395758 --- /dev/null +++ b/docs/command/okp4d_tx_wasm_grant_contract.md @@ -0,0 +1,59 @@ +## okp4d tx wasm grant contract + +Grant authorization to interact with a contract on behalf of you + +### Synopsis + +Grant authorization to an address. +Examples: +$ okp4d tx grant contract execution <grantee_addr> <contract_addr> --allow-all-messages --max-calls 1 --no-token-transfer --expiration 1667979596 + +$ okp4d tx grant contract execution <grantee_addr> <contract_addr> --allow-all-messages --max-funds 100000uwasm --expiration 1667979596 + +$ okp4d tx grant contract execution <grantee_addr> <contract_addr> --allow-all-messages --max-calls 5 --max-funds 100000uwasm --expiration 1667979596 + +``` +okp4d tx wasm grant contract [message_type="execution"|"migration"] [grantee] [contract_addr_bech32] --allow-raw-msgs [msg1,msg2,...] --allow-msg-keys [key1,key2,...] --allow-all-messages [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --allow-all-messages Allow all messages + --allow-msg-keys strings Allowed msg keys + --allow-raw-msgs strings Allowed raw msgs + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expiration int The Unix timestamp. + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for contract + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --max-calls uint Maximal number of calls to the contract + --max-funds string Maximal amount of tokens transferable to the contract. + --no-token-transfer Don't allow token transfer + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx wasm grant](okp4d_tx_wasm_grant.md) - Grant a authz permission diff --git a/docs/command/okp4d_tx_wasm_grant_store-code.md b/docs/command/okp4d_tx_wasm_grant_store-code.md new file mode 100644 index 00000000..0659b75e --- /dev/null +++ b/docs/command/okp4d_tx_wasm_grant_store-code.md @@ -0,0 +1,51 @@ +## okp4d tx wasm grant store-code + +Grant authorization to upload contract code on behalf of you + +### Synopsis + +Grant authorization to an address. +Examples: +$ okp4d tx grant store-code <grantee_addr> 13a1fc994cc6d1c81b746ee0c0ff6f90043875e0bf1d9be6b7d779fc978dc2a5:everybody 1wqrtry681b746ee0c0ff6f90043875e0bf1d9be6b7d779fc978dc2a5:nobody --expiration 1667979596 + +$ okp4d tx grant store-code <grantee_addr> *:okp4d1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm,okp4d1vx8knpllrj7n963p9ttd80w47kpacrhuts497x + +``` +okp4d tx wasm grant store-code [grantee] [code_hash:permission] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expiration int The Unix timestamp. + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for store-code + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx wasm grant](okp4d_tx_wasm_grant.md) - Grant a authz permission diff --git a/docs/command/okp4d_tx_wasm_instantiate.md b/docs/command/okp4d_tx_wasm_instantiate.md index 8797c672..421c61cc 100644 --- a/docs/command/okp4d_tx_wasm_instantiate.md +++ b/docs/command/okp4d_tx_wasm_instantiate.md @@ -22,7 +22,7 @@ okp4d tx wasm instantiate [code_id_int64] [json_encoded_init_args] --label [text --amount string Coins to send to the contract during instantiation --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -33,17 +33,17 @@ okp4d tx wasm instantiate [code_id_int64] [json_encoded_init_args] --label [text --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for instantiate - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --label string A human-readable name for this contract in lists --ledger Use a connected Ledger device --no-admin You must set this explicitly if you don't want an admin - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_wasm_instantiate2.md b/docs/command/okp4d_tx_wasm_instantiate2.md index e4b8f95d..2465520c 100644 --- a/docs/command/okp4d_tx_wasm_instantiate2.md +++ b/docs/command/okp4d_tx_wasm_instantiate2.md @@ -27,7 +27,7 @@ okp4d tx wasm instantiate2 [code_id_int64] [json_encoded_init_args] [salt] --lab --aux Generate aux signer data instead of sending a tx --b64 base64 encoded salt -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -40,17 +40,17 @@ okp4d tx wasm instantiate2 [code_id_int64] [json_encoded_init_args] [salt] --lab --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for instantiate2 --hex hex encoded salt - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --label string A human-readable name for this contract in lists --ledger Use a connected Ledger device --no-admin You must set this explicitly if you don't want an admin - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_wasm_migrate.md b/docs/command/okp4d_tx_wasm_migrate.md index dee172d9..639070fb 100644 --- a/docs/command/okp4d_tx_wasm_migrate.md +++ b/docs/command/okp4d_tx_wasm_migrate.md @@ -12,7 +12,7 @@ okp4d tx wasm migrate [contract_addr_bech32] [new_code_id_int64] [json_encoded_m -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx wasm migrate [contract_addr_bech32] [new_code_id_int64] [json_encoded_m --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for migrate - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_wasm_set-contract-admin.md b/docs/command/okp4d_tx_wasm_set-contract-admin.md index 40f6b899..871f54b2 100644 --- a/docs/command/okp4d_tx_wasm_set-contract-admin.md +++ b/docs/command/okp4d_tx_wasm_set-contract-admin.md @@ -12,7 +12,7 @@ okp4d tx wasm set-contract-admin [contract_addr_bech32] [new_admin_addr_bech32] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -23,15 +23,15 @@ okp4d tx wasm set-contract-admin [contract_addr_bech32] [new_admin_addr_bech32] --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for set-contract-admin - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_wasm_set-contract-label.md b/docs/command/okp4d_tx_wasm_set-contract-label.md new file mode 100644 index 00000000..11b9fad9 --- /dev/null +++ b/docs/command/okp4d_tx_wasm_set-contract-label.md @@ -0,0 +1,42 @@ +## okp4d tx wasm set-contract-label + +Set new label for a contract + +``` +okp4d tx wasm set-contract-label [contract_addr_bech32] [new_label] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for set-contract-label + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx wasm](okp4d_tx_wasm.md) - Wasm transaction subcommands diff --git a/docs/command/okp4d_tx_wasm_store.md b/docs/command/okp4d_tx_wasm_store.md index 0a87fc8e..aa1f333e 100644 --- a/docs/command/okp4d_tx_wasm_store.md +++ b/docs/command/okp4d_tx_wasm_store.md @@ -12,7 +12,7 @@ okp4d tx wasm store [wasm file] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -27,15 +27,15 @@ okp4d tx wasm store [wasm file] [flags] --instantiate-everybody string Everybody can instantiate a contract from the code, optional --instantiate-nobody string Nobody except the governance process can instantiate a contract from the code, optional --instantiate-only-address string Removed: use instantiate-anyof-addresses instead - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_tx_wasm_submit-proposal.md b/docs/command/okp4d_tx_wasm_submit-proposal.md index 5dd07366..f5cca32f 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal.md @@ -8,23 +8,20 @@ Submit a wasm proposal. -h, --help help for submit-proposal ``` -### Options inherited from parent commands - -``` - --chain-id string The network chain ID (default "okp4d") -``` - ### SEE ALSO * [okp4d tx wasm](okp4d_tx_wasm.md) - Wasm transaction subcommands +* [okp4d tx wasm submit-proposal add-code-upload-params-addresses](okp4d_tx_wasm_submit-proposal_add-code-upload-params-addresses.md) - Submit an add code upload params addresses proposal to add addresses to code upload config params * [okp4d tx wasm submit-proposal clear-contract-admin](okp4d_tx_wasm_submit-proposal_clear-contract-admin.md) - Submit a clear admin for a contract to prevent further migrations proposal * [okp4d tx wasm submit-proposal execute-contract](okp4d_tx_wasm_submit-proposal_execute-contract.md) - Submit a execute wasm contract proposal (run by any address) * [okp4d tx wasm submit-proposal instantiate-contract](okp4d_tx_wasm_submit-proposal_instantiate-contract.md) - Submit an instantiate wasm contract proposal * [okp4d tx wasm submit-proposal instantiate-contract-2](okp4d_tx_wasm_submit-proposal_instantiate-contract-2.md) - Submit an instantiate wasm contract proposal with predictable address * [okp4d tx wasm submit-proposal migrate-contract](okp4d_tx_wasm_submit-proposal_migrate-contract.md) - Submit a migrate wasm contract to a new code version proposal * [okp4d tx wasm submit-proposal pin-codes](okp4d_tx_wasm_submit-proposal_pin-codes.md) - Submit a pin code proposal for pinning a code to cache +* [okp4d tx wasm submit-proposal remove-code-upload-params-addresses](okp4d_tx_wasm_submit-proposal_remove-code-upload-params-addresses.md) - Submit a remove code upload params addresses proposal to remove addresses from code upload config params * [okp4d tx wasm submit-proposal set-contract-admin](okp4d_tx_wasm_submit-proposal_set-contract-admin.md) - Submit a new admin for a contract proposal -* [okp4d tx wasm submit-proposal store-instantiate](okp4d_tx_wasm_submit-proposal_store-instantiate.md) - Submit and instantiate a wasm contract proposal +* [okp4d tx wasm submit-proposal store-instantiate](okp4d_tx_wasm_submit-proposal_store-instantiate.md) - Submit a store and instantiate wasm contract proposal +* [okp4d tx wasm submit-proposal store-migrate](okp4d_tx_wasm_submit-proposal_store-migrate.md) - Submit a store and migrate wasm contract proposal * [okp4d tx wasm submit-proposal sudo-contract](okp4d_tx_wasm_submit-proposal_sudo-contract.md) - Submit a sudo wasm contract proposal (to call privileged commands) * [okp4d tx wasm submit-proposal unpin-codes](okp4d_tx_wasm_submit-proposal_unpin-codes.md) - Submit a unpin code proposal for unpinning a code to cache * [okp4d tx wasm submit-proposal update-instantiate-config](okp4d_tx_wasm_submit-proposal_update-instantiate-config.md) - Submit an update instantiate config proposal. diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_add-code-upload-params-addresses.md b/docs/command/okp4d_tx_wasm_submit-proposal_add-code-upload-params-addresses.md new file mode 100644 index 00000000..888f8283 --- /dev/null +++ b/docs/command/okp4d_tx_wasm_submit-proposal_add-code-upload-params-addresses.md @@ -0,0 +1,47 @@ +## okp4d tx wasm submit-proposal add-code-upload-params-addresses + +Submit an add code upload params addresses proposal to add addresses to code upload config params + +``` +okp4d tx wasm submit-proposal add-code-upload-params-addresses [addresses] --title [text] --summary [text] --authority [address] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --deposit string Deposit of proposal + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for add-code-upload-params-addresses + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --summary string Summary of proposal + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + --title string Title of proposal + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx wasm submit-proposal](okp4d_tx_wasm_submit-proposal.md) - Submit a wasm proposal. diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_clear-contract-admin.md b/docs/command/okp4d_tx_wasm_submit-proposal_clear-contract-admin.md index 0237964c..e92bc2ba 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_clear-contract-admin.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_clear-contract-admin.md @@ -13,9 +13,10 @@ okp4d tx wasm submit-proposal clear-contract-admin [contract_addr_bech32] --titl --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -25,15 +26,15 @@ okp4d tx wasm submit-proposal clear-contract-admin [contract_addr_bech32] --titl --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for clear-contract-admin - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_execute-contract.md b/docs/command/okp4d_tx_wasm_submit-proposal_execute-contract.md index fbb2c5ae..97b3087f 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_execute-contract.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_execute-contract.md @@ -3,7 +3,7 @@ Submit a execute wasm contract proposal (run by any address) ``` -okp4d tx wasm submit-proposal execute-contract [contract_addr_bech32] [json_encoded_migration_args] --title [text] --summary [text] --authority [address] [flags] +okp4d tx wasm submit-proposal execute-contract [contract_addr_bech32] [json_encoded_execution_args] --title [text] --summary [text] --authority [address] [flags] ``` ### Options @@ -14,9 +14,10 @@ okp4d tx wasm submit-proposal execute-contract [contract_addr_bech32] [json_enco --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -26,15 +27,15 @@ okp4d tx wasm submit-proposal execute-contract [contract_addr_bech32] [json_enco --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for execute-contract - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_instantiate-contract-2.md b/docs/command/okp4d_tx_wasm_submit-proposal_instantiate-contract-2.md index 4dbc55bf..f1815a78 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_instantiate-contract-2.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_instantiate-contract-2.md @@ -15,9 +15,10 @@ okp4d tx wasm submit-proposal instantiate-contract-2 [code_id_int64] [json_encod --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -27,17 +28,17 @@ okp4d tx wasm submit-proposal instantiate-contract-2 [code_id_int64] [json_encod --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for instantiate-contract-2 - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --label string A human-readable name for this contract in lists --ledger Use a connected Ledger device --no-admin You must set this explicitly if you don't want an admin - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_instantiate-contract.md b/docs/command/okp4d_tx_wasm_submit-proposal_instantiate-contract.md index 2b7fb0b6..16688f1f 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_instantiate-contract.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_instantiate-contract.md @@ -15,9 +15,10 @@ okp4d tx wasm submit-proposal instantiate-contract [code_id_int64] [json_encoded --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -27,17 +28,17 @@ okp4d tx wasm submit-proposal instantiate-contract [code_id_int64] [json_encoded --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for instantiate-contract - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --label string A human-readable name for this contract in lists --ledger Use a connected Ledger device --no-admin You must set this explicitly if you don't want an admin - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_migrate-contract.md b/docs/command/okp4d_tx_wasm_submit-proposal_migrate-contract.md index 8d2ff52a..55ca52df 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_migrate-contract.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_migrate-contract.md @@ -13,9 +13,10 @@ okp4d tx wasm submit-proposal migrate-contract [contract_addr_bech32] [new_code_ --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -25,15 +26,15 @@ okp4d tx wasm submit-proposal migrate-contract [contract_addr_bech32] [new_code_ --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for migrate-contract - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_pin-codes.md b/docs/command/okp4d_tx_wasm_submit-proposal_pin-codes.md index eaf98be6..a06a2772 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_pin-codes.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_pin-codes.md @@ -13,9 +13,10 @@ okp4d tx wasm submit-proposal pin-codes [code-ids] --title [text] --summary [tex --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -25,15 +26,15 @@ okp4d tx wasm submit-proposal pin-codes [code-ids] --title [text] --summary [tex --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for pin-codes - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_remove-code-upload-params-addresses.md b/docs/command/okp4d_tx_wasm_submit-proposal_remove-code-upload-params-addresses.md new file mode 100644 index 00000000..1fbe5080 --- /dev/null +++ b/docs/command/okp4d_tx_wasm_submit-proposal_remove-code-upload-params-addresses.md @@ -0,0 +1,47 @@ +## okp4d tx wasm submit-proposal remove-code-upload-params-addresses + +Submit a remove code upload params addresses proposal to remove addresses from code upload config params + +``` +okp4d tx wasm submit-proposal remove-code-upload-params-addresses [addresses] --title [text] --summary [text] --authority [address] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --deposit string Deposit of proposal + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for remove-code-upload-params-addresses + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --summary string Summary of proposal + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + --title string Title of proposal + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx wasm submit-proposal](okp4d_tx_wasm_submit-proposal.md) - Submit a wasm proposal. diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_set-contract-admin.md b/docs/command/okp4d_tx_wasm_submit-proposal_set-contract-admin.md index 368620be..6ae14fb7 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_set-contract-admin.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_set-contract-admin.md @@ -13,9 +13,10 @@ okp4d tx wasm submit-proposal set-contract-admin [contract_addr_bech32] [new_adm --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -25,15 +26,15 @@ okp4d tx wasm submit-proposal set-contract-admin [contract_addr_bech32] [new_adm --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for set-contract-admin - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_store-instantiate.md b/docs/command/okp4d_tx_wasm_submit-proposal_store-instantiate.md index dc1ec346..12da8c47 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_store-instantiate.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_store-instantiate.md @@ -1,6 +1,6 @@ ## okp4d tx wasm submit-proposal store-instantiate -Submit and instantiate a wasm contract proposal +Submit a store and instantiate wasm contract proposal ``` okp4d tx wasm submit-proposal store-instantiate [wasm file] [json_encoded_init_args] --authority [address] --label [text] --title [text] --summary [text]--unpin-code [unpin_code,optional] --source [source,optional] --builder [builder,optional] --code-hash [code_hash,optional] --admin [address,optional] --amount [coins,optional] [flags] @@ -16,11 +16,12 @@ okp4d tx wasm submit-proposal store-instantiate [wasm file] [json_encoded_init_a --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") --builder string Builder is a valid docker image name with tag, such as "cosmwasm/workspace-optimizer:0.12.9" - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --code-hash bytesHex CodeHash is the sha256 hash of the wasm code --code-source-url string Code Source URL is a valid absolute HTTPS URI to the contract's source code, --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -34,17 +35,17 @@ okp4d tx wasm submit-proposal store-instantiate [wasm file] [json_encoded_init_a --instantiate-everybody string Everybody can instantiate a contract from the code, optional --instantiate-nobody string Nobody except the governance process can instantiate a contract from the code, optional --instantiate-only-address string Removed: use instantiate-anyof-addresses instead - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --label string A human-readable name for this contract in lists --ledger Use a connected Ledger device --no-admin You must set this explicitly if you don't want an admin - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_store-migrate.md b/docs/command/okp4d_tx_wasm_submit-proposal_store-migrate.md new file mode 100644 index 00000000..ba5484b4 --- /dev/null +++ b/docs/command/okp4d_tx_wasm_submit-proposal_store-migrate.md @@ -0,0 +1,51 @@ +## okp4d tx wasm submit-proposal store-migrate + +Submit a store and migrate wasm contract proposal + +``` +okp4d tx wasm submit-proposal store-migrate [wasm file] [contract_addr_bech32] [json_encoded_migration_args] --title [text] --summary [text] --authority [address] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") + --chain-id string The network chain ID + --deposit string Deposit of proposal + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for store-migrate + --instantiate-anyof-addresses strings Any of the addresses can instantiate a contract from the code, optional + --instantiate-everybody string Everybody can instantiate a contract from the code, optional + --instantiate-nobody string Nobody except the governance process can instantiate a contract from the code, optional + --instantiate-only-address string Removed: use instantiate-anyof-addresses instead + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) (default "json") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --summary string Summary of proposal + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + --title string Title of proposal + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [okp4d tx wasm submit-proposal](okp4d_tx_wasm_submit-proposal.md) - Submit a wasm proposal. diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_sudo-contract.md b/docs/command/okp4d_tx_wasm_submit-proposal_sudo-contract.md index 2e73bdbc..1f065e07 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_sudo-contract.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_sudo-contract.md @@ -13,9 +13,10 @@ okp4d tx wasm submit-proposal sudo-contract [contract_addr_bech32] [json_encoded --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -25,15 +26,15 @@ okp4d tx wasm submit-proposal sudo-contract [contract_addr_bech32] [json_encoded --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for sudo-contract - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_unpin-codes.md b/docs/command/okp4d_tx_wasm_submit-proposal_unpin-codes.md index dfc667aa..fe3a010d 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_unpin-codes.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_unpin-codes.md @@ -13,9 +13,10 @@ okp4d tx wasm submit-proposal unpin-codes [code-ids] --title [text] --summary [t --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -25,15 +26,15 @@ okp4d tx wasm submit-proposal unpin-codes [code-ids] --title [text] --summary [t --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for unpin-codes - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_update-instantiate-config.md b/docs/command/okp4d_tx_wasm_submit-proposal_update-instantiate-config.md index f36d907d..d87b60ab 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_update-instantiate-config.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_update-instantiate-config.md @@ -20,9 +20,10 @@ okp4d tx wasm submit-proposal update-instantiate-config [code-id:permission] --t --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -32,15 +33,15 @@ okp4d tx wasm submit-proposal update-instantiate-config [code-id:permission] --t --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for update-instantiate-config - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_submit-proposal_wasm-store.md b/docs/command/okp4d_tx_wasm_submit-proposal_wasm-store.md index 35674a52..a4d55938 100644 --- a/docs/command/okp4d_tx_wasm_submit-proposal_wasm-store.md +++ b/docs/command/okp4d_tx_wasm_submit-proposal_wasm-store.md @@ -13,9 +13,10 @@ okp4d tx wasm submit-proposal wasm-store [wasm file] --title [text] --summary [t --authority string The address of the governance account. Default is the sdk gov module account (default "okp410d07y265gmmuvt4z0w9aw880jnsr700jh7kd2g") --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --deposit string Deposit of proposal --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --expedite Expedite proposals have shorter voting period but require higher voting threshold --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer --fees string Fees to pay along with transaction; eg: 10uatom @@ -29,15 +30,15 @@ okp4d tx wasm submit-proposal wasm-store [wasm file] --title [text] --summary [t --instantiate-everybody string Everybody can instantiate a contract from the code, optional --instantiate-nobody string Nobody except the governance process can instantiate a contract from the code, optional --instantiate-only-address string Removed: use instantiate-anyof-addresses instead - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --summary string Summary of proposal --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator diff --git a/docs/command/okp4d_tx_wasm_update-instantiate-config.md b/docs/command/okp4d_tx_wasm_update-instantiate-config.md index 9e60b27f..af6e64a0 100644 --- a/docs/command/okp4d_tx_wasm_update-instantiate-config.md +++ b/docs/command/okp4d_tx_wasm_update-instantiate-config.md @@ -12,7 +12,7 @@ okp4d tx wasm update-instantiate-config [code_id_int64] [flags] -a, --account-number uint The account number of the signing account (offline mode only) --aux Generate aux signer data instead of sending a tx -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID (default "okp4d") + --chain-id string The network chain ID --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) --fee-granter string Fee granter grants fees for the transaction --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer @@ -27,15 +27,15 @@ okp4d tx wasm update-instantiate-config [code_id_int64] [flags] --instantiate-everybody string Everybody can instantiate a contract from the code, optional --instantiate-nobody string Nobody except the governance process can instantiate a contract from the code, optional --instantiate-only-address string Removed: use instantiate-anyof-addresses instead - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "test") + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) -o, --output string Output format (text|json) (default "json") -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator -y, --yes Skip tx broadcasting prompt confirmation diff --git a/docs/command/okp4d_validate-genesis.md b/docs/command/okp4d_validate-genesis.md deleted file mode 100644 index 4dc559e5..00000000 --- a/docs/command/okp4d_validate-genesis.md +++ /dev/null @@ -1,17 +0,0 @@ -## okp4d validate-genesis - -validates the genesis file at the default location or at the location passed as an arg - -``` -okp4d validate-genesis [file] [flags] -``` - -### Options - -``` - -h, --help help for validate-genesis -``` - -### SEE ALSO - -* [okp4d](okp4d.md) - OKP4 Daemon 👹 From f6a80052da9586304acb5e76a7c918c2667aa04a Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 17 Jan 2024 17:56:55 +0100 Subject: [PATCH 27/29] style: make linters happy --- .golangci.yml | 1 - app/ante.go | 7 +- app/app.go | 75 ++++----- app/encoding.go | 4 +- app/export.go | 6 +- app/genesis.go | 6 +- cmd/okp4d/cmd/root.go | 22 +-- go.mod | 2 +- scripts/main.go | 4 +- testutil/network/network.go | 3 +- x/logic/fs/wasm_test.go | 8 +- x/logic/interpreter/interpreter.go | 4 +- x/logic/interpreter/registry.go | 4 +- x/logic/keeper/grpc_query_ask.go | 4 +- x/logic/keeper/grpc_query_ask_test.go | 1 + x/logic/keeper/grpc_query_params_test.go | 2 +- x/logic/keeper/interpreter.go | 5 +- x/logic/keeper/keeper.go | 2 +- x/logic/keeper/msg_server_test.go | 1 + x/logic/module.go | 3 +- x/logic/predicate/address_test.go | 7 +- x/logic/predicate/bank_test.go | 10 +- x/logic/predicate/block_test.go | 7 +- x/logic/predicate/builtin_test.go | 8 +- x/logic/predicate/chain_test.go | 7 +- x/logic/predicate/crypto_test.go | 7 +- x/logic/predicate/did_test.go | 8 +- x/logic/predicate/encoding_test.go | 8 +- x/logic/predicate/file_test.go | 8 +- x/logic/predicate/json_test.go | 8 +- x/logic/predicate/string_test.go | 7 +- x/logic/predicate/uri_test.go | 8 +- x/logic/types/codec.go | 2 +- x/mint/keeper/genesis.go | 2 +- x/mint/keeper/genesis_test.go | 19 ++- x/mint/keeper/grpc_query_test.go | 8 +- x/mint/keeper/keeper.go | 30 ++-- x/mint/keeper/keeper_test.go | 8 +- x/mint/keeper/msg_server_test.go | 1 + x/mint/module.go | 4 +- x/mint/module_test.go | 4 +- x/mint/simulation/decoder_test.go | 4 +- x/mint/simulation/proposals_test.go | 4 +- x/mint/types/codec.go | 2 +- x/mint/types/params.go | 4 +- x/vesting/client/cli/tx.go | 3 - x/vesting/exported/exported.go | 3 +- x/vesting/module.go | 4 +- x/vesting/msg_server.go | 2 +- x/vesting/msg_server_test.go | 7 +- x/vesting/types/codec.go | 16 -- x/vesting/types/msgs.go | 199 ----------------------- x/vesting/types/vesting_account.go | 3 +- x/vesting/types/vesting_account_test.go | 7 +- 54 files changed, 187 insertions(+), 406 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 8cf21c7a..52671e61 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,7 +14,6 @@ linters: - asciicheck - bidichk - bodyclose - - contextcheck - cyclop - dupl - durationcheck diff --git a/app/ante.go b/app/ante.go index e26a34ed..f8362751 100644 --- a/app/ante.go +++ b/app/ante.go @@ -3,13 +3,16 @@ package app import ( "errors" + wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" + wasmTypes "github.com/CosmWasm/wasmd/x/wasm/types" + corestoretypes "cosmossdk.io/core/store" circuitante "cosmossdk.io/x/circuit/ante" circuitkeeper "cosmossdk.io/x/circuit/keeper" - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - wasmTypes "github.com/CosmWasm/wasmd/x/wasm/types" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/ante" + ibcante "github.com/cosmos/ibc-go/v8/modules/core/ante" "github.com/cosmos/ibc-go/v8/modules/core/keeper" ) diff --git a/app/app.go b/app/app.go index 4c712c93..b45f7851 100644 --- a/app/app.go +++ b/app/app.go @@ -13,39 +13,26 @@ import ( "strings" "sync" - "cosmossdk.io/client/v2/autocli" - - "cosmossdk.io/core/appmodule" - - "github.com/cosmos/cosmos-sdk/x/auth/posthandler" - - "github.com/cosmos/cosmos-sdk/types/msgservice" - - "cosmossdk.io/x/circuit" - - "github.com/okp4/okp4d/x/mint" - - "github.com/cosmos/cosmos-sdk/runtime" - - "cosmossdk.io/log" - "cosmossdk.io/x/tx/signing" - abci "github.com/cometbft/cometbft/abci/types" - tmos "github.com/cometbft/cometbft/libs/os" - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/CosmWasm/wasmd/x/wasm" + wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/codec/address" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/std" "github.com/cosmos/gogoproto/proto" "github.com/ignite/cli/ignite/pkg/openapiconsole" "github.com/prometheus/client_golang/prometheus" "github.com/spf13/cast" + abci "github.com/cometbft/cometbft/abci/types" + tmos "github.com/cometbft/cometbft/libs/os" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1" - + "cosmossdk.io/client/v2/autocli" + "cosmossdk.io/core/appmodule" + "cosmossdk.io/log" storetypes "cosmossdk.io/store/types" + "cosmossdk.io/x/circuit" circuitkeeper "cosmossdk.io/x/circuit/keeper" circuittypes "cosmossdk.io/x/circuit/types" "cosmossdk.io/x/evidence" @@ -54,26 +41,35 @@ import ( "cosmossdk.io/x/feegrant" feegrantkeeper "cosmossdk.io/x/feegrant/keeper" feegrantmodule "cosmossdk.io/x/feegrant/module" + "cosmossdk.io/x/tx/signing" "cosmossdk.io/x/upgrade" upgradekeeper "cosmossdk.io/x/upgrade/keeper" upgradetypes "cosmossdk.io/x/upgrade/types" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice" nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node" "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/codec/address" "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services" + "github.com/cosmos/cosmos-sdk/server" "github.com/cosmos/cosmos-sdk/server/api" "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" + "github.com/cosmos/cosmos-sdk/std" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + "github.com/cosmos/cosmos-sdk/types/msgservice" "github.com/cosmos/cosmos-sdk/version" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/ante" authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" + "github.com/cosmos/cosmos-sdk/x/auth/posthandler" authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -113,8 +109,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/staking" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/cosmos/ibc-go/modules/capability" + "github.com/cosmos/ibc-go/modules/capability" capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" ica "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" @@ -132,23 +128,20 @@ import ( ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper" ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" ibc "github.com/cosmos/ibc-go/v8/modules/core" - ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" + ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" //nolint:staticcheck ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types" ibcporttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint" - "github.com/CosmWasm/wasmd/x/wasm" - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - okp4wasm "github.com/okp4/okp4d/app/wasm" "github.com/okp4/okp4d/docs" logicmodule "github.com/okp4/okp4d/x/logic" logicfs "github.com/okp4/okp4d/x/logic/fs" logicmodulekeeper "github.com/okp4/okp4d/x/logic/keeper" logicmoduletypes "github.com/okp4/okp4d/x/logic/types" + "github.com/okp4/okp4d/x/mint" mintkeeper "github.com/okp4/okp4d/x/mint/keeper" minttypes "github.com/okp4/okp4d/x/mint/types" "github.com/okp4/okp4d/x/vesting" @@ -597,7 +590,7 @@ func New( // The last arguments can contain custom message handlers, and custom query handlers, // if we want to allow any custom callbacks availableCapabilities := strings.Join(okp4wasm.AllCapabilities(), ",") - app.WasmKeeper = wasm.NewKeeper( + app.WasmKeeper = wasmkeeper.NewKeeper( appCodec, runtime.NewKVStoreService(keys[wasmtypes.StoreKey]), app.AccountKeeper, @@ -674,8 +667,10 @@ func New( feegrantmodule.NewAppModule(appCodec, app.AccountKeeper, app.BankKeeper, app.FeeGrantKeeper, app.interfaceRegistry), groupmodule.NewAppModule(appCodec, app.GroupKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry), gov.NewAppModule(appCodec, &app.GovKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(govtypes.ModuleName)), - slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.GetSubspace(slashingtypes.ModuleName), app.interfaceRegistry), - distr.NewAppModule(appCodec, app.DistrKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.GetSubspace(distrtypes.ModuleName)), + slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, + app.GetSubspace(slashingtypes.ModuleName), app.interfaceRegistry), + distr.NewAppModule(appCodec, app.DistrKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, + app.GetSubspace(distrtypes.ModuleName)), staking.NewAppModule(appCodec, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(stakingtypes.ModuleName)), upgrade.NewAppModule(app.UpgradeKeeper, app.AccountKeeper.AddressCodec()), evidence.NewAppModule(app.EvidenceKeeper), @@ -689,7 +684,8 @@ func New( ibcfee.NewAppModule(app.IBCFeeKeeper), ica.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper), ibctm.AppModule{}, - wasm.NewAppModule(appCodec, &app.WasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)), + wasm.NewAppModule(appCodec, &app.WasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, + app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)), // our modules vesting.NewAppModule(app.AccountKeeper, app.BankKeeper), mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper), @@ -935,7 +931,8 @@ func (app *App) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFin app.once.Do(func() { ctx := app.NewUncachedContext(false, tmproto.Header{}) if _, err := app.ConsensusParamsKeeper.Params(ctx, &consensusparamtypes.QueryParamsRequest{}); err != nil { - // prevents panic: consensus key is nil: collections: not found: key 'no_key' of type github.com/cosmos/gogoproto/tendermint.types.ConsensusParams + // prevents panic: consensus key is nil: collections: not found: key 'no_key' of type + // github.com/cosmos/gogoproto/tendermint.types.ConsensusParams // sdk 47: // Migrate Tendermint consensus parameters from x/params module to a dedicated x/consensus module. // see https://github.com/cosmos/cosmos-sdk/blob/v0.47.0/simapp/upgrades.go#L66 @@ -950,7 +947,7 @@ func (app *App) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFin return app.BaseApp.FinalizeBlock(req) } -// PreBlocker application updates every pre block +// PreBlocker application updates every pre block. func (app *App) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { return app.ModuleManager.PreBlock(ctx) } @@ -1029,7 +1026,7 @@ func (app *App) InterfaceRegistry() types.InterfaceRegistry { return app.interfaceRegistry } -// TxConfig returns WasmApp's TxConfig +// TxConfig returns WasmApp's TxConfig. func (app *App) TxConfig() client.TxConfig { return app.txConfig } @@ -1056,8 +1053,8 @@ func (app *App) AutoCliOpts() autocli.AppOptions { } // DefaultGenesis returns a default genesis from the registered AppModuleBasic's. -func (a *App) DefaultGenesis() map[string]json.RawMessage { - return a.BasicModuleManager.DefaultGenesis(a.appCodec) +func (app *App) DefaultGenesis() map[string]json.RawMessage { + return app.BasicModuleManager.DefaultGenesis(app.appCodec) } // GetKey returns the KVStoreKey for the provided store key. diff --git a/app/encoding.go b/app/encoding.go index 033678a7..3c6bf9c9 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -3,10 +3,12 @@ package app import ( "testing" + dbm "github.com/cosmos/cosmos-db" + "cosmossdk.io/log" - dbm "github.com/cosmos/cosmos-db" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + "github.com/okp4/okp4d/app/params" ) diff --git a/app/export.go b/app/export.go index 8e20005e..f0cd25c9 100644 --- a/app/export.go +++ b/app/export.go @@ -5,10 +5,10 @@ import ( "fmt" "log" - storetypes "cosmossdk.io/store/types" - cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + storetypes "cosmossdk.io/store/types" + servertypes "github.com/cosmos/cosmos-sdk/server/types" sdk "github.com/cosmos/cosmos-sdk/types" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" @@ -61,7 +61,7 @@ func (app *App) ExportAppStateAndValidators( // // in favour of export at a block height // -//nolint:funlen +//nolint:funlen,gocognit,gocyclo,cyclop func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) { applyAllowedAddrs := false diff --git a/app/genesis.go b/app/genesis.go index 34edce09..a42a94f1 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -4,12 +4,12 @@ import ( "encoding/json" "testing" - "cosmossdk.io/log" - dbm "github.com/cosmos/cosmos-db" - simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + + "cosmossdk.io/log" "github.com/cosmos/cosmos-sdk/codec" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" ) // The genesis state of the blockchain is represented here as a map of raw json diff --git a/cmd/okp4d/cmd/root.go b/cmd/okp4d/cmd/root.go index 7b26fcf6..508e25be 100644 --- a/cmd/okp4d/cmd/root.go +++ b/cmd/okp4d/cmd/root.go @@ -6,17 +6,18 @@ import ( "os" "strings" + "github.com/CosmWasm/wasmd/x/wasm" + wasmcli "github.com/CosmWasm/wasmd/x/wasm/client/cli" + dbm "github.com/cosmos/cosmos-db" "github.com/spf13/cobra" "github.com/spf13/pflag" "github.com/spf13/viper" - "cosmossdk.io/log" - - simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + cmtcfg "github.com/cometbft/cometbft/config" + "cosmossdk.io/log" confixcmd "cosmossdk.io/tools/confix/cmd" - cmtcfg "github.com/cometbft/cometbft/config" - dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/config" "github.com/cosmos/cosmos-sdk/client/debug" @@ -29,6 +30,7 @@ import ( "github.com/cosmos/cosmos-sdk/server" serverconfig "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/types/tx/signing" authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" @@ -38,14 +40,13 @@ import ( "github.com/cosmos/cosmos-sdk/x/crisis" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - "github.com/CosmWasm/wasmd/x/wasm" - wasmcli "github.com/CosmWasm/wasmd/x/wasm/client/cli" - "github.com/okp4/okp4d/app" appparams "github.com/okp4/okp4d/app/params" ) // NewRootCmd creates a new root command for a Cosmos SDK application. +// +//nolint:funlen func NewRootCmd() *cobra.Command { // Set config initSDKConfig() @@ -97,9 +98,8 @@ Want to lean more about OKP4 network? Complete documentation is available at htt // sets the RPC client needed for SIGN_MODE_TEXTUAL. This sign mode // is only available if the client is online. if !initClientCtx.Offline { - enabledSignModes := append(tx.DefaultSignModes, signing.SignMode_SIGN_MODE_TEXTUAL) txConfigOpts := tx.ConfigOptions{ - EnabledSignModes: enabledSignModes, + EnabledSignModes: append(tx.DefaultSignModes, signing.SignMode_SIGN_MODE_TEXTUAL), TextualCoinMetadataQueryFn: txmodule.NewGRPCCoinMetadataQueryFn(initClientCtx), } txConfig, err := tx.NewTxConfigWithOptions( @@ -266,7 +266,7 @@ func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) { // newApp creates a new Cosmos SDK app. // -//nolint:funlen + func newApp( logger log.Logger, db dbm.DB, diff --git a/go.mod b/go.mod index 64675dd7..307c6bdf 100644 --- a/go.mod +++ b/go.mod @@ -21,7 +21,6 @@ require ( github.com/CosmWasm/wasmd v0.50.0 github.com/Masterminds/sprig/v3 v3.2.3 github.com/cometbft/cometbft v0.38.1 - github.com/cometbft/cometbft-db v0.8.0 github.com/cosmos/cosmos-db v1.0.0 github.com/cosmos/cosmos-proto v1.0.0-beta.3 github.com/cosmos/cosmos-sdk v0.50.1 @@ -100,6 +99,7 @@ require ( github.com/cockroachdb/pebble v0.0.0-20231102162011-844f0582c2eb // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft-db v0.8.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect diff --git a/scripts/main.go b/scripts/main.go index 36b29042..a8c1cf7f 100644 --- a/scripts/main.go +++ b/scripts/main.go @@ -3,9 +3,9 @@ package main import ( "os" - "cosmossdk.io/log" - "github.com/spf13/cobra" + + "cosmossdk.io/log" ) func main() { diff --git a/testutil/network/network.go b/testutil/network/network.go index 9f2d5c3d..4e469ae0 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -5,12 +5,13 @@ import ( "testing" "time" + dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/require" tmrand "github.com/cometbft/cometbft/libs/rand" - dbm "github.com/cosmos/cosmos-db" pruningtypes "cosmossdk.io/store/pruning/types" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/crypto/hd" "github.com/cosmos/cosmos-sdk/crypto/keyring" diff --git a/x/logic/fs/wasm_test.go b/x/logic/fs/wasm_test.go index bd4b18bf..b4559e02 100644 --- a/x/logic/fs/wasm_test.go +++ b/x/logic/fs/wasm_test.go @@ -8,17 +8,17 @@ import ( "net/url" "testing" - "cosmossdk.io/store/metrics" - + dbm "github.com/cosmos/cosmos-db" "github.com/golang/mock/gomock" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - dbm "github.com/cosmos/cosmos-db" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/interpreter/interpreter.go b/x/logic/interpreter/interpreter.go index 42339410..4a316998 100644 --- a/x/logic/interpreter/interpreter.go +++ b/x/logic/interpreter/interpreter.go @@ -6,10 +6,10 @@ import ( "io" "io/fs" - storetypes "cosmossdk.io/store/types" - "github.com/ichiban/prolog" "github.com/ichiban/prolog/engine" + + storetypes "cosmossdk.io/store/types" ) // Predicates is a map of predicate names to their execution costs. diff --git a/x/logic/interpreter/registry.go b/x/logic/interpreter/registry.go index f46df62a..18e2877c 100644 --- a/x/logic/interpreter/registry.go +++ b/x/logic/interpreter/registry.go @@ -5,11 +5,11 @@ import ( "strconv" "strings" - storetypes "cosmossdk.io/store/types" - "github.com/ichiban/prolog" "github.com/ichiban/prolog/engine" + storetypes "cosmossdk.io/store/types" + "github.com/okp4/okp4d/x/logic/predicate" ) diff --git a/x/logic/keeper/grpc_query_ask.go b/x/logic/keeper/grpc_query_ask.go index 520b51ee..34103ca8 100644 --- a/x/logic/keeper/grpc_query_ask.go +++ b/x/logic/keeper/grpc_query_ask.go @@ -3,9 +3,8 @@ package keeper import ( goctx "context" - storetypes "cosmossdk.io/store/types" - errorsmod "cosmossdk.io/errors" + storetypes "cosmossdk.io/store/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -41,7 +40,6 @@ func (k Keeper) Ask(ctx goctx.Context, req *types.QueryServiceAskRequest) (respo }() sdkCtx.GasMeter().ConsumeGas(sdkCtx.GasMeter().GasConsumed(), types.ModuleName) - //nolint:contextcheck return k.execute( sdkCtx, req.Program, diff --git a/x/logic/keeper/grpc_query_ask_test.go b/x/logic/keeper/grpc_query_ask_test.go index 9292af9e..04f6d928 100644 --- a/x/logic/keeper/grpc_query_ask_test.go +++ b/x/logic/keeper/grpc_query_ask_test.go @@ -11,6 +11,7 @@ import ( . "github.com/smartystreets/goconvey/convey" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/testutil" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" diff --git a/x/logic/keeper/grpc_query_params_test.go b/x/logic/keeper/grpc_query_params_test.go index f7d22bbd..75020b85 100644 --- a/x/logic/keeper/grpc_query_params_test.go +++ b/x/logic/keeper/grpc_query_params_test.go @@ -11,8 +11,8 @@ import ( . "github.com/smartystreets/goconvey/convey" "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/testutil" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" diff --git a/x/logic/keeper/interpreter.go b/x/logic/keeper/interpreter.go index acd805d9..da5ca07b 100644 --- a/x/logic/keeper/interpreter.go +++ b/x/logic/keeper/interpreter.go @@ -4,13 +4,12 @@ import ( goctx "context" "math" - storetypes "cosmossdk.io/store/types" - "github.com/ichiban/prolog" "github.com/samber/lo" errorsmod "cosmossdk.io/errors" sdkmath "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -64,7 +63,7 @@ func (k Keeper) execute(ctx goctx.Context, program, query string) (*types.QueryS if userOutputBuffer != nil { userOutput = userOutputBuffer.String() } - answer, err := k.solsToAnswer(sdkCtx, sols) //nolint:contextcheck + answer, err := k.solsToAnswer(sdkCtx, sols) if err != nil { return nil, err } diff --git a/x/logic/keeper/keeper.go b/x/logic/keeper/keeper.go index 4210f590..5657bad0 100644 --- a/x/logic/keeper/keeper.go +++ b/x/logic/keeper/keeper.go @@ -6,8 +6,8 @@ import ( "io/fs" "cosmossdk.io/log" - storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/logic/keeper/msg_server_test.go b/x/logic/keeper/msg_server_test.go index c70c1eed..ac34db84 100644 --- a/x/logic/keeper/msg_server_test.go +++ b/x/logic/keeper/msg_server_test.go @@ -11,6 +11,7 @@ import ( . "github.com/smartystreets/goconvey/convey" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/testutil" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/logic/module.go b/x/logic/module.go index 9abc5381..363fa72d 100644 --- a/x/logic/module.go +++ b/x/logic/module.go @@ -5,6 +5,8 @@ import ( "encoding/json" "fmt" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "cosmossdk.io/core/appmodule" "github.com/cosmos/cosmos-sdk/client" @@ -12,7 +14,6 @@ import ( cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/okp4/okp4d/x/logic/exported" "github.com/okp4/okp4d/x/logic/keeper" diff --git a/x/logic/predicate/address_test.go b/x/logic/predicate/address_test.go index 4b1165c7..7eeb7639 100644 --- a/x/logic/predicate/address_test.go +++ b/x/logic/predicate/address_test.go @@ -6,18 +6,17 @@ import ( "strings" "testing" - "cosmossdk.io/store/metrics" - dbm "github.com/cosmos/cosmos-db" - "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/predicate/bank_test.go b/x/logic/predicate/bank_test.go index fcb6bd18..915f4d11 100644 --- a/x/logic/predicate/bank_test.go +++ b/x/logic/predicate/bank_test.go @@ -6,21 +6,19 @@ import ( "strings" "testing" - "cosmossdk.io/math" - - "cosmossdk.io/store/metrics" - dbm "github.com/cosmos/cosmos-db" - "github.com/golang/mock/gomock" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "cosmossdk.io/log" + "cosmossdk.io/math" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" bank "github.com/cosmos/cosmos-sdk/x/bank/types" diff --git a/x/logic/predicate/block_test.go b/x/logic/predicate/block_test.go index 7a744701..20e0ae97 100644 --- a/x/logic/predicate/block_test.go +++ b/x/logic/predicate/block_test.go @@ -5,18 +5,17 @@ import ( "testing" "time" - "cosmossdk.io/store/metrics" - dbm "github.com/cosmos/cosmos-db" - "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/predicate/builtin_test.go b/x/logic/predicate/builtin_test.go index 6539ee31..9990285f 100644 --- a/x/logic/predicate/builtin_test.go +++ b/x/logic/predicate/builtin_test.go @@ -4,18 +4,18 @@ import ( "fmt" "testing" - "cosmossdk.io/store/metrics" - + dbm "github.com/cosmos/cosmos-db" "github.com/golang/mock/gomock" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - dbm "github.com/cosmos/cosmos-db" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/predicate/chain_test.go b/x/logic/predicate/chain_test.go index cf9bf6c5..9b0f6a99 100644 --- a/x/logic/predicate/chain_test.go +++ b/x/logic/predicate/chain_test.go @@ -4,18 +4,17 @@ import ( "fmt" "testing" - "cosmossdk.io/store/metrics" - dbm "github.com/cosmos/cosmos-db" - "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/predicate/crypto_test.go b/x/logic/predicate/crypto_test.go index 47dca957..f8a4852b 100644 --- a/x/logic/predicate/crypto_test.go +++ b/x/logic/predicate/crypto_test.go @@ -6,18 +6,17 @@ import ( "strings" "testing" - "cosmossdk.io/store/metrics" - dbm "github.com/cosmos/cosmos-db" - "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/predicate/did_test.go b/x/logic/predicate/did_test.go index 25bd477c..b5b42a3e 100644 --- a/x/logic/predicate/did_test.go +++ b/x/logic/predicate/did_test.go @@ -6,17 +6,17 @@ import ( "strings" "testing" - "cosmossdk.io/store/metrics" - + dbm "github.com/cosmos/cosmos-db" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - dbm "github.com/cosmos/cosmos-db" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/predicate/encoding_test.go b/x/logic/predicate/encoding_test.go index a96a8c54..b2fc880a 100644 --- a/x/logic/predicate/encoding_test.go +++ b/x/logic/predicate/encoding_test.go @@ -5,18 +5,18 @@ import ( "strings" "testing" - "cosmossdk.io/store/metrics" - + dbm "github.com/cosmos/cosmos-db" "github.com/ichiban/prolog" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - dbm "github.com/cosmos/cosmos-db" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/predicate/file_test.go b/x/logic/predicate/file_test.go index aabbe641..149444a1 100644 --- a/x/logic/predicate/file_test.go +++ b/x/logic/predicate/file_test.go @@ -9,19 +9,19 @@ import ( "testing" "time" - "cosmossdk.io/store/metrics" - + dbm "github.com/cosmos/cosmos-db" "github.com/golang/mock/gomock" "github.com/ichiban/prolog" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - dbm "github.com/cosmos/cosmos-db" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/fs" diff --git a/x/logic/predicate/json_test.go b/x/logic/predicate/json_test.go index f6eed27d..ffe3ca31 100644 --- a/x/logic/predicate/json_test.go +++ b/x/logic/predicate/json_test.go @@ -6,17 +6,17 @@ import ( "strings" "testing" - "cosmossdk.io/store/metrics" - + dbm "github.com/cosmos/cosmos-db" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - dbm "github.com/cosmos/cosmos-db" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/predicate/string_test.go b/x/logic/predicate/string_test.go index 583b72e3..f7597a3a 100644 --- a/x/logic/predicate/string_test.go +++ b/x/logic/predicate/string_test.go @@ -7,17 +7,16 @@ import ( "testing" dbm "github.com/cosmos/cosmos-db" - - "cosmossdk.io/store/metrics" - "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/predicate/uri_test.go b/x/logic/predicate/uri_test.go index 804c5c92..bd916dd5 100644 --- a/x/logic/predicate/uri_test.go +++ b/x/logic/predicate/uri_test.go @@ -6,17 +6,17 @@ import ( "strings" "testing" - "cosmossdk.io/store/metrics" - + dbm "github.com/cosmos/cosmos-db" "github.com/ichiban/prolog/engine" . "github.com/smartystreets/goconvey/convey" - "cosmossdk.io/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - dbm "github.com/cosmos/cosmos-db" + "cosmossdk.io/log" "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/logic/testutil" diff --git a/x/logic/types/codec.go b/x/logic/types/codec.go index 26d64733..dad52ba6 100644 --- a/x/logic/types/codec.go +++ b/x/logic/types/codec.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -// RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec +// RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec. func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(Params{}, "okp4/logic/Params", nil) legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "okp4/logic/MsgUpdateParams") diff --git a/x/mint/keeper/genesis.go b/x/mint/keeper/genesis.go index 19ab12b4..21126f3e 100644 --- a/x/mint/keeper/genesis.go +++ b/x/mint/keeper/genesis.go @@ -6,7 +6,7 @@ import ( "github.com/okp4/okp4d/x/mint/types" ) -// InitGenesis new mint genesis +// InitGenesis new mint genesis. func (keeper Keeper) InitGenesis(ctx sdk.Context, ak types.AccountKeeper, data *types.GenesisState) { if err := keeper.Minter.Set(ctx, data.Minter); err != nil { panic(err) diff --git a/x/mint/keeper/genesis_test.go b/x/mint/keeper/genesis_test.go index 309a3878..07d56386 100644 --- a/x/mint/keeper/genesis_test.go +++ b/x/mint/keeper/genesis_test.go @@ -3,16 +3,15 @@ package keeper_test import ( "testing" - "cosmossdk.io/collections" - "github.com/cosmos/cosmos-sdk/runtime" - - "cosmossdk.io/math" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" + "cosmossdk.io/collections" + "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" @@ -58,7 +57,15 @@ func (s *GenesisTestSuite) SetupTest() { accountKeeper.EXPECT().GetModuleAddress(minterAcc.Name).Return(minterAcc.GetAddress()) accountKeeper.EXPECT().GetModuleAccount(s.sdkCtx, minterAcc.Name).Return(minterAcc) - s.keeper = keeper.NewKeeper(s.cdc, runtime.NewKVStoreService(key), stakingKeeper, accountKeeper, bankKeeper, "", "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn") + s.keeper = keeper.NewKeeper( + s.cdc, + runtime.NewKVStoreService(key), + stakingKeeper, + accountKeeper, + bankKeeper, + "", + "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn", + ) } func (s *GenesisTestSuite) TestImportExportGenesis() { diff --git a/x/mint/keeper/grpc_query_test.go b/x/mint/keeper/grpc_query_test.go index ea7e9b07..9e63027f 100644 --- a/x/mint/keeper/grpc_query_test.go +++ b/x/mint/keeper/grpc_query_test.go @@ -4,13 +4,13 @@ import ( gocontext "context" "testing" - "github.com/cosmos/cosmos-sdk/runtime" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" @@ -69,9 +69,9 @@ func (suite *MintTestSuite) SetupTest() { func (suite *MintTestSuite) TestGRPCParams() { params, err := suite.queryClient.Params(gocontext.Background(), &types.QueryParamsRequest{}) suite.Require().NoError(err) - kParams, err := suite.mintKeeper.Params.Get(suite.ctx) + keeperParams, err := suite.mintKeeper.Params.Get(suite.ctx) suite.Require().NoError(err) - suite.Require().Equal(params.Params, kParams) + suite.Require().Equal(params.Params, keeperParams) inflation, err := suite.queryClient.Inflation(gocontext.Background(), &types.QueryInflationRequest{}) suite.Require().NoError(err) diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index b92d67c5..11da49c1 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -3,11 +3,9 @@ package keeper import ( "context" - "cosmossdk.io/core/store" - "cosmossdk.io/collections" + "cosmossdk.io/core/store" "cosmossdk.io/log" - "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" @@ -68,47 +66,47 @@ func NewKeeper( } // GetAuthority returns the x/mint module's authority. -func (k Keeper) GetAuthority() string { - return k.authority +func (keeper Keeper) GetAuthority() string { + return keeper.authority } // Logger returns a module-specific logger. -func (k Keeper) Logger(ctx context.Context) log.Logger { +func (keeper Keeper) Logger(ctx context.Context) log.Logger { sdkCtx := sdk.UnwrapSDKContext(ctx) return sdkCtx.Logger().With("module", "x/"+types.ModuleName) } // TokenSupply implements an alias call to the underlying bank keeper's // TokenSupply to be used in BeginBlocker. -func (k Keeper) TokenSupply(ctx context.Context, denom string) math.Int { - return k.bankKeeper.GetSupply(ctx, denom).Amount +func (keeper Keeper) TokenSupply(ctx context.Context, denom string) math.Int { + return keeper.bankKeeper.GetSupply(ctx, denom).Amount } // StakingTokenSupply implements an alias call to the underlying staking keeper's // StakingTokenSupply to be used in BeginBlocker. -func (k Keeper) StakingTokenSupply(ctx context.Context) (math.Int, error) { - return k.stakingKeeper.StakingTokenSupply(ctx) +func (keeper Keeper) StakingTokenSupply(ctx context.Context) (math.Int, error) { + return keeper.stakingKeeper.StakingTokenSupply(ctx) } // BondedRatio implements an alias call to the underlying staking keeper's // BondedRatio to be used in BeginBlocker. -func (k Keeper) BondedRatio(ctx context.Context) (math.LegacyDec, error) { - return k.stakingKeeper.BondedRatio(ctx) +func (keeper Keeper) BondedRatio(ctx context.Context) (math.LegacyDec, error) { + return keeper.stakingKeeper.BondedRatio(ctx) } // MintCoins implements an alias call to the underlying supply keeper's // MintCoins to be used in BeginBlocker. -func (k Keeper) MintCoins(ctx context.Context, newCoins sdk.Coins) error { +func (keeper Keeper) MintCoins(ctx context.Context, newCoins sdk.Coins) error { if newCoins.Empty() { // skip as no coins need to be minted return nil } - return k.bankKeeper.MintCoins(ctx, types.ModuleName, newCoins) + return keeper.bankKeeper.MintCoins(ctx, types.ModuleName, newCoins) } // AddCollectedFees implements an alias call to the underlying supply keeper's // AddCollectedFees to be used in BeginBlocker. -func (k Keeper) AddCollectedFees(ctx context.Context, fees sdk.Coins) error { - return k.bankKeeper.SendCoinsFromModuleToModule(ctx, types.ModuleName, k.feeCollectorName, fees) +func (keeper Keeper) AddCollectedFees(ctx context.Context, fees sdk.Coins) error { + return keeper.bankKeeper.SendCoinsFromModuleToModule(ctx, types.ModuleName, keeper.feeCollectorName, fees) } diff --git a/x/mint/keeper/keeper_test.go b/x/mint/keeper/keeper_test.go index 1df1aee3..5405c145 100644 --- a/x/mint/keeper/keeper_test.go +++ b/x/mint/keeper/keeper_test.go @@ -3,13 +3,13 @@ package keeper_test import ( "testing" - "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" - "github.com/cosmos/cosmos-sdk/runtime" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" diff --git a/x/mint/keeper/msg_server_test.go b/x/mint/keeper/msg_server_test.go index 24c30c40..e7a91b59 100644 --- a/x/mint/keeper/msg_server_test.go +++ b/x/mint/keeper/msg_server_test.go @@ -2,6 +2,7 @@ package keeper_test import ( "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/okp4/okp4d/x/mint/types" diff --git a/x/mint/module.go b/x/mint/module.go index 17ee5e4a..210cc39f 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/okp4/okp4d/x/mint/client/cli" + "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" "cosmossdk.io/core/appmodule" @@ -16,8 +16,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/okp4/okp4d/x/mint/client/cli" "github.com/okp4/okp4d/x/mint/keeper" "github.com/okp4/okp4d/x/mint/simulation" "github.com/okp4/okp4d/x/mint/types" diff --git a/x/mint/module_test.go b/x/mint/module_test.go index 34db3e6d..6ae3df35 100644 --- a/x/mint/module_test.go +++ b/x/mint/module_test.go @@ -3,11 +3,11 @@ package mint_test import ( "testing" + "github.com/stretchr/testify/require" + "cosmossdk.io/depinject" "cosmossdk.io/log" - "github.com/stretchr/testify/require" - simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/mint/simulation/decoder_test.go b/x/mint/simulation/decoder_test.go index 5a6a8217..443cc310 100644 --- a/x/mint/simulation/decoder_test.go +++ b/x/mint/simulation/decoder_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "cosmossdk.io/math" - "github.com/stretchr/testify/require" + "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/types/kv" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" diff --git a/x/mint/simulation/proposals_test.go b/x/mint/simulation/proposals_test.go index d7fac019..8db8cd71 100644 --- a/x/mint/simulation/proposals_test.go +++ b/x/mint/simulation/proposals_test.go @@ -4,12 +4,12 @@ import ( "math/rand" "testing" - "cosmossdk.io/math" - "gotest.tools/v3/assert" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/address" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" diff --git a/x/mint/types/codec.go b/x/mint/types/codec.go index 3a95f7dc..7a1c0f8b 100644 --- a/x/mint/types/codec.go +++ b/x/mint/types/codec.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -// RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec +// RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec. func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(Params{}, "okp4/mint/Params", nil) legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "okp4/mint/MsgUpdateParams") diff --git a/x/mint/types/params.go b/x/mint/types/params.go index d775796e..0fa51c6b 100644 --- a/x/mint/types/params.go +++ b/x/mint/types/params.go @@ -5,10 +5,10 @@ import ( "fmt" "strings" - "cosmossdk.io/math" - "sigs.k8s.io/yaml" + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/vesting/client/cli/tx.go b/x/vesting/client/cli/tx.go index f4c6e289..5f589605 100644 --- a/x/vesting/client/cli/tx.go +++ b/x/vesting/client/cli/tx.go @@ -198,9 +198,6 @@ func NewMsgCreatePeriodicVestingAccountCmd() *cobra.Command { } msg := types.NewMsgCreatePeriodicVestingAccount(clientCtx.GetFromAddress(), toAddr, vestingData.StartTime, periods) - if err := msg.ValidateBasic(); err != nil { - return err - } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/vesting/exported/exported.go b/x/vesting/exported/exported.go index 835ea59c..bfc15f71 100644 --- a/x/vesting/exported/exported.go +++ b/x/vesting/exported/exported.go @@ -4,12 +4,11 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" ) // VestingAccount defines an account type that vests coins via a vesting schedule. type VestingAccount interface { - types.AccountI + sdk.AccountI // LockedCoins returns the set of coins that are not spendable (i.e. locked), // defined as the vesting coins that are not delegated. diff --git a/x/vesting/module.go b/x/vesting/module.go index 1ca30895..b196d241 100644 --- a/x/vesting/module.go +++ b/x/vesting/module.go @@ -3,14 +3,14 @@ package vesting import ( "encoding/json" - "google.golang.org/grpc" - "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" + "google.golang.org/grpc" abci "github.com/cometbft/cometbft/abci/types" "cosmossdk.io/core/appmodule" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" diff --git a/x/vesting/msg_server.go b/x/vesting/msg_server.go index 58f056fe..955b284f 100644 --- a/x/vesting/msg_server.go +++ b/x/vesting/msg_server.go @@ -61,7 +61,7 @@ func (s msgServer) CreateVestingAccount(goCtx context.Context, baseAccount = ak.NewAccount(ctx, baseAccount).(*authtypes.BaseAccount) baseVestingAccount := types.NewBaseVestingAccount(baseAccount, msg.Amount.Sort(), msg.EndTime) - var vestingAccount authtypes.AccountI + var vestingAccount sdk.AccountI if msg.Delayed { vestingAccount = types.NewDelayedVestingAccountRaw(baseVestingAccount) } else { diff --git a/x/vesting/msg_server_test.go b/x/vesting/msg_server_test.go index 790e9b31..1ba140bb 100644 --- a/x/vesting/msg_server_test.go +++ b/x/vesting/msg_server_test.go @@ -4,10 +4,6 @@ import ( "testing" "time" - "github.com/cosmos/cosmos-sdk/runtime" - - authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" @@ -15,9 +11,12 @@ import ( tmtime "github.com/cometbft/cometbft/types/time" storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/vesting/types/codec.go b/x/vesting/types/codec.go index 44ccf413..a4b80ec6 100644 --- a/x/vesting/types/codec.go +++ b/x/vesting/types/codec.go @@ -4,7 +4,6 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/legacy" "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -67,18 +66,3 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } - -var ( - amino = codec.NewLegacyAmino() - ModuleCdc = codec.NewAminoCodec(amino) -) - -func init() { - RegisterLegacyAminoCodec(amino) - cryptocodec.RegisterCrypto(amino) - sdk.RegisterLegacyAminoCodec(amino) - - // Register all Amino interfaces and concrete types on the authz Amino codec so that this can later be - // used to properly serialize MsgGrant and MsgExec instances - // RegisterLegacyAminoCodec(authzcodec.Amino) -} diff --git a/x/vesting/types/msgs.go b/x/vesting/types/msgs.go index c8606cc6..15e7e8a7 100644 --- a/x/vesting/types/msgs.go +++ b/x/vesting/types/msgs.go @@ -1,26 +1,9 @@ package types import ( - "fmt" - - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// TypeMsgCreateVestingAccount defines the type value for a MsgCreateVestingAccount. -const TypeMsgCreateVestingAccount = "msg_create_vesting_account" - -// TypeMsgCreatePermanentLockedAccount defines the type value for a MsgCreatePermanentLockedAccount. -const TypeMsgCreatePermanentLockedAccount = "msg_create_permanent_locked_account" - -// TypeMsgCreatePeriodicVestingAccount defines the type value for a MsgCreateVestingAccount. -const TypeMsgCreatePeriodicVestingAccount = "msg_create_periodic_vesting_account" - -// TypeMsgCreateCliffVestingAccount defines the type value for a MsgCreateCliffVestingAccount. -const TypeMsgCreateCliffVestingAccount = "msg_create_cliff_vesting_account" - var _ sdk.Msg = &MsgCreateVestingAccount{} var _ sdk.Msg = &MsgCreatePermanentLockedAccount{} @@ -47,48 +30,6 @@ func NewMsgCreateVestingAccount(fromAddr, } } -// Route returns the message route for a MsgCreateVestingAccount. -func (msg MsgCreateVestingAccount) Route() string { return RouterKey } - -// Type returns the message type for a MsgCreateVestingAccount. -func (msg MsgCreateVestingAccount) Type() string { return TypeMsgCreateVestingAccount } - -// ValidateBasic Implements Msg. -func (msg MsgCreateVestingAccount) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(msg.FromAddress); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid 'from' address: %s", err) - } - if _, err := sdk.AccAddressFromBech32(msg.ToAddress); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid 'to' address: %s", err) - } - - if !msg.Amount.IsValid() { - return errorsmod.Wrap(sdkerrors.ErrInvalidCoins, msg.Amount.String()) - } - - if !msg.Amount.IsAllPositive() { - return errorsmod.Wrap(sdkerrors.ErrInvalidCoins, msg.Amount.String()) - } - - if msg.EndTime <= 0 { - return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "invalid end time") - } - - return nil -} - -// GetSignBytes returns the bytes all expected signers must sign over for a -// MsgCreateVestingAccount. -func (msg MsgCreateVestingAccount) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) -} - -// GetSigners returns the expected signers for a MsgCreateVestingAccount. -func (msg MsgCreateVestingAccount) GetSigners() []sdk.AccAddress { - addr, _ := sdk.AccAddressFromBech32(msg.FromAddress) - return []sdk.AccAddress{addr} -} - // NewMsgCreatePermanentLockedAccount returns a reference to a new MsgCreatePermanentLockedAccount. // //nolint:interfacer @@ -100,44 +41,6 @@ func NewMsgCreatePermanentLockedAccount(fromAddr, toAddr sdk.AccAddress, amount } } -// Route returns the message route for a MsgCreatePermanentLockedAccount. -func (msg MsgCreatePermanentLockedAccount) Route() string { return RouterKey } - -// Type returns the message type for a MsgCreatePermanentLockedAccount. -func (msg MsgCreatePermanentLockedAccount) Type() string { return TypeMsgCreatePermanentLockedAccount } - -// ValidateBasic Implements Msg. -func (msg MsgCreatePermanentLockedAccount) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(msg.FromAddress); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid sender address: %s", err) - } - if _, err := sdk.AccAddressFromBech32(msg.ToAddress); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid recipient address: %s", err) - } - - if !msg.Amount.IsValid() { - return sdkerrors.ErrInvalidCoins.Wrap(msg.Amount.String()) - } - - if !msg.Amount.IsAllPositive() { - return sdkerrors.ErrInvalidCoins.Wrap(msg.Amount.String()) - } - - return nil -} - -// GetSignBytes returns the bytes all expected signers must sign over for a -// MsgCreatePermanentLockedAccount. -func (msg MsgCreatePermanentLockedAccount) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) -} - -// GetSigners returns the expected signers for a MsgCreatePermanentLockedAccount. -func (msg MsgCreatePermanentLockedAccount) GetSigners() []sdk.AccAddress { - from, _ := sdk.AccAddressFromBech32(msg.FromAddress) - return []sdk.AccAddress{from} -} - // NewMsgCreatePeriodicVestingAccount returns a reference to a new MsgCreatePeriodicVestingAccount. // //nolint:interfacer @@ -154,58 +57,6 @@ func NewMsgCreatePeriodicVestingAccount(fromAddr, } } -// Route returns the message route for a MsgCreatePeriodicVestingAccount. -func (msg MsgCreatePeriodicVestingAccount) Route() string { return RouterKey } - -// Type returns the message type for a MsgCreatePeriodicVestingAccount. -func (msg MsgCreatePeriodicVestingAccount) Type() string { return TypeMsgCreatePeriodicVestingAccount } - -// GetSigners returns the expected signers for a MsgCreatePeriodicVestingAccount. -func (msg MsgCreatePeriodicVestingAccount) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.FromAddress) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -// GetSignBytes returns the bytes all expected signers must sign over for a -// MsgCreatePeriodicVestingAccount. -func (msg MsgCreatePeriodicVestingAccount) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) -} - -// ValidateBasic Implements Msg. -func (msg MsgCreatePeriodicVestingAccount) ValidateBasic() error { - from, err := sdk.AccAddressFromBech32(msg.FromAddress) - if err != nil { - return err - } - to, err := sdk.AccAddressFromBech32(msg.ToAddress) - if err != nil { - return err - } - if err := sdk.VerifyAddressFormat(from); err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid sender address: %s", err) - } - - if err := sdk.VerifyAddressFormat(to); err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid recipient address: %s", err) - } - - if msg.StartTime < 1 { - return fmt.Errorf("invalid start time of %d, length must be greater than 0", msg.StartTime) - } - - for i, period := range msg.VestingPeriods { - if period.Length < 1 { - return fmt.Errorf("invalid period length of %d in period %d, length must be greater than 0", period.Length, i) - } - } - - return nil -} - // NewMsgCreateCliffVestingAccount returns a reference to a new MsgCreateCliffVestingAccount. // //nolint:interfacer @@ -222,53 +73,3 @@ func NewMsgCreateCliffVestingAccount(fromAddr, CliffTime: cliffTime, } } - -// Route returns the message route for a MsgCreateVestingAccount. -func (msg MsgCreateCliffVestingAccount) Route() string { return RouterKey } - -// Type returns the message type for a MsgCreateVestingAccount. -func (msg MsgCreateCliffVestingAccount) Type() string { return TypeMsgCreateCliffVestingAccount } - -// ValidateBasic Implements Msg. -func (msg MsgCreateCliffVestingAccount) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(msg.FromAddress); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid 'from' address: %s", err) - } - if _, err := sdk.AccAddressFromBech32(msg.ToAddress); err != nil { - return sdkerrors.ErrInvalidAddress.Wrapf("invalid 'to' address: %s", err) - } - - if !msg.Amount.IsValid() { - return errorsmod.Wrap(sdkerrors.ErrInvalidCoins, msg.Amount.String()) - } - - if !msg.Amount.IsAllPositive() { - return errorsmod.Wrap(sdkerrors.ErrInvalidCoins, msg.Amount.String()) - } - - if msg.EndTime <= 0 { - return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "invalid end time") - } - - if msg.CliffTime <= 0 { - return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "invalid cliff time") - } - - if msg.CliffTime > msg.EndTime { - return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "cliff time should be before end time") - } - - return nil -} - -// GetSignBytes returns the bytes all expected signers must sign over for a -// MsgCreateVestingAccount. -func (msg MsgCreateCliffVestingAccount) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) -} - -// GetSigners returns the expected signers for a MsgCreateVestingAccount. -func (msg MsgCreateCliffVestingAccount) GetSigners() []sdk.AccAddress { - addr, _ := sdk.AccAddressFromBech32(msg.FromAddress) - return []sdk.AccAddress{addr} -} diff --git a/x/vesting/types/vesting_account.go b/x/vesting/types/vesting_account.go index 0707f629..bdded34b 100644 --- a/x/vesting/types/vesting_account.go +++ b/x/vesting/types/vesting_account.go @@ -7,6 +7,7 @@ import ( "sigs.k8s.io/yaml" "cosmossdk.io/math" + cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -16,7 +17,7 @@ import ( // Compile-time type assertions. var ( - _ authtypes.AccountI = (*BaseVestingAccount)(nil) + _ sdk.AccountI = (*BaseVestingAccount)(nil) _ vestexported.VestingAccount = (*ContinuousVestingAccount)(nil) _ vestexported.VestingAccount = (*PeriodicVestingAccount)(nil) _ vestexported.VestingAccount = (*DelayedVestingAccount)(nil) diff --git a/x/vesting/types/vesting_account_test.go b/x/vesting/types/vesting_account_test.go index 64a75c22..87d57b61 100644 --- a/x/vesting/types/vesting_account_test.go +++ b/x/vesting/types/vesting_account_test.go @@ -4,10 +4,6 @@ import ( "testing" "time" - authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" - - "github.com/cosmos/cosmos-sdk/runtime" - "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" @@ -15,11 +11,14 @@ import ( tmtime "github.com/cometbft/cometbft/types/time" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/testutil" "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" "github.com/cosmos/cosmos-sdk/x/auth/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" From 9703e34ecdf7b2d854064c8a3aacf69b84c8e957 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:36:19 +0100 Subject: [PATCH 28/29] test(e2e): try to migrate starship tests --- starship/tests/go.mod | 4 +--- starship/tests/setup_test.go | 4 +++- starship/tests/suite.go | 43 ++++++++++++++++++++++++++++++++++-- 3 files changed, 45 insertions(+), 6 deletions(-) diff --git a/starship/tests/go.mod b/starship/tests/go.mod index 7e35729c..aa0aace0 100644 --- a/starship/tests/go.mod +++ b/starship/tests/go.mod @@ -2,13 +2,11 @@ module github.com/okp4/okp4d/starship/tests go 1.21 -replace github.com/strangelove-ventures/lens => github.com/Anmol1696/lens v0.1.1-0.20230705212610-c00628a886a0 +replace github.com/strangelove-ventures/lens => github.com/Anmol1696/lens v0.1.1-0.20230331154219-5027f163133a require ( - github.com/cosmology-tech/starship/clients/go/client v0.0.0-20230715183507-198fb2b3ee2e github.com/cosmos/cosmos-sdk v0.50.1 github.com/cosmos/ibc-go/v8 v8.0.0 - github.com/strangelove-ventures/lens v0.0.0-00010101000000-000000000000 github.com/stretchr/testify v1.8.4 go.uber.org/zap v1.24.0 gopkg.in/yaml.v3 v3.0.1 diff --git a/starship/tests/setup_test.go b/starship/tests/setup_test.go index ba2f5aee..d2e259cc 100644 --- a/starship/tests/setup_test.go +++ b/starship/tests/setup_test.go @@ -4,6 +4,8 @@ import ( "context" "testing" + "cosmossdk.io/math" + "github.com/stretchr/testify/suite" sdk "github.com/cosmos/cosmos-sdk/types" @@ -45,7 +47,7 @@ func (s *TestSuite) TestChainTokenTransfer() { // Assert correct transfers s.Assert().Len(balance, 1) s.Assert().Equal(balance.Denoms(), []string{denom}) - s.Assert().Equal(balance[0].Amount, sdk.NewInt(2345000)) + s.Assert().Equal(balance[0].Amount, math.NewInt(2345000)) } func (s *TestSuite) TestChainIBCTransfer() { diff --git a/starship/tests/suite.go b/starship/tests/suite.go index d96210a4..d5d72c91 100644 --- a/starship/tests/suite.go +++ b/starship/tests/suite.go @@ -8,10 +8,29 @@ import ( "os" "time" + "github.com/cosmos/cosmos-sdk/x/mint" + + feegrant "cosmossdk.io/x/feegrant/module" + "cosmossdk.io/x/upgrade" + + "github.com/cosmos/cosmos-sdk/x/auth" + authz "github.com/cosmos/cosmos-sdk/x/authz/module" + "github.com/cosmos/cosmos-sdk/x/bank" + "github.com/cosmos/cosmos-sdk/x/crisis" + "github.com/cosmos/cosmos-sdk/x/distribution" + "github.com/cosmos/cosmos-sdk/x/gov" + "github.com/cosmos/cosmos-sdk/x/gov/client" + "github.com/cosmos/cosmos-sdk/x/params" + paramsclient "github.com/cosmos/cosmos-sdk/x/params/client" + "github.com/cosmos/cosmos-sdk/x/slashing" + "github.com/cosmos/cosmos-sdk/x/staking" + "github.com/cosmos/ibc-go/modules/capability" + "github.com/cosmos/ibc-go/v8/modules/apps/transfer" + ibc "github.com/cosmos/ibc-go/v8/modules/core" + "cosmossdk.io/math" starship "github.com/cosmology-tech/starship/clients/go/client" - lens "github.com/strangelove-ventures/lens/client" "github.com/stretchr/testify/suite" "go.uber.org/zap" "gopkg.in/yaml.v3" @@ -47,7 +66,27 @@ func (s *TestSuite) SetupTest() { // create chain clients modulesBasicMap := map[string][]module.AppModuleBasic{} for _, chain := range config.Chains { - modulesBasicMap[chain.Name] = lens.ModuleBasics + modulesBasicMap[chain.Name] = []module.AppModuleBasic{ + auth.AppModuleBasic{}, + authz.AppModuleBasic{}, + bank.AppModuleBasic{}, + capability.AppModuleBasic{}, + gov.NewAppModuleBasic( + []client.ProposalHandler{ + paramsclient.ProposalHandler, + }, + ), + crisis.AppModuleBasic{}, + distribution.AppModuleBasic{}, + feegrant.AppModuleBasic{}, + mint.AppModuleBasic{}, + params.AppModuleBasic{}, + slashing.AppModuleBasic{}, + staking.AppModuleBasic{}, + upgrade.AppModuleBasic{}, + transfer.AppModuleBasic{}, + ibc.AppModuleBasic{}, + } } chainClients, err := starship.NewChainClients(zap.L(), config, modulesBasicMap) s.Require().NoError(err) From e4e0c8a9fa8c5e68dacce5417ba4d3b4bb1766bf Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:37:26 +0100 Subject: [PATCH 29/29] ci: disable starship triggers --- .github/workflows/test-e2e.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 78ae39b3..64f5aba1 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -1,12 +1,12 @@ name: Test E2E -on: - push: - branches: - - main - pull_request: - branches: - - main +on: {} +# push: +# branches: +# - main +# pull_request: +# branches: +# - main concurrency: group: e2e-test-${{ github.ref }}