diff --git a/wormhole_chain/.gitignore b/wormhole_chain/.gitignore
new file mode 100644
index 000000000..ee72168d1
--- /dev/null
+++ b/wormhole_chain/.gitignore
@@ -0,0 +1,16 @@
+vue/node_modules
+vue/dist
+vue/src/store/generated/
+vue/
+release/
+testing/js/node_modules
+!build
+build/wormhole-chaind
+build/data
+validators/first_validator/keyring-test
+validators/second_validator/keyring-test
+ts-sdk/node_modules
+ts-sdk/lib
+
+.idea
+*.iml
diff --git a/wormhole_chain/.vscode/launch.json b/wormhole_chain/.vscode/launch.json
new file mode 100644
index 000000000..32107b477
--- /dev/null
+++ b/wormhole_chain/.vscode/launch.json
@@ -0,0 +1,16 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "wormhole-chaind/main.go",
+ "type": "go",
+ "request": "launch",
+ "mode": "debug",
+ "program": "${workspaceFolder}/cmd/wormhole-chaind/main.go",
+ "args": [
+ "start",
+ "--home", "${workspaceFolder}/build/",
+ ]
+ },
+ ],
+}
diff --git a/wormhole_chain/Dockerfile b/wormhole_chain/Dockerfile
new file mode 100644
index 000000000..3b948977e
--- /dev/null
+++ b/wormhole_chain/Dockerfile
@@ -0,0 +1,31 @@
+FROM docker.io/golang:1.19.0@sha256:4c00329e17be6fedd8bd4412df454a205348da00f9e0e5d763380a29eb096b75
+
+#used for a readiness probe
+RUN apt-get update
+RUN apt install -y netcat
+RUN apt install -y jq
+RUN curl https://get.ignite.com/cli@v0.23.0 | bash && mv ignite /usr/local/bin/
+
+WORKDIR /app
+
+COPY ./wormhole_chain/go.mod .
+COPY ./wormhole_chain/go.sum .
+RUN go mod download
+
+COPY ./wormhole_chain .
+
+EXPOSE 26657
+EXPOSE 26656
+EXPOSE 6060
+EXPOSE 9090
+EXPOSE 1317
+EXPOSE 4500
+
+RUN unset GOPATH
+
+RUN make client
+RUN chmod +x /app/build/wormhole-chaind
+RUN make validators
+RUN /app/build/wormhole-chaind collect-gentxs --home /app/build
+
+ENTRYPOINT ["/bin/bash","-c","/app/build/wormhole-chaind start"]
diff --git a/wormhole_chain/Makefile b/wormhole_chain/Makefile
new file mode 100644
index 000000000..fe98f625e
--- /dev/null
+++ b/wormhole_chain/Makefile
@@ -0,0 +1,72 @@
+PROTO_FILES=$(shell find proto -name "*.proto")
+GO_FILES=$(shell find . -name "*.go")
+IGNITE_EXPECTED_VERSION:=v0.23.0
+IGNITE_ACTUAL_VERSION:=$(shell ignite version | awk '/Ignite CLI version:/ { print $$4 }')
+# Address of the main tilt validator that the others should connect to
+TILT_VALADDRESS=wormholevaloper1cyyzpxplxdzkeea7kwsydadg87357qna87hzv8
+
+ifneq ("$(IGNITE_ACTUAL_VERSION)", "$(IGNITE_EXPECTED_VERSION)")
+ $(error "Expected ignite version $(IGNITE_EXPECTED_VERSION) but found $(IGNITE_ACTUAL_VERSION)")
+endif
+
+.PHONY: all
+all: client vue validators
+
+.PHONY: client
+client: build/wormhole-chaind
+
+.PHONY: validators
+validators:
+ # These files change when the genesis file changes, so we need to make
+ # sure to copy them over
+ touch -m $@
+ rm -f build/config/gentx/gentx-c3f474217c930af3a4e998c4e52a57cee188ff43.json
+ ./build/wormhole-chaind --home build/ gentx tiltGuardian "0uworm" --chain-id=wormholechain --min-self-delegation="0" --keyring-dir=keyring-test
+
+ # Copy config to validators/first_validator
+ cp build/config/priv_validator_key.json validators/first_validator/config/
+ cp build/config/node_key.json validators/first_validator/config/
+ mkdir -p validators/first_validator/keyring-test
+ cp build/keyring-test/* validators/first_validator/keyring-test/
+
+ # Copy these lines for each new validator
+ # We grab the validator's address from the gentx memo that it creates.
+ sed -E "s/(persistent_peers = \")[^@]*/\1$$(grep -lR MsgCreateValidator build/config/gentx | xargs grep -l $(TILT_VALADDRESS) | xargs jq '.body.memo' -r | cut -d@ -f1)/" validators/second_validator/config/config.toml -i
+ mkdir -p validators/second_validator/keyring-test
+ cp build/keyring-test/* validators/second_validator/keyring-test/
+
+build/wormhole-chaind: cmd/wormhole-chaind/main.go $(GO_FILES) proto
+ go build -o $@ $<
+
+proto: $(PROTO_FILES)
+ ignite generate proto-go
+ touch proto
+
+vue: $(GO_FILES) proto
+ mkdir -p $@
+ touch -m $@
+ NODE_OPTIONS="" ignite generate vuex --proto-all-modules
+
+# For now this is a phony target so we just rebuild it each time instead of
+# tracking dependencies
+.PHONY: ts-sdk
+ts-sdk: vue
+ npm ci --prefix $@
+ npm run build --prefix $@
+
+.PHONY: run
+run: build/wormhole-chaind
+ ./$< start --home build --log_level="debug"
+
+.PHONY: test
+test:
+ go test -v ./...
+
+.PHONY: bootstrap
+bootstrap:
+ npm run bootstrap --prefix testing/js
+
+.PHONY: clean
+clean:
+ rm -rf build/wormhole-chaind build/**/*.db build/**/*.wal vue
+ echo "{\"height\":\"0\",\"round\":0,\"step\":0}" > build/data/priv_validator_state.json
diff --git a/wormhole_chain/app/app.go b/wormhole_chain/app/app.go
new file mode 100644
index 000000000..c60d5d184
--- /dev/null
+++ b/wormhole_chain/app/app.go
@@ -0,0 +1,699 @@
+package app
+
+import (
+ "io"
+ "net/http"
+ "os"
+ "path/filepath"
+
+ "github.com/cosmos/cosmos-sdk/baseapp"
+ "github.com/cosmos/cosmos-sdk/client"
+ "github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
+ "github.com/cosmos/cosmos-sdk/client/rpc"
+ "github.com/cosmos/cosmos-sdk/codec"
+ "github.com/cosmos/cosmos-sdk/codec/types"
+ "github.com/cosmos/cosmos-sdk/server/api"
+ "github.com/cosmos/cosmos-sdk/server/config"
+ servertypes "github.com/cosmos/cosmos-sdk/server/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"
+ authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest"
+ authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
+ authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
+ authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
+ "github.com/cosmos/cosmos-sdk/x/auth/vesting"
+ vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
+ "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/crisis"
+ crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper"
+ crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
+ distr "github.com/cosmos/cosmos-sdk/x/distribution"
+ distrclient "github.com/cosmos/cosmos-sdk/x/distribution/client"
+ 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"
+ "github.com/cosmos/cosmos-sdk/x/mint"
+ mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper"
+ minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
+ "github.com/cosmos/cosmos-sdk/x/params"
+ paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
+ paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper"
+ paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
+ paramproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal"
+ "github.com/cosmos/cosmos-sdk/x/slashing"
+ slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper"
+ slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
+ "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"
+ "github.com/cosmos/ibc-go/modules/apps/transfer"
+ ibctransferkeeper "github.com/cosmos/ibc-go/modules/apps/transfer/keeper"
+ ibctransfertypes "github.com/cosmos/ibc-go/modules/apps/transfer/types"
+ ibc "github.com/cosmos/ibc-go/modules/core"
+ ibcclient "github.com/cosmos/ibc-go/modules/core/02-client"
+ ibcporttypes "github.com/cosmos/ibc-go/modules/core/05-port/types"
+ ibchost "github.com/cosmos/ibc-go/modules/core/24-host"
+ ibckeeper "github.com/cosmos/ibc-go/modules/core/keeper"
+ "github.com/spf13/cast"
+ abci "github.com/tendermint/tendermint/abci/types"
+ tmjson "github.com/tendermint/tendermint/libs/json"
+ "github.com/tendermint/tendermint/libs/log"
+ tmos "github.com/tendermint/tendermint/libs/os"
+ dbm "github.com/tendermint/tm-db"
+
+ "github.com/tendermint/spm/cosmoscmd"
+ "github.com/tendermint/spm/openapiconsole"
+
+ "github.com/certusone/wormhole-chain/docs"
+ tokenbridgemodule "github.com/certusone/wormhole-chain/x/tokenbridge"
+ tokenbridgemodulekeeper "github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
+ tokenbridgemoduletypes "github.com/certusone/wormhole-chain/x/tokenbridge/types"
+ wormholemodule "github.com/certusone/wormhole-chain/x/wormhole"
+ wormholeclient "github.com/certusone/wormhole-chain/x/wormhole/client"
+ wormholemodulekeeper "github.com/certusone/wormhole-chain/x/wormhole/keeper"
+ wormholemoduletypes "github.com/certusone/wormhole-chain/x/wormhole/types"
+ // this line is used by starport scaffolding # stargate/app/moduleImport
+)
+
+const (
+ AccountAddressPrefix = "wormhole"
+ Name = "wormholechain"
+)
+
+// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
+
+func getGovProposalHandlers() []govclient.ProposalHandler {
+ var govProposalHandlers []govclient.ProposalHandler
+ // this line is used by starport scaffolding # stargate/app/govProposalHandlers
+
+ govProposalHandlers = append(govProposalHandlers,
+ paramsclient.ProposalHandler,
+ distrclient.ProposalHandler,
+ upgradeclient.ProposalHandler,
+ upgradeclient.CancelProposalHandler,
+ wormholeclient.GuardianSetUpdateProposalHandler,
+ wormholeclient.WormholeGovernanceMessageProposalHandler,
+ // this line is used by starport scaffolding # stargate/app/govProposalHandler
+ )
+
+ return govProposalHandlers
+}
+
+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{},
+ genutil.AppModuleBasic{},
+ bank.AppModuleBasic{},
+ capability.AppModuleBasic{},
+ staking.AppModuleBasic{},
+ mint.AppModuleBasic{},
+ distr.AppModuleBasic{},
+ gov.NewAppModuleBasic(getGovProposalHandlers()...),
+ params.AppModuleBasic{},
+ crisis.AppModuleBasic{},
+ slashing.AppModuleBasic{},
+ feegrantmodule.AppModuleBasic{},
+ ibc.AppModuleBasic{},
+ upgrade.AppModuleBasic{},
+ evidence.AppModuleBasic{},
+ transfer.AppModuleBasic{},
+ vesting.AppModuleBasic{},
+ wormholemodule.AppModuleBasic{},
+ tokenbridgemodule.AppModuleBasic{},
+ // this line is used by starport scaffolding # stargate/app/moduleBasic
+ )
+
+ // module account permissions
+ maccPerms = map[string][]string{
+ authtypes.FeeCollectorName: nil,
+ distrtypes.ModuleName: nil,
+ minttypes.ModuleName: {authtypes.Minter},
+ stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
+ stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
+ govtypes.ModuleName: {authtypes.Burner},
+ ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
+ wormholemoduletypes.ModuleName: nil,
+ tokenbridgemoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
+ // this line is used by starport scaffolding # stargate/app/maccPerms
+ }
+)
+
+var (
+ _ cosmoscmd.CosmosApp = (*App)(nil)
+ _ servertypes.Application = (*App)(nil)
+)
+
+func init() {
+ userHomeDir, err := os.UserHomeDir()
+ if err != nil {
+ panic(err)
+ }
+
+ DefaultNodeHome = filepath.Join(userHomeDir, "."+Name)
+}
+
+// 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
+ appCodec codec.Codec
+ interfaceRegistry types.InterfaceRegistry
+
+ invCheckPeriod uint
+
+ // keys to access the substores
+ keys map[string]*sdk.KVStoreKey
+ tkeys map[string]*sdk.TransientStoreKey
+ memKeys map[string]*sdk.MemoryStoreKey
+
+ // keepers
+ AccountKeeper authkeeper.AccountKeeper
+ BankKeeper bankkeeper.Keeper
+ CapabilityKeeper *capabilitykeeper.Keeper
+ StakingKeeper stakingkeeper.Keeper
+ SlashingKeeper slashingkeeper.Keeper
+ MintKeeper mintkeeper.Keeper
+ DistrKeeper distrkeeper.Keeper
+ GovKeeper govkeeper.Keeper
+ CrisisKeeper crisiskeeper.Keeper
+ UpgradeKeeper upgradekeeper.Keeper
+ ParamsKeeper paramskeeper.Keeper
+ IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
+ EvidenceKeeper evidencekeeper.Keeper
+ TransferKeeper ibctransferkeeper.Keeper
+ FeeGrantKeeper feegrantkeeper.Keeper
+
+ // make scoped keepers public for test purposes
+ ScopedIBCKeeper capabilitykeeper.ScopedKeeper
+ ScopedTransferKeeper capabilitykeeper.ScopedKeeper
+
+ WormholeKeeper wormholemodulekeeper.Keeper
+
+ TokenbridgeKeeper tokenbridgemodulekeeper.Keeper
+ // this line is used by starport scaffolding # stargate/app/keeperDeclaration
+
+ // the module manager
+ mm *module.Manager
+}
+
+// New returns a reference to an initialized Gaia.
+func New(
+ logger log.Logger,
+ db dbm.DB,
+ traceStore io.Writer,
+ loadLatest bool,
+ skipUpgradeHeights map[int64]bool,
+ homePath string,
+ invCheckPeriod uint,
+ encodingConfig cosmoscmd.EncodingConfig,
+ appOpts servertypes.AppOptions,
+ baseAppOptions ...func(*baseapp.BaseApp),
+) cosmoscmd.App {
+ appCodec := encodingConfig.Marshaler
+ cdc := encodingConfig.Amino
+ interfaceRegistry := encodingConfig.InterfaceRegistry
+
+ // TODO remove for prod
+ baseAppOptions = append(baseAppOptions, baseapp.SetTrace(true))
+
+ bApp := baseapp.NewBaseApp(Name, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...)
+ bApp.SetCommitMultiStoreTracer(traceStore)
+ bApp.SetVersion(version.Version)
+ bApp.SetInterfaceRegistry(interfaceRegistry)
+
+ keys := sdk.NewKVStoreKeys(
+ authtypes.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey,
+ minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
+ govtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey,
+ evidencetypes.StoreKey, ibctransfertypes.StoreKey, capabilitytypes.StoreKey,
+ wormholemoduletypes.StoreKey,
+ tokenbridgemoduletypes.StoreKey,
+ // this line is used by starport scaffolding # stargate/app/storeKey
+ )
+ tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
+ memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)
+
+ app := &App{
+ BaseApp: bApp,
+ cdc: cdc,
+ appCodec: appCodec,
+ interfaceRegistry: interfaceRegistry,
+ invCheckPeriod: invCheckPeriod,
+ keys: keys,
+ tkeys: tkeys,
+ memKeys: memKeys,
+ }
+
+ app.ParamsKeeper = initParamsKeeper(appCodec, cdc, keys[paramstypes.StoreKey], tkeys[paramstypes.TStoreKey])
+
+ // set the BaseApp's parameter store
+ bApp.SetParamStore(app.ParamsKeeper.Subspace(baseapp.Paramspace).WithKeyTable(paramskeeper.ConsensusParamsKeyTable()))
+
+ // add capability keeper and ScopeToModule for ibc module
+ app.CapabilityKeeper = capabilitykeeper.NewKeeper(appCodec, keys[capabilitytypes.StoreKey], memKeys[capabilitytypes.MemStoreKey])
+
+ // grant capabilities for the ibc and ibc-transfer modules
+ scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibchost.ModuleName)
+ scopedTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
+ // this line is used by starport scaffolding # stargate/app/scopedKeeper
+
+ // add keepers
+ app.AccountKeeper = authkeeper.NewAccountKeeper(
+ appCodec, keys[authtypes.StoreKey], app.GetSubspace(authtypes.ModuleName), authtypes.ProtoBaseAccount, maccPerms,
+ )
+ app.BankKeeper = bankkeeper.NewBaseKeeper(
+ appCodec, keys[banktypes.StoreKey], app.AccountKeeper, app.GetSubspace(banktypes.ModuleName), app.ModuleAccountAddrs(),
+ )
+
+ app.WormholeKeeper = *wormholemodulekeeper.NewKeeper(
+ appCodec,
+ keys[wormholemoduletypes.StoreKey],
+ keys[wormholemoduletypes.MemStoreKey],
+
+ app.AccountKeeper,
+ app.BankKeeper,
+ )
+
+ wormholeModule := wormholemodule.NewAppModule(appCodec, app.WormholeKeeper)
+
+ stakingKeeper := stakingkeeper.NewKeeper(
+ appCodec, keys[stakingtypes.StoreKey], app.AccountKeeper, app.BankKeeper, app.WormholeKeeper, app.GetSubspace(stakingtypes.ModuleName),
+ )
+ app.MintKeeper = mintkeeper.NewKeeper(
+ appCodec, keys[minttypes.StoreKey], app.GetSubspace(minttypes.ModuleName), &stakingKeeper,
+ app.AccountKeeper, app.BankKeeper, authtypes.FeeCollectorName,
+ )
+ app.DistrKeeper = distrkeeper.NewKeeper(
+ appCodec, keys[distrtypes.StoreKey], app.GetSubspace(distrtypes.ModuleName), app.AccountKeeper, app.BankKeeper,
+ &stakingKeeper, authtypes.FeeCollectorName, app.ModuleAccountAddrs(),
+ )
+ app.SlashingKeeper = slashingkeeper.NewKeeper(
+ appCodec, keys[slashingtypes.StoreKey], &stakingKeeper, app.GetSubspace(slashingtypes.ModuleName),
+ )
+ app.CrisisKeeper = crisiskeeper.NewKeeper(
+ app.GetSubspace(crisistypes.ModuleName), invCheckPeriod, app.BankKeeper, authtypes.FeeCollectorName,
+ )
+
+ app.FeeGrantKeeper = feegrantkeeper.NewKeeper(appCodec, keys[feegrant.StoreKey], app.AccountKeeper)
+ app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp)
+
+ // register the staking hooks
+ // NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks
+ app.StakingKeeper = *stakingKeeper.SetHooks(
+ stakingtypes.NewMultiStakingHooks(app.DistrKeeper.Hooks(), app.SlashingKeeper.Hooks()),
+ )
+
+ // ... other modules keepers
+
+ // Create IBC Keeper
+ app.IBCKeeper = ibckeeper.NewKeeper(
+ appCodec, keys[ibchost.StoreKey], app.GetSubspace(ibchost.ModuleName), app.StakingKeeper, app.UpgradeKeeper, scopedIBCKeeper,
+ )
+
+ // register the proposal types
+ govRouter := govtypes.NewRouter()
+ govRouter.AddRoute(govtypes.RouterKey, govtypes.ProposalHandler).
+ AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)).
+ AddRoute(distrtypes.RouterKey, distr.NewCommunityPoolSpendProposalHandler(app.DistrKeeper)).
+ AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper)).
+ AddRoute(ibchost.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper))
+
+ // Create Transfer Keepers
+ app.TransferKeeper = ibctransferkeeper.NewKeeper(
+ appCodec, keys[ibctransfertypes.StoreKey], app.GetSubspace(ibctransfertypes.ModuleName),
+ app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper,
+ app.AccountKeeper, app.BankKeeper, scopedTransferKeeper,
+ )
+ transferModule := transfer.NewAppModule(app.TransferKeeper)
+
+ // Create evidence Keeper for to register the IBC light client misbehaviour evidence route
+ evidenceKeeper := evidencekeeper.NewKeeper(
+ appCodec, keys[evidencetypes.StoreKey], &app.StakingKeeper, app.SlashingKeeper,
+ )
+ // If evidence needs to be handled for the app, set routes in router here and seal
+ app.EvidenceKeeper = *evidenceKeeper
+
+ govRouter.AddRoute(wormholemoduletypes.RouterKey, wormholemodule.NewWormholeGovernanceProposalHandler(app.WormholeKeeper))
+
+ app.TokenbridgeKeeper = *tokenbridgemodulekeeper.NewKeeper(
+ appCodec,
+ keys[tokenbridgemoduletypes.StoreKey],
+ keys[tokenbridgemoduletypes.MemStoreKey],
+
+ app.AccountKeeper,
+ app.BankKeeper,
+ app.WormholeKeeper,
+ )
+ tokenbridgeModule := tokenbridgemodule.NewAppModule(appCodec, app.TokenbridgeKeeper)
+
+ app.GovKeeper = govkeeper.NewKeeper(
+ appCodec, keys[govtypes.StoreKey], app.GetSubspace(govtypes.ModuleName), app.AccountKeeper, app.BankKeeper,
+ &stakingKeeper, govRouter,
+ )
+
+ // this line is used by starport scaffolding # stargate/app/keeperDefinition
+
+ // Create static IBC router, add transfer route, then set and seal it
+ ibcRouter := ibcporttypes.NewRouter()
+ ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferModule)
+ // this line is used by starport scaffolding # ibc/app/router
+ app.IBCKeeper.SetRouter(ibcRouter)
+
+ /**** Module Options ****/
+
+ // NOTE: we may consider parsing `appOpts` inside module constructors. For the moment
+ // we prefer to be more strict in what arguments the modules expect.
+ var skipGenesisInvariants = cast.ToBool(appOpts.Get(crisis.FlagSkipGenesisInvariants))
+
+ // NOTE: Any module instantiated in the module manager that is later modified
+ // must be passed by reference here.
+
+ app.mm = module.NewManager(
+ genutil.NewAppModule(
+ app.AccountKeeper, app.StakingKeeper, app.BaseApp.DeliverTx,
+ encodingConfig.TxConfig,
+ ),
+ auth.NewAppModule(appCodec, app.AccountKeeper, nil),
+ vesting.NewAppModule(app.AccountKeeper, app.BankKeeper),
+ bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper),
+ capability.NewAppModule(appCodec, *app.CapabilityKeeper),
+ feegrantmodule.NewAppModule(appCodec, app.AccountKeeper, app.BankKeeper, app.FeeGrantKeeper, app.interfaceRegistry),
+ crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants),
+ gov.NewAppModule(appCodec, app.GovKeeper, app.AccountKeeper, app.BankKeeper),
+ mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper),
+ slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper),
+ distr.NewAppModule(appCodec, app.DistrKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper),
+ staking.NewAppModule(appCodec, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.WormholeKeeper),
+ upgrade.NewAppModule(app.UpgradeKeeper),
+ evidence.NewAppModule(app.EvidenceKeeper),
+ ibc.NewAppModule(app.IBCKeeper),
+ params.NewAppModule(app.ParamsKeeper),
+ transferModule,
+ wormholeModule,
+ tokenbridgeModule,
+ // this line is used by starport scaffolding # stargate/app/appModule
+ )
+
+ // 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(
+ upgradetypes.ModuleName,
+ capabilitytypes.ModuleName,
+ minttypes.ModuleName,
+ distrtypes.ModuleName,
+ slashingtypes.ModuleName,
+ evidencetypes.ModuleName,
+ stakingtypes.ModuleName,
+ vestingtypes.ModuleName,
+ ibchost.ModuleName,
+ ibctransfertypes.ModuleName,
+ authtypes.ModuleName,
+ banktypes.ModuleName,
+ govtypes.ModuleName,
+ crisistypes.ModuleName,
+ genutiltypes.ModuleName,
+ feegrant.ModuleName,
+ paramstypes.ModuleName,
+ wormholemoduletypes.ModuleName,
+ tokenbridgemoduletypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/beginBlockers
+ )
+
+ app.mm.SetOrderEndBlockers(
+ crisistypes.ModuleName,
+ govtypes.ModuleName,
+ stakingtypes.ModuleName,
+ capabilitytypes.ModuleName,
+ authtypes.ModuleName,
+ banktypes.ModuleName,
+ distrtypes.ModuleName,
+ slashingtypes.ModuleName,
+ vestingtypes.ModuleName,
+ minttypes.ModuleName,
+ genutiltypes.ModuleName,
+ evidencetypes.ModuleName,
+ feegrant.ModuleName,
+ paramstypes.ModuleName,
+ upgradetypes.ModuleName,
+ ibchost.ModuleName,
+ ibctransfertypes.ModuleName,
+ wormholemoduletypes.ModuleName,
+ tokenbridgemoduletypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/endBlockers
+ )
+
+ // NOTE: The genutils module must occur after staking so that pools are
+ // properly initialized with tokens from genesis accounts.
+ // 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: The wormhole module must occur before staking so that the consensus
+ // guardian set is properly initialised before the staking module allocates
+ // voting power in its genesis handler
+ app.mm.SetOrderInitGenesis(
+ capabilitytypes.ModuleName,
+ authtypes.ModuleName,
+ banktypes.ModuleName,
+ distrtypes.ModuleName,
+ wormholemoduletypes.ModuleName,
+ stakingtypes.ModuleName,
+ vestingtypes.ModuleName,
+ slashingtypes.ModuleName,
+ govtypes.ModuleName,
+ minttypes.ModuleName,
+ crisistypes.ModuleName,
+ ibchost.ModuleName,
+ genutiltypes.ModuleName,
+ evidencetypes.ModuleName,
+ paramstypes.ModuleName,
+ upgradetypes.ModuleName,
+ ibctransfertypes.ModuleName,
+ feegrant.ModuleName,
+ tokenbridgemoduletypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/initGenesis
+ )
+
+ app.mm.RegisterInvariants(&app.CrisisKeeper)
+ app.mm.RegisterRoutes(app.Router(), app.QueryRouter(), encodingConfig.Amino)
+ app.mm.RegisterServices(module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter()))
+
+ // initialize stores
+ app.MountKVStores(keys)
+ app.MountTransientStores(tkeys)
+ app.MountMemoryStores(memKeys)
+
+ // initialize BaseApp
+ app.SetInitChainer(app.InitChainer)
+ app.SetBeginBlocker(app.BeginBlocker)
+
+ anteHandler, err := ante.NewAnteHandler(
+ ante.HandlerOptions{
+ AccountKeeper: app.AccountKeeper,
+ BankKeeper: app.BankKeeper,
+ SignModeHandler: encodingConfig.TxConfig.SignModeHandler(),
+ FeegrantKeeper: app.FeeGrantKeeper,
+ SigGasConsumer: ante.DefaultSigVerificationGasConsumer,
+ },
+ )
+ if err != nil {
+ panic(err)
+ }
+
+ app.SetAnteHandler(anteHandler)
+ app.SetEndBlocker(app.EndBlocker)
+
+ if loadLatest {
+ if err := app.LoadLatestVersion(); err != nil {
+ tmos.Exit(err.Error())
+ }
+ }
+
+ app.ScopedIBCKeeper = scopedIBCKeeper
+ app.ScopedTransferKeeper = scopedTransferKeeper
+ // this line is used by starport scaffolding # stargate/app/beforeInitReturn
+
+ return app
+}
+
+// Name returns the name of the App
+func (app *App) Name() string { return app.BaseApp.Name() }
+
+// BeginBlocker application updates every begin block
+func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock {
+ return app.mm.BeginBlock(ctx, req)
+}
+
+// EndBlocker application updates every end block
+func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock {
+ return app.mm.EndBlock(ctx, req)
+}
+
+// InitChainer application update at chain initialization
+func (app *App) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain {
+ var genesisState GenesisState
+ if err := tmjson.Unmarshal(req.AppStateBytes, &genesisState); err != nil {
+ panic(err)
+ }
+ app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap())
+ return app.mm.InitGenesis(ctx, app.appCodec, genesisState)
+}
+
+// LoadHeight loads a particular height
+func (app *App) LoadHeight(height int64) error {
+ return app.LoadVersion(height)
+}
+
+// ModuleAccountAddrs returns all the app's module account addresses.
+func (app *App) ModuleAccountAddrs() map[string]bool {
+ modAccAddrs := make(map[string]bool)
+ for acc := range maccPerms {
+ modAccAddrs[authtypes.NewModuleAddress(acc).String()] = true
+ }
+
+ return modAccAddrs
+}
+
+// LegacyAmino returns SimApp's amino codec.
+//
+// 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
+}
+
+// AppCodec returns Gaia's app codec.
+//
+// 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) AppCodec() codec.Codec {
+ return app.appCodec
+}
+
+// InterfaceRegistry returns Gaia's InterfaceRegistry
+func (app *App) InterfaceRegistry() types.InterfaceRegistry {
+ return app.interfaceRegistry
+}
+
+// GetKey returns the KVStoreKey for the provided store key.
+//
+// NOTE: This is solely to be used for testing purposes.
+func (app *App) GetKey(storeKey string) *sdk.KVStoreKey {
+ return app.keys[storeKey]
+}
+
+// GetTKey returns the TransientStoreKey for the provided store key.
+//
+// NOTE: This is solely to be used for testing purposes.
+func (app *App) GetTKey(storeKey string) *sdk.TransientStoreKey {
+ return app.tkeys[storeKey]
+}
+
+// GetMemKey returns the MemStoreKey for the provided mem key.
+//
+// NOTE: This is solely used for testing purposes.
+func (app *App) GetMemKey(storeKey string) *sdk.MemoryStoreKey {
+ return app.memKeys[storeKey]
+}
+
+// GetSubspace returns a param subspace for a given module name.
+//
+// NOTE: This is solely to be used for testing purposes.
+func (app *App) GetSubspace(moduleName string) paramstypes.Subspace {
+ subspace, _ := app.ParamsKeeper.GetSubspace(moduleName)
+ return subspace
+}
+
+// RegisterAPIRoutes registers all application module routes with the provided
+// API server.
+func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
+ clientCtx := apiSvr.ClientCtx
+ rpc.RegisterRoutes(clientCtx, apiSvr.Router)
+ // Register legacy tx routes.
+ authrest.RegisterTxRoutes(clientCtx, apiSvr.Router)
+ // 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)
+
+ // Register legacy and grpc-gateway routes for all modules.
+ ModuleBasics.RegisterRESTRoutes(clientCtx, apiSvr.Router)
+ ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
+
+ // register app's OpenAPI routes.
+ apiSvr.Router.Handle("/static/openapi.yml", http.FileServer(http.FS(docs.Docs)))
+ apiSvr.Router.HandleFunc("/", openapiconsole.Handler(Name, "/static/openapi.yml"))
+}
+
+// RegisterTxService implements the Application.RegisterTxService method.
+func (app *App) RegisterTxService(clientCtx client.Context) {
+ authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, app.interfaceRegistry)
+}
+
+// RegisterTendermintService implements the Application.RegisterTendermintService method.
+func (app *App) RegisterTendermintService(clientCtx client.Context) {
+ tmservice.RegisterTendermintService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.interfaceRegistry)
+}
+
+// GetMaccPerms returns a copy of the module account permissions
+func GetMaccPerms() map[string][]string {
+ dupMaccPerms := make(map[string][]string)
+ for k, v := range maccPerms {
+ dupMaccPerms[k] = v
+ }
+ return dupMaccPerms
+}
+
+// initParamsKeeper init params keeper and its subspaces
+func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey sdk.StoreKey) paramskeeper.Keeper {
+ paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey)
+
+ paramsKeeper.Subspace(authtypes.ModuleName)
+ paramsKeeper.Subspace(banktypes.ModuleName)
+ paramsKeeper.Subspace(stakingtypes.ModuleName)
+ paramsKeeper.Subspace(minttypes.ModuleName)
+ paramsKeeper.Subspace(distrtypes.ModuleName)
+ paramsKeeper.Subspace(slashingtypes.ModuleName)
+ paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govtypes.ParamKeyTable())
+ paramsKeeper.Subspace(crisistypes.ModuleName)
+ paramsKeeper.Subspace(ibctransfertypes.ModuleName)
+ paramsKeeper.Subspace(ibchost.ModuleName)
+ paramsKeeper.Subspace(wormholemoduletypes.ModuleName)
+ paramsKeeper.Subspace(tokenbridgemoduletypes.ModuleName)
+ // this line is used by starport scaffolding # stargate/app/paramSubspace
+
+ return paramsKeeper
+}
diff --git a/wormhole_chain/app/export.go b/wormhole_chain/app/export.go
new file mode 100644
index 000000000..a744e5496
--- /dev/null
+++ b/wormhole_chain/app/export.go
@@ -0,0 +1,185 @@
+package app
+
+import (
+ "encoding/json"
+ "log"
+
+ tmproto "github.com/tendermint/tendermint/proto/tendermint/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"
+ "github.com/cosmos/cosmos-sdk/x/staking"
+ stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
+)
+
+// ExportAppStateAndValidators exports the state of the application for a genesis
+// file.
+func (app *App) ExportAppStateAndValidators(
+ forZeroHeight bool, jailAllowedAddrs []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()})
+
+ // We export at last height + 1, because that's the height at which
+ // Tendermint will start InitChain.
+ height := app.LastBlockHeight() + 1
+ if forZeroHeight {
+ height = 0
+ app.prepForZeroHeightGenesis(ctx, jailAllowedAddrs)
+ }
+
+ genState := app.mm.ExportGenesis(ctx, app.appCodec)
+ appState, err := json.MarshalIndent(genState, "", " ")
+ if err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+
+ validators, err := staking.WriteValidators(ctx, app.StakingKeeper)
+ if err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+ return servertypes.ExportedApp{
+ AppState: appState,
+ Validators: validators,
+ Height: height,
+ ConsensusParams: app.BaseApp.GetConsensusParams(ctx),
+ }, nil
+}
+
+// prepare for fresh start at zero height
+// NOTE zero height genesis is a temporary feature which will be deprecated
+// in favour of export at a block height
+func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
+ applyAllowedAddrs := false
+
+ // check if there is a allowed address list
+ if len(jailAllowedAddrs) > 0 {
+ applyAllowedAddrs = true
+ }
+
+ allowedAddrsMap := make(map[string]bool)
+
+ for _, addr := range jailAllowedAddrs {
+ _, err := sdk.ValAddressFromBech32(addr)
+ if err != nil {
+ log.Fatal(err)
+ }
+ allowedAddrsMap[addr] = true
+ }
+
+ /* Just to be safe, assert the invariants on current state. */
+ app.CrisisKeeper.AssertInvariants(ctx)
+
+ /* 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())
+ if err != nil {
+ panic(err)
+ }
+ return false
+ })
+
+ // withdraw all delegator rewards
+ dels := app.StakingKeeper.GetAllDelegations(ctx)
+ for _, delegation := range dels {
+ _, err := app.DistrKeeper.WithdrawDelegationRewards(ctx, delegation.GetDelegatorAddr(), delegation.GetValidatorAddr())
+ if err != nil {
+ panic(err)
+ }
+ }
+
+ // clear validator slash events
+ app.DistrKeeper.DeleteAllValidatorSlashEvents(ctx)
+
+ // clear validator historical rewards
+ app.DistrKeeper.DeleteAllValidatorHistoricalRewards(ctx)
+
+ // set context height to zero
+ height := ctx.BlockHeight()
+ ctx = ctx.WithBlockHeight(0)
+
+ // reinitialize all validators
+ app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
+ // donate any unwithdrawn outstanding reward fraction tokens to the community pool
+ scraps := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, val.GetOperator())
+ feePool := app.DistrKeeper.GetFeePool(ctx)
+ feePool.CommunityPool = feePool.CommunityPool.Add(scraps...)
+ app.DistrKeeper.SetFeePool(ctx, feePool)
+
+ app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, val.GetOperator())
+ return false
+ })
+
+ // reinitialize all delegations
+ for _, del := range dels {
+ app.DistrKeeper.Hooks().BeforeDelegationCreated(ctx, del.GetDelegatorAddr(), del.GetValidatorAddr())
+ app.DistrKeeper.Hooks().AfterDelegationModified(ctx, del.GetDelegatorAddr(), del.GetValidatorAddr())
+ }
+
+ // reset context height
+ ctx = ctx.WithBlockHeight(height)
+
+ /* Handle staking state. */
+
+ // iterate through redelegations, reset creation height
+ 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)
+ return false
+ })
+
+ // iterate through unbonding delegations, reset creation height
+ 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)
+ return false
+ })
+
+ // 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)
+
+ for ; iter.Valid(); iter.Next() {
+ addr := sdk.ValAddress(iter.Key()[1:])
+ validator, found := app.StakingKeeper.GetValidator(ctx, addr)
+ if !found {
+ panic("expected validator, not found")
+ }
+
+ validator.UnbondingHeight = 0
+ if applyAllowedAddrs && !allowedAddrsMap[addr.String()] {
+ validator.Jailed = true
+ }
+
+ app.StakingKeeper.SetValidator(ctx, validator)
+ counter++
+ }
+
+ iter.Close()
+
+ if _, err := app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx); err != nil {
+ panic(err)
+ }
+
+ /* Handle slashing state. */
+
+ // reset start height on signing infos
+ app.SlashingKeeper.IterateValidatorSigningInfos(
+ ctx,
+ func(addr sdk.ConsAddress, info slashingtypes.ValidatorSigningInfo) (stop bool) {
+ info.StartHeight = 0
+ app.SlashingKeeper.SetValidatorSigningInfo(ctx, addr, info)
+ return false
+ },
+ )
+}
diff --git a/wormhole_chain/app/genesis.go b/wormhole_chain/app/genesis.go
new file mode 100644
index 000000000..5bf0c1da8
--- /dev/null
+++ b/wormhole_chain/app/genesis.go
@@ -0,0 +1,21 @@
+package app
+
+import (
+ "encoding/json"
+
+ "github.com/cosmos/cosmos-sdk/codec"
+)
+
+// The genesis state of the blockchain is represented here as a map of raw json
+// messages key'd by a identifier string.
+// The identifier is used to determine which module genesis information belongs
+// to so it may be appropriately routed during init chain.
+// Within this application default genesis information is retrieved from
+// the ModuleBasicManager which populates json from each BasicModule
+// 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)
+}
diff --git a/wormhole_chain/build/config/addrbook.json b/wormhole_chain/build/config/addrbook.json
new file mode 100644
index 000000000..3bfcd89b2
--- /dev/null
+++ b/wormhole_chain/build/config/addrbook.json
@@ -0,0 +1,4 @@
+{
+ "key": "349a5adb08e41f09f8e0e074",
+ "addrs": []
+}
\ No newline at end of file
diff --git a/wormhole_chain/build/config/app.toml b/wormhole_chain/build/config/app.toml
new file mode 100644
index 000000000..c5882339e
--- /dev/null
+++ b/wormhole_chain/build/config/app.toml
@@ -0,0 +1,58 @@
+halt-height = 0
+halt-time = 0
+index-events = []
+inter-block-cache = true
+min-retain-blocks = 0
+minimum-gas-prices = "0stake"
+pruning = "default"
+pruning-interval = "0"
+pruning-keep-every = "0"
+pruning-keep-recent = "0"
+chain-id = "wormholechain"
+
+[api]
+ address = "tcp://localhost:1317"
+ enable = true
+ enabled-unsafe-cors = true
+ max-open-connections = 1000
+ rpc-max-body-bytes = 1000000
+ rpc-read-timeout = 10
+ rpc-write-timeout = 0
+ swagger = false
+
+[grpc]
+ address = "0.0.0.0:9090"
+ enable = true
+
+[grpc-web]
+ address = "0.0.0.0:9091"
+ enable = true
+ enable-unsafe-cors = false
+
+[rosetta]
+ address = ":8080"
+ blockchain = "app"
+ enable = false
+ network = "network"
+ offline = false
+ retries = 3
+
+[rpc]
+ cors_allowed_origins = ["*"]
+
+[state-sync]
+ snapshot-interval = 0
+ snapshot-keep-recent = 2
+
+[telemetry]
+ enable-hostname = false
+ enable-hostname-label = false
+ enable-service-label = false
+ enabled = false
+ global-labels = []
+ prometheus-retention-time = 0
+ service-name = ""
+
+[wasm]
+ lru_size = 0
+ query_gas_limit = 300000
diff --git a/wormhole_chain/build/config/client.toml b/wormhole_chain/build/config/client.toml
new file mode 100644
index 000000000..b24ddb7a8
--- /dev/null
+++ b/wormhole_chain/build/config/client.toml
@@ -0,0 +1,5 @@
+broadcast-mode = "block"
+chain-id = "wormholechain"
+keyring-backend = "test"
+node = "tcp://localhost:26657"
+output = "text"
diff --git a/wormhole_chain/build/config/config.toml b/wormhole_chain/build/config/config.toml
new file mode 100644
index 000000000..bf7335552
--- /dev/null
+++ b/wormhole_chain/build/config/config.toml
@@ -0,0 +1,401 @@
+# This is a TOML config file.
+# For more information, see https://github.com/toml-lang/toml
+
+# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or
+# relative to the home directory (e.g. "data"). The home directory is
+# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable
+# or --home cmd flag.
+
+#######################################################################
+### Main Base Config Options ###
+#######################################################################
+
+# TCP or UNIX socket address of the ABCI application,
+# or the name of an ABCI application compiled in with the Tendermint binary
+proxy_app = "tcp://127.0.0.1:26658"
+
+# A custom human readable name for this node
+moniker = "mynode"
+
+# If this node is many blocks behind the tip of the chain, FastSync
+# allows them to catchup quickly by downloading blocks in parallel
+# and verifying their commits
+fast_sync = true
+
+# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb
+# * goleveldb (github.com/syndtr/goleveldb - most popular implementation)
+# - pure go
+# - stable
+# * cleveldb (uses levigo wrapper)
+# - fast
+# - requires gcc
+# - use cleveldb build tag (go build -tags cleveldb)
+# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt)
+# - EXPERIMENTAL
+# - may be faster is some use-cases (random reads - indexer)
+# - use boltdb build tag (go build -tags boltdb)
+# * rocksdb (uses github.com/tecbot/gorocksdb)
+# - EXPERIMENTAL
+# - requires gcc
+# - use rocksdb build tag (go build -tags rocksdb)
+# * badgerdb (uses github.com/dgraph-io/badger)
+# - EXPERIMENTAL
+# - use badgerdb build tag (go build -tags badgerdb)
+db_backend = "goleveldb"
+
+# Database directory
+db_dir = "data"
+
+# Output level for logging, including package level options
+log_level = "debug"
+
+# Output format: 'plain' (colored text) or 'json'
+log_format = "plain"
+
+##### additional base config options #####
+
+# Path to the JSON file containing the initial validator set and other meta data
+genesis_file = "config/genesis.json"
+
+# Path to the JSON file containing the private key to use as a validator in the consensus protocol
+priv_validator_key_file = "config/priv_validator_key.json"
+
+# Path to the JSON file containing the last sign state of a validator
+priv_validator_state_file = "data/priv_validator_state.json"
+
+# TCP or UNIX socket address for Tendermint to listen on for
+# connections from an external PrivValidator process
+priv_validator_laddr = ""
+
+# Path to the JSON file containing the private key to use for node authentication in the p2p protocol
+node_key_file = "config/node_key.json"
+
+# Mechanism to connect to the ABCI application: socket | grpc
+abci = "socket"
+
+# If true, query the ABCI app on connecting to a new peer
+# so the app can decide if we should keep the connection or not
+filter_peers = false
+
+
+#######################################################################
+### Advanced Configuration Options ###
+#######################################################################
+
+#######################################################
+### RPC Server Configuration Options ###
+#######################################################
+[rpc]
+
+# TCP or UNIX socket address for the RPC server to listen on
+laddr = "tcp://0.0.0.0:26657"
+
+# A list of origins a cross-domain request can be executed from
+# Default value '[]' disables cors support
+# Use '["*"]' to allow any origin
+cors_allowed_origins = ["*", ]
+
+# A list of methods the client is allowed to use with cross-domain requests
+cors_allowed_methods = ["HEAD", "GET", "POST", ]
+
+# A list of non simple headers the client is allowed to use with cross-domain requests
+cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ]
+
+# TCP or UNIX socket address for the gRPC server to listen on
+# NOTE: This server only supports /broadcast_tx_commit
+grpc_laddr = ""
+
+# Maximum number of simultaneous connections.
+# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections
+# If you want to accept a larger number than the default, make sure
+# you increase your OS limits.
+# 0 - unlimited.
+# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
+# 1024 - 40 - 10 - 50 = 924 = ~900
+grpc_max_open_connections = 900
+
+# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool
+unsafe = false
+
+# Maximum number of simultaneous connections (including WebSocket).
+# Does not include gRPC connections. See grpc_max_open_connections
+# If you want to accept a larger number than the default, make sure
+# you increase your OS limits.
+# 0 - unlimited.
+# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
+# 1024 - 40 - 10 - 50 = 924 = ~900
+max_open_connections = 900
+
+# Maximum number of unique clientIDs that can /subscribe
+# If you're using /broadcast_tx_commit, set to the estimated maximum number
+# of broadcast_tx_commit calls per block.
+max_subscription_clients = 100
+
+# Maximum number of unique queries a given client can /subscribe to
+# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to
+# the estimated # maximum number of broadcast_tx_commit calls per block.
+max_subscriptions_per_client = 5
+
+# How long to wait for a tx to be committed during /broadcast_tx_commit.
+# WARNING: Using a value larger than 10s will result in increasing the
+# global HTTP write timeout, which applies to all connections and endpoints.
+# See https://github.com/tendermint/tendermint/issues/3435
+timeout_broadcast_tx_commit = "10s"
+
+# Maximum size of request body, in bytes
+max_body_bytes = 1000000
+
+# Maximum size of request header, in bytes
+max_header_bytes = 1048576
+
+# The path to a file containing certificate that is used to create the HTTPS server.
+# Might be either absolute path or path related to Tendermint's config directory.
+# If the certificate is signed by a certificate authority,
+# the certFile should be the concatenation of the server's certificate, any intermediates,
+# and the CA's certificate.
+# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server.
+# Otherwise, HTTP server is run.
+tls_cert_file = ""
+
+# The path to a file containing matching private key that is used to create the HTTPS server.
+# Might be either absolute path or path related to Tendermint's config directory.
+# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server.
+# Otherwise, HTTP server is run.
+tls_key_file = ""
+
+# pprof listen address (https://golang.org/pkg/net/http/pprof)
+pprof_laddr = "0.0.0.0:6060"
+
+#######################################################
+### P2P Configuration Options ###
+#######################################################
+[p2p]
+
+# Address to listen for incoming connections
+laddr = "tcp://0.0.0.0:26656"
+
+# Address to advertise to peers for them to dial
+# If empty, will use the same port as the laddr,
+# and will introspect on the listener or use UPnP
+# to figure out the address. ip and port are required
+# example: 159.89.10.97:26656
+external_address = ""
+
+# Comma separated list of seed nodes to connect to
+seeds = ""
+
+# Comma separated list of nodes to keep persistent connections to
+persistent_peers = ""
+
+# UPNP port forwarding
+upnp = false
+
+# Path to address book
+addr_book_file = "config/addrbook.json"
+
+# Set true for strict address routability rules
+# Set false for private or local networks
+addr_book_strict = true
+
+# Maximum number of inbound peers
+max_num_inbound_peers = 40
+
+# Maximum number of outbound peers to connect to, excluding persistent peers
+max_num_outbound_peers = 10
+
+# List of node IDs, to which a connection will be (re)established ignoring any existing limits
+unconditional_peer_ids = ""
+
+# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used)
+persistent_peers_max_dial_period = "0s"
+
+# Time to wait before flushing messages out on the connection
+flush_throttle_timeout = "100ms"
+
+# Maximum size of a message packet payload, in bytes
+max_packet_msg_payload_size = 1024
+
+# Rate at which packets can be sent, in bytes/second
+send_rate = 5120000
+
+# Rate at which packets can be received, in bytes/second
+recv_rate = 5120000
+
+# Set true to enable the peer-exchange reactor
+pex = true
+
+# Seed mode, in which node constantly crawls the network and looks for
+# peers. If another node asks it for addresses, it responds and disconnects.
+#
+# Does not work if the peer-exchange reactor is disabled.
+seed_mode = false
+
+# Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
+private_peer_ids = ""
+
+# Toggle to disable guard against peers connecting from the same ip.
+allow_duplicate_ip = false
+
+# Peer connection configuration.
+handshake_timeout = "20s"
+dial_timeout = "3s"
+
+#######################################################
+### Mempool Configuration Option ###
+#######################################################
+[mempool]
+
+recheck = true
+broadcast = true
+wal_dir = ""
+
+# Maximum number of transactions in the mempool
+size = 5000
+
+# Limit the total size of all txs in the mempool.
+# This only accounts for raw transactions (e.g. given 1MB transactions and
+# max_txs_bytes=5MB, mempool will only accept 5 transactions).
+max_txs_bytes = 1073741824
+
+# Size of the cache (used to filter transactions we saw earlier) in transactions
+cache_size = 10000
+
+# Do not remove invalid transactions from the cache (default: false)
+# Set to true if it's not possible for any invalid transaction to become valid
+# again in the future.
+keep-invalid-txs-in-cache = false
+
+# Maximum size of a single transaction.
+# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}.
+max_tx_bytes = 1048576
+
+# Maximum size of a batch of transactions to send to a peer
+# Including space needed by encoding (one varint per transaction).
+# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796
+max_batch_bytes = 0
+
+#######################################################
+### State Sync Configuration Options ###
+#######################################################
+[statesync]
+# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine
+# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in
+# the network to take and serve state machine snapshots. State sync is not attempted if the node
+# has any local state (LastBlockHeight > 0). The node will have a truncated block history,
+# starting from the height of the snapshot.
+enable = false
+
+# RPC servers (comma-separated) for light client verification of the synced state machine and
+# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding
+# header hash obtained from a trusted source, and a period during which validators can be trusted.
+#
+# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2
+# weeks) during which they can be financially punished (slashed) for misbehavior.
+rpc_servers = ""
+trust_height = 0
+trust_hash = ""
+trust_period = "168h0m0s"
+
+# Time to spend discovering snapshots before initiating a restore.
+discovery_time = "15s"
+
+# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp).
+# Will create a new, randomly named directory within, and remove it when done.
+temp_dir = ""
+
+# The timeout duration before re-requesting a chunk, possibly from a different
+# peer (default: 1 minute).
+chunk_request_timeout = "10s"
+
+# The number of concurrent chunk fetchers to run (default: 1).
+chunk_fetchers = "4"
+
+#######################################################
+### Fast Sync Configuration Connections ###
+#######################################################
+[fastsync]
+
+# Fast Sync version to use:
+# 1) "v0" (default) - the legacy fast sync implementation
+# 2) "v1" - refactor of v0 version for better testability
+# 2) "v2" - complete redesign of v0, optimized for testability & readability
+version = "v0"
+
+#######################################################
+### Consensus Configuration Options ###
+#######################################################
+[consensus]
+
+wal_file = "data/cs.wal/wal"
+
+# How long we wait for a proposal block before prevoting nil
+timeout_propose = "1s"
+# How much timeout_propose increases with each round
+timeout_propose_delta = "500ms"
+# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil)
+timeout_prevote = "1s"
+# How much the timeout_prevote increases with each round
+timeout_prevote_delta = "500ms"
+# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil)
+timeout_precommit = "1s"
+# How much the timeout_precommit increases with each round
+timeout_precommit_delta = "500ms"
+# How long we wait after committing a block, before starting on the new
+# height (this gives us a chance to receive some more precommits, even
+# though we already have +2/3).
+timeout_commit = "1s"
+
+# How many blocks to look back to check existence of the node's consensus votes before joining consensus
+# When non-zero, the node will panic upon restart
+# if the same consensus key was used to sign {double_sign_check_height} last blocks.
+# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic.
+double_sign_check_height = 0
+
+# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
+skip_timeout_commit = false
+
+# EmptyBlocks mode and possible interval between empty blocks
+create_empty_blocks = true
+create_empty_blocks_interval = "0s"
+
+# Reactor sleep duration parameters
+peer_gossip_sleep_duration = "100ms"
+peer_query_maj23_sleep_duration = "2s"
+
+#######################################################
+### Transaction Indexer Configuration Options ###
+#######################################################
+[tx_index]
+
+# What indexer to use for transactions
+#
+# The application will set which txs to index. In some cases a node operator will be able
+# to decide which txs to index based on configuration set in the application.
+#
+# Options:
+# 1) "null"
+# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
+# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed.
+indexer = "kv"
+
+#######################################################
+### Instrumentation Configuration Options ###
+#######################################################
+[instrumentation]
+
+# When true, Prometheus metrics are served under /metrics on
+# PrometheusListenAddr.
+# Check out the documentation for the list of available metrics.
+prometheus = false
+
+# Address to listen for Prometheus collector(s) connections
+prometheus_listen_addr = ":26660"
+
+# Maximum number of simultaneous connections.
+# If you want to accept a larger number than the default, make sure
+# you increase your OS limits.
+# 0 - unlimited.
+max_open_connections = 3
+
+# Instrumentation namespace
+namespace = "tendermint"
diff --git a/wormhole_chain/build/config/genesis.json b/wormhole_chain/build/config/genesis.json
new file mode 100644
index 000000000..e73c7ad2c
--- /dev/null
+++ b/wormhole_chain/build/config/genesis.json
@@ -0,0 +1,342 @@
+{
+ "chain_id": "wormholechain",
+ "gentxs_dir": "build/config/gentx",
+ "moniker": "mynode",
+ "node_id": "c3f474217c930af3a4e998c4e52a57cee188ff43",
+ "app_state": {
+ "auth": {
+ "params": {
+ "max_memo_characters": "256",
+ "tx_sig_limit": "7",
+ "tx_size_cost_per_byte": "10",
+ "sig_verify_cost_ed25519": "590",
+ "sig_verify_cost_secp256k1": "1000"
+ },
+ "accounts": [
+ {
+ "@type": "/cosmos.auth.v1beta1.BaseAccount",
+ "address": "wormhole1cyyzpxplxdzkeea7kwsydadg87357qna3zg3tq",
+ "pub_key": null,
+ "account_number": "0",
+ "sequence": "0"
+ },
+ {
+ "@type": "/cosmos.auth.v1beta1.BaseAccount",
+ "address": "wormhole1wqwywkce50mg6077huy4j9y8lt80943ks5udzr",
+ "pub_key": null,
+ "account_number": "0",
+ "sequence": "0"
+ }
+ ]
+ },
+ "bank": {
+ "params": {
+ "send_enabled": [],
+ "default_send_enabled": true
+ },
+ "balances": [
+ {
+ "address": "wormhole1wqwywkce50mg6077huy4j9y8lt80943ks5udzr",
+ "coins": [
+ {
+ "denom": "utest",
+ "amount": "10000"
+ }
+ ]
+ },
+ {
+ "address": "wormhole1cyyzpxplxdzkeea7kwsydadg87357qna3zg3tq",
+ "coins": [
+ {
+ "denom": "utest",
+ "amount": "20000"
+ }
+ ]
+ }
+ ],
+ "supply": [],
+ "denom_metadata": [
+ {
+ "description": "Wormholechain's native test asset",
+ "denom_units": [
+ {
+ "denom": "utest",
+ "exponent": 0,
+ "aliases": []
+ },
+ {
+ "denom": "test",
+ "exponent": 6,
+ "aliases": []
+ }
+ ],
+ "base": "utest",
+ "display": "test",
+ "name": "Test Coin",
+ "symbol": "TEST"
+ },
+ {
+ "description": "Wormholechain's native staking asset",
+ "denom_units": [
+ {
+ "denom": "uworm",
+ "exponent": 0,
+ "aliases": []
+ },
+ {
+ "denom": "worm",
+ "exponent": 6,
+ "aliases": []
+ }
+ ],
+ "base": "uworm",
+ "display": "worm",
+ "name": "Worm Coin",
+ "symbol": "WORM"
+ }
+ ]
+ },
+ "capability": {
+ "index": "1",
+ "owners": []
+ },
+ "crisis": {
+ "constant_fee": {
+ "amount": "1000",
+ "denom": "worm"
+ }
+ },
+ "distribution": {
+ "delegator_starting_infos": [],
+ "delegator_withdraw_infos": [],
+ "fee_pool": {
+ "community_pool": []
+ },
+ "outstanding_rewards": [],
+ "params": {
+ "base_proposer_reward": "0.010000000000000000",
+ "bonus_proposer_reward": "0.040000000000000000",
+ "community_tax": "0.020000000000000000",
+ "withdraw_addr_enabled": true
+ },
+ "previous_proposer": "",
+ "validator_accumulated_commissions": [],
+ "validator_current_rewards": [],
+ "validator_historical_rewards": [],
+ "validator_slash_events": []
+ },
+ "evidence": {
+ "evidence": []
+ },
+ "feegrant": {
+ "allowances": []
+ },
+ "genutil": {
+ "gen_txs": [
+ {
+ "body": {
+ "messages": [
+ {
+ "@type": "/cosmos.staking.v1beta1.MsgCreateValidator",
+ "description": {
+ "moniker": "mynode",
+ "identity": "",
+ "website": "",
+ "security_contact": "",
+ "details": ""
+ },
+ "commission": {
+ "rate": "0.100000000000000000",
+ "max_rate": "0.200000000000000000",
+ "max_change_rate": "0.010000000000000000"
+ },
+ "min_self_delegation": "0",
+ "delegator_address": "wormhole1cyyzpxplxdzkeea7kwsydadg87357qna3zg3tq",
+ "validator_address": "wormholevaloper1cyyzpxplxdzkeea7kwsydadg87357qna87hzv8",
+ "pubkey": {
+ "@type": "/cosmos.crypto.ed25519.PubKey",
+ "key": "fnfoo/C+i+Ng1J8vct6wfvrTS9JeNIG5UeO87ZHKMkY="
+ },
+ "value": {
+ "denom": "uworm",
+ "amount": "0"
+ }
+ }
+ ],
+ "memo": "c3f474217c930af3a4e998c4e52a57cee188ff43@172.16.14.80:26656",
+ "timeout_height": "0",
+ "extension_options": [],
+ "non_critical_extension_options": []
+ },
+ "auth_info": {
+ "signer_infos": [
+ {
+ "public_key": {
+ "@type": "/cosmos.crypto.secp256k1.PubKey",
+ "key": "AuwYyCUBxQiBGSUWebU46c+OrlApVsyGLHd4qhSDZeiG"
+ },
+ "mode_info": {
+ "single": {
+ "mode": "SIGN_MODE_DIRECT"
+ }
+ },
+ "sequence": "0"
+ }
+ ],
+ "fee": {
+ "amount": [],
+ "gas_limit": "200000",
+ "payer": "",
+ "granter": ""
+ }
+ },
+ "signatures": [
+ "wksmbgHHl22UKLmZK3AuSIdPxfX5+BPmvhVxHJC3wB5dzE1l0n+qmMxpbEP/wr0Xi0aC/qIszss6VxVoUmiPKw=="
+ ]
+ }
+ ]
+ },
+ "gov": {
+ "deposit_params": {
+ "max_deposit_period": "172800s",
+ "min_deposit": [
+ {
+ "amount": "1000000",
+ "denom": "uworm"
+ }
+ ]
+ },
+ "deposits": [],
+ "proposals": [],
+ "starting_proposal_id": "1",
+ "tally_params": {
+ "quorum": "0.334000000000000000",
+ "threshold": "0.500000000000000000",
+ "veto_threshold": "0.334000000000000000"
+ },
+ "votes": [],
+ "voting_params": {
+ "voting_period": "50s"
+ }
+ },
+ "ibc": {
+ "channel_genesis": {
+ "ack_sequences": [],
+ "acknowledgements": [],
+ "channels": [],
+ "commitments": [],
+ "next_channel_sequence": "0",
+ "receipts": [],
+ "recv_sequences": [],
+ "send_sequences": []
+ },
+ "client_genesis": {
+ "clients": [],
+ "clients_consensus": [],
+ "clients_metadata": [],
+ "create_localhost": false,
+ "next_client_sequence": "0",
+ "params": {
+ "allowed_clients": [
+ "06-solomachine",
+ "07-tendermint"
+ ]
+ }
+ },
+ "connection_genesis": {
+ "client_connection_paths": [],
+ "connections": [],
+ "next_connection_sequence": "0",
+ "params": {
+ "max_expected_time_per_block": "30000000000"
+ }
+ }
+ },
+ "mint": {
+ "minter": {
+ "annual_provisions": "0.0",
+ "inflation": "0.0"
+ },
+ "params": {
+ "blocks_per_year": "6311520",
+ "goal_bonded": "0.67",
+ "inflation_max": "0.0",
+ "inflation_min": "0.0",
+ "inflation_rate_change": "0.0",
+ "mint_denom": "uworm"
+ }
+ },
+ "params": null,
+ "slashing": {
+ "missed_blocks": [],
+ "params": {
+ "downtime_jail_duration": "600s",
+ "min_signed_per_window": "0.500000000000000000",
+ "signed_blocks_window": "100",
+ "slash_fraction_double_sign": "0.050000000000000000",
+ "slash_fraction_downtime": "0.010000000000000000"
+ },
+ "signing_infos": []
+ },
+ "staking": {
+ "delegations": [],
+ "exported": false,
+ "last_total_power": "0",
+ "last_validator_powers": [],
+ "params": {
+ "bond_denom": "uworm",
+ "historical_entries": 10000,
+ "max_entries": 7,
+ "max_validators": 1,
+ "unbonding_time": "1814400s"
+ },
+ "redelegations": [],
+ "unbonding_delegations": [],
+ "validators": []
+ },
+ "tokenbridge": {
+ "chainRegistrationList": [],
+ "coinMetaRollbackProtectionList": [],
+ "config": null,
+ "replayProtectionList": []
+ },
+ "transfer": {
+ "denom_traces": [],
+ "params": {
+ "receive_enabled": true,
+ "send_enabled": true
+ },
+ "port_id": "transfer"
+ },
+ "upgrade": {},
+ "vesting": {},
+ "wormhole": {
+ "config": {
+ "chain_id": 3104,
+ "governance_chain": 1,
+ "governance_emitter": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ=",
+ "guardian_set_expiration": 86400
+ },
+ "consensusGuardianSetIndex": {
+ "index": 0
+ },
+ "guardianSetList": [
+ {
+ "expirationTime": 0,
+ "index": 0,
+ "keys": [
+ "vvpCnVfNGLf4pNkaLamrSvBdD74="
+ ]
+ }
+ ],
+ "guardianValidatorList": [
+ {
+ "guardianKey": "vvpCnVfNGLf4pNkaLamrSvBdD74=",
+ "validatorAddr": "wQggmD8zRWznvrOgRvWoP6NPAn0="
+ }
+ ],
+ "replayProtectionList": [],
+ "sequenceCounterList": []
+ }
+ }
+}
diff --git a/wormhole_chain/build/config/gentx/gentx-c3f474217c930af3a4e998c4e52a57cee188ff43.json b/wormhole_chain/build/config/gentx/gentx-c3f474217c930af3a4e998c4e52a57cee188ff43.json
new file mode 100644
index 000000000..0ff17b53e
--- /dev/null
+++ b/wormhole_chain/build/config/gentx/gentx-c3f474217c930af3a4e998c4e52a57cee188ff43.json
@@ -0,0 +1 @@
+{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"mynode","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"0","delegator_address":"wormhole1cyyzpxplxdzkeea7kwsydadg87357qna3zg3tq","validator_address":"wormholevaloper1cyyzpxplxdzkeea7kwsydadg87357qna87hzv8","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"fnfoo/C+i+Ng1J8vct6wfvrTS9JeNIG5UeO87ZHKMkY="},"value":{"denom":"uworm","amount":"0"}}],"memo":"c3f474217c930af3a4e998c4e52a57cee188ff43@172.16.14.80:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AuwYyCUBxQiBGSUWebU46c+OrlApVsyGLHd4qhSDZeiG"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["wksmbgHHl22UKLmZK3AuSIdPxfX5+BPmvhVxHJC3wB5dzE1l0n+qmMxpbEP/wr0Xi0aC/qIszss6VxVoUmiPKw=="]}
diff --git a/wormhole_chain/build/config/node_key.json b/wormhole_chain/build/config/node_key.json
new file mode 100644
index 000000000..72b591f84
--- /dev/null
+++ b/wormhole_chain/build/config/node_key.json
@@ -0,0 +1 @@
+{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"DTmqnA3oDbIvGv8ovgsXdtyKEow5/ryWBzr0RKi4uv4btEaX/5hbQOm2PYRKuZYG4u8ESjNCxMPut9CLVM2AEA=="}}
\ No newline at end of file
diff --git a/wormhole_chain/build/config/priv_validator_key.json b/wormhole_chain/build/config/priv_validator_key.json
new file mode 100644
index 000000000..ab194afac
--- /dev/null
+++ b/wormhole_chain/build/config/priv_validator_key.json
@@ -0,0 +1,11 @@
+{
+ "address": "C3AE4256EAA0BA6D01041585F63AE7CAA69D6D33",
+ "pub_key": {
+ "type": "tendermint/PubKeyEd25519",
+ "value": "fnfoo/C+i+Ng1J8vct6wfvrTS9JeNIG5UeO87ZHKMkY="
+ },
+ "priv_key": {
+ "type": "tendermint/PrivKeyEd25519",
+ "value": "Zb3gQZSd8qNMyXUQdKmeqM/SSYeVDD80S4XPEsCAgPN+d+ij8L6L42DUny9y3rB++tNL0l40gblR47ztkcoyRg=="
+ }
+}
\ No newline at end of file
diff --git a/wormhole_chain/build/data/priv_validator_state.json b/wormhole_chain/build/data/priv_validator_state.json
new file mode 100644
index 000000000..48f3b67e3
--- /dev/null
+++ b/wormhole_chain/build/data/priv_validator_state.json
@@ -0,0 +1,5 @@
+{
+ "height": "0",
+ "round": 0,
+ "step": 0
+}
\ No newline at end of file
diff --git a/wormhole_chain/build/keyring-test/701c475b19a3f68d3fdebf09591487facef2d636.address b/wormhole_chain/build/keyring-test/701c475b19a3f68d3fdebf09591487facef2d636.address
new file mode 100644
index 000000000..325207c9c
--- /dev/null
+++ b/wormhole_chain/build/keyring-test/701c475b19a3f68d3fdebf09591487facef2d636.address
@@ -0,0 +1 @@
+eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMi0wNS0zMSAxNzowNjo1Mi42OTIyNTQxNDUgLTA1MDAgQ0RUIG09KzEwLjE2MzcxMjE5MiIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IlZmYzJzd3o1ZTlFOVYxZXUifQ.QxCznBeKdoMPaiLAW9z_bzw0Tu8KGb1uv7oP6roGx2G23I95FETScw.1Tzsdxl9aER5xGOC.BOocwpXC7mcx7kigzWJsopVujiXfuQ3inOOkfMxq20JJNcsztwwMxQ4rvqCv6KJAw7Ldy-VrjXE8qErp_Z6_p5KXyPLN0G3Ie-smKrQzquQYuH8Gbx2zyYaAyM3V2ObnI7G3LsKfGBKfMLGsxhwL-HzsDRUnK2U7x2p7SMVmHlrVMz8m5mBwCx-ynqko9vUmwewKXRUfaL1QvYA0xaJwxL_pa_U1fcmRuXPwJ_ed2vNIdJ6JwcTPzxihdYs-wPGuWPM.ejGdI847MWWxc_W_DKge8w
\ No newline at end of file
diff --git a/wormhole_chain/build/keyring-test/c10820983f33456ce7beb3a046f5a83fa34f027d.address b/wormhole_chain/build/keyring-test/c10820983f33456ce7beb3a046f5a83fa34f027d.address
new file mode 100644
index 000000000..e15761633
--- /dev/null
+++ b/wormhole_chain/build/keyring-test/c10820983f33456ce7beb3a046f5a83fa34f027d.address
@@ -0,0 +1 @@
+eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMi0wNS0zMSAxNzowNToyNy40ODgzODY2MTIgLTA1MDAgQ0RUIG09KzM3LjIyMjU5MTA4MCIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6Ik10d3dTMFR3N0NSM1FrLXgifQ.GO-ec6b-MW2eyfbyJS-bn8NRAQL190eRG17v4Dv2FYkKndmCVcydjA.bj6j7-hDIRppqn-L.3t7SVJY1U2RIAtLieEHP3DiVD7cD4mgaFIdGVQqmMthAID4-Ne07Iy_4IFxuas5oHVf_9yCqOALS1FTGUU1gcCSbrXdUufzflyexInWpb4l1jqGvYzZUcr7tD7WJDSWQbhxO8Ggcb_vF_jTRx8GU6pJeizLxMdD_0sA8C0pWn47oO2cC_N7jrx-g62K_t9JkbjvygCBuP2DIWvjLX6Ig59_lG_jB4BFUruhXo-drjQV5J7anLraqRsAn3nqSXQ.dfw5pq-rAcC9xFCkX8mD_g
\ No newline at end of file
diff --git a/wormhole_chain/build/keyring-test/secondValidator.info b/wormhole_chain/build/keyring-test/secondValidator.info
new file mode 100644
index 000000000..9142e92b0
--- /dev/null
+++ b/wormhole_chain/build/keyring-test/secondValidator.info
@@ -0,0 +1 @@
+eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMi0wNS0zMSAxNzowNjo1Mi42ODM3OTA1NSAtMDUwMCBDRFQgbT0rMTAuMTU1MjQ4NjU5IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiMENfT3lsQU5vYnJyd0JHSSJ9.nd79n9a2KbrX6bNv51BzsOQnPcUbJmtqIbj5lJnbO826GHNfuoWVbg.gPGVIse3bHLLWxd-.YCi3Y7u-aO48IBln6Opjdl81LyZegP7YNF3WEhtDbvxYGpSj6Q8ggG1KIFJZRf6bKgy1B5PQo7mUtWKw5YFRyUCDctLJi-4V-FaWqykih6X8kf6gRQhVmCbz5JHv7V9K4Wm51A-UOfBi46rzbywuAXNBeYSgGw2ucWRyYhwXO5zB0X2vAZ6hUS4yTEraCz9RRvoRC9G5nfu3gSRSwCFCf3TSdyKp40c8tOlYPiTtavEgVNuvgzNEuzjXsxXY938APRUIckDSAa0-LSKeYx2et7O7HTWjVEIgNv-907u1sXqbA-DeuIq6_EhwwS5B2jTNhoAkp32mvpwLQC15Jdo7LskUbESQu8N3DrOUFXN8j-kYAH4Zh5HTEn5i4uz1tF_Tx1w.mlzvK0xujvbyS8xyVWXKMg
\ No newline at end of file
diff --git a/wormhole_chain/build/keyring-test/tiltGuardian.info b/wormhole_chain/build/keyring-test/tiltGuardian.info
new file mode 100644
index 000000000..627d01864
--- /dev/null
+++ b/wormhole_chain/build/keyring-test/tiltGuardian.info
@@ -0,0 +1 @@
+eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMi0wNS0zMSAxNzowNToyNy40ODA1MzY2NTggLTA1MDAgQ0RUIG09KzM3LjIxNDc0MTE5MCIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6Im45Vl9EakdZZ1N0RXU1bnkifQ.BpH3FNLHuQW-ywr_XvufMJyyeaVlKEHGpsm7nPKOqnv2eBFXz09iGQ.mxA8P-a7Yhy68mjo.Gx6JJWO1kxGwB_oUZk5TcTB7VuG9W9iNFkZp07CgucjCVndd3iyFtjEbfuY8AJreBFachD9fFHbFscQyXrY1tbBwDSaYjqSti8Fz0GSa4y9uOKTsct_-UDD5LnEH88-qARA3tBTmKecliZnF1clHEYWq31SUgEJIgYFzqij7F-43qmjCtgSKqEovkW-q6LK-b_V0MGNDeOg-dcNERLwW8M3gIlyUirnktpVHk-qWXi0asB9bY0RbCyl_hhw5y32kmRwHYRzO-XVirzbV--b5f2UgQLWfELDbHkFiDQfO0wMFWpSqw4op5SBcPDxtsi4cx1U2948hg-CCw05rOtzXN-AqDbWqH-fO9DF16jXPg0xRyuHr75_gt-Qnag.ZtKP7Ql7fVYJXS18DCD4bQ
\ No newline at end of file
diff --git a/wormhole_chain/cmd/wormhole-chaind/main.go b/wormhole_chain/cmd/wormhole-chaind/main.go
new file mode 100644
index 000000000..d11d7a5a6
--- /dev/null
+++ b/wormhole_chain/cmd/wormhole-chaind/main.go
@@ -0,0 +1,24 @@
+package main
+
+import (
+ "os"
+
+ "github.com/certusone/wormhole-chain/app"
+ svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
+ "github.com/tendermint/spm/cosmoscmd"
+)
+
+func main() {
+ rootCmd, _ := cosmoscmd.NewRootCmd(
+ app.Name,
+ app.AccountAddressPrefix,
+ app.DefaultNodeHome,
+ app.Name,
+ app.ModuleBasics,
+ app.New,
+ // this line is used by starport scaffolding # root/arguments
+ )
+ if err := svrcmd.Execute(rootCmd, app.DefaultNodeHome); err != nil {
+ os.Exit(1)
+ }
+}
diff --git a/wormhole_chain/design/design.md b/wormhole_chain/design/design.md
new file mode 100644
index 000000000..5144966eb
--- /dev/null
+++ b/wormhole_chain/design/design.md
@@ -0,0 +1,73 @@
+# Table of Contents
+
+1. [Inbox](#org155bf00)
+ 1. [Bootstrap chain](#org819971b)
+ 2. [Onboarding guardians](#org60d7dc9)
+
+
+
+# Inbox
+
+
+
+## TODO Bootstrap chain
+
+The native token of the Wormhole chain is $WORM. This token is used both for
+staking (governance) and fees. These tokens are already minted on Solana, and
+they won't be available initially at the genesis of the chain. This presents
+a number of difficulties around bootstrapping.
+
+At genesis, the blockchain will be set up in the following way
+
+1. The staking denom is set to the $WORM token (of which 0 exist on this chain at this moment)
+2. Producing blocks uses Proof of Authority (PoA) consensus (i.e. no tokens are required to produce blocks)
+3. Fees are set to 0
+
+Then, the $WORM tokens can be transferred over from Solana, and staking (with
+delegation) can be done. At this stage, two different consensus mechanisms will
+be in place simultaneously: block validation and guardian set election will
+still use PoA, with each guardian having a singular vote. All other governance
+votes will reach consensus with DPoS by staking $WORM tokens.
+
+
+
+## TODO Onboarding guardians
+
+The validators of wormhole chain are going to be the 19 guardians. We need a
+way to connect their existing guardian public keys with their wormhole chain
+addresses. We will have a registration process where a validator can register a
+guardian public key to their validator address. This will entail
+signing their wormhole address with their guardian private key, and sending
+that signature from their wormhole address. At this point, if the signature
+matches, the wormhole address becomes associated with the guardian public key.
+
+After this, the guardian is eligible to become a validator.
+
+Wormhole chain uses the ECDSA secp256k1 signature scheme, which is the same as what
+the guardian signatures use, so we could directly derive a wormhole account for
+them, but we choose not to do this in order to allow guardian key rotation.
+
+ priv = ... // guardian private key
+ addr = sdk.AccAddress(priv.PubKey().Address())
+
+In theory it is possible to have multiple active guardian sets simultaneously
+(e.g. during the expiration period of the previous set). We only want one set of
+guardians to be able to produce blocks, so we store the latest validator set
+(which should typically by a pointer to the most recent guardian set). We have to
+be careful here, because if we update the guardian set to a new set where a
+superminority of guardians are not online yet, they won't be able to register
+themselves after the switch, since block production will come to a halt, and the
+chain becomes deadlocked.
+
+Thus we must only change over block production due to a guardian set update if a supermajority of guardians
+in the new guardian set are already registered.
+
+At present, Guardian Set upgrade VAAs are signed by the Guardians off-chain. This can stay off-chain for as long as needed, but should eventually be moved on-chain.
+
+## TODO Bootstraping the PoA Network
+
+At time of writing, the Guardian Network is currently at Guardian Set 2, but will possibly be at set 3 or 4 by the time of launch.
+
+It is likely not feasible to launch the chain with all 19 Guardians of the network hardcoded in the genesis block, as this would require the Guardians to determine their addresses off-chain, and have their information encoded in the genesis block.
+
+As such, it is likely simpler to launch Wormhole Chain with a single validator (The guardian from Guardian Set 1), then have all the other Guardians perform real on-chain registrations for themselves, and then perform a Guardian Set upgrade directly to the current Guardian set.
diff --git a/wormhole_chain/design/proofOfAuthority.md b/wormhole_chain/design/proofOfAuthority.md
new file mode 100644
index 000000000..6da7a9dd9
--- /dev/null
+++ b/wormhole_chain/design/proofOfAuthority.md
@@ -0,0 +1,83 @@
+# Wormhole Chain PoA Architecture Design
+
+The Wormhole Chain is intended to operate via the same PoA mechanism as the rest of the Wormhole ecosystem. This entails the following:
+
+- Two thirds of the Consensus Guardian Set are required for consensus. (In this case, block production.)
+- Guardian Sets are upgraded via processing Guardian Set Upgrade Governance VAAs.
+
+As such, the intent is that the 19 guardians will validate for Wormhole Chain, and Wormhole Chain consensus will be achieved when 14 Guardians vote to approve a block (via Tendermint). This means that we will need to hand-roll a PoA mechanism in the Cosmos-SDK on top of Tendermint and the normal Cosmos Staking module.
+
+## High-Level PoA Design Overview
+
+At any given time in the Wormhole Network, there is an "Latest Guardian Set". This is defined as the highest index Guardian Set, and is relevant outside of Wormhole Chain as well. The 'Latest Guardian Set' is meant to be the group of Guardians which is currently signing VAAs.
+
+Because the Guardian keys are meant to sign VAAs, and not to produce blocks on a Cosmos blockchain, the Guardians will have to separately host validators for Wormhole Chain, with different addresses, and then associate the addresses of their validator nodes to their Guardian public keys.
+
+Once an association has been created between the validator and its Guardian Key, the validator will be considered a 'Guardian Validator', and will be awarded 1 consensus voting power. The total voting power is equal to the size of the Consensus Guardian Set, and at least two thirds of the total voting power must vote to create a block.
+
+The Consensus Guardian Set is a distinct term from the Latest Guardian Set. This is because the Guardian Set Upgrade VAA is submitted via a normal Wormhole Chain transaction. When a new Latest Guardian Set is created, many of the Guardians in the new set may not have yet registered as Guardian Validators. Thus, the older Guardian Set must remain marked as the Consensus Set until enough Guardians from the new set have registered.
+
+## Validator Registration:
+
+First, validators must be able to join the Wormhole Chain Tendermint network. Validator registration is identical to the stock Cosmos-SDK design. Validators may bond and unbond as they would for any other Cosmos Chain. However, all validators have 0 consensus voting power, unless they are registered as a Guardian Validator, wherein they will have 1 voting power.
+
+## Mapping Validators to Guardians:
+
+Bonded Validators may register as Guardian Validators by submitting a transaction on-chain. This requires the following criteria:
+
+- The validator must be bonded.
+- The validator must hash their Validator Address (Operator Address), sign it with one of the Guardian Keys from the Latest Guardian Set (Note: Latest set, not necessarily Consensus Set.), and then submit this signature in a transaction to the RegisterValidatorAsGuardian function.
+- The transaction must be signed/sent from the Validator Address.
+- The validator must not have already registered as a different Guardian from the same set.
+
+A Guardian Public Key may only be registered to a single validator at a time. If a new validator proof is received for an existing Guardian Validator, the previous entry is overwritten. As an optional defense mechanism, the registration proofs could be limited to only Guardian Keys in the Latest set.
+
+## Guardian Set Upgrades
+
+Guardian Set upgrades are the trickiest operation to handle. When processing the Guardian Set Upgrade, the following steps happen:
+
+- The Latest Guardian Set is changed to the new Guardian Set.
+- If all Guardian Keys in the new Latest Guardian Set are registered, the Latest Guardian Set automatically becomes the new Consensus Guardian Set. Otherwise, the Latest Guardian Set will not become the Consensus Guardian Set until this threshold is met.
+
+## Benefits of this implementation:
+
+- Adequately meets the requirement that Guardians are responsible for consensus and block production on Wormhole Chain.
+- Relatively robust with regard to chain 'bricks'. If at any point in the life of Wormhole Chain less than 14 of the Guardians in the Consensus Set are registered, the network will deadlock. There will not be enough Guardians registered to produce a block, and because no blocks are being produced, no registrations can be completed. This design does not change the Consensus Set unless a sufficient amount of Guardians are registered.
+- Can swap out a massive set of Guardians all at once. Many other (simpler) designs for Guardian set swaps limit the number of Guardians which can be changed at once to only 6 to avoid network deadlocks. This design does not have this problem.
+- No modifications to Cosmos SDK validator bonding.
+
+### Cons
+
+- Moderate complexity. This is more complicated than the most straightforward implementations, but gains important features and protections to prevent deadlocks.
+- Not 100% immune to deadlocks. If less than 14 Guardians have valid registrations, the chain will permanently halt. This is prohibitively difficult to prevent with on-chain mechanisms, and unlikely to occur. Performing a simple hard fork in the scenario of a maimed Guardian Validator set is likely the safer and simpler option.
+- Avoids some DOS scenarios by only allowing validator registrations for known Guardian Keys.
+
+## Terms & Phrases:
+
+### Guardian
+
+- One of the entities approved to sign VAAs on the Wormhole network. Guardians are identified by the public key which they use to sign VAAs.
+
+### Guardian Set
+
+- A collection of Guardians which at one time was approved by the Wormhole network to produce VAAs. These collections are identified by their sequential 'Set Index'.
+
+### Latest Guardian Set
+
+- The highest index Guardian Set.
+
+### Consensus Guardian Set
+
+- The Guardian Set which is currently being used to produce blocks on Wormhole Chain. May be different from the Latest Guardian Set.
+
+### Guardian Set Upgrade VAA
+
+- A Wormhole network VAA which specifies a new Guardian Set. Emitting a new Guardian Set Upgrade VAA is the mechanism which creates a new Guardian Set.
+
+### Validator
+
+- A node on Wormhole Chain which is connected to the Tendermint peer network.
+
+### Guardian Validator
+
+- A Validator which is currently registered against a Guardian Public Key in the Consensus Guardian Set
diff --git a/wormhole_chain/design/roadmap.md b/wormhole_chain/design/roadmap.md
new file mode 100644
index 000000000..10b0e3d64
--- /dev/null
+++ b/wormhole_chain/design/roadmap.md
@@ -0,0 +1,83 @@
+# Wormhole Chain Roadmap
+
+## Why Wormhole Chain?
+
+At the time of writing, the Wormhole Guardian Network is a decentralized network of 19 validators operating in a Proof-of-Authority consensus mechanism. They validate using the guardiand program from the Wormhole core repository, and perform governance off-chain. There are currently no features to the Wormhole Guardian Network except the core function of observing and signing VAAs.
+
+The roadmap is that as Wormhole grows and matures, it will add more advanced features, such as Accounting, Wormhole Pipes, Cross-Chain Queries, and more. It will also move its governance, VAA generation, and validator on-boarding to a formalized process, and change its governance structure from PoA to another mechanism (possibly a modified Proof of Stake mechanism).
+
+Considering that future Wormhole governance is intended to be token based, and that many of these upcoming features are incentivized via fee or staking mechanisms, the obvious path forward is to launch a purpose-built blockchain to support this vision.
+
+## Why Cosmos?
+
+When building a new blockchain, there are not particularly many options. The primary options are:
+
+- Fork an existing blockchain
+- Use the Cosmos SDK
+- Build one from scratch
+- Implement into an existing environment (parachain), or implement as a layer 2.
+
+There is not any blockchain in particular which stands out to be forked, and most forked blockchains (such as Ethereum), would require maintaining a smart-contract runtime, which is an unnecessary overhead for Wormhole Chain.
+
+The Cosmos SDK is the most sensible choice, as its extensible 'module' system allows for the outlined features of Wormhole Chain to be easily added to the out-of-the-box runtime. Additionally, the Cosmos SDK's use of Tendermint for its consensus mechanism can easily be modified to support Proof of Authority for block production, while still allowing stake-weighted on-chain voting for governance. In the future, PoA can also be seamlessly swapped out for an entirely PoS system. Using the Cosmos SDK will also open up the opportunity for the Wormhole ecosystem to directly leverage the IBC protocol.
+
+Because the Cosmos SDK is able to support the planned feature set of Wormhole Chain, building it from scratch would largely be a case of 'reinventing the wheel', and even potentially sacrifice features, such as IBC support.
+
+The last option would be to implement the chain as a layer two, or integrate as a parachain in an existing environment like Polkadot. Both of these create dependencies and constraints for Wormhole which would make it hard to hand-roll a consensus mechanism or unilaterally develop new functionality.
+
+## Wormhole Chain Explorer
+
+Every blockchain should have an explorer, as it is a useful tool. The primary Cosmos blockchain explorers are shown here:
+
+https://github.com/cosmos/awesome#block-explorers
+
+Of the explorers listed, the two most popular and well-supported appear to be PingPub, and Big Dipper v2.
+
+Big Dipper seems to be the more robust, popular, and feature-rich of the two. Its only downside appears to be that it (quite reasonably) requires an external database. It also has the added benefit of being built in React, which will be easier to support, and allow the blockchain explorer to be more easily merged with the existing Wormhole Network Explorer. For these reasons, it stands out as being the best production candidate.
+
+PingPub (LOOK Explorer) has the benefit of only requiring an LCD connection. Because it is very easy to run, it may be useful as a development tool.
+
+# Feature Roadmap
+
+The upcoming Wormhole Chain features fall into four categories, roughly arranged in their dependency ordering.
+
+- Basic Functionality
+- Accounting
+- Governance
+- New Cross-Chain Functionality
+
+## Basic Functionality
+
+This category contains the critical features which allow Wormhole Chain to produce blocks, and for downstream functions to exist.
+
+### Proof of Authority Block Production
+
+The 19 Guardians of the current Wormhole Network will also serve as the 19 validators for the Wormhole Chain. Furthermore, new Guardians must be able to register as validators on the Wormhole Chain, so that the Guardian Set Upgrade VAAs can be submitted in a Wormhole Chain transaction to change its validator set, akin to the process on other chains.
+
+### Core Bridge and Token Bridge
+
+Wormhole Chain will contain critical functions for the Wormhole network, but it will also be another connected chain to the network. As such it will need an implementation of the Wormhole Core Bridge and Token Bridge.
+
+## Accounting
+
+Accounting is a defense-in-depth security mechanism, whereby the guardians will keep a running total of the circulating supply of each token on each chain, and refuse to issue VAAs for transfers which are logically impossible (as they must be the result of an exploit or 51% attack).
+
+More advanced mechanisms of accounting are planned as well, which would track token custody at a finer level to detect and prevent exploits from propagating across chains.
+
+There is also the option to move the current gossip network by which the guardians sign VAAs on-chain, which could allow for accounting to be more tightly integrated into the signing process.
+
+## Governance
+While block production will initially be PoA, the governance mechanism is intended to launch with on-chain voting in a PoS system.
+
+In order to vote, users will have to transfer and stake $WORM tokens from another chain. The on-chain voting process should otherwise be quite similar to other Cosmos chains.
+
+## New Cross-Chain Functionality
+
+### Cross-Chain Queries
+Cross Chain queries are a mechanism by which read-only data can be requested from a chain without actually submitting a transaction on that chain. For example, a user could request a VAA for the current balance of an Ethereum wallet by submitting a transaction Wormhole Chain. This would be a unified location to request data from any chain, and be a tremendous cost-saving mechanism over executing transactions on other L1s.
+
+### Wormhole Pipes
+Wormhole pipes are similar to Cross-Chain queries, but act via a 'Push' model whereby contracts can subscribe to systematically read data from other chains. Subscriptions would be managed via Wormhole Chain.
+
+### Many others
+Going forward, Wormhole Chain will be an excellent mechanism for both the public to interact with the Guardian network, and for the Guardians to communicate between themselves. As such, Wormhole Chain should become the primary mechanism by which requests are made to the Guardians, and how new oracle features are implemented.
diff --git a/wormhole_chain/development.md b/wormhole_chain/development.md
new file mode 100644
index 000000000..b5fb9859e
--- /dev/null
+++ b/wormhole_chain/development.md
@@ -0,0 +1,88 @@
+# Develop
+
+## prerequsites
+
+- Go >= 1.16
+- Starport: `curl https://get.starport.network/starport@v0.19.5! | sudo bash
+- nodejs >= 16
+
+## Building the blockchain
+
+Run
+
+```shell
+make
+```
+
+This command creates a `build` directory and in particular, the
+`build/wormhole-chaind` binary, which can be used to run and interact with the
+blockchain.
+
+You can start a local development instance by running
+
+```shell
+make run
+```
+
+Or equivalently
+
+```shell
+./build/wormhole-chaind --home build
+```
+
+If you want to reset the blockchain, just run
+
+```shell
+make clean
+```
+
+Then you can `make run` again.
+
+## Running tests
+
+Golang tests
+
+ make test
+
+Client tests, run against the chain. Wormchain must be running via `starport chain serve`, `make run` or `tilt up`
+
+ cd ./ts-sdk
+ npm ci
+ npm run build
+ cd ../testing/js
+ npm ci
+ npm run test
+
+## Interacting with the blockchain
+
+You can interact with the blockchain by using the go binary:
+
+```shell
+./build/wormhole-chaind tx tokenbridge execute-governance-vaa 01000000000100e86068bfd49c7209f259110dc061012ca6d65318f3879325528c57cf3e4950ff1295dbde77a4c72f3aee29a32a07099257521674725be8eb8bbd801349a828c30100000001000000010001000000000000000000000000000000000000000000000000000000000000000400000000038502e100000000000000000000000000000000000000000000546f6b656e4272696467650100000001c69a1b1a65dd336bf1df6a77afb501fc25db7fc0938cb08595a9ef473265cb4f --from tiltGuardian --home build
+```
+
+Note the flags `--from tiltGuardian --home build`. These have to be passed
+in each time you make a transaction (the `tiltGuardian` account is created in
+`config.yml`). Queries don't need the `--from` flag.
+
+## Scaffolding stuff with starport
+
+TODO: expand explanation here
+
+```shell
+starport scaffold type guardian-key key:string --module wormhole --no-message
+```
+
+modify `proto/wormhole/guardian_key.proto` (string -> bytes)
+
+```shell
+starport scaffold message register-account-as-guardian guardian-pubkey:GuardianKey address-bech32:string signature:string --desc "Register a guardian public key with a wormhole chain address." --module wormhole --signer signer
+```
+
+Scaffold a query:
+
+```shell
+starport scaffold query latest_guardian_set_index --response LatestGuardianSetIndex --module wormhole
+```
+
+(then modify "wormhole_chain/x/wormhole/types/query.pb.go" to change the response type)
diff --git a/wormhole_chain/docs/docs.go b/wormhole_chain/docs/docs.go
new file mode 100644
index 000000000..1167d5657
--- /dev/null
+++ b/wormhole_chain/docs/docs.go
@@ -0,0 +1,6 @@
+package docs
+
+import "embed"
+
+//go:embed static
+var Docs embed.FS
diff --git a/wormhole_chain/docs/exampleTendermint.json b/wormhole_chain/docs/exampleTendermint.json
new file mode 100644
index 000000000..f325583a6
--- /dev/null
+++ b/wormhole_chain/docs/exampleTendermint.json
@@ -0,0 +1,242 @@
+{
+ "result": {
+ "query": "tm.event='Tx'",
+ "data": {
+ "type": "tendermint/event/Tx",
+ "value": {
+ "TxResult": {
+ "height": "8583",
+ "tx": "Cp0BCpoBCjAvY2VydHVzb25lLndvcm1ob2xlY2hhaW4udG9rZW5icmlkZ2UuTXNnVHJhbnNmZXISZgovd29ybWhvbGUxd3F3eXdrY2U1MG1nNjA3N2h1eTRqOXk4bHQ4MDk0M2tzNXVkenISDAoFdWhvbGUSAzEwMBgCIiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoBMBJYClAKRgofL2Nvc21vcy5jcnlwdG8uc2VjcDI1NmsxLlB1YktleRIjCiECkmL8JjZEbLMDlxC0PBT1z6jtPw4T5KOuBwbk/AsyNM8SBAoCCAEYDRIEEMCaDBpA7S2taziRjKoisL0iSt1wq6VJixB+t+9YMOOD1F5lm/hvG1uxOOxM90c+QNWpwIq3O4FwyjG6IrodNN+uNOIX0A==",
+ "result": {
+ "data": "CjIKMC9jZXJ0dXNvbmUud29ybWhvbGVjaGFpbi50b2tlbmJyaWRnZS5Nc2dUcmFuc2Zlcg==",
+ "log": [
+ {
+ "events": [
+ {
+ "type": "certusone.wormholechain.wormhole.EventPostedMessage",
+ "attributes": [
+ {
+ "key": "emitter",
+ "value": "AAAAAAAAAAAAAAAAFxHNY7LFRe5lRUFdPMC9pkJcQ8Q="
+ },
+ { "key": "sequence", "value": "13" },
+ { "key": "nonce", "value": "0" },
+ {
+ "key": "payload",
+ "value": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdWhvbGUMIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="
+ }
+ ]
+ },
+ {
+ "type": "coin_received",
+ "attributes": [
+ {
+ "key": "receiver",
+ "value": "wormhole1zugu6cajc4z7ue29g9wnes9a5ep9cs7yu7rn3z"
+ },
+ { "key": "amount", "value": "100uworm" }
+ ]
+ },
+ {
+ "type": "coin_spent",
+ "attributes": [
+ {
+ "key": "spender",
+ "value": "wormhole1wqwywkce50mg6077huy4j9y8lt80943ks5udzr"
+ },
+ { "key": "amount", "value": "100uworm" }
+ ]
+ },
+ {
+ "type": "message",
+ "attributes": [
+ { "key": "action", "value": "Transfer" },
+ {
+ "key": "sender",
+ "value": "wormhole1wqwywkce50mg6077huy4j9y8lt80943ks5udzr"
+ }
+ ]
+ },
+ {
+ "type": "transfer",
+ "attributes": [
+ {
+ "key": "recipient",
+ "value": "wormhole1zugu6cajc4z7ue29g9wnes9a5ep9cs7yu7rn3z"
+ },
+ {
+ "key": "sender",
+ "value": "wormhole1wqwywkce50mg6077huy4j9y8lt80943ks5udzr"
+ },
+ { "key": "amount", "value": "100uworm" }
+ ]
+ }
+ ]
+ }
+ ],
+ "gas_wanted": "200000",
+ "gas_used": "56956",
+ "events": [
+ {
+ "type": "tx",
+ "attributes": [
+ {
+ "key": "ZmVl",
+ "value": "",
+ "index": true
+ }
+ ]
+ },
+ {
+ "type": "tx",
+ "attributes": [
+ {
+ "key": "YWNjX3NlcQ==",
+ "value": "d29ybWhvbGUxd3F3eXdrY2U1MG1nNjA3N2h1eTRqOXk4bHQ4MDk0M2tzNXVkenIvMTM=",
+ "index": true
+ }
+ ]
+ },
+ {
+ "type": "tx",
+ "attributes": [
+ {
+ "key": "c2lnbmF0dXJl",
+ "value": "N1MydGF6aVJqS29pc0wwaVN0MXdxNlZKaXhCK3QrOVlNT09EMUY1bG0vaHZHMXV4T094TTkwYytRTldwd0lxM080Rnd5akc2SXJvZE5OK3VOT0lYMEE9PQ==",
+ "index": true
+ }
+ ]
+ },
+ {
+ "type": "message",
+ "attributes": [
+ {
+ "key": "YWN0aW9u",
+ "value": "VHJhbnNmZXI=",
+ "index": true
+ }
+ ]
+ },
+ {
+ "type": "coin_spent",
+ "attributes": [
+ {
+ "key": "c3BlbmRlcg==",
+ "value": "d29ybWhvbGUxd3F3eXdrY2U1MG1nNjA3N2h1eTRqOXk4bHQ4MDk0M2tzNXVkenI=",
+ "index": true
+ },
+ {
+ "key": "YW1vdW50",
+ "value": "MTAwdWhvbGU=",
+ "index": true
+ }
+ ]
+ },
+ {
+ "type": "coin_received",
+ "attributes": [
+ {
+ "key": "cmVjZWl2ZXI=",
+ "value": "d29ybWhvbGUxenVndTZjYWpjNHo3dWUyOWc5d25lczlhNWVwOWNzN3l1N3JuM3o=",
+ "index": true
+ },
+ {
+ "key": "YW1vdW50",
+ "value": "MTAwdWhvbGU=",
+ "index": true
+ }
+ ]
+ },
+ {
+ "type": "transfer",
+ "attributes": [
+ {
+ "key": "cmVjaXBpZW50",
+ "value": "d29ybWhvbGUxenVndTZjYWpjNHo3dWUyOWc5d25lczlhNWVwOWNzN3l1N3JuM3o=",
+ "index": true
+ },
+ {
+ "key": "c2VuZGVy",
+ "value": "d29ybWhvbGUxd3F3eXdrY2U1MG1nNjA3N2h1eTRqOXk4bHQ4MDk0M2tzNXVkenI=",
+ "index": true
+ },
+ {
+ "key": "YW1vdW50",
+ "value": "MTAwdWhvbGU=",
+ "index": true
+ }
+ ]
+ },
+ {
+ "type": "message",
+ "attributes": [
+ {
+ "key": "c2VuZGVy",
+ "value": "d29ybWhvbGUxd3F3eXdrY2U1MG1nNjA3N2h1eTRqOXk4bHQ4MDk0M2tzNXVkenI=",
+ "index": true
+ }
+ ]
+ },
+ {
+ "type": "certusone.wormholechain.wormhole.EventPostedMessage",
+ "attributes": [
+ {
+ "key": "ZW1pdHRlcg==",
+ "value": "IkFBQUFBQUFBQUFBQUFBQUFGeEhOWTdMRlJlNWxSVUZkUE1DOXBrSmNROFE9Ig==",
+ "index": true
+ },
+ {
+ "key": "c2VxdWVuY2U=",
+ "value": "IjEzIg==",
+ "index": true
+ },
+ {
+ "key": "bm9uY2U=",
+ "value": "MA==",
+ "index": true
+ },
+ {
+ "key": "cGF5bG9hZA==",
+ "value": "IkFRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUJrQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBZFdodmJHVU1JQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBSUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE9PSI=",
+ "index": true
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "events": {
+ "coin_spent.spender": ["wormhole1wqwywkce50mg6077huy4j9y8lt80943ks5udzr"],
+ "coin_received.amount": ["100uworm"],
+ "transfer.amount": ["100uworm"],
+ "tx.acc_seq": ["wormhole1wqwywkce50mg6077huy4j9y8lt80943ks5udzr/13"],
+ "message.action": ["Transfer"],
+ "certusone.wormholechain.wormhole.EventPostedMessage.nonce": ["0"],
+ "tx.hash": [
+ "0A623859DCEBE1DCAC077D6D8B459BBF6FB199B18FCC5A3B9518EB3F36F25BE5"
+ ],
+ "tx.fee": [""],
+ "message.sender": ["wormhole1wqwywkce50mg6077huy4j9y8lt80943ks5udzr"],
+ "coin_received.receiver": [
+ "wormhole1zugu6cajc4z7ue29g9wnes9a5ep9cs7yu7rn3z"
+ ],
+ "transfer.recipient": ["wormhole1zugu6cajc4z7ue29g9wnes9a5ep9cs7yu7rn3z"],
+ "certusone.wormholechain.wormhole.EventPostedMessage.sequence": ["13"],
+ "tx.height": ["8583"],
+ "tx.signature": [
+ "7S2taziRjKoisL0iSt1wq6VJixB+t+9YMOOD1F5lm/hvG1uxOOxM90c+QNWpwIq3O4FwyjG6IrodNN+uNOIX0A=="
+ ],
+ "coin_spent.amount": ["100uworm"],
+ "certusone.wormholechain.wormhole.EventPostedMessage.payload": [
+ "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdWhvbGUMIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="
+ ],
+ "tm.event": ["Tx"],
+ "transfer.sender": ["wormhole1wqwywkce50mg6077huy4j9y8lt80943ks5udzr"],
+ "certusone.wormholechain.wormhole.EventPostedMessage.emitter": [
+ "AAAAAAAAAAAAAAAAFxHNY7LFRe5lRUFdPMC9pkJcQ8Q="
+ ]
+ }
+ }
+}
diff --git a/wormhole_chain/docs/registration.md b/wormhole_chain/docs/registration.md
new file mode 100644
index 000000000..3053ae22c
--- /dev/null
+++ b/wormhole_chain/docs/registration.md
@@ -0,0 +1,49 @@
+# Register wormhole chain on other chains
+
+The token bridge emitter address is
+
+```
+wormhole1zugu6cajc4z7ue29g9wnes9a5ep9cs7yu7rn3z
+```
+
+The wormhole (core module) address is:
+
+```
+wormhole1ap5vgur5zlgys8whugfegnn43emka567dtq0jl
+```
+
+This is deterministically generated from the module.
+
+## Tiltnet
+
+The VAA signed with the tiltnet guardian:
+
+```
+0100000000010047464c64a843f49766edc85c9b94b8b142a3315d6cad6c0045fe171f969b68bf52db1f81b9f40ec749b2ca27ebfe7da304c432f278bb9845448595d93a3519af0000000000d1ffc017000100000000000000000000000000000000000000000000000000000000000000045f2397a84b3f90ce20000000000000000000000000000000000000000000546f6b656e4272696467650100000c200000000000000000000000001711cd63b2c545ee6545415d3cc0bda6425c43c4
+```
+
+Rendered:
+
+```
+┌──────────────────────────────────────────────────────────────────────────────┐
+│ Wormhole VAA v1 │ nonce: 3523198999 │ time: 0 │
+│ guardian set #0 │ #6855489806860783822 │ consistency: 32 │
+├──────────────────────────────────────────────────────────────────────────────┤
+│ Signature: │
+│ #0: 47464c64a843f49766edc85c9b94b8b142a3315d6cad6c0045fe171f969b... │
+├──────────────────────────────────────────────────────────────────────────────┤
+│ Emitter: 11111111111111111111111111111115 (Solana) │
+╞══════════════════════════════════════════════════════════════════════════════╡
+│ Chain registration (TokenBridge) │
+│ Emitter chain: Wormhole │
+│ Emitter address: wormhole1zugu6cajc4z7ue29g9wnes9a5ep9cs7yu7rn3z (Wormhole) │
+└──────────────────────────────────────────────────────────────────────────────┘
+```
+
+## Testnet
+
+TBD (need to be signed by testnet guardian)
+
+## Mainnet
+
+TBD (need to be signed by the most recent guardian set)
diff --git a/wormhole_chain/docs/static/openapi.yml b/wormhole_chain/docs/static/openapi.yml
new file mode 100644
index 000000000..adfd59f27
--- /dev/null
+++ b/wormhole_chain/docs/static/openapi.yml
@@ -0,0 +1,48392 @@
+swagger: '2.0'
+info:
+ title: HTTP API Console
+ name: ''
+ description: ''
+paths:
+ /certusone/wormholechain/tokenbridge/chainRegistration:
+ get:
+ summary: Queries a list of chainRegistration items.
+ operationId: CertusoneWormholechainTokenbridgeChainRegistrationAll
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ chainRegistration:
+ type: array
+ items:
+ type: object
+ properties:
+ chainID:
+ type: integer
+ format: int64
+ emitterAddress:
+ type: string
+ format: byte
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/certusone/wormholechain/tokenbridge/chainRegistration/{chainID}':
+ get:
+ summary: Queries a chainRegistration by index.
+ operationId: CertusoneWormholechainTokenbridgeChainRegistration
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ chainRegistration:
+ type: object
+ properties:
+ chainID:
+ type: integer
+ format: int64
+ emitterAddress:
+ type: string
+ format: byte
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: chainID
+ in: path
+ required: true
+ type: integer
+ format: int64
+ tags:
+ - Query
+ /certusone/wormholechain/tokenbridge/coinMetaRollbackProtection:
+ get:
+ summary: Queries a list of coinMetaRollbackProtection items.
+ operationId: CertusoneWormholechainTokenbridgeCoinMetaRollbackProtectionAll
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ coinMetaRollbackProtection:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: string
+ lastUpdateSequence:
+ type: string
+ format: uint64
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/certusone/wormholechain/tokenbridge/coinMetaRollbackProtection/{index}':
+ get:
+ summary: Queries a coinMetaRollbackProtection by index.
+ operationId: CertusoneWormholechainTokenbridgeCoinMetaRollbackProtection
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ coinMetaRollbackProtection:
+ type: object
+ properties:
+ index:
+ type: string
+ lastUpdateSequence:
+ type: string
+ format: uint64
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: index
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /certusone/wormholechain/tokenbridge/config:
+ get:
+ summary: Queries a config by index.
+ operationId: CertusoneWormholechainTokenbridgeConfig
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ Config:
+ type: object
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /certusone/wormholechain/tokenbridge/replayProtection:
+ get:
+ summary: Queries a list of replayProtection items.
+ operationId: CertusoneWormholechainTokenbridgeReplayProtectionAll
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ replayProtection:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: string
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/certusone/wormholechain/tokenbridge/replayProtection/{index}':
+ get:
+ summary: Queries a replayProtection by index.
+ operationId: CertusoneWormholechainTokenbridgeReplayProtection
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ replayProtection:
+ type: object
+ properties:
+ index:
+ type: string
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: index
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /certusone/wormholechain/wormhole/config:
+ get:
+ summary: Queries a config by index.
+ operationId: CertusoneWormholechainWormholeConfig
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ Config:
+ type: object
+ properties:
+ guardian_set_expiration:
+ type: string
+ format: uint64
+ governance_emitter:
+ type: string
+ format: byte
+ governance_chain:
+ type: integer
+ format: int64
+ chain_id:
+ type: integer
+ format: int64
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /certusone/wormholechain/wormhole/consensus_guardian_set_index:
+ get:
+ summary: Queries a ConsensusGuardianSetIndex by index.
+ operationId: CertusoneWormholechainWormholeConsensusGuardianSetIndex
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ ConsensusGuardianSetIndex:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /certusone/wormholechain/wormhole/guardianSet:
+ get:
+ summary: Queries a list of guardianSet items.
+ operationId: CertusoneWormholechainWormholeGuardianSetAll
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ GuardianSet:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ keys:
+ type: array
+ items:
+ type: string
+ format: byte
+ expirationTime:
+ type: string
+ format: uint64
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/certusone/wormholechain/wormhole/guardianSet/{index}':
+ get:
+ summary: Queries a guardianSet by index.
+ operationId: CertusoneWormholechainWormholeGuardianSet
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ GuardianSet:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ keys:
+ type: array
+ items:
+ type: string
+ format: byte
+ expirationTime:
+ type: string
+ format: uint64
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: index
+ in: path
+ required: true
+ type: integer
+ format: int64
+ tags:
+ - Query
+ /certusone/wormholechain/wormhole/guardian_validator:
+ get:
+ summary: Queries a list of GuardianValidator items.
+ operationId: CertusoneWormholechainWormholeGuardianValidatorAll
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ guardianValidator:
+ type: array
+ items:
+ type: object
+ properties:
+ guardianKey:
+ type: string
+ format: byte
+ validatorAddr:
+ type: string
+ format: byte
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/certusone/wormholechain/wormhole/guardian_validator/{guardianKey}':
+ get:
+ summary: Queries a GuardianValidator by index.
+ operationId: CertusoneWormholechainWormholeGuardianValidator
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ guardianValidator:
+ type: object
+ properties:
+ guardianKey:
+ type: string
+ format: byte
+ validatorAddr:
+ type: string
+ format: byte
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: guardianKey
+ in: path
+ required: true
+ type: string
+ format: byte
+ tags:
+ - Query
+ /certusone/wormholechain/wormhole/latest_guardian_set_index:
+ get:
+ summary: Queries a list of LatestGuardianSetIndex items.
+ operationId: CertusoneWormholechainWormholeLatestGuardianSetIndex
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ latestGuardianSetIndex:
+ type: integer
+ format: int64
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /certusone/wormholechain/wormhole/replayProtection:
+ get:
+ summary: Queries a list of replayProtection items.
+ operationId: CertusoneWormholechainWormholeReplayProtectionAll
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ replayProtection:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: string
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/certusone/wormholechain/wormhole/replayProtection/{index}':
+ get:
+ summary: Queries a replayProtection by index.
+ operationId: CertusoneWormholechainWormholeReplayProtection
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ replayProtection:
+ type: object
+ properties:
+ index:
+ type: string
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: index
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /certusone/wormholechain/wormhole/sequenceCounter:
+ get:
+ summary: Queries a list of sequenceCounter items.
+ operationId: CertusoneWormholechainWormholeSequenceCounterAll
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ sequenceCounter:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: string
+ sequence:
+ type: string
+ format: uint64
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/certusone/wormholechain/wormhole/sequenceCounter/{index}':
+ get:
+ summary: Queries a sequenceCounter by index.
+ operationId: CertusoneWormholechainWormholeSequenceCounter
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ sequenceCounter:
+ type: object
+ properties:
+ index:
+ type: string
+ sequence:
+ type: string
+ format: uint64
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: index
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /cosmos/auth/v1beta1/accounts:
+ get:
+ summary: Accounts returns all the existing accounts
+ operationId: CosmosAuthV1Beta1Accounts
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ accounts:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: accounts are the existing accounts
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryAccountsResponse is the response type for the Query/Accounts
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/auth/v1beta1/accounts/{address}':
+ get:
+ summary: Account returns account details based on address.
+ operationId: CosmosAuthV1Beta1Account
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ account:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ QueryAccountResponse is the response type for the Query/Account
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: address
+ description: address defines the address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /cosmos/auth/v1beta1/params:
+ get:
+ summary: Params queries all parameters.
+ operationId: CosmosAuthV1Beta1Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ params:
+ description: params defines the parameters of the module.
+ type: object
+ properties:
+ max_memo_characters:
+ type: string
+ format: uint64
+ tx_sig_limit:
+ type: string
+ format: uint64
+ tx_size_cost_per_byte:
+ type: string
+ format: uint64
+ sig_verify_cost_ed25519:
+ type: string
+ format: uint64
+ sig_verify_cost_secp256k1:
+ type: string
+ format: uint64
+ description: >-
+ QueryParamsResponse is the response type for the Query/Params RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Query
+ '/cosmos/bank/v1beta1/balances/{address}':
+ get:
+ summary: AllBalances queries the balance of all coins for a single account.
+ operationId: CosmosBankV1Beta1AllBalances
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ balances:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: balances is the balances of all the coins.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryAllBalancesResponse is the response type for the
+ Query/AllBalances RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: address
+ description: address is the address to query balances for.
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/bank/v1beta1/balances/{address}/{denom}':
+ get:
+ summary: Balance queries the balance of a single coin for a single account.
+ operationId: CosmosBankV1Beta1Balance
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ balance:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ QueryBalanceResponse is the response type for the Query/Balance
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: address
+ description: address is the address to query balances for.
+ in: path
+ required: true
+ type: string
+ - name: denom
+ description: denom is the coin denom to query balances for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /cosmos/bank/v1beta1/denoms_metadata:
+ get:
+ summary: >-
+ DenomsMetadata queries the client metadata for all registered coin
+ denominations.
+ operationId: CosmosBankV1Beta1DenomsMetadata
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ metadatas:
+ type: array
+ items:
+ type: object
+ properties:
+ description:
+ type: string
+ denom_units:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ description: >-
+ denom represents the string name of the given
+ denom unit (e.g uatom).
+ exponent:
+ type: integer
+ format: int64
+ description: >-
+ exponent represents power of 10 exponent that one
+ must
+
+ raise the base_denom to in order to equal the
+ given DenomUnit's denom
+
+ 1 denom = 1^exponent base_denom
+
+ (e.g. with a base_denom of uatom, one can create a
+ DenomUnit of 'atom' with
+
+ exponent = 6, thus: 1 atom = 10^6 uatom).
+ aliases:
+ type: array
+ items:
+ type: string
+ title: >-
+ aliases is a list of string aliases for the given
+ denom
+ description: |-
+ DenomUnit represents a struct that describes a given
+ denomination unit of the basic token.
+ title: >-
+ denom_units represents the list of DenomUnit's for a
+ given coin
+ base:
+ type: string
+ description: >-
+ base represents the base denom (should be the DenomUnit
+ with exponent = 0).
+ display:
+ type: string
+ description: |-
+ display indicates the suggested denom that should be
+ displayed in clients.
+ name:
+ type: string
+ title: 'name defines the name of the token (eg: Cosmos Atom)'
+ symbol:
+ type: string
+ description: >-
+ symbol is the token symbol usually shown on exchanges
+ (eg: ATOM). This can
+
+ be the same as the display.
+ description: |-
+ Metadata represents a struct that describes
+ a basic token.
+ description: >-
+ metadata provides the client information for all the
+ registered tokens.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryDenomsMetadataResponse is the response type for the
+ Query/DenomsMetadata RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/bank/v1beta1/denoms_metadata/{denom}':
+ get:
+ summary: DenomsMetadata queries the client metadata of a given coin denomination.
+ operationId: CosmosBankV1Beta1DenomMetadata
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ metadata:
+ type: object
+ properties:
+ description:
+ type: string
+ denom_units:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ description: >-
+ denom represents the string name of the given denom
+ unit (e.g uatom).
+ exponent:
+ type: integer
+ format: int64
+ description: >-
+ exponent represents power of 10 exponent that one
+ must
+
+ raise the base_denom to in order to equal the given
+ DenomUnit's denom
+
+ 1 denom = 1^exponent base_denom
+
+ (e.g. with a base_denom of uatom, one can create a
+ DenomUnit of 'atom' with
+
+ exponent = 6, thus: 1 atom = 10^6 uatom).
+ aliases:
+ type: array
+ items:
+ type: string
+ title: >-
+ aliases is a list of string aliases for the given
+ denom
+ description: |-
+ DenomUnit represents a struct that describes a given
+ denomination unit of the basic token.
+ title: >-
+ denom_units represents the list of DenomUnit's for a given
+ coin
+ base:
+ type: string
+ description: >-
+ base represents the base denom (should be the DenomUnit
+ with exponent = 0).
+ display:
+ type: string
+ description: |-
+ display indicates the suggested denom that should be
+ displayed in clients.
+ name:
+ type: string
+ title: 'name defines the name of the token (eg: Cosmos Atom)'
+ symbol:
+ type: string
+ description: >-
+ symbol is the token symbol usually shown on exchanges (eg:
+ ATOM). This can
+
+ be the same as the display.
+ description: |-
+ Metadata represents a struct that describes
+ a basic token.
+ description: >-
+ QueryDenomMetadataResponse is the response type for the
+ Query/DenomMetadata RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: denom
+ description: denom is the coin denom to query the metadata for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /cosmos/bank/v1beta1/params:
+ get:
+ summary: Params queries the parameters of x/bank module.
+ operationId: CosmosBankV1Beta1Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ params:
+ type: object
+ properties:
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status
+ (whether a denom is
+
+ sendable).
+ default_send_enabled:
+ type: boolean
+ description: Params defines the parameters for the bank module.
+ description: >-
+ QueryParamsResponse defines the response type for querying x/bank
+ parameters.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /cosmos/bank/v1beta1/supply:
+ get:
+ summary: TotalSupply queries the total supply of all coins.
+ operationId: CosmosBankV1Beta1TotalSupply
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ supply:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ title: supply is the supply of the coins
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ title: >-
+ QueryTotalSupplyResponse is the response type for the
+ Query/TotalSupply RPC
+
+ method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/bank/v1beta1/supply/{denom}':
+ get:
+ summary: SupplyOf queries the supply of a single coin.
+ operationId: CosmosBankV1Beta1SupplyOf
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ amount:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ QuerySupplyOfResponse is the response type for the Query/SupplyOf
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: denom
+ description: denom is the coin denom to query balances for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /cosmos/base/tendermint/v1beta1/blocks/latest:
+ get:
+ summary: GetLatestBlock returns the latest block.
+ operationId: CosmosBaseTendermintV1Beta1GetLatestBlock
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ block:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing
+ a block in the blockchain,
+
+ including all blockchain data structures and the rules
+ of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ data:
+ type: object
+ properties:
+ txs:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: >-
+ Txs that will be applied by state @ block.Height+1.
+
+ NOTE: not all txs here are valid. We're just agreeing
+ on the order first.
+
+ This means that block.AppHash does not include these
+ txs.
+ title: >-
+ Data contains the set of transactions included in the
+ block
+ evidence:
+ type: object
+ properties:
+ evidence:
+ type: array
+ items:
+ type: object
+ properties:
+ duplicate_vote_evidence:
+ type: object
+ properties:
+ vote_a:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed
+ message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or
+ commit vote from validators for
+
+ consensus.
+ vote_b:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed
+ message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or
+ commit vote from validators for
+
+ consensus.
+ total_voting_power:
+ type: string
+ format: int64
+ validator_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ DuplicateVoteEvidence contains evidence of a
+ validator signed two conflicting votes.
+ light_client_attack_evidence:
+ type: object
+ properties:
+ conflicting_block:
+ type: object
+ properties:
+ signed_header:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules
+ for processing a block in the
+ blockchain,
+
+ including all blockchain data structures
+ and the rules of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: >-
+ hashes from the app output from the prev
+ block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: >-
+ Header defines the structure of a
+ Tendermint block header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the
+ signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: >-
+ CommitSig is a part of the Vote included
+ in a Commit.
+ description: >-
+ Commit contains the evidence that a
+ block was committed by a set of
+ validators.
+ validator_set:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ common_height:
+ type: string
+ format: int64
+ byzantine_validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ LightClientAttackEvidence contains evidence of a
+ set of validators attempting to mislead a light
+ client.
+ last_commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the
+ signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: >-
+ CommitSig is a part of the Vote included in a
+ Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by
+ a set of validators.
+ description: >-
+ GetLatestBlockResponse is the response type for the
+ Query/GetLatestBlock RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Service
+ '/cosmos/base/tendermint/v1beta1/blocks/{height}':
+ get:
+ summary: GetBlockByHeight queries block for given height.
+ operationId: CosmosBaseTendermintV1Beta1GetBlockByHeight
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ block:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing
+ a block in the blockchain,
+
+ including all blockchain data structures and the rules
+ of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ data:
+ type: object
+ properties:
+ txs:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: >-
+ Txs that will be applied by state @ block.Height+1.
+
+ NOTE: not all txs here are valid. We're just agreeing
+ on the order first.
+
+ This means that block.AppHash does not include these
+ txs.
+ title: >-
+ Data contains the set of transactions included in the
+ block
+ evidence:
+ type: object
+ properties:
+ evidence:
+ type: array
+ items:
+ type: object
+ properties:
+ duplicate_vote_evidence:
+ type: object
+ properties:
+ vote_a:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed
+ message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or
+ commit vote from validators for
+
+ consensus.
+ vote_b:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed
+ message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or
+ commit vote from validators for
+
+ consensus.
+ total_voting_power:
+ type: string
+ format: int64
+ validator_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ DuplicateVoteEvidence contains evidence of a
+ validator signed two conflicting votes.
+ light_client_attack_evidence:
+ type: object
+ properties:
+ conflicting_block:
+ type: object
+ properties:
+ signed_header:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules
+ for processing a block in the
+ blockchain,
+
+ including all blockchain data structures
+ and the rules of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: >-
+ hashes from the app output from the prev
+ block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: >-
+ Header defines the structure of a
+ Tendermint block header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the
+ signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: >-
+ CommitSig is a part of the Vote included
+ in a Commit.
+ description: >-
+ Commit contains the evidence that a
+ block was committed by a set of
+ validators.
+ validator_set:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ common_height:
+ type: string
+ format: int64
+ byzantine_validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ LightClientAttackEvidence contains evidence of a
+ set of validators attempting to mislead a light
+ client.
+ last_commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the
+ signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: >-
+ CommitSig is a part of the Vote included in a
+ Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by
+ a set of validators.
+ description: >-
+ GetBlockByHeightResponse is the response type for the
+ Query/GetBlockByHeight RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: height
+ in: path
+ required: true
+ type: string
+ format: int64
+ tags:
+ - Service
+ /cosmos/base/tendermint/v1beta1/node_info:
+ get:
+ summary: GetNodeInfo queries the current node info.
+ operationId: CosmosBaseTendermintV1Beta1GetNodeInfo
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ default_node_info:
+ type: object
+ properties:
+ protocol_version:
+ type: object
+ properties:
+ p2p:
+ type: string
+ format: uint64
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ default_node_id:
+ type: string
+ listen_addr:
+ type: string
+ network:
+ type: string
+ version:
+ type: string
+ channels:
+ type: string
+ format: byte
+ moniker:
+ type: string
+ other:
+ type: object
+ properties:
+ tx_index:
+ type: string
+ rpc_address:
+ type: string
+ application_version:
+ type: object
+ properties:
+ name:
+ type: string
+ app_name:
+ type: string
+ version:
+ type: string
+ git_commit:
+ type: string
+ build_tags:
+ type: string
+ go_version:
+ type: string
+ build_deps:
+ type: array
+ items:
+ type: object
+ properties:
+ path:
+ type: string
+ title: module path
+ version:
+ type: string
+ title: module version
+ sum:
+ type: string
+ title: checksum
+ title: Module is the type for VersionInfo
+ cosmos_sdk_version:
+ type: string
+ description: VersionInfo is the type for the GetNodeInfoResponse message.
+ description: >-
+ GetNodeInfoResponse is the request type for the Query/GetNodeInfo
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Service
+ /cosmos/base/tendermint/v1beta1/syncing:
+ get:
+ summary: GetSyncing queries node syncing.
+ operationId: CosmosBaseTendermintV1Beta1GetSyncing
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ syncing:
+ type: boolean
+ description: >-
+ GetSyncingResponse is the response type for the Query/GetSyncing
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Service
+ /cosmos/base/tendermint/v1beta1/validatorsets/latest:
+ get:
+ summary: GetLatestValidatorSet queries latest validator-set.
+ operationId: CosmosBaseTendermintV1Beta1GetLatestValidatorSet
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ block_height:
+ type: string
+ format: int64
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ pub_key:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the
+ type of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's
+ path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the
+ binary all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available
+ in the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the
+ regular
+
+ representation of the deserialized, embedded message,
+ with an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message
+ [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ description: Validator is the type for the validator-set.
+ pagination:
+ description: pagination defines an pagination for the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ GetLatestValidatorSetResponse is the response type for the
+ Query/GetValidatorSetByHeight RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Service
+ '/cosmos/base/tendermint/v1beta1/validatorsets/{height}':
+ get:
+ summary: GetValidatorSetByHeight queries validator-set at a given height.
+ operationId: CosmosBaseTendermintV1Beta1GetValidatorSetByHeight
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ block_height:
+ type: string
+ format: int64
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ pub_key:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the
+ type of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's
+ path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the
+ binary all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available
+ in the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the
+ regular
+
+ representation of the deserialized, embedded message,
+ with an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message
+ [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ description: Validator is the type for the validator-set.
+ pagination:
+ description: pagination defines an pagination for the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ GetValidatorSetByHeightResponse is the response type for the
+ Query/GetValidatorSetByHeight RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: height
+ in: path
+ required: true
+ type: string
+ format: int64
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Service
+ /cosmos/distribution/v1beta1/community_pool:
+ get:
+ summary: CommunityPool queries the community pool coins.
+ operationId: CosmosDistributionV1Beta1CommunityPool
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ pool:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ DecCoin defines a token with a denomination and a decimal
+ amount.
+
+
+ NOTE: The amount field is an Dec which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: pool defines community pool's coins.
+ description: >-
+ QueryCommunityPoolResponse is the response type for the
+ Query/CommunityPool
+
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ '/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards':
+ get:
+ summary: |-
+ DelegationTotalRewards queries the total rewards accrued by a each
+ validator.
+ operationId: CosmosDistributionV1Beta1DelegationTotalRewards
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ rewards:
+ type: array
+ items:
+ type: object
+ properties:
+ validator_address:
+ type: string
+ reward:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ DecCoin defines a token with a denomination and a
+ decimal amount.
+
+
+ NOTE: The amount field is an Dec which implements the
+ custom method
+
+ signatures required by gogoproto.
+ description: |-
+ DelegationDelegatorReward represents the properties
+ of a delegator's delegation reward.
+ description: rewards defines all the rewards accrued by a delegator.
+ total:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ DecCoin defines a token with a denomination and a decimal
+ amount.
+
+
+ NOTE: The amount field is an Dec which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: total defines the sum of all the rewards.
+ description: |-
+ QueryDelegationTotalRewardsResponse is the response type for the
+ Query/DelegationTotalRewards RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: delegator_address
+ description: delegator_address defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}':
+ get:
+ summary: DelegationRewards queries the total rewards accrued by a delegation.
+ operationId: CosmosDistributionV1Beta1DelegationRewards
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ rewards:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ DecCoin defines a token with a denomination and a decimal
+ amount.
+
+
+ NOTE: The amount field is an Dec which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: rewards defines the rewards accrued by a delegation.
+ description: |-
+ QueryDelegationRewardsResponse is the response type for the
+ Query/DelegationRewards RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: delegator_address
+ description: delegator_address defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: validator_address
+ description: validator_address defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators':
+ get:
+ summary: DelegatorValidators queries the validators of a delegator.
+ operationId: CosmosDistributionV1Beta1DelegatorValidators
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: string
+ description: >-
+ validators defines the validators a delegator is delegating
+ for.
+ description: |-
+ QueryDelegatorValidatorsResponse is the response type for the
+ Query/DelegatorValidators RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: delegator_address
+ description: delegator_address defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address':
+ get:
+ summary: DelegatorWithdrawAddress queries withdraw address of a delegator.
+ operationId: CosmosDistributionV1Beta1DelegatorWithdrawAddress
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ withdraw_address:
+ type: string
+ description: withdraw_address defines the delegator address to query for.
+ description: |-
+ QueryDelegatorWithdrawAddressResponse is the response type for the
+ Query/DelegatorWithdrawAddress RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: delegator_address
+ description: delegator_address defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /cosmos/distribution/v1beta1/params:
+ get:
+ summary: Params queries params of the distribution module.
+ operationId: CosmosDistributionV1Beta1Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ params:
+ description: params defines the parameters of the module.
+ type: object
+ properties:
+ community_tax:
+ type: string
+ base_proposer_reward:
+ type: string
+ bonus_proposer_reward:
+ type: string
+ withdraw_addr_enabled:
+ type: boolean
+ description: >-
+ QueryParamsResponse is the response type for the Query/Params RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ '/cosmos/distribution/v1beta1/validators/{validator_address}/commission':
+ get:
+ summary: ValidatorCommission queries accumulated commission for a validator.
+ operationId: CosmosDistributionV1Beta1ValidatorCommission
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ commission:
+ description: commission defines the commision the validator received.
+ type: object
+ properties:
+ commission:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ DecCoin defines a token with a denomination and a
+ decimal amount.
+
+
+ NOTE: The amount field is an Dec which implements the
+ custom method
+
+ signatures required by gogoproto.
+ title: |-
+ QueryValidatorCommissionResponse is the response type for the
+ Query/ValidatorCommission RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: validator_address
+ description: validator_address defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards':
+ get:
+ summary: ValidatorOutstandingRewards queries rewards of a validator address.
+ operationId: CosmosDistributionV1Beta1ValidatorOutstandingRewards
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ rewards:
+ type: object
+ properties:
+ rewards:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ DecCoin defines a token with a denomination and a
+ decimal amount.
+
+
+ NOTE: The amount field is an Dec which implements the
+ custom method
+
+ signatures required by gogoproto.
+ description: >-
+ ValidatorOutstandingRewards represents outstanding
+ (un-withdrawn) rewards
+
+ for a validator inexpensive to track, allows simple sanity
+ checks.
+ description: >-
+ QueryValidatorOutstandingRewardsResponse is the response type for
+ the
+
+ Query/ValidatorOutstandingRewards RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: validator_address
+ description: validator_address defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/distribution/v1beta1/validators/{validator_address}/slashes':
+ get:
+ summary: ValidatorSlashes queries slash events of a validator.
+ operationId: CosmosDistributionV1Beta1ValidatorSlashes
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ slashes:
+ type: array
+ items:
+ type: object
+ properties:
+ validator_period:
+ type: string
+ format: uint64
+ fraction:
+ type: string
+ description: >-
+ ValidatorSlashEvent represents a validator slash event.
+
+ Height is implicit within the store key.
+
+ This is needed to calculate appropriate amount of staking
+ tokens
+
+ for delegations which are withdrawn after a slash has
+ occurred.
+ description: slashes defines the slashes the validator received.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ QueryValidatorSlashesResponse is the response type for the
+ Query/ValidatorSlashes RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: validator_address
+ description: validator_address defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: starting_height
+ description: >-
+ starting_height defines the optional starting height to query the
+ slashes.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: ending_height
+ description: >-
+ starting_height defines the optional ending height to query the
+ slashes.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ /cosmos/evidence/v1beta1/evidence:
+ get:
+ summary: AllEvidence queries all evidence.
+ operationId: CosmosEvidenceV1Beta1AllEvidence
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ evidence:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: evidence returns all evidences.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryAllEvidenceResponse is the response type for the
+ Query/AllEvidence RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/evidence/v1beta1/evidence/{evidence_hash}':
+ get:
+ summary: Evidence queries evidence based on evidence hash.
+ operationId: CosmosEvidenceV1Beta1Evidence
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ evidence:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ QueryEvidenceResponse is the response type for the Query/Evidence
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: evidence_hash
+ description: evidence_hash defines the hash of the requested evidence.
+ in: path
+ required: true
+ type: string
+ format: byte
+ tags:
+ - Query
+ '/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}':
+ get:
+ summary: Allowance returns fee granted to the grantee by the granter.
+ operationId: CosmosFeegrantV1Beta1Allowance
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ allowance:
+ description: allowance is a allowance granted for grantee by granter.
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance
+ of their funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an
+ allowance of another user's funds.
+ allowance:
+ description: allowance can be any of basic and filtered fee allowance.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ title: >-
+ Grant is stored in the KVStore to record a grant with full
+ context
+ description: >-
+ QueryAllowanceResponse is the response type for the
+ Query/Allowance RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: granter
+ description: >-
+ granter is the address of the user granting an allowance of their
+ funds.
+ in: path
+ required: true
+ type: string
+ - name: grantee
+ description: >-
+ grantee is the address of the user being granted an allowance of
+ another user's funds.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/feegrant/v1beta1/allowances/{grantee}':
+ get:
+ summary: Allowances returns all the grants for address.
+ operationId: CosmosFeegrantV1Beta1Allowances
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ allowances:
+ type: array
+ items:
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance
+ of their funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an
+ allowance of another user's funds.
+ allowance:
+ description: >-
+ allowance can be any of basic and filtered fee
+ allowance.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the
+ type of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's
+ path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the
+ binary all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available
+ in the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ title: >-
+ Grant is stored in the KVStore to record a grant with full
+ context
+ description: allowances are allowance's granted for grantee by granter.
+ pagination:
+ description: pagination defines an pagination for the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryAllowancesResponse is the response type for the
+ Query/Allowances RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: grantee
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/gov/v1beta1/params/{params_type}':
+ get:
+ summary: Params queries all parameters of the gov module.
+ operationId: CosmosGovV1Beta1Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ voting_params:
+ description: voting_params defines the parameters related to voting.
+ type: object
+ properties:
+ voting_period:
+ type: string
+ description: Length of the voting period.
+ deposit_params:
+ description: deposit_params defines the parameters related to deposit.
+ type: object
+ properties:
+ min_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
+ description: Minimum deposit for a proposal to enter voting period.
+ max_deposit_period:
+ type: string
+ description: >-
+ Maximum period for Atom holders to deposit on a proposal.
+ Initial value: 2
+ months.
+ tally_params:
+ description: tally_params defines the parameters related to tally.
+ type: object
+ properties:
+ quorum:
+ type: string
+ format: byte
+ description: >-
+ Minimum percentage of total stake needed to vote for a
+ result to be
+ considered valid.
+ threshold:
+ type: string
+ format: byte
+ description: >-
+ Minimum proportion of Yes votes for proposal to pass.
+ Default value: 0.5.
+ veto_threshold:
+ type: string
+ format: byte
+ description: >-
+ Minimum value of Veto votes to Total votes ratio for
+ proposal to be
+ vetoed. Default value: 1/3.
+ description: >-
+ QueryParamsResponse is the response type for the Query/Params RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: params_type
+ description: >-
+ params_type defines which parameters to query for, can be one of
+ "voting",
+
+ "tallying" or "deposit".
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /cosmos/gov/v1beta1/proposals:
+ get:
+ summary: Proposals queries all proposals based on given status.
+ operationId: CosmosGovV1Beta1Proposals
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ proposals:
+ type: array
+ items:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ content:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the
+ type of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's
+ path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the
+ binary all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available
+ in the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the
+ regular
+
+ representation of the deserialized, embedded message,
+ with an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message
+ [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ status:
+ type: string
+ enum:
+ - PROPOSAL_STATUS_UNSPECIFIED
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD
+ - PROPOSAL_STATUS_VOTING_PERIOD
+ - PROPOSAL_STATUS_PASSED
+ - PROPOSAL_STATUS_REJECTED
+ - PROPOSAL_STATUS_FAILED
+ default: PROPOSAL_STATUS_UNSPECIFIED
+ description: >-
+ ProposalStatus enumerates the valid statuses of a
+ proposal.
+
+ - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
+ period.
+ - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
+ period.
+ - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
+ passed.
+ - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
+ been rejected.
+ - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
+ failed.
+ final_tally_result:
+ type: object
+ properties:
+ 'yes':
+ type: string
+ abstain:
+ type: string
+ 'no':
+ type: string
+ no_with_veto:
+ type: string
+ description: >-
+ TallyResult defines a standard tally for a governance
+ proposal.
+ submit_time:
+ type: string
+ format: date-time
+ deposit_end_time:
+ type: string
+ format: date-time
+ total_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
+
+
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
+ voting_start_time:
+ type: string
+ format: date-time
+ voting_end_time:
+ type: string
+ format: date-time
+ description: >-
+ Proposal defines the core field members of a governance
+ proposal.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryProposalsResponse is the response type for the
+ Query/Proposals RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: proposal_status
+ description: |-
+ proposal_status defines the status of the proposals.
+
+ - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
+ period.
+ - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
+ period.
+ - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
+ passed.
+ - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
+ been rejected.
+ - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
+ failed.
+ in: query
+ required: false
+ type: string
+ enum:
+ - PROPOSAL_STATUS_UNSPECIFIED
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD
+ - PROPOSAL_STATUS_VOTING_PERIOD
+ - PROPOSAL_STATUS_PASSED
+ - PROPOSAL_STATUS_REJECTED
+ - PROPOSAL_STATUS_FAILED
+ default: PROPOSAL_STATUS_UNSPECIFIED
+ - name: voter
+ description: voter defines the voter address for the proposals.
+ in: query
+ required: false
+ type: string
+ - name: depositor
+ description: depositor defines the deposit addresses from the proposals.
+ in: query
+ required: false
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/gov/v1beta1/proposals/{proposal_id}':
+ get:
+ summary: Proposal queries proposal details based on ProposalID.
+ operationId: CosmosGovV1Beta1Proposal
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ proposal:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ content:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ status:
+ type: string
+ enum:
+ - PROPOSAL_STATUS_UNSPECIFIED
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD
+ - PROPOSAL_STATUS_VOTING_PERIOD
+ - PROPOSAL_STATUS_PASSED
+ - PROPOSAL_STATUS_REJECTED
+ - PROPOSAL_STATUS_FAILED
+ default: PROPOSAL_STATUS_UNSPECIFIED
+ description: >-
+ ProposalStatus enumerates the valid statuses of a
+ proposal.
+
+ - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
+ period.
+ - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
+ period.
+ - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
+ passed.
+ - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
+ been rejected.
+ - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
+ failed.
+ final_tally_result:
+ type: object
+ properties:
+ 'yes':
+ type: string
+ abstain:
+ type: string
+ 'no':
+ type: string
+ no_with_veto:
+ type: string
+ description: >-
+ TallyResult defines a standard tally for a governance
+ proposal.
+ submit_time:
+ type: string
+ format: date-time
+ deposit_end_time:
+ type: string
+ format: date-time
+ total_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
+ voting_start_time:
+ type: string
+ format: date-time
+ voting_end_time:
+ type: string
+ format: date-time
+ description: >-
+ Proposal defines the core field members of a governance
+ proposal.
+ description: >-
+ QueryProposalResponse is the response type for the Query/Proposal
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: proposal_id
+ description: proposal_id defines the unique id of the proposal.
+ in: path
+ required: true
+ type: string
+ format: uint64
+ tags:
+ - Query
+ '/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits':
+ get:
+ summary: Deposits queries all deposits of a single proposal.
+ operationId: CosmosGovV1Beta1Deposits
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ deposits:
+ type: array
+ items:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ depositor:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
+
+
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
+ description: >-
+ Deposit defines an amount deposited by an account address to
+ an active
+
+ proposal.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryDepositsResponse is the response type for the Query/Deposits
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: proposal_id
+ description: proposal_id defines the unique id of the proposal.
+ in: path
+ required: true
+ type: string
+ format: uint64
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}':
+ get:
+ summary: >-
+ Deposit queries single deposit information based proposalID,
+ depositAddr.
+ operationId: CosmosGovV1Beta1Deposit
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ deposit:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ depositor:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
+ description: >-
+ Deposit defines an amount deposited by an account address to
+ an active
+
+ proposal.
+ description: >-
+ QueryDepositResponse is the response type for the Query/Deposit
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: proposal_id
+ description: proposal_id defines the unique id of the proposal.
+ in: path
+ required: true
+ type: string
+ format: uint64
+ - name: depositor
+ description: depositor defines the deposit addresses from the proposals.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/gov/v1beta1/proposals/{proposal_id}/tally':
+ get:
+ summary: TallyResult queries the tally of a proposal vote.
+ operationId: CosmosGovV1Beta1TallyResult
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ tally:
+ type: object
+ properties:
+ 'yes':
+ type: string
+ abstain:
+ type: string
+ 'no':
+ type: string
+ no_with_veto:
+ type: string
+ description: >-
+ TallyResult defines a standard tally for a governance
+ proposal.
+ description: >-
+ QueryTallyResultResponse is the response type for the Query/Tally
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: proposal_id
+ description: proposal_id defines the unique id of the proposal.
+ in: path
+ required: true
+ type: string
+ format: uint64
+ tags:
+ - Query
+ '/cosmos/gov/v1beta1/proposals/{proposal_id}/votes':
+ get:
+ summary: Votes queries votes of a given proposal.
+ operationId: CosmosGovV1Beta1Votes
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ votes:
+ type: array
+ items:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ voter:
+ type: string
+ option:
+ description: >-
+ Deprecated: Prefer to use `options` instead. This field
+ is set in queries
+
+ if and only if `len(options) == 1` and that option has
+ weight 1. In all
+
+ other cases, this field will default to
+ VOTE_OPTION_UNSPECIFIED.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ options:
+ type: array
+ items:
+ type: object
+ properties:
+ option:
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ description: >-
+ VoteOption enumerates the valid vote options for a
+ given governance proposal.
+
+ - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
+ - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
+ - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
+ - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
+ - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
+ weight:
+ type: string
+ description: >-
+ WeightedVoteOption defines a unit of vote for vote
+ split.
+ description: >-
+ Vote defines a vote on a governance proposal.
+
+ A Vote consists of a proposal ID, the voter, and the vote
+ option.
+ description: votes defined the queried votes.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryVotesResponse is the response type for the Query/Votes RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: proposal_id
+ description: proposal_id defines the unique id of the proposal.
+ in: path
+ required: true
+ type: string
+ format: uint64
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}':
+ get:
+ summary: 'Vote queries voted information based on proposalID, voterAddr.'
+ operationId: CosmosGovV1Beta1Vote
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ vote:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ voter:
+ type: string
+ option:
+ description: >-
+ Deprecated: Prefer to use `options` instead. This field is
+ set in queries
+
+ if and only if `len(options) == 1` and that option has
+ weight 1. In all
+
+ other cases, this field will default to
+ VOTE_OPTION_UNSPECIFIED.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ options:
+ type: array
+ items:
+ type: object
+ properties:
+ option:
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ description: >-
+ VoteOption enumerates the valid vote options for a
+ given governance proposal.
+
+ - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
+ - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
+ - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
+ - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
+ - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
+ weight:
+ type: string
+ description: >-
+ WeightedVoteOption defines a unit of vote for vote
+ split.
+ description: >-
+ Vote defines a vote on a governance proposal.
+
+ A Vote consists of a proposal ID, the voter, and the vote
+ option.
+ description: >-
+ QueryVoteResponse is the response type for the Query/Vote RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: proposal_id
+ description: proposal_id defines the unique id of the proposal.
+ in: path
+ required: true
+ type: string
+ format: uint64
+ - name: voter
+ description: voter defines the oter address for the proposals.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /cosmos/mint/v1beta1/annual_provisions:
+ get:
+ summary: AnnualProvisions current minting annual provisions value.
+ operationId: CosmosMintV1Beta1AnnualProvisions
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ annual_provisions:
+ type: string
+ format: byte
+ description: >-
+ annual_provisions is the current minting annual provisions
+ value.
+ description: |-
+ QueryAnnualProvisionsResponse is the response type for the
+ Query/AnnualProvisions RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /cosmos/mint/v1beta1/inflation:
+ get:
+ summary: Inflation returns the current minting inflation value.
+ operationId: CosmosMintV1Beta1Inflation
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ inflation:
+ type: string
+ format: byte
+ description: inflation is the current minting inflation value.
+ description: >-
+ QueryInflationResponse is the response type for the
+ Query/Inflation RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /cosmos/mint/v1beta1/params:
+ get:
+ summary: Params returns the total set of minting parameters.
+ operationId: CosmosMintV1Beta1Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ params:
+ description: params defines the parameters of the module.
+ type: object
+ properties:
+ mint_denom:
+ type: string
+ title: type of coin to mint
+ inflation_rate_change:
+ type: string
+ title: maximum annual change in inflation rate
+ inflation_max:
+ type: string
+ title: maximum inflation rate
+ inflation_min:
+ type: string
+ title: minimum inflation rate
+ goal_bonded:
+ type: string
+ title: goal of percent bonded atoms
+ blocks_per_year:
+ type: string
+ format: uint64
+ title: expected blocks per year
+ description: >-
+ QueryParamsResponse is the response type for the Query/Params RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /cosmos/params/v1beta1/params:
+ get:
+ summary: |-
+ Params queries a specific parameter of a module, given its subspace and
+ key.
+ operationId: CosmosParamsV1Beta1Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ param:
+ description: param defines the queried parameter.
+ type: object
+ properties:
+ subspace:
+ type: string
+ key:
+ type: string
+ value:
+ type: string
+ description: >-
+ QueryParamsResponse is response type for the Query/Params RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: subspace
+ description: subspace defines the module to query the parameter for.
+ in: query
+ required: false
+ type: string
+ - name: key
+ description: key defines the key of the parameter in the subspace.
+ in: query
+ required: false
+ type: string
+ tags:
+ - Query
+ /cosmos/slashing/v1beta1/params:
+ get:
+ summary: Params queries the parameters of slashing module
+ operationId: CosmosSlashingV1Beta1Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ params:
+ type: object
+ properties:
+ signed_blocks_window:
+ type: string
+ format: int64
+ min_signed_per_window:
+ type: string
+ format: byte
+ downtime_jail_duration:
+ type: string
+ slash_fraction_double_sign:
+ type: string
+ format: byte
+ slash_fraction_downtime:
+ type: string
+ format: byte
+ description: >-
+ Params represents the parameters used for by the slashing
+ module.
+ title: >-
+ QueryParamsResponse is the response type for the Query/Params RPC
+ method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /cosmos/slashing/v1beta1/signing_infos:
+ get:
+ summary: SigningInfos queries signing info of all validators
+ operationId: CosmosSlashingV1Beta1SigningInfos
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ info:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ start_height:
+ type: string
+ format: int64
+ title: >-
+ Height at which validator was first a candidate OR was
+ unjailed
+ index_offset:
+ type: string
+ format: int64
+ description: >-
+ Index which is incremented each time the validator was a
+ bonded
+
+ in a block and may have signed a precommit or not. This
+ in conjunction with the
+
+ `SignedBlocksWindow` param determines the index in the
+ `MissedBlocksBitArray`.
+ jailed_until:
+ type: string
+ format: date-time
+ description: >-
+ Timestamp until which the validator is jailed due to
+ liveness downtime.
+ tombstoned:
+ type: boolean
+ description: >-
+ Whether or not a validator has been tombstoned (killed
+ out of validator set). It is set
+
+ once the validator commits an equivocation or for any
+ other configured misbehiavor.
+ missed_blocks_counter:
+ type: string
+ format: int64
+ description: >-
+ A counter kept to avoid unnecessary array reads.
+
+ Note that `Sum(MissedBlocksBitArray)` always equals
+ `MissedBlocksCounter`.
+ description: >-
+ ValidatorSigningInfo defines a validator's signing info for
+ monitoring their
+
+ liveness activity.
+ title: info is the signing info of all validators
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ title: >-
+ QuerySigningInfosResponse is the response type for the
+ Query/SigningInfos RPC
+
+ method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/slashing/v1beta1/signing_infos/{cons_address}':
+ get:
+ summary: SigningInfo queries the signing info of given cons address
+ operationId: CosmosSlashingV1Beta1SigningInfo
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ val_signing_info:
+ type: object
+ properties:
+ address:
+ type: string
+ start_height:
+ type: string
+ format: int64
+ title: >-
+ Height at which validator was first a candidate OR was
+ unjailed
+ index_offset:
+ type: string
+ format: int64
+ description: >-
+ Index which is incremented each time the validator was a
+ bonded
+
+ in a block and may have signed a precommit or not. This in
+ conjunction with the
+
+ `SignedBlocksWindow` param determines the index in the
+ `MissedBlocksBitArray`.
+ jailed_until:
+ type: string
+ format: date-time
+ description: >-
+ Timestamp until which the validator is jailed due to
+ liveness downtime.
+ tombstoned:
+ type: boolean
+ description: >-
+ Whether or not a validator has been tombstoned (killed out
+ of validator set). It is set
+
+ once the validator commits an equivocation or for any
+ other configured misbehiavor.
+ missed_blocks_counter:
+ type: string
+ format: int64
+ description: >-
+ A counter kept to avoid unnecessary array reads.
+
+ Note that `Sum(MissedBlocksBitArray)` always equals
+ `MissedBlocksCounter`.
+ description: >-
+ ValidatorSigningInfo defines a validator's signing info for
+ monitoring their
+
+ liveness activity.
+ title: >-
+ val_signing_info is the signing info of requested val cons
+ address
+ title: >-
+ QuerySigningInfoResponse is the response type for the
+ Query/SigningInfo RPC
+
+ method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: cons_address
+ description: cons_address is the address to query signing info of
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/delegations/{delegator_addr}':
+ get:
+ summary: >-
+ DelegatorDelegations queries all delegations of a given delegator
+ address.
+ operationId: CosmosStakingV1Beta1DelegatorDelegations
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ delegation_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ delegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of
+ the delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of
+ the validator.
+ shares:
+ type: string
+ description: shares define the delegation shares received.
+ description: >-
+ Delegation represents the bond with tokens held by an
+ account. It is
+
+ owned by one delegator, and is associated with the
+ voting power of one
+
+ validator.
+ balance:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
+ description: >-
+ DelegationResponse is equivalent to Delegation except that
+ it contains a
+
+ balance in addition to shares which is more suitable for
+ client responses.
+ description: >-
+ delegation_responses defines all the delegations' info of a
+ delegator.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ QueryDelegatorDelegationsResponse is response type for the
+ Query/DelegatorDelegations RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: delegator_addr
+ description: delegator_addr defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations':
+ get:
+ summary: Redelegations queries redelegations of given address.
+ operationId: CosmosStakingV1Beta1Redelegations
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ redelegation_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ redelegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of
+ the delegator.
+ validator_src_address:
+ type: string
+ description: >-
+ validator_src_address is the validator redelegation
+ source operator address.
+ validator_dst_address:
+ type: string
+ description: >-
+ validator_dst_address is the validator redelegation
+ destination operator address.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height defines the height which the
+ redelegation took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time defines the unix time for
+ redelegation completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the initial balance
+ when redelegation started.
+ shares_dst:
+ type: string
+ description: >-
+ shares_dst is the amount of
+ destination-validator shares created by
+ redelegation.
+ description: >-
+ RedelegationEntry defines a redelegation object
+ with relevant metadata.
+ description: entries are the redelegation entries.
+ description: >-
+ Redelegation contains the list of a particular
+ delegator's redelegating bonds
+
+ from a particular source validator to a particular
+ destination validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ redelegation_entry:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height defines the height which the
+ redelegation took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time defines the unix time for
+ redelegation completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the initial balance
+ when redelegation started.
+ shares_dst:
+ type: string
+ description: >-
+ shares_dst is the amount of
+ destination-validator shares created by
+ redelegation.
+ description: >-
+ RedelegationEntry defines a redelegation object
+ with relevant metadata.
+ balance:
+ type: string
+ description: >-
+ RedelegationEntryResponse is equivalent to a
+ RedelegationEntry except that it
+
+ contains a balance in addition to shares which is more
+ suitable for client
+
+ responses.
+ description: >-
+ RedelegationResponse is equivalent to a Redelegation except
+ that its entries
+
+ contain a balance in addition to shares which is more
+ suitable for client
+
+ responses.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryRedelegationsResponse is response type for the
+ Query/Redelegations RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: delegator_addr
+ description: delegator_addr defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: src_validator_addr
+ description: src_validator_addr defines the validator address to redelegate from.
+ in: query
+ required: false
+ type: string
+ - name: dst_validator_addr
+ description: dst_validator_addr defines the validator address to redelegate to.
+ in: query
+ required: false
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations':
+ get:
+ summary: >-
+ DelegatorUnbondingDelegations queries all unbonding delegations of a
+ given
+
+ delegator address.
+ operationId: CosmosStakingV1Beta1DelegatorUnbondingDelegations
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ unbonding_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of the
+ validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height is the height which the unbonding
+ took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time is the unix time for unbonding
+ completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the tokens initially
+ scheduled to receive at completion.
+ balance:
+ type: string
+ description: >-
+ balance defines the tokens to receive at
+ completion.
+ description: >-
+ UnbondingDelegationEntry defines an unbonding object
+ with relevant metadata.
+ description: entries are the unbonding delegation entries.
+ description: >-
+ UnbondingDelegation stores all of a single delegator's
+ unbonding bonds
+
+ for a single validator in an time-ordered list.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryUnbondingDelegatorDelegationsResponse is response type for
+ the
+
+ Query/UnbondingDelegatorDelegations RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: delegator_addr
+ description: delegator_addr defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators':
+ get:
+ summary: |-
+ DelegatorValidators queries all validators info for given delegator
+ address.
+ operationId: CosmosStakingV1Beta1DelegatorValidators
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's
+ operator; bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the
+ type of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's
+ path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the
+ binary all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available
+ in the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the
+ regular
+
+ representation of the deserialized, embedded message,
+ with an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message
+ [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed
+ from bonded status or not.
+ status:
+ description: >-
+ status is the validator status
+ (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: >-
+ tokens define the delegated tokens (incl.
+ self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a
+ validator's delegators.
+ description:
+ description: >-
+ description defines the description terms for the
+ validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: >-
+ moniker defines a human-readable name for the
+ validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex.
+ UPort or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for
+ security contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at
+ which this validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for
+ the validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission
+ rates to be used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to
+ delegators, as a fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate
+ which validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily
+ increase of the validator commission, as a
+ fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: >-
+ update_time is the last time the commission rate was
+ changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared
+ minimum self delegation.
+ description: >-
+ Validator defines a validator, together with the total
+ amount of the
+
+ Validator's bond shares and their exchange rate to coins.
+ Slashing results in
+
+ a decrease in the exchange rate, allowing correct
+ calculation of future
+
+ undelegations without iterating over delegators. When coins
+ are delegated to
+
+ this validator, the validator is credited with a delegation
+ whose number of
+
+ bond shares is based on the amount of coins delegated
+ divided by the current
+
+ exchange rate. Voting power can be calculated as total
+ bonded shares
+
+ multiplied by exchange rate.
+ description: validators defines the the validators' info of a delegator.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ QueryDelegatorValidatorsResponse is response type for the
+ Query/DelegatorValidators RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: delegator_addr
+ description: delegator_addr defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}':
+ get:
+ summary: |-
+ DelegatorValidator queries validator info for given delegator validator
+ pair.
+ operationId: CosmosStakingV1Beta1DelegatorValidator
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ validator:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's
+ operator; bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed from
+ bonded status or not.
+ status:
+ description: >-
+ status is the validator status
+ (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: >-
+ tokens define the delegated tokens (incl.
+ self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a
+ validator's delegators.
+ description:
+ description: >-
+ description defines the description terms for the
+ validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: >-
+ moniker defines a human-readable name for the
+ validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex.
+ UPort or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for
+ security contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at
+ which this validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for the
+ validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates
+ to be used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators,
+ as a fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase
+ of the validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: >-
+ update_time is the last time the commission rate was
+ changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared
+ minimum self delegation.
+ description: >-
+ Validator defines a validator, together with the total amount
+ of the
+
+ Validator's bond shares and their exchange rate to coins.
+ Slashing results in
+
+ a decrease in the exchange rate, allowing correct calculation
+ of future
+
+ undelegations without iterating over delegators. When coins
+ are delegated to
+
+ this validator, the validator is credited with a delegation
+ whose number of
+
+ bond shares is based on the amount of coins delegated divided
+ by the current
+
+ exchange rate. Voting power can be calculated as total bonded
+ shares
+
+ multiplied by exchange rate.
+ description: |-
+ QueryDelegatorValidatorResponse response type for the
+ Query/DelegatorValidator RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: delegator_addr
+ description: delegator_addr defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: validator_addr
+ description: validator_addr defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/historical_info/{height}':
+ get:
+ summary: HistoricalInfo queries the historical info for given height.
+ operationId: CosmosStakingV1Beta1HistoricalInfo
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ hist:
+ description: hist defines the historical info at the given height.
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing
+ a block in the blockchain,
+
+ including all blockchain data structures and the rules
+ of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ title: prev block info
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ valset:
+ type: array
+ items:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the
+ validator's operator; bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the
+ type of the serialized
+
+ protocol buffer message. This string must
+ contain at least
+
+ one "/" character. The last segment of the URL's
+ path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name
+ should be in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the
+ binary all types that they
+
+ expect it to use in the context of Any. However,
+ for URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message
+ definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup
+ results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently
+ available in the official
+
+ protobuf release, and it is not used for type
+ URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol
+ buffer message along with a
+
+ URL that describes the type of the serialized
+ message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods
+ of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will
+ by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL
+ and the unpack
+
+ methods only use the fully qualified type name after
+ the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z"
+ will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the
+ regular
+
+ representation of the deserialized, embedded
+ message, with an
+
+ additional field `@type` which contains the type
+ URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to
+ the `@type`
+
+ field. Example (for message
+ [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed
+ from bonded status or not.
+ status:
+ description: >-
+ status is the validator status
+ (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: >-
+ tokens define the delegated tokens (incl.
+ self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a
+ validator's delegators.
+ description:
+ description: >-
+ description defines the description terms for the
+ validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: >-
+ moniker defines a human-readable name for the
+ validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature
+ (ex. UPort or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for
+ security contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height
+ at which this validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time
+ for the validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission
+ rates to be used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to
+ delegators, as a fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate
+ which validator can ever charge, as a
+ fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily
+ increase of the validator commission, as a
+ fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: >-
+ update_time is the last time the commission rate
+ was changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared
+ minimum self delegation.
+ description: >-
+ Validator defines a validator, together with the total
+ amount of the
+
+ Validator's bond shares and their exchange rate to
+ coins. Slashing results in
+
+ a decrease in the exchange rate, allowing correct
+ calculation of future
+
+ undelegations without iterating over delegators. When
+ coins are delegated to
+
+ this validator, the validator is credited with a
+ delegation whose number of
+
+ bond shares is based on the amount of coins delegated
+ divided by the current
+
+ exchange rate. Voting power can be calculated as total
+ bonded shares
+
+ multiplied by exchange rate.
+ description: >-
+ QueryHistoricalInfoResponse is response type for the
+ Query/HistoricalInfo RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: height
+ description: height defines at which height to query the historical info.
+ in: path
+ required: true
+ type: string
+ format: int64
+ tags:
+ - Query
+ /cosmos/staking/v1beta1/params:
+ get:
+ summary: Parameters queries the staking parameters.
+ operationId: CosmosStakingV1Beta1Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ params:
+ description: params holds all the parameters of this module.
+ type: object
+ properties:
+ unbonding_time:
+ type: string
+ description: unbonding_time is the time duration of unbonding.
+ max_validators:
+ type: integer
+ format: int64
+ description: max_validators is the maximum number of validators.
+ max_entries:
+ type: integer
+ format: int64
+ description: >-
+ max_entries is the max entries for either unbonding
+ delegation or redelegation (per pair/trio).
+ historical_entries:
+ type: integer
+ format: int64
+ description: >-
+ historical_entries is the number of historical entries to
+ persist.
+ bond_denom:
+ type: string
+ description: bond_denom defines the bondable coin denomination.
+ description: >-
+ QueryParamsResponse is response type for the Query/Params RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Query
+ /cosmos/staking/v1beta1/pool:
+ get:
+ summary: Pool queries the pool info.
+ operationId: CosmosStakingV1Beta1Pool
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ pool:
+ description: pool defines the pool info.
+ type: object
+ properties:
+ not_bonded_tokens:
+ type: string
+ bonded_tokens:
+ type: string
+ description: QueryPoolResponse is response type for the Query/Pool RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Query
+ /cosmos/staking/v1beta1/validators:
+ get:
+ summary: Validators queries all validators that match the given status.
+ operationId: CosmosStakingV1Beta1Validators
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's
+ operator; bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the
+ type of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's
+ path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the
+ binary all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available
+ in the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the
+ regular
+
+ representation of the deserialized, embedded message,
+ with an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message
+ [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed
+ from bonded status or not.
+ status:
+ description: >-
+ status is the validator status
+ (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: >-
+ tokens define the delegated tokens (incl.
+ self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a
+ validator's delegators.
+ description:
+ description: >-
+ description defines the description terms for the
+ validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: >-
+ moniker defines a human-readable name for the
+ validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex.
+ UPort or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for
+ security contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at
+ which this validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for
+ the validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission
+ rates to be used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to
+ delegators, as a fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate
+ which validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily
+ increase of the validator commission, as a
+ fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: >-
+ update_time is the last time the commission rate was
+ changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared
+ minimum self delegation.
+ description: >-
+ Validator defines a validator, together with the total
+ amount of the
+
+ Validator's bond shares and their exchange rate to coins.
+ Slashing results in
+
+ a decrease in the exchange rate, allowing correct
+ calculation of future
+
+ undelegations without iterating over delegators. When coins
+ are delegated to
+
+ this validator, the validator is credited with a delegation
+ whose number of
+
+ bond shares is based on the amount of coins delegated
+ divided by the current
+
+ exchange rate. Voting power can be calculated as total
+ bonded shares
+
+ multiplied by exchange rate.
+ description: validators contains all the queried validators.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ title: >-
+ QueryValidatorsResponse is response type for the Query/Validators
+ RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: status
+ description: status enables to query for validators matching a given status.
+ in: query
+ required: false
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/validators/{validator_addr}':
+ get:
+ summary: Validator queries validator info for given validator address.
+ operationId: CosmosStakingV1Beta1Validator
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ validator:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's
+ operator; bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed from
+ bonded status or not.
+ status:
+ description: >-
+ status is the validator status
+ (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: >-
+ tokens define the delegated tokens (incl.
+ self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a
+ validator's delegators.
+ description:
+ description: >-
+ description defines the description terms for the
+ validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: >-
+ moniker defines a human-readable name for the
+ validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex.
+ UPort or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for
+ security contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at
+ which this validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for the
+ validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates
+ to be used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators,
+ as a fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase
+ of the validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: >-
+ update_time is the last time the commission rate was
+ changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared
+ minimum self delegation.
+ description: >-
+ Validator defines a validator, together with the total amount
+ of the
+
+ Validator's bond shares and their exchange rate to coins.
+ Slashing results in
+
+ a decrease in the exchange rate, allowing correct calculation
+ of future
+
+ undelegations without iterating over delegators. When coins
+ are delegated to
+
+ this validator, the validator is credited with a delegation
+ whose number of
+
+ bond shares is based on the amount of coins delegated divided
+ by the current
+
+ exchange rate. Voting power can be calculated as total bonded
+ shares
+
+ multiplied by exchange rate.
+ title: >-
+ QueryValidatorResponse is response type for the Query/Validator
+ RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: validator_addr
+ description: validator_addr defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/validators/{validator_addr}/delegations':
+ get:
+ summary: ValidatorDelegations queries delegate info for given validator.
+ operationId: CosmosStakingV1Beta1ValidatorDelegations
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ delegation_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ delegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of
+ the delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of
+ the validator.
+ shares:
+ type: string
+ description: shares define the delegation shares received.
+ description: >-
+ Delegation represents the bond with tokens held by an
+ account. It is
+
+ owned by one delegator, and is associated with the
+ voting power of one
+
+ validator.
+ balance:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
+ description: >-
+ DelegationResponse is equivalent to Delegation except that
+ it contains a
+
+ balance in addition to shares which is more suitable for
+ client responses.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ title: |-
+ QueryValidatorDelegationsResponse is response type for the
+ Query/ValidatorDelegations RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: validator_addr
+ description: validator_addr defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}':
+ get:
+ summary: Delegation queries delegate info for given validator delegator pair.
+ operationId: CosmosStakingV1Beta1Delegation
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ delegation_response:
+ type: object
+ properties:
+ delegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of the
+ validator.
+ shares:
+ type: string
+ description: shares define the delegation shares received.
+ description: >-
+ Delegation represents the bond with tokens held by an
+ account. It is
+
+ owned by one delegator, and is associated with the voting
+ power of one
+
+ validator.
+ balance:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
+ description: >-
+ DelegationResponse is equivalent to Delegation except that it
+ contains a
+
+ balance in addition to shares which is more suitable for
+ client responses.
+ description: >-
+ QueryDelegationResponse is response type for the Query/Delegation
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: validator_addr
+ description: validator_addr defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: delegator_addr
+ description: delegator_addr defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation':
+ get:
+ summary: |-
+ UnbondingDelegation queries unbonding info for given validator delegator
+ pair.
+ operationId: CosmosStakingV1Beta1UnbondingDelegation
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ unbond:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of the
+ validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height is the height which the unbonding
+ took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time is the unix time for unbonding
+ completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the tokens initially
+ scheduled to receive at completion.
+ balance:
+ type: string
+ description: balance defines the tokens to receive at completion.
+ description: >-
+ UnbondingDelegationEntry defines an unbonding object
+ with relevant metadata.
+ description: entries are the unbonding delegation entries.
+ description: >-
+ UnbondingDelegation stores all of a single delegator's
+ unbonding bonds
+
+ for a single validator in an time-ordered list.
+ description: >-
+ QueryDelegationResponse is response type for the
+ Query/UnbondingDelegation
+
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: validator_addr
+ description: validator_addr defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: delegator_addr
+ description: delegator_addr defines the delegator address to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations':
+ get:
+ summary: >-
+ ValidatorUnbondingDelegations queries unbonding delegations of a
+ validator.
+ operationId: CosmosStakingV1Beta1ValidatorUnbondingDelegations
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ unbonding_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of the
+ validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height is the height which the unbonding
+ took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time is the unix time for unbonding
+ completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the tokens initially
+ scheduled to receive at completion.
+ balance:
+ type: string
+ description: >-
+ balance defines the tokens to receive at
+ completion.
+ description: >-
+ UnbondingDelegationEntry defines an unbonding object
+ with relevant metadata.
+ description: entries are the unbonding delegation entries.
+ description: >-
+ UnbondingDelegation stores all of a single delegator's
+ unbonding bonds
+
+ for a single validator in an time-ordered list.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryValidatorUnbondingDelegationsResponse is response type for
+ the
+
+ Query/ValidatorUnbondingDelegations RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: validator_addr
+ description: validator_addr defines the validator address to query for.
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ /cosmos/tx/v1beta1/simulate:
+ post:
+ summary: Simulate simulates executing a transaction for estimating gas usage.
+ operationId: CosmosTxV1Beta1Simulate
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ gas_info:
+ description: gas_info is the information about gas used in the simulation.
+ type: object
+ properties:
+ gas_wanted:
+ type: string
+ format: uint64
+ description: >-
+ GasWanted is the maximum units of work we allow this tx to
+ perform.
+ gas_used:
+ type: string
+ format: uint64
+ description: GasUsed is the amount of gas actually consumed.
+ result:
+ description: result is the result of the simulation.
+ type: object
+ properties:
+ data:
+ type: string
+ format: byte
+ description: >-
+ Data is any data returned from message or handler
+ execution. It MUST be
+
+ length prefixed in order to separate data from multiple
+ message executions.
+ log:
+ type: string
+ description: >-
+ Log contains the log information from message or handler
+ execution.
+ events:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ format: byte
+ value:
+ type: string
+ format: byte
+ index:
+ type: boolean
+ description: >-
+ EventAttribute is a single key-value pair,
+ associated with an event.
+ description: >-
+ Event allows application developers to attach additional
+ information to
+
+ ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx
+ and ResponseDeliverTx.
+
+ Later, transactions may be queried using these events.
+ description: >-
+ Events contains a slice of Event objects that were emitted
+ during message
+
+ or handler execution.
+ description: |-
+ SimulateResponse is the response type for the
+ Service.SimulateRPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ $ref: '#/definitions/cosmos.tx.v1beta1.SimulateRequest'
+ tags:
+ - Service
+ /cosmos/tx/v1beta1/txs:
+ get:
+ summary: GetTxsEvent fetches txs by event.
+ operationId: CosmosTxV1Beta1GetTxsEvent
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ $ref: '#/definitions/cosmos.tx.v1beta1.GetTxsEventResponse'
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: events
+ description: events is the list of transaction event type.
+ in: query
+ required: false
+ type: array
+ items:
+ type: string
+ collectionFormat: multi
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+ in: query
+ required: false
+ type: boolean
+ - name: order_by
+ description: |2-
+ - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.
+ - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order
+ - ORDER_BY_DESC: ORDER_BY_DESC defines descending order
+ in: query
+ required: false
+ type: string
+ enum:
+ - ORDER_BY_UNSPECIFIED
+ - ORDER_BY_ASC
+ - ORDER_BY_DESC
+ default: ORDER_BY_UNSPECIFIED
+ tags:
+ - Service
+ post:
+ summary: BroadcastTx broadcast transaction.
+ operationId: CosmosTxV1Beta1BroadcastTx
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ tx_response:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ title: The block height
+ txhash:
+ type: string
+ description: The transaction hash.
+ codespace:
+ type: string
+ title: Namespace for the Code
+ code:
+ type: integer
+ format: int64
+ description: Response code.
+ data:
+ type: string
+ description: 'Result bytes, if any.'
+ raw_log:
+ type: string
+ description: >-
+ The output of the application's logger (raw string). May
+ be
+
+ non-deterministic.
+ logs:
+ type: array
+ items:
+ type: object
+ properties:
+ msg_index:
+ type: integer
+ format: int64
+ log:
+ type: string
+ events:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ value:
+ type: string
+ description: >-
+ Attribute defines an attribute wrapper where
+ the key and value are
+
+ strings instead of raw bytes.
+ description: >-
+ StringEvent defines en Event object wrapper where
+ all the attributes
+
+ contain key/value pairs that are strings instead
+ of raw bytes.
+ description: >-
+ Events contains a slice of Event objects that were
+ emitted during some
+
+ execution.
+ description: >-
+ ABCIMessageLog defines a structure containing an indexed
+ tx ABCI message log.
+ description: >-
+ The output of the application's logger (typed). May be
+ non-deterministic.
+ info:
+ type: string
+ description: Additional information. May be non-deterministic.
+ gas_wanted:
+ type: string
+ format: int64
+ description: Amount of gas requested for transaction.
+ gas_used:
+ type: string
+ format: int64
+ description: Amount of gas consumed by transaction.
+ tx:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ timestamp:
+ type: string
+ description: >-
+ Time of the previous block. For heights > 1, it's the
+ weighted median of
+
+ the timestamps of the valid votes in the block.LastCommit.
+ For height == 1,
+
+ it's genesis time.
+ description: >-
+ TxResponse defines a structure containing relevant tx data and
+ metadata. The
+
+ tags are stringified and the log is JSON decoded.
+ description: |-
+ BroadcastTxResponse is the response type for the
+ Service.BroadcastTx method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ tx_bytes:
+ type: string
+ format: byte
+ description: tx_bytes is the raw transaction.
+ mode:
+ type: string
+ enum:
+ - BROADCAST_MODE_UNSPECIFIED
+ - BROADCAST_MODE_BLOCK
+ - BROADCAST_MODE_SYNC
+ - BROADCAST_MODE_ASYNC
+ default: BROADCAST_MODE_UNSPECIFIED
+ description: >-
+ BroadcastMode specifies the broadcast mode for the
+ TxService.Broadcast RPC method.
+
+ - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
+ - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
+ the tx to be committed in a block.
+ - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
+ a CheckTx execution response only.
+ - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
+ immediately.
+ description: >-
+ BroadcastTxRequest is the request type for the
+ Service.BroadcastTxRequest
+
+ RPC method.
+ tags:
+ - Service
+ '/cosmos/tx/v1beta1/txs/{hash}':
+ get:
+ summary: GetTx fetches a tx by hash.
+ operationId: CosmosTxV1Beta1GetTx
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ $ref: '#/definitions/cosmos.tx.v1beta1.GetTxResponse'
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: hash
+ description: 'hash is the tx hash to query, encoded as a hex string.'
+ in: path
+ required: true
+ type: string
+ tags:
+ - Service
+ '/cosmos/upgrade/v1beta1/applied_plan/{name}':
+ get:
+ summary: AppliedPlan queries a previously applied upgrade plan by its name.
+ operationId: CosmosUpgradeV1Beta1AppliedPlan
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ description: height is the block height at which the plan was applied.
+ description: >-
+ QueryAppliedPlanResponse is the response type for the
+ Query/AppliedPlan RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: name
+ description: name is the name of the applied plan to query for.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /cosmos/upgrade/v1beta1/current_plan:
+ get:
+ summary: CurrentPlan queries the current upgrade plan.
+ operationId: CosmosUpgradeV1Beta1CurrentPlan
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ plan:
+ description: plan is the current upgrade plan.
+ type: object
+ properties:
+ name:
+ type: string
+ description: >-
+ Sets the name for the upgrade. This name will be used by
+ the upgraded
+
+ version of the software to apply any special "on-upgrade"
+ commands during
+
+ the first BeginBlock method after the upgrade is applied.
+ It is also used
+
+ to detect whether a software version can handle a given
+ upgrade. If no
+
+ upgrade handler with this name has been set in the
+ software, it will be
+
+ assumed that the software is out-of-date when the upgrade
+ Time or Height is
+
+ reached and the software will exit.
+ time:
+ type: string
+ format: date-time
+ description: >-
+ Deprecated: Time based upgrades have been deprecated. Time
+ based upgrade logic
+
+ has been removed from the SDK.
+
+ If this field is not empty, an error will be thrown.
+ height:
+ type: string
+ format: int64
+ description: |-
+ The height at which the upgrade must be performed.
+ Only used if Time is not set.
+ info:
+ type: string
+ title: >-
+ Any application specific upgrade info to be included
+ on-chain
+
+ such as a git commit that validators could automatically
+ upgrade to
+ upgraded_client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ QueryCurrentPlanResponse is the response type for the
+ Query/CurrentPlan RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Query
+ /cosmos/upgrade/v1beta1/module_versions:
+ get:
+ summary: ModuleVersions queries the list of module versions from state.
+ operationId: CosmosUpgradeV1Beta1ModuleVersions
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ module_versions:
+ type: array
+ items:
+ type: object
+ properties:
+ name:
+ type: string
+ title: name of the app module
+ version:
+ type: string
+ format: uint64
+ title: consensus version of the app module
+ description: ModuleVersion specifies a module and its consensus version.
+ description: >-
+ module_versions is a list of module names with their consensus
+ versions.
+ description: >-
+ QueryModuleVersionsResponse is the response type for the
+ Query/ModuleVersions
+
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: module_name
+ description: |-
+ module_name is a field to query a specific module
+ consensus version from state. Leaving this empty will
+ fetch the full list of module versions from state
+ in: query
+ required: false
+ type: string
+ tags:
+ - Query
+ '/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}':
+ get:
+ summary: >-
+ UpgradedConsensusState queries the consensus state that will serve
+
+ as a trusted kernel for the next version of this chain. It will only be
+
+ stored at the last height of this chain.
+
+ UpgradedConsensusState RPC not supported with legacy querier
+
+ This rpc is deprecated now that IBC has its own replacement
+
+ (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
+ operationId: CosmosUpgradeV1Beta1UpgradedConsensusState
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ upgraded_consensus_state:
+ type: string
+ format: byte
+ description: >-
+ QueryUpgradedConsensusStateResponse is the response type for the
+ Query/UpgradedConsensusState
+
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: last_height
+ description: |-
+ last height of the current chain must be sent in request
+ as this is the height under which next consensus state is stored
+ in: path
+ required: true
+ type: string
+ format: int64
+ tags:
+ - Query
+ /ibc/apps/transfer/v1/denom_traces:
+ get:
+ summary: DenomTraces queries all denomination traces.
+ operationId: IbcApplicationsTransferV1DenomTraces
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ denom_traces:
+ type: array
+ items:
+ type: object
+ properties:
+ path:
+ type: string
+ description: >-
+ path defines the chain of port/channel identifiers used
+ for tracing the
+
+ source of the fungible token.
+ base_denom:
+ type: string
+ description: base denomination of the relayed fungible token.
+ description: >-
+ DenomTrace contains the base denomination for ICS20 fungible
+ tokens and the
+
+ source tracing information path.
+ description: denom_traces returns all denominations trace information.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryConnectionsResponse is the response type for the
+ Query/DenomTraces RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/ibc/apps/transfer/v1/denom_traces/{hash}':
+ get:
+ summary: DenomTrace queries a denomination trace information.
+ operationId: IbcApplicationsTransferV1DenomTrace
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ denom_trace:
+ type: object
+ properties:
+ path:
+ type: string
+ description: >-
+ path defines the chain of port/channel identifiers used
+ for tracing the
+
+ source of the fungible token.
+ base_denom:
+ type: string
+ description: base denomination of the relayed fungible token.
+ description: >-
+ DenomTrace contains the base denomination for ICS20 fungible
+ tokens and the
+
+ source tracing information path.
+ description: >-
+ QueryDenomTraceResponse is the response type for the
+ Query/DenomTrace RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: hash
+ description: hash (in hex format) of the denomination trace information.
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /ibc/apps/transfer/v1/params:
+ get:
+ summary: Params queries all parameters of the ibc-transfer module.
+ operationId: IbcApplicationsTransferV1Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ params:
+ description: params defines the parameters of the module.
+ type: object
+ properties:
+ send_enabled:
+ type: boolean
+ description: >-
+ send_enabled enables or disables all cross-chain token
+ transfers from this
+
+ chain.
+ receive_enabled:
+ type: boolean
+ description: >-
+ receive_enabled enables or disables all cross-chain token
+ transfers to this
+
+ chain.
+ description: >-
+ QueryParamsResponse is the response type for the Query/Params RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Query
+ /ibc/core/channel/v1/channels:
+ get:
+ summary: Channels queries all the IBC channels of a chain.
+ operationId: IbcCoreChannelV1Channels
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ channels:
+ type: array
+ items:
+ type: object
+ properties:
+ state:
+ title: current state of the channel end
+ type: string
+ enum:
+ - STATE_UNINITIALIZED_UNSPECIFIED
+ - STATE_INIT
+ - STATE_TRYOPEN
+ - STATE_OPEN
+ - STATE_CLOSED
+ default: STATE_UNINITIALIZED_UNSPECIFIED
+ description: >-
+ State defines if a channel is in one of the following
+ states:
+
+ CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
+
+ - STATE_UNINITIALIZED_UNSPECIFIED: Default State
+ - STATE_INIT: A channel has just started the opening handshake.
+ - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
+ - STATE_OPEN: A channel has completed the handshake. Open channels are
+ ready to send and receive packets.
+ - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
+ packets.
+ ordering:
+ title: whether the channel is ordered or unordered
+ type: string
+ enum:
+ - ORDER_NONE_UNSPECIFIED
+ - ORDER_UNORDERED
+ - ORDER_ORDERED
+ default: ORDER_NONE_UNSPECIFIED
+ description: >-
+ - ORDER_NONE_UNSPECIFIED: zero-value for channel
+ ordering
+ - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
+ which they were sent.
+ - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
+ counterparty:
+ title: counterparty channel end
+ type: object
+ properties:
+ port_id:
+ type: string
+ description: >-
+ port on the counterparty chain which owns the other
+ end of the channel.
+ channel_id:
+ type: string
+ title: channel end on the counterparty chain
+ connection_hops:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of connection identifiers, in order, along which
+ packets sent on
+
+ this channel will travel
+ version:
+ type: string
+ title: >-
+ opaque channel version, which is agreed upon during the
+ handshake
+ port_id:
+ type: string
+ title: port identifier
+ channel_id:
+ type: string
+ title: channel identifier
+ description: >-
+ IdentifiedChannel defines a channel with additional port and
+ channel
+
+ identifier fields.
+ description: list of stored channels of the chain.
+ pagination:
+ title: pagination response
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ height:
+ title: query block height
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ description: >-
+ QueryChannelsResponse is the response type for the Query/Channels
+ RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}':
+ get:
+ summary: Channel queries an IBC Channel.
+ operationId: IbcCoreChannelV1Channel
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ channel:
+ title: channel associated with the request identifiers
+ type: object
+ properties:
+ state:
+ title: current state of the channel end
+ type: string
+ enum:
+ - STATE_UNINITIALIZED_UNSPECIFIED
+ - STATE_INIT
+ - STATE_TRYOPEN
+ - STATE_OPEN
+ - STATE_CLOSED
+ default: STATE_UNINITIALIZED_UNSPECIFIED
+ description: >-
+ State defines if a channel is in one of the following
+ states:
+
+ CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
+
+ - STATE_UNINITIALIZED_UNSPECIFIED: Default State
+ - STATE_INIT: A channel has just started the opening handshake.
+ - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
+ - STATE_OPEN: A channel has completed the handshake. Open channels are
+ ready to send and receive packets.
+ - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
+ packets.
+ ordering:
+ title: whether the channel is ordered or unordered
+ type: string
+ enum:
+ - ORDER_NONE_UNSPECIFIED
+ - ORDER_UNORDERED
+ - ORDER_ORDERED
+ default: ORDER_NONE_UNSPECIFIED
+ description: |-
+ - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
+ - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
+ which they were sent.
+ - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
+ counterparty:
+ title: counterparty channel end
+ type: object
+ properties:
+ port_id:
+ type: string
+ description: >-
+ port on the counterparty chain which owns the other
+ end of the channel.
+ channel_id:
+ type: string
+ title: channel end on the counterparty chain
+ connection_hops:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of connection identifiers, in order, along which
+ packets sent on
+
+ this channel will travel
+ version:
+ type: string
+ title: >-
+ opaque channel version, which is agreed upon during the
+ handshake
+ description: >-
+ Channel defines pipeline for exactly-once packet delivery
+ between specific
+
+ modules on separate blockchains, which has at least one end
+ capable of
+
+ sending packets and one end capable of receiving packets.
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ description: >-
+ QueryChannelResponse is the response type for the Query/Channel
+ RPC method.
+
+ Besides the Channel end, it includes a proof and the height from
+ which the
+
+ proof was retrieved.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state':
+ get:
+ summary: >-
+ ChannelClientState queries for the client state for the channel
+ associated
+
+ with the provided channel identifiers.
+ operationId: IbcCoreChannelV1ChannelClientState
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ identified_client_state:
+ title: client state associated with the channel
+ type: object
+ properties:
+ client_id:
+ type: string
+ title: client identifier
+ client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: client state
+ description: >-
+ IdentifiedClientState defines a client state with an
+ additional client
+
+ identifier field.
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryChannelClientStateResponse is the Response type for the
+ Query/QueryChannelClientState RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}':
+ get:
+ summary: |-
+ ChannelConsensusState queries for the consensus state for the channel
+ associated with the provided channel identifiers.
+ operationId: IbcCoreChannelV1ChannelConsensusState
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ consensus_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: consensus state associated with the channel
+ client_id:
+ type: string
+ title: client ID associated with the consensus state
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryChannelClientStateResponse is the Response type for the
+ Query/QueryChannelClientState RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ - name: revision_number
+ description: revision number of the consensus state
+ in: path
+ required: true
+ type: string
+ format: uint64
+ - name: revision_height
+ description: revision height of the consensus state
+ in: path
+ required: true
+ type: string
+ format: uint64
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence':
+ get:
+ summary: >-
+ NextSequenceReceive returns the next receive sequence for a given
+ channel.
+ operationId: IbcCoreChannelV1NextSequenceReceive
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ next_sequence_receive:
+ type: string
+ format: uint64
+ title: next sequence receive number
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QuerySequenceResponse is the request type for the
+ Query/QueryNextSequenceReceiveResponse RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements':
+ get:
+ summary: >-
+ PacketAcknowledgements returns all the packet acknowledgements
+ associated
+
+ with a channel.
+ operationId: IbcCoreChannelV1PacketAcknowledgements
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ acknowledgements:
+ type: array
+ items:
+ type: object
+ properties:
+ port_id:
+ type: string
+ description: channel port identifier.
+ channel_id:
+ type: string
+ description: channel unique identifier.
+ sequence:
+ type: string
+ format: uint64
+ description: packet sequence.
+ data:
+ type: string
+ format: byte
+ description: embedded data that represents packet state.
+ description: >-
+ PacketState defines the generic type necessary to retrieve
+ and store
+
+ packet commitments, acknowledgements, and receipts.
+
+ Caller is responsible for knowing the context necessary to
+ interpret this
+
+ state as a commitment, acknowledgement, or a receipt.
+ pagination:
+ title: pagination response
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ height:
+ title: query block height
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryPacketAcknowledgemetsResponse is the request type for the
+ Query/QueryPacketAcknowledgements RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: packet_commitment_sequences
+ description: list of packet sequences
+ in: query
+ required: false
+ type: array
+ items:
+ type: string
+ format: uint64
+ collectionFormat: multi
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}':
+ get:
+ summary: PacketAcknowledgement queries a stored packet acknowledgement hash.
+ operationId: IbcCoreChannelV1PacketAcknowledgement
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ acknowledgement:
+ type: string
+ format: byte
+ title: packet associated with the request fields
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ QueryPacketAcknowledgementResponse defines the client query
+ response for a
+
+ packet which also includes a proof and the height from which the
+
+ proof was retrieved
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ - name: sequence
+ description: packet sequence
+ in: path
+ required: true
+ type: string
+ format: uint64
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments':
+ get:
+ summary: |-
+ PacketCommitments returns all the packet commitments hashes associated
+ with a channel.
+ operationId: IbcCoreChannelV1PacketCommitments
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ commitments:
+ type: array
+ items:
+ type: object
+ properties:
+ port_id:
+ type: string
+ description: channel port identifier.
+ channel_id:
+ type: string
+ description: channel unique identifier.
+ sequence:
+ type: string
+ format: uint64
+ description: packet sequence.
+ data:
+ type: string
+ format: byte
+ description: embedded data that represents packet state.
+ description: >-
+ PacketState defines the generic type necessary to retrieve
+ and store
+
+ packet commitments, acknowledgements, and receipts.
+
+ Caller is responsible for knowing the context necessary to
+ interpret this
+
+ state as a commitment, acknowledgement, or a receipt.
+ pagination:
+ title: pagination response
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ height:
+ title: query block height
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryPacketCommitmentsResponse is the request type for the
+ Query/QueryPacketCommitments RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks':
+ get:
+ summary: >-
+ UnreceivedAcks returns all the unreceived IBC acknowledgements
+ associated
+
+ with a channel and sequences.
+ operationId: IbcCoreChannelV1UnreceivedAcks
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ sequences:
+ type: array
+ items:
+ type: string
+ format: uint64
+ title: list of unreceived acknowledgement sequences
+ height:
+ title: query block height
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryUnreceivedAcksResponse is the response type for the
+ Query/UnreceivedAcks RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ - name: packet_ack_sequences
+ description: list of acknowledgement sequences
+ in: path
+ required: true
+ type: array
+ items:
+ type: string
+ format: uint64
+ collectionFormat: csv
+ minItems: 1
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets':
+ get:
+ summary: >-
+ UnreceivedPackets returns all the unreceived IBC packets associated with
+ a
+
+ channel and sequences.
+ operationId: IbcCoreChannelV1UnreceivedPackets
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ sequences:
+ type: array
+ items:
+ type: string
+ format: uint64
+ title: list of unreceived packet sequences
+ height:
+ title: query block height
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryUnreceivedPacketsResponse is the response type for the
+ Query/UnreceivedPacketCommitments RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ - name: packet_commitment_sequences
+ description: list of packet sequences
+ in: path
+ required: true
+ type: array
+ items:
+ type: string
+ format: uint64
+ collectionFormat: csv
+ minItems: 1
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}':
+ get:
+ summary: PacketCommitment queries a stored packet commitment hash.
+ operationId: IbcCoreChannelV1PacketCommitment
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ commitment:
+ type: string
+ format: byte
+ title: packet associated with the request fields
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ QueryPacketCommitmentResponse defines the client query response
+ for a packet
+
+ which also includes a proof and the height from which the proof
+ was
+
+ retrieved
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ - name: sequence
+ description: packet sequence
+ in: path
+ required: true
+ type: string
+ format: uint64
+ tags:
+ - Query
+ '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}':
+ get:
+ summary: >-
+ PacketReceipt queries if a given packet sequence has been received on
+ the
+
+ queried chain
+ operationId: IbcCoreChannelV1PacketReceipt
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ received:
+ type: boolean
+ title: success flag for if receipt exists
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ QueryPacketReceiptResponse defines the client query response for a
+ packet
+
+ receipt which also includes a proof, and the height from which the
+ proof was
+
+ retrieved
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: channel_id
+ description: channel unique identifier
+ in: path
+ required: true
+ type: string
+ - name: port_id
+ description: port unique identifier
+ in: path
+ required: true
+ type: string
+ - name: sequence
+ description: packet sequence
+ in: path
+ required: true
+ type: string
+ format: uint64
+ tags:
+ - Query
+ '/ibc/core/channel/v1/connections/{connection}/channels':
+ get:
+ summary: |-
+ ConnectionChannels queries all the channels associated with a connection
+ end.
+ operationId: IbcCoreChannelV1ConnectionChannels
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ channels:
+ type: array
+ items:
+ type: object
+ properties:
+ state:
+ title: current state of the channel end
+ type: string
+ enum:
+ - STATE_UNINITIALIZED_UNSPECIFIED
+ - STATE_INIT
+ - STATE_TRYOPEN
+ - STATE_OPEN
+ - STATE_CLOSED
+ default: STATE_UNINITIALIZED_UNSPECIFIED
+ description: >-
+ State defines if a channel is in one of the following
+ states:
+
+ CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
+
+ - STATE_UNINITIALIZED_UNSPECIFIED: Default State
+ - STATE_INIT: A channel has just started the opening handshake.
+ - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
+ - STATE_OPEN: A channel has completed the handshake. Open channels are
+ ready to send and receive packets.
+ - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
+ packets.
+ ordering:
+ title: whether the channel is ordered or unordered
+ type: string
+ enum:
+ - ORDER_NONE_UNSPECIFIED
+ - ORDER_UNORDERED
+ - ORDER_ORDERED
+ default: ORDER_NONE_UNSPECIFIED
+ description: >-
+ - ORDER_NONE_UNSPECIFIED: zero-value for channel
+ ordering
+ - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
+ which they were sent.
+ - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
+ counterparty:
+ title: counterparty channel end
+ type: object
+ properties:
+ port_id:
+ type: string
+ description: >-
+ port on the counterparty chain which owns the other
+ end of the channel.
+ channel_id:
+ type: string
+ title: channel end on the counterparty chain
+ connection_hops:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of connection identifiers, in order, along which
+ packets sent on
+
+ this channel will travel
+ version:
+ type: string
+ title: >-
+ opaque channel version, which is agreed upon during the
+ handshake
+ port_id:
+ type: string
+ title: port identifier
+ channel_id:
+ type: string
+ title: channel identifier
+ description: >-
+ IdentifiedChannel defines a channel with additional port and
+ channel
+
+ identifier fields.
+ description: list of channels associated with a connection.
+ pagination:
+ title: pagination response
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ height:
+ title: query block height
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryConnectionChannelsResponse is the Response type for the
+ Query/QueryConnectionChannels RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: connection
+ description: connection unique identifier
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ /ibc/client/v1/params:
+ get:
+ summary: ClientParams queries all parameters of the ibc client.
+ operationId: IbcCoreClientV1ClientParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ params:
+ description: params defines the parameters of the module.
+ type: object
+ properties:
+ allowed_clients:
+ type: array
+ items:
+ type: string
+ description: >-
+ allowed_clients defines the list of allowed client state
+ types.
+ description: >-
+ QueryClientParamsResponse is the response type for the
+ Query/ClientParams RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Query
+ /ibc/core/client/v1/client_states:
+ get:
+ summary: ClientStates queries all the IBC light clients of a chain.
+ operationId: IbcCoreClientV1ClientStates
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ client_states:
+ type: array
+ items:
+ type: object
+ properties:
+ client_id:
+ type: string
+ title: client identifier
+ client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the
+ type of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's
+ path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the
+ binary all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available
+ in the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the
+ regular
+
+ representation of the deserialized, embedded message,
+ with an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message
+ [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: client state
+ description: >-
+ IdentifiedClientState defines a client state with an
+ additional client
+
+ identifier field.
+ description: list of stored ClientStates of the chain.
+ pagination:
+ title: pagination response
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ description: >-
+ QueryClientStatesResponse is the response type for the
+ Query/ClientStates RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/ibc/core/client/v1/client_states/{client_id}':
+ get:
+ summary: ClientState queries an IBC light client.
+ operationId: IbcCoreClientV1ClientState
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: client state associated with the request identifier
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ description: >-
+ QueryClientStateResponse is the response type for the
+ Query/ClientState RPC
+
+ method. Besides the client state, it includes a proof and the
+ height from
+
+ which the proof was retrieved.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: client_id
+ description: client state unique identifier
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/ibc/core/client/v1/client_status/{client_id}':
+ get:
+ summary: Status queries the status of an IBC client.
+ operationId: IbcCoreClientV1ClientStatus
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ status:
+ type: string
+ description: >-
+ QueryClientStatusResponse is the response type for the
+ Query/ClientStatus RPC
+
+ method. It returns the current status of the IBC client.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: client_id
+ description: client unique identifier
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/ibc/core/client/v1/consensus_states/{client_id}':
+ get:
+ summary: |-
+ ConsensusStates queries all the consensus state associated with a given
+ client.
+ operationId: IbcCoreClientV1ConsensusStates
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ consensus_states:
+ type: array
+ items:
+ type: object
+ properties:
+ height:
+ title: consensus state height
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each
+ height while keeping
+
+ RevisionNumber the same. However some consensus
+ algorithms may choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as
+ the RevisionHeight
+
+ gets reset
+ consensus_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the
+ type of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's
+ path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the
+ binary all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available
+ in the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the
+ regular
+
+ representation of the deserialized, embedded message,
+ with an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message
+ [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: consensus state
+ description: >-
+ ConsensusStateWithHeight defines a consensus state with an
+ additional height
+
+ field.
+ title: consensus states associated with the identifier
+ pagination:
+ title: pagination response
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ title: |-
+ QueryConsensusStatesResponse is the response type for the
+ Query/ConsensusStates RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: client_id
+ description: client identifier
+ in: path
+ required: true
+ type: string
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}':
+ get:
+ summary: >-
+ ConsensusState queries a consensus state associated with a client state
+ at
+
+ a given height.
+ operationId: IbcCoreClientV1ConsensusState
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ consensus_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: >-
+ consensus state associated with the client identifier at the
+ given height
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ QueryConsensusStateResponse is the response type for the
+ Query/ConsensusState
+
+ RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: client_id
+ description: client identifier
+ in: path
+ required: true
+ type: string
+ - name: revision_number
+ description: consensus state revision number
+ in: path
+ required: true
+ type: string
+ format: uint64
+ - name: revision_height
+ description: consensus state revision height
+ in: path
+ required: true
+ type: string
+ format: uint64
+ - name: latest_height
+ description: >-
+ latest_height overrrides the height field and queries the latest
+ stored
+
+ ConsensusState
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ /ibc/core/client/v1/upgraded_client_states:
+ get:
+ summary: UpgradedClientState queries an Upgraded IBC light client.
+ operationId: IbcCoreClientV1UpgradedClientState
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ upgraded_client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: client state associated with the request identifier
+ description: |-
+ QueryUpgradedClientStateResponse is the response type for the
+ Query/UpgradedClientState RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Query
+ /ibc/core/client/v1/upgraded_consensus_states:
+ get:
+ summary: UpgradedConsensusState queries an Upgraded IBC consensus state.
+ operationId: IbcCoreClientV1UpgradedConsensusState
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ upgraded_consensus_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: Consensus state associated with the request identifier
+ description: |-
+ QueryUpgradedConsensusStateResponse is the response type for the
+ Query/UpgradedConsensusState RPC method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ tags:
+ - Query
+ '/ibc/core/connection/v1/client_connections/{client_id}':
+ get:
+ summary: |-
+ ClientConnections queries the connection paths associated with a client
+ state.
+ operationId: IbcCoreConnectionV1ClientConnections
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ connection_paths:
+ type: array
+ items:
+ type: string
+ description: slice of all the connection paths associated with a client.
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was generated
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryClientConnectionsResponse is the response type for the
+ Query/ClientConnections RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: client_id
+ description: client identifier associated with a connection
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /ibc/core/connection/v1/connections:
+ get:
+ summary: Connections queries all the IBC connections of a chain.
+ operationId: IbcCoreConnectionV1Connections
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ connections:
+ type: array
+ items:
+ type: object
+ properties:
+ id:
+ type: string
+ description: connection identifier.
+ client_id:
+ type: string
+ description: client associated with this connection.
+ versions:
+ type: array
+ items:
+ type: object
+ properties:
+ identifier:
+ type: string
+ title: unique version identifier
+ features:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of features compatible with the specified
+ identifier
+ description: >-
+ Version defines the versioning scheme used to
+ negotiate the IBC verison in
+
+ the connection handshake.
+ title: >-
+ IBC version which can be utilised to determine encodings
+ or protocols for
+
+ channels or packets utilising this connection
+ state:
+ description: current state of the connection end.
+ type: string
+ enum:
+ - STATE_UNINITIALIZED_UNSPECIFIED
+ - STATE_INIT
+ - STATE_TRYOPEN
+ - STATE_OPEN
+ default: STATE_UNINITIALIZED_UNSPECIFIED
+ counterparty:
+ description: counterparty chain associated with this connection.
+ type: object
+ properties:
+ client_id:
+ type: string
+ description: >-
+ identifies the client on the counterparty chain
+ associated with a given
+
+ connection.
+ connection_id:
+ type: string
+ description: >-
+ identifies the connection end on the counterparty
+ chain associated with a
+
+ given connection.
+ prefix:
+ description: commitment merkle prefix of the counterparty chain.
+ type: object
+ properties:
+ key_prefix:
+ type: string
+ format: byte
+ title: >-
+ MerklePrefix is merkle path prefixed to the key.
+
+ The constructed key from the Path and the key will
+ be append(Path.KeyPath,
+
+ append(Path.KeyPrefix, key...))
+ delay_period:
+ type: string
+ format: uint64
+ description: delay period associated with this connection.
+ description: >-
+ IdentifiedConnection defines a connection with additional
+ connection
+
+ identifier field.
+ description: list of stored connections of the chain.
+ pagination:
+ title: pagination response
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ height:
+ title: query block height
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ description: >-
+ QueryConnectionsResponse is the response type for the
+ Query/Connections RPC
+
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ '/ibc/core/connection/v1/connections/{connection_id}':
+ get:
+ summary: Connection queries an IBC connection end.
+ operationId: IbcCoreConnectionV1Connection
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ connection:
+ title: connection associated with the request identifier
+ type: object
+ properties:
+ client_id:
+ type: string
+ description: client associated with this connection.
+ versions:
+ type: array
+ items:
+ type: object
+ properties:
+ identifier:
+ type: string
+ title: unique version identifier
+ features:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of features compatible with the specified
+ identifier
+ description: >-
+ Version defines the versioning scheme used to negotiate
+ the IBC verison in
+
+ the connection handshake.
+ description: >-
+ IBC version which can be utilised to determine encodings
+ or protocols for
+
+ channels or packets utilising this connection.
+ state:
+ description: current state of the connection end.
+ type: string
+ enum:
+ - STATE_UNINITIALIZED_UNSPECIFIED
+ - STATE_INIT
+ - STATE_TRYOPEN
+ - STATE_OPEN
+ default: STATE_UNINITIALIZED_UNSPECIFIED
+ counterparty:
+ description: counterparty chain associated with this connection.
+ type: object
+ properties:
+ client_id:
+ type: string
+ description: >-
+ identifies the client on the counterparty chain
+ associated with a given
+
+ connection.
+ connection_id:
+ type: string
+ description: >-
+ identifies the connection end on the counterparty
+ chain associated with a
+
+ given connection.
+ prefix:
+ description: commitment merkle prefix of the counterparty chain.
+ type: object
+ properties:
+ key_prefix:
+ type: string
+ format: byte
+ title: >-
+ MerklePrefix is merkle path prefixed to the key.
+
+ The constructed key from the Path and the key will be
+ append(Path.KeyPath,
+
+ append(Path.KeyPrefix, key...))
+ delay_period:
+ type: string
+ format: uint64
+ description: >-
+ delay period that must pass before a consensus state can
+ be used for
+
+ packet-verification NOTE: delay period logic is only
+ implemented by some
+
+ clients.
+ description: >-
+ ConnectionEnd defines a stateful object on a chain connected
+ to another
+
+ separate one.
+
+ NOTE: there must only be 2 defined ConnectionEnds to establish
+
+ a connection between two chains.
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ description: >-
+ QueryConnectionResponse is the response type for the
+ Query/Connection RPC
+
+ method. Besides the connection end, it includes a proof and the
+ height from
+
+ which the proof was retrieved.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: connection_id
+ description: connection unique identifier
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/ibc/core/connection/v1/connections/{connection_id}/client_state':
+ get:
+ summary: |-
+ ConnectionClientState queries the client state associated with the
+ connection.
+ operationId: IbcCoreConnectionV1ConnectionClientState
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ identified_client_state:
+ title: client state associated with the channel
+ type: object
+ properties:
+ client_id:
+ type: string
+ title: client identifier
+ client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: client state
+ description: >-
+ IdentifiedClientState defines a client state with an
+ additional client
+
+ identifier field.
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryConnectionClientStateResponse is the response type for the
+ Query/ConnectionClientState RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: connection_id
+ description: connection identifier
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ '/ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}':
+ get:
+ summary: |-
+ ConnectionConsensusState queries the consensus state associated with the
+ connection.
+ operationId: IbcCoreConnectionV1ConnectionConsensusState
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ consensus_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: consensus state associated with the channel
+ client_id:
+ type: string
+ title: client ID associated with the consensus state
+ proof:
+ type: string
+ format: byte
+ title: merkle proof of existence
+ proof_height:
+ title: height at which the proof was retrieved
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: |-
+ QueryConnectionConsensusStateResponse is the response type for the
+ Query/ConnectionConsensusState RPC method
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: connection_id
+ description: connection identifier
+ in: path
+ required: true
+ type: string
+ - name: revision_number
+ in: path
+ required: true
+ type: string
+ format: uint64
+ - name: revision_height
+ in: path
+ required: true
+ type: string
+ format: uint64
+ tags:
+ - Query
+definitions:
+ certusone.wormholechain.tokenbridge.ChainRegistration:
+ type: object
+ properties:
+ chainID:
+ type: integer
+ format: int64
+ emitterAddress:
+ type: string
+ format: byte
+ certusone.wormholechain.tokenbridge.CoinMetaRollbackProtection:
+ type: object
+ properties:
+ index:
+ type: string
+ lastUpdateSequence:
+ type: string
+ format: uint64
+ certusone.wormholechain.tokenbridge.Config:
+ type: object
+ certusone.wormholechain.tokenbridge.MsgAttestTokenResponse:
+ type: object
+ certusone.wormholechain.tokenbridge.MsgExecuteGovernanceVAAResponse:
+ type: object
+ certusone.wormholechain.tokenbridge.MsgExecuteVAAResponse:
+ type: object
+ certusone.wormholechain.tokenbridge.MsgTransferResponse:
+ type: object
+ certusone.wormholechain.tokenbridge.QueryAllChainRegistrationResponse:
+ type: object
+ properties:
+ chainRegistration:
+ type: array
+ items:
+ type: object
+ properties:
+ chainID:
+ type: integer
+ format: int64
+ emitterAddress:
+ type: string
+ format: byte
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ PageResponse is to be embedded in gRPC response messages where the
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ certusone.wormholechain.tokenbridge.QueryAllCoinMetaRollbackProtectionResponse:
+ type: object
+ properties:
+ coinMetaRollbackProtection:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: string
+ lastUpdateSequence:
+ type: string
+ format: uint64
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ PageResponse is to be embedded in gRPC response messages where the
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ certusone.wormholechain.tokenbridge.QueryAllReplayProtectionResponse:
+ type: object
+ properties:
+ replayProtection:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: string
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ PageResponse is to be embedded in gRPC response messages where the
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ certusone.wormholechain.tokenbridge.QueryGetChainRegistrationResponse:
+ type: object
+ properties:
+ chainRegistration:
+ type: object
+ properties:
+ chainID:
+ type: integer
+ format: int64
+ emitterAddress:
+ type: string
+ format: byte
+ certusone.wormholechain.tokenbridge.QueryGetCoinMetaRollbackProtectionResponse:
+ type: object
+ properties:
+ coinMetaRollbackProtection:
+ type: object
+ properties:
+ index:
+ type: string
+ lastUpdateSequence:
+ type: string
+ format: uint64
+ certusone.wormholechain.tokenbridge.QueryGetConfigResponse:
+ type: object
+ properties:
+ Config:
+ type: object
+ certusone.wormholechain.tokenbridge.QueryGetReplayProtectionResponse:
+ type: object
+ properties:
+ replayProtection:
+ type: object
+ properties:
+ index:
+ type: string
+ certusone.wormholechain.tokenbridge.ReplayProtection:
+ type: object
+ properties:
+ index:
+ type: string
+ cosmos.base.query.v1beta1.PageRequest:
+ type: object
+ properties:
+ key:
+ type: string
+ format: byte
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ offset:
+ type: string
+ format: uint64
+ description: |-
+ offset is a numeric offset that can be used when key is unavailable.
+ It is less efficient than using key. Only one of offset or key should
+ be set.
+ limit:
+ type: string
+ format: uint64
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ count_total:
+ type: boolean
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in UIs.
+
+ count_total is only respected when offset is used. It is ignored when
+ key
+
+ is set.
+ reverse:
+ type: boolean
+ description: >-
+ reverse is set to true if results are to be returned in the descending
+ order.
+ description: |-
+ message SomeRequest {
+ Foo some_parameter = 1;
+ PageRequest pagination = 2;
+ }
+ title: |-
+ PageRequest is to be embedded in gRPC request messages for efficient
+ pagination. Ex:
+ cosmos.base.query.v1beta1.PageResponse:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: |-
+ total is total number of results available if PageRequest.count_total
+ was set, its value is undefined otherwise
+ description: |-
+ PageResponse is to be embedded in gRPC response messages where the
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ cosmos.base.v1beta1.Coin:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ google.protobuf.Any:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a canonical
+ form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types that
+ they
+
+ expect it to use in the context of Any. However, for URLs which use
+ the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along with
+ a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the form
+
+ of utility functions or additional generated methods of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ google.rpc.Status:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ certusone.wormholechain.wormhole.Config:
+ type: object
+ properties:
+ guardian_set_expiration:
+ type: string
+ format: uint64
+ governance_emitter:
+ type: string
+ format: byte
+ governance_chain:
+ type: integer
+ format: int64
+ chain_id:
+ type: integer
+ format: int64
+ certusone.wormholechain.wormhole.ConsensusGuardianSetIndex:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ certusone.wormholechain.wormhole.GuardianKey:
+ type: object
+ properties:
+ key:
+ type: string
+ format: byte
+ certusone.wormholechain.wormhole.GuardianSet:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ keys:
+ type: array
+ items:
+ type: string
+ format: byte
+ expirationTime:
+ type: string
+ format: uint64
+ certusone.wormholechain.wormhole.GuardianValidator:
+ type: object
+ properties:
+ guardianKey:
+ type: string
+ format: byte
+ validatorAddr:
+ type: string
+ format: byte
+ certusone.wormholechain.wormhole.MsgExecuteGovernanceVAAResponse:
+ type: object
+ certusone.wormholechain.wormhole.MsgRegisterAccountAsGuardianResponse:
+ type: object
+ certusone.wormholechain.wormhole.QueryAllGuardianSetResponse:
+ type: object
+ properties:
+ GuardianSet:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ keys:
+ type: array
+ items:
+ type: string
+ format: byte
+ expirationTime:
+ type: string
+ format: uint64
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ PageResponse is to be embedded in gRPC response messages where the
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ certusone.wormholechain.wormhole.QueryAllGuardianValidatorResponse:
+ type: object
+ properties:
+ guardianValidator:
+ type: array
+ items:
+ type: object
+ properties:
+ guardianKey:
+ type: string
+ format: byte
+ validatorAddr:
+ type: string
+ format: byte
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ PageResponse is to be embedded in gRPC response messages where the
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ certusone.wormholechain.wormhole.QueryAllReplayProtectionResponse:
+ type: object
+ properties:
+ replayProtection:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: string
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ PageResponse is to be embedded in gRPC response messages where the
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ certusone.wormholechain.wormhole.QueryAllSequenceCounterResponse:
+ type: object
+ properties:
+ sequenceCounter:
+ type: array
+ items:
+ type: object
+ properties:
+ index:
+ type: string
+ sequence:
+ type: string
+ format: uint64
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ PageResponse is to be embedded in gRPC response messages where the
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ certusone.wormholechain.wormhole.QueryGetConfigResponse:
+ type: object
+ properties:
+ Config:
+ type: object
+ properties:
+ guardian_set_expiration:
+ type: string
+ format: uint64
+ governance_emitter:
+ type: string
+ format: byte
+ governance_chain:
+ type: integer
+ format: int64
+ chain_id:
+ type: integer
+ format: int64
+ certusone.wormholechain.wormhole.QueryGetConsensusGuardianSetIndexResponse:
+ type: object
+ properties:
+ ConsensusGuardianSetIndex:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ certusone.wormholechain.wormhole.QueryGetGuardianSetResponse:
+ type: object
+ properties:
+ GuardianSet:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ keys:
+ type: array
+ items:
+ type: string
+ format: byte
+ expirationTime:
+ type: string
+ format: uint64
+ certusone.wormholechain.wormhole.QueryGetGuardianValidatorResponse:
+ type: object
+ properties:
+ guardianValidator:
+ type: object
+ properties:
+ guardianKey:
+ type: string
+ format: byte
+ validatorAddr:
+ type: string
+ format: byte
+ certusone.wormholechain.wormhole.QueryGetReplayProtectionResponse:
+ type: object
+ properties:
+ replayProtection:
+ type: object
+ properties:
+ index:
+ type: string
+ certusone.wormholechain.wormhole.QueryGetSequenceCounterResponse:
+ type: object
+ properties:
+ sequenceCounter:
+ type: object
+ properties:
+ index:
+ type: string
+ sequence:
+ type: string
+ format: uint64
+ certusone.wormholechain.wormhole.QueryLatestGuardianSetIndexResponse:
+ type: object
+ properties:
+ latestGuardianSetIndex:
+ type: integer
+ format: int64
+ certusone.wormholechain.wormhole.ReplayProtection:
+ type: object
+ properties:
+ index:
+ type: string
+ certusone.wormholechain.wormhole.SequenceCounter:
+ type: object
+ properties:
+ index:
+ type: string
+ sequence:
+ type: string
+ format: uint64
+ cosmos.auth.v1beta1.Params:
+ type: object
+ properties:
+ max_memo_characters:
+ type: string
+ format: uint64
+ tx_sig_limit:
+ type: string
+ format: uint64
+ tx_size_cost_per_byte:
+ type: string
+ format: uint64
+ sig_verify_cost_ed25519:
+ type: string
+ format: uint64
+ sig_verify_cost_secp256k1:
+ type: string
+ format: uint64
+ description: Params defines the parameters for the auth module.
+ cosmos.auth.v1beta1.QueryAccountResponse:
+ type: object
+ properties:
+ account:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ QueryAccountResponse is the response type for the Query/Account RPC
+ method.
+ cosmos.auth.v1beta1.QueryAccountsResponse:
+ type: object
+ properties:
+ accounts:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: accounts are the existing accounts
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryAccountsResponse is the response type for the Query/Accounts RPC
+ method.
+ cosmos.auth.v1beta1.QueryParamsResponse:
+ type: object
+ properties:
+ params:
+ description: params defines the parameters of the module.
+ type: object
+ properties:
+ max_memo_characters:
+ type: string
+ format: uint64
+ tx_sig_limit:
+ type: string
+ format: uint64
+ tx_size_cost_per_byte:
+ type: string
+ format: uint64
+ sig_verify_cost_ed25519:
+ type: string
+ format: uint64
+ sig_verify_cost_secp256k1:
+ type: string
+ format: uint64
+ description: QueryParamsResponse is the response type for the Query/Params RPC method.
+ cosmos.bank.v1beta1.DenomUnit:
+ type: object
+ properties:
+ denom:
+ type: string
+ description: denom represents the string name of the given denom unit (e.g uatom).
+ exponent:
+ type: integer
+ format: int64
+ description: >-
+ exponent represents power of 10 exponent that one must
+
+ raise the base_denom to in order to equal the given DenomUnit's denom
+
+ 1 denom = 1^exponent base_denom
+
+ (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom'
+ with
+
+ exponent = 6, thus: 1 atom = 10^6 uatom).
+ aliases:
+ type: array
+ items:
+ type: string
+ title: aliases is a list of string aliases for the given denom
+ description: |-
+ DenomUnit represents a struct that describes a given
+ denomination unit of the basic token.
+ cosmos.bank.v1beta1.Input:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: Input models transaction input.
+ cosmos.bank.v1beta1.Metadata:
+ type: object
+ properties:
+ description:
+ type: string
+ denom_units:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ description: >-
+ denom represents the string name of the given denom unit (e.g
+ uatom).
+ exponent:
+ type: integer
+ format: int64
+ description: >-
+ exponent represents power of 10 exponent that one must
+
+ raise the base_denom to in order to equal the given DenomUnit's
+ denom
+
+ 1 denom = 1^exponent base_denom
+
+ (e.g. with a base_denom of uatom, one can create a DenomUnit of
+ 'atom' with
+
+ exponent = 6, thus: 1 atom = 10^6 uatom).
+ aliases:
+ type: array
+ items:
+ type: string
+ title: aliases is a list of string aliases for the given denom
+ description: |-
+ DenomUnit represents a struct that describes a given
+ denomination unit of the basic token.
+ title: denom_units represents the list of DenomUnit's for a given coin
+ base:
+ type: string
+ description: >-
+ base represents the base denom (should be the DenomUnit with exponent
+ = 0).
+ display:
+ type: string
+ description: |-
+ display indicates the suggested denom that should be
+ displayed in clients.
+ name:
+ type: string
+ title: 'name defines the name of the token (eg: Cosmos Atom)'
+ symbol:
+ type: string
+ description: >-
+ symbol is the token symbol usually shown on exchanges (eg: ATOM). This
+ can
+
+ be the same as the display.
+ description: |-
+ Metadata represents a struct that describes
+ a basic token.
+ cosmos.bank.v1beta1.MsgMultiSendResponse:
+ type: object
+ description: MsgMultiSendResponse defines the Msg/MultiSend response type.
+ cosmos.bank.v1beta1.MsgSendResponse:
+ type: object
+ description: MsgSendResponse defines the Msg/Send response type.
+ cosmos.bank.v1beta1.Output:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: Output models transaction outputs.
+ cosmos.bank.v1beta1.Params:
+ type: object
+ properties:
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status (whether a
+ denom is
+
+ sendable).
+ default_send_enabled:
+ type: boolean
+ description: Params defines the parameters for the bank module.
+ cosmos.bank.v1beta1.QueryAllBalancesResponse:
+ type: object
+ properties:
+ balances:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: balances is the balances of all the coins.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryAllBalancesResponse is the response type for the Query/AllBalances
+ RPC
+
+ method.
+ cosmos.bank.v1beta1.QueryBalanceResponse:
+ type: object
+ properties:
+ balance:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: >-
+ QueryBalanceResponse is the response type for the Query/Balance RPC
+ method.
+ cosmos.bank.v1beta1.QueryDenomMetadataResponse:
+ type: object
+ properties:
+ metadata:
+ type: object
+ properties:
+ description:
+ type: string
+ denom_units:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ description: >-
+ denom represents the string name of the given denom unit
+ (e.g uatom).
+ exponent:
+ type: integer
+ format: int64
+ description: >-
+ exponent represents power of 10 exponent that one must
+
+ raise the base_denom to in order to equal the given
+ DenomUnit's denom
+
+ 1 denom = 1^exponent base_denom
+
+ (e.g. with a base_denom of uatom, one can create a DenomUnit
+ of 'atom' with
+
+ exponent = 6, thus: 1 atom = 10^6 uatom).
+ aliases:
+ type: array
+ items:
+ type: string
+ title: aliases is a list of string aliases for the given denom
+ description: |-
+ DenomUnit represents a struct that describes a given
+ denomination unit of the basic token.
+ title: denom_units represents the list of DenomUnit's for a given coin
+ base:
+ type: string
+ description: >-
+ base represents the base denom (should be the DenomUnit with
+ exponent = 0).
+ display:
+ type: string
+ description: |-
+ display indicates the suggested denom that should be
+ displayed in clients.
+ name:
+ type: string
+ title: 'name defines the name of the token (eg: Cosmos Atom)'
+ symbol:
+ type: string
+ description: >-
+ symbol is the token symbol usually shown on exchanges (eg: ATOM).
+ This can
+
+ be the same as the display.
+ description: |-
+ Metadata represents a struct that describes
+ a basic token.
+ description: >-
+ QueryDenomMetadataResponse is the response type for the
+ Query/DenomMetadata RPC
+
+ method.
+ cosmos.bank.v1beta1.QueryDenomsMetadataResponse:
+ type: object
+ properties:
+ metadatas:
+ type: array
+ items:
+ type: object
+ properties:
+ description:
+ type: string
+ denom_units:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ description: >-
+ denom represents the string name of the given denom unit
+ (e.g uatom).
+ exponent:
+ type: integer
+ format: int64
+ description: >-
+ exponent represents power of 10 exponent that one must
+
+ raise the base_denom to in order to equal the given
+ DenomUnit's denom
+
+ 1 denom = 1^exponent base_denom
+
+ (e.g. with a base_denom of uatom, one can create a
+ DenomUnit of 'atom' with
+
+ exponent = 6, thus: 1 atom = 10^6 uatom).
+ aliases:
+ type: array
+ items:
+ type: string
+ title: aliases is a list of string aliases for the given denom
+ description: |-
+ DenomUnit represents a struct that describes a given
+ denomination unit of the basic token.
+ title: denom_units represents the list of DenomUnit's for a given coin
+ base:
+ type: string
+ description: >-
+ base represents the base denom (should be the DenomUnit with
+ exponent = 0).
+ display:
+ type: string
+ description: |-
+ display indicates the suggested denom that should be
+ displayed in clients.
+ name:
+ type: string
+ title: 'name defines the name of the token (eg: Cosmos Atom)'
+ symbol:
+ type: string
+ description: >-
+ symbol is the token symbol usually shown on exchanges (eg:
+ ATOM). This can
+
+ be the same as the display.
+ description: |-
+ Metadata represents a struct that describes
+ a basic token.
+ description: >-
+ metadata provides the client information for all the registered
+ tokens.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryDenomsMetadataResponse is the response type for the
+ Query/DenomsMetadata RPC
+
+ method.
+ cosmos.bank.v1beta1.QueryParamsResponse:
+ type: object
+ properties:
+ params:
+ type: object
+ properties:
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status (whether a
+ denom is
+
+ sendable).
+ default_send_enabled:
+ type: boolean
+ description: Params defines the parameters for the bank module.
+ description: >-
+ QueryParamsResponse defines the response type for querying x/bank
+ parameters.
+ cosmos.bank.v1beta1.QuerySupplyOfResponse:
+ type: object
+ properties:
+ amount:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: >-
+ QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC
+ method.
+ cosmos.bank.v1beta1.QueryTotalSupplyResponse:
+ type: object
+ properties:
+ supply:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ title: supply is the supply of the coins
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ title: >-
+ QueryTotalSupplyResponse is the response type for the Query/TotalSupply
+ RPC
+
+ method
+ cosmos.bank.v1beta1.SendEnabled:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: |-
+ SendEnabled maps coin denom to a send_enabled status (whether a denom is
+ sendable).
+ cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse:
+ type: object
+ properties:
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ block:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a block
+ in the blockchain,
+
+ including all blockchain data structures and the rules of the
+ application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ data:
+ type: object
+ properties:
+ txs:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: >-
+ Txs that will be applied by state @ block.Height+1.
+
+ NOTE: not all txs here are valid. We're just agreeing on the
+ order first.
+
+ This means that block.AppHash does not include these txs.
+ title: Data contains the set of transactions included in the block
+ evidence:
+ type: object
+ properties:
+ evidence:
+ type: array
+ items:
+ type: object
+ properties:
+ duplicate_vote_evidence:
+ type: object
+ properties:
+ vote_a:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed message in the
+ consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote
+ from validators for
+
+ consensus.
+ vote_b:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed message in the
+ consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote
+ from validators for
+
+ consensus.
+ total_voting_power:
+ type: string
+ format: int64
+ validator_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ DuplicateVoteEvidence contains evidence of a validator
+ signed two conflicting votes.
+ light_client_attack_evidence:
+ type: object
+ properties:
+ conflicting_block:
+ type: object
+ properties:
+ signed_header:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules
+ for processing a block in the
+ blockchain,
+
+ including all blockchain data structures
+ and the rules of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: >-
+ hashes from the app output from the prev
+ block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: >-
+ Header defines the structure of a Tendermint
+ block header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the
+ signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: >-
+ CommitSig is a part of the Vote included
+ in a Commit.
+ description: >-
+ Commit contains the evidence that a block
+ was committed by a set of validators.
+ validator_set:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ common_height:
+ type: string
+ format: int64
+ byzantine_validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use
+ with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ LightClientAttackEvidence contains evidence of a set of
+ validators attempting to mislead a light client.
+ last_commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: BlockIdFlag indicates which BlcokID the signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: CommitSig is a part of the Vote included in a Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by a set
+ of validators.
+ description: >-
+ GetBlockByHeightResponse is the response type for the
+ Query/GetBlockByHeight RPC method.
+ cosmos.base.tendermint.v1beta1.GetLatestBlockResponse:
+ type: object
+ properties:
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ block:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a block
+ in the blockchain,
+
+ including all blockchain data structures and the rules of the
+ application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ data:
+ type: object
+ properties:
+ txs:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: >-
+ Txs that will be applied by state @ block.Height+1.
+
+ NOTE: not all txs here are valid. We're just agreeing on the
+ order first.
+
+ This means that block.AppHash does not include these txs.
+ title: Data contains the set of transactions included in the block
+ evidence:
+ type: object
+ properties:
+ evidence:
+ type: array
+ items:
+ type: object
+ properties:
+ duplicate_vote_evidence:
+ type: object
+ properties:
+ vote_a:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed message in the
+ consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote
+ from validators for
+
+ consensus.
+ vote_b:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed message in the
+ consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote
+ from validators for
+
+ consensus.
+ total_voting_power:
+ type: string
+ format: int64
+ validator_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ DuplicateVoteEvidence contains evidence of a validator
+ signed two conflicting votes.
+ light_client_attack_evidence:
+ type: object
+ properties:
+ conflicting_block:
+ type: object
+ properties:
+ signed_header:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules
+ for processing a block in the
+ blockchain,
+
+ including all blockchain data structures
+ and the rules of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: >-
+ hashes from the app output from the prev
+ block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: >-
+ Header defines the structure of a Tendermint
+ block header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the
+ signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: >-
+ CommitSig is a part of the Vote included
+ in a Commit.
+ description: >-
+ Commit contains the evidence that a block
+ was committed by a set of validators.
+ validator_set:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ common_height:
+ type: string
+ format: int64
+ byzantine_validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use
+ with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ LightClientAttackEvidence contains evidence of a set of
+ validators attempting to mislead a light client.
+ last_commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: BlockIdFlag indicates which BlcokID the signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: CommitSig is a part of the Vote included in a Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by a set
+ of validators.
+ description: >-
+ GetLatestBlockResponse is the response type for the Query/GetLatestBlock
+ RPC method.
+ cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse:
+ type: object
+ properties:
+ block_height:
+ type: string
+ format: int64
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ pub_key:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ description: Validator is the type for the validator-set.
+ pagination:
+ description: pagination defines an pagination for the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ GetLatestValidatorSetResponse is the response type for the
+ Query/GetValidatorSetByHeight RPC method.
+ cosmos.base.tendermint.v1beta1.GetNodeInfoResponse:
+ type: object
+ properties:
+ default_node_info:
+ type: object
+ properties:
+ protocol_version:
+ type: object
+ properties:
+ p2p:
+ type: string
+ format: uint64
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ default_node_id:
+ type: string
+ listen_addr:
+ type: string
+ network:
+ type: string
+ version:
+ type: string
+ channels:
+ type: string
+ format: byte
+ moniker:
+ type: string
+ other:
+ type: object
+ properties:
+ tx_index:
+ type: string
+ rpc_address:
+ type: string
+ application_version:
+ type: object
+ properties:
+ name:
+ type: string
+ app_name:
+ type: string
+ version:
+ type: string
+ git_commit:
+ type: string
+ build_tags:
+ type: string
+ go_version:
+ type: string
+ build_deps:
+ type: array
+ items:
+ type: object
+ properties:
+ path:
+ type: string
+ title: module path
+ version:
+ type: string
+ title: module version
+ sum:
+ type: string
+ title: checksum
+ title: Module is the type for VersionInfo
+ cosmos_sdk_version:
+ type: string
+ description: VersionInfo is the type for the GetNodeInfoResponse message.
+ description: >-
+ GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC
+ method.
+ cosmos.base.tendermint.v1beta1.GetSyncingResponse:
+ type: object
+ properties:
+ syncing:
+ type: boolean
+ description: >-
+ GetSyncingResponse is the response type for the Query/GetSyncing RPC
+ method.
+ cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse:
+ type: object
+ properties:
+ block_height:
+ type: string
+ format: int64
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ pub_key:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ description: Validator is the type for the validator-set.
+ pagination:
+ description: pagination defines an pagination for the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ GetValidatorSetByHeightResponse is the response type for the
+ Query/GetValidatorSetByHeight RPC method.
+ cosmos.base.tendermint.v1beta1.Module:
+ type: object
+ properties:
+ path:
+ type: string
+ title: module path
+ version:
+ type: string
+ title: module version
+ sum:
+ type: string
+ title: checksum
+ title: Module is the type for VersionInfo
+ cosmos.base.tendermint.v1beta1.Validator:
+ type: object
+ properties:
+ address:
+ type: string
+ pub_key:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ description: Validator is the type for the validator-set.
+ cosmos.base.tendermint.v1beta1.VersionInfo:
+ type: object
+ properties:
+ name:
+ type: string
+ app_name:
+ type: string
+ version:
+ type: string
+ git_commit:
+ type: string
+ build_tags:
+ type: string
+ go_version:
+ type: string
+ build_deps:
+ type: array
+ items:
+ type: object
+ properties:
+ path:
+ type: string
+ title: module path
+ version:
+ type: string
+ title: module version
+ sum:
+ type: string
+ title: checksum
+ title: Module is the type for VersionInfo
+ cosmos_sdk_version:
+ type: string
+ description: VersionInfo is the type for the GetNodeInfoResponse message.
+ tendermint.crypto.PublicKey:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: PublicKey defines the keys available for use with Tendermint Validators
+ tendermint.p2p.DefaultNodeInfo:
+ type: object
+ properties:
+ protocol_version:
+ type: object
+ properties:
+ p2p:
+ type: string
+ format: uint64
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ default_node_id:
+ type: string
+ listen_addr:
+ type: string
+ network:
+ type: string
+ version:
+ type: string
+ channels:
+ type: string
+ format: byte
+ moniker:
+ type: string
+ other:
+ type: object
+ properties:
+ tx_index:
+ type: string
+ rpc_address:
+ type: string
+ tendermint.p2p.DefaultNodeInfoOther:
+ type: object
+ properties:
+ tx_index:
+ type: string
+ rpc_address:
+ type: string
+ tendermint.p2p.ProtocolVersion:
+ type: object
+ properties:
+ p2p:
+ type: string
+ format: uint64
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ tendermint.types.Block:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a block in
+ the blockchain,
+
+ including all blockchain data structures and the rules of the
+ application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ data:
+ type: object
+ properties:
+ txs:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: >-
+ Txs that will be applied by state @ block.Height+1.
+
+ NOTE: not all txs here are valid. We're just agreeing on the
+ order first.
+
+ This means that block.AppHash does not include these txs.
+ title: Data contains the set of transactions included in the block
+ evidence:
+ type: object
+ properties:
+ evidence:
+ type: array
+ items:
+ type: object
+ properties:
+ duplicate_vote_evidence:
+ type: object
+ properties:
+ vote_a:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed message in the
+ consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote
+ from validators for
+
+ consensus.
+ vote_b:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed message in the
+ consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote
+ from validators for
+
+ consensus.
+ total_voting_power:
+ type: string
+ format: int64
+ validator_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ DuplicateVoteEvidence contains evidence of a validator
+ signed two conflicting votes.
+ light_client_attack_evidence:
+ type: object
+ properties:
+ conflicting_block:
+ type: object
+ properties:
+ signed_header:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for
+ processing a block in the blockchain,
+
+ including all blockchain data structures and
+ the rules of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: >-
+ hashes from the app output from the prev
+ block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: >-
+ Header defines the structure of a Tendermint
+ block header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the
+ signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: >-
+ CommitSig is a part of the Vote included
+ in a Commit.
+ description: >-
+ Commit contains the evidence that a block was
+ committed by a set of validators.
+ validator_set:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for
+ use with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use
+ with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ common_height:
+ type: string
+ format: int64
+ byzantine_validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with
+ Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ LightClientAttackEvidence contains evidence of a set of
+ validators attempting to mislead a light client.
+ last_commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: BlockIdFlag indicates which BlcokID the signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: CommitSig is a part of the Vote included in a Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by a set of
+ validators.
+ tendermint.types.BlockID:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ tendermint.types.BlockIDFlag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: BlockIdFlag indicates which BlcokID the signature is for
+ tendermint.types.Commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: BlockIdFlag indicates which BlcokID the signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: CommitSig is a part of the Vote included in a Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by a set of
+ validators.
+ tendermint.types.CommitSig:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: BlockIdFlag indicates which BlcokID the signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: CommitSig is a part of the Vote included in a Commit.
+ tendermint.types.Data:
+ type: object
+ properties:
+ txs:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: >-
+ Txs that will be applied by state @ block.Height+1.
+
+ NOTE: not all txs here are valid. We're just agreeing on the order
+ first.
+
+ This means that block.AppHash does not include these txs.
+ title: Data contains the set of transactions included in the block
+ tendermint.types.DuplicateVoteEvidence:
+ type: object
+ properties:
+ vote_a:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: |-
+ SignedMsgType is a type of signed message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote from validators
+ for
+
+ consensus.
+ vote_b:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: |-
+ SignedMsgType is a type of signed message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote from validators
+ for
+
+ consensus.
+ total_voting_power:
+ type: string
+ format: int64
+ validator_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ DuplicateVoteEvidence contains evidence of a validator signed two
+ conflicting votes.
+ tendermint.types.Evidence:
+ type: object
+ properties:
+ duplicate_vote_evidence:
+ type: object
+ properties:
+ vote_a:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: |-
+ SignedMsgType is a type of signed message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote from
+ validators for
+
+ consensus.
+ vote_b:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: |-
+ SignedMsgType is a type of signed message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote from
+ validators for
+
+ consensus.
+ total_voting_power:
+ type: string
+ format: int64
+ validator_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ DuplicateVoteEvidence contains evidence of a validator signed two
+ conflicting votes.
+ light_client_attack_evidence:
+ type: object
+ properties:
+ conflicting_block:
+ type: object
+ properties:
+ signed_header:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing
+ a block in the blockchain,
+
+ including all blockchain data structures and the rules
+ of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the
+ signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: >-
+ CommitSig is a part of the Vote included in a
+ Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by
+ a set of validators.
+ validator_set:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with
+ Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with
+ Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ common_height:
+ type: string
+ format: int64
+ byzantine_validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with Tendermint
+ Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ LightClientAttackEvidence contains evidence of a set of validators
+ attempting to mislead a light client.
+ tendermint.types.EvidenceList:
+ type: object
+ properties:
+ evidence:
+ type: array
+ items:
+ type: object
+ properties:
+ duplicate_vote_evidence:
+ type: object
+ properties:
+ vote_a:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed message in the
+ consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote from
+ validators for
+
+ consensus.
+ vote_b:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: >-
+ SignedMsgType is a type of signed message in the
+ consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: >-
+ Vote represents a prevote, precommit, or commit vote from
+ validators for
+
+ consensus.
+ total_voting_power:
+ type: string
+ format: int64
+ validator_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ DuplicateVoteEvidence contains evidence of a validator signed
+ two conflicting votes.
+ light_client_attack_evidence:
+ type: object
+ properties:
+ conflicting_block:
+ type: object
+ properties:
+ signed_header:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for
+ processing a block in the blockchain,
+
+ including all blockchain data structures and the
+ rules of the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: >-
+ Header defines the structure of a Tendermint block
+ header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the
+ signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: >-
+ CommitSig is a part of the Vote included in a
+ Commit.
+ description: >-
+ Commit contains the evidence that a block was
+ committed by a set of validators.
+ validator_set:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use
+ with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use
+ with Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ common_height:
+ type: string
+ format: int64
+ byzantine_validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with
+ Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ LightClientAttackEvidence contains evidence of a set of
+ validators attempting to mislead a light client.
+ tendermint.types.Header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a block in the
+ blockchain,
+
+ including all blockchain data structures and the rules of the
+ application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ tendermint.types.LightBlock:
+ type: object
+ properties:
+ signed_header:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a block
+ in the blockchain,
+
+ including all blockchain data structures and the rules of the
+ application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: BlockIdFlag indicates which BlcokID the signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: CommitSig is a part of the Vote included in a Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by a set
+ of validators.
+ validator_set:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with Tendermint
+ Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with Tendermint
+ Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ tendermint.types.LightClientAttackEvidence:
+ type: object
+ properties:
+ conflicting_block:
+ type: object
+ properties:
+ signed_header:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a
+ block in the blockchain,
+
+ including all blockchain data structures and the rules of
+ the application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: >-
+ BlockIdFlag indicates which BlcokID the signature is
+ for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: CommitSig is a part of the Vote included in a Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by a
+ set of validators.
+ validator_set:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with
+ Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with
+ Tendermint Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ common_height:
+ type: string
+ format: int64
+ byzantine_validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with Tendermint
+ Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ timestamp:
+ type: string
+ format: date-time
+ description: >-
+ LightClientAttackEvidence contains evidence of a set of validators
+ attempting to mislead a light client.
+ tendermint.types.PartSetHeader:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ tendermint.types.SignedHeader:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a block in
+ the blockchain,
+
+ including all blockchain data structures and the rules of the
+ application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ commit:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ signatures:
+ type: array
+ items:
+ type: object
+ properties:
+ block_id_flag:
+ type: string
+ enum:
+ - BLOCK_ID_FLAG_UNKNOWN
+ - BLOCK_ID_FLAG_ABSENT
+ - BLOCK_ID_FLAG_COMMIT
+ - BLOCK_ID_FLAG_NIL
+ default: BLOCK_ID_FLAG_UNKNOWN
+ title: BlockIdFlag indicates which BlcokID the signature is for
+ validator_address:
+ type: string
+ format: byte
+ timestamp:
+ type: string
+ format: date-time
+ signature:
+ type: string
+ format: byte
+ description: CommitSig is a part of the Vote included in a Commit.
+ description: >-
+ Commit contains the evidence that a block was committed by a set of
+ validators.
+ tendermint.types.SignedMsgType:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: |-
+ SignedMsgType is a type of signed message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ tendermint.types.Validator:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with Tendermint
+ Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ tendermint.types.ValidatorSet:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with Tendermint
+ Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ proposer:
+ type: object
+ properties:
+ address:
+ type: string
+ format: byte
+ pub_key:
+ type: object
+ properties:
+ ed25519:
+ type: string
+ format: byte
+ secp256k1:
+ type: string
+ format: byte
+ title: >-
+ PublicKey defines the keys available for use with Tendermint
+ Validators
+ voting_power:
+ type: string
+ format: int64
+ proposer_priority:
+ type: string
+ format: int64
+ total_voting_power:
+ type: string
+ format: int64
+ tendermint.types.Vote:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - SIGNED_MSG_TYPE_UNKNOWN
+ - SIGNED_MSG_TYPE_PREVOTE
+ - SIGNED_MSG_TYPE_PRECOMMIT
+ - SIGNED_MSG_TYPE_PROPOSAL
+ default: SIGNED_MSG_TYPE_UNKNOWN
+ description: |-
+ SignedMsgType is a type of signed message in the consensus.
+
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
+ height:
+ type: string
+ format: int64
+ round:
+ type: integer
+ format: int32
+ block_id:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ title: BlockID
+ timestamp:
+ type: string
+ format: date-time
+ validator_address:
+ type: string
+ format: byte
+ validator_index:
+ type: integer
+ format: int32
+ signature:
+ type: string
+ format: byte
+ description: |-
+ Vote represents a prevote, precommit, or commit vote from validators for
+ consensus.
+ tendermint.version.Consensus:
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a block in the
+ blockchain,
+
+ including all blockchain data structures and the rules of the
+ application's
+
+ state transition machine.
+ cosmos.crisis.v1beta1.MsgVerifyInvariantResponse:
+ type: object
+ description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.
+ cosmos.base.v1beta1.DecCoin:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ DecCoin defines a token with a denomination and a decimal amount.
+
+ NOTE: The amount field is an Dec which implements the custom method
+ signatures required by gogoproto.
+ cosmos.distribution.v1beta1.DelegationDelegatorReward:
+ type: object
+ properties:
+ validator_address:
+ type: string
+ reward:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ DecCoin defines a token with a denomination and a decimal amount.
+
+ NOTE: The amount field is an Dec which implements the custom method
+ signatures required by gogoproto.
+ description: |-
+ DelegationDelegatorReward represents the properties
+ of a delegator's delegation reward.
+ cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse:
+ type: object
+ description: >-
+ MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response
+ type.
+ cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse:
+ type: object
+ description: >-
+ MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
+ type.
+ cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse:
+ type: object
+ description: >-
+ MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
+ response type.
+ cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse:
+ type: object
+ description: >-
+ MsgWithdrawValidatorCommissionResponse defines the
+ Msg/WithdrawValidatorCommission response type.
+ cosmos.distribution.v1beta1.Params:
+ type: object
+ properties:
+ community_tax:
+ type: string
+ base_proposer_reward:
+ type: string
+ bonus_proposer_reward:
+ type: string
+ withdraw_addr_enabled:
+ type: boolean
+ description: Params defines the set of params for the distribution module.
+ cosmos.distribution.v1beta1.QueryCommunityPoolResponse:
+ type: object
+ properties:
+ pool:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ DecCoin defines a token with a denomination and a decimal amount.
+
+ NOTE: The amount field is an Dec which implements the custom method
+ signatures required by gogoproto.
+ description: pool defines community pool's coins.
+ description: >-
+ QueryCommunityPoolResponse is the response type for the
+ Query/CommunityPool
+
+ RPC method.
+ cosmos.distribution.v1beta1.QueryDelegationRewardsResponse:
+ type: object
+ properties:
+ rewards:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ DecCoin defines a token with a denomination and a decimal amount.
+
+ NOTE: The amount field is an Dec which implements the custom method
+ signatures required by gogoproto.
+ description: rewards defines the rewards accrued by a delegation.
+ description: |-
+ QueryDelegationRewardsResponse is the response type for the
+ Query/DelegationRewards RPC method.
+ cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse:
+ type: object
+ properties:
+ rewards:
+ type: array
+ items:
+ type: object
+ properties:
+ validator_address:
+ type: string
+ reward:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ DecCoin defines a token with a denomination and a decimal
+ amount.
+
+
+ NOTE: The amount field is an Dec which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: |-
+ DelegationDelegatorReward represents the properties
+ of a delegator's delegation reward.
+ description: rewards defines all the rewards accrued by a delegator.
+ total:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ DecCoin defines a token with a denomination and a decimal amount.
+
+ NOTE: The amount field is an Dec which implements the custom method
+ signatures required by gogoproto.
+ description: total defines the sum of all the rewards.
+ description: |-
+ QueryDelegationTotalRewardsResponse is the response type for the
+ Query/DelegationTotalRewards RPC method.
+ cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: string
+ description: validators defines the validators a delegator is delegating for.
+ description: |-
+ QueryDelegatorValidatorsResponse is the response type for the
+ Query/DelegatorValidators RPC method.
+ cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse:
+ type: object
+ properties:
+ withdraw_address:
+ type: string
+ description: withdraw_address defines the delegator address to query for.
+ description: |-
+ QueryDelegatorWithdrawAddressResponse is the response type for the
+ Query/DelegatorWithdrawAddress RPC method.
+ cosmos.distribution.v1beta1.QueryParamsResponse:
+ type: object
+ properties:
+ params:
+ description: params defines the parameters of the module.
+ type: object
+ properties:
+ community_tax:
+ type: string
+ base_proposer_reward:
+ type: string
+ bonus_proposer_reward:
+ type: string
+ withdraw_addr_enabled:
+ type: boolean
+ description: QueryParamsResponse is the response type for the Query/Params RPC method.
+ cosmos.distribution.v1beta1.QueryValidatorCommissionResponse:
+ type: object
+ properties:
+ commission:
+ description: commission defines the commision the validator received.
+ type: object
+ properties:
+ commission:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ DecCoin defines a token with a denomination and a decimal
+ amount.
+
+
+ NOTE: The amount field is an Dec which implements the custom
+ method
+
+ signatures required by gogoproto.
+ title: |-
+ QueryValidatorCommissionResponse is the response type for the
+ Query/ValidatorCommission RPC method
+ cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse:
+ type: object
+ properties:
+ rewards:
+ type: object
+ properties:
+ rewards:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ DecCoin defines a token with a denomination and a decimal
+ amount.
+
+
+ NOTE: The amount field is an Dec which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ ValidatorOutstandingRewards represents outstanding (un-withdrawn)
+ rewards
+
+ for a validator inexpensive to track, allows simple sanity checks.
+ description: |-
+ QueryValidatorOutstandingRewardsResponse is the response type for the
+ Query/ValidatorOutstandingRewards RPC method.
+ cosmos.distribution.v1beta1.QueryValidatorSlashesResponse:
+ type: object
+ properties:
+ slashes:
+ type: array
+ items:
+ type: object
+ properties:
+ validator_period:
+ type: string
+ format: uint64
+ fraction:
+ type: string
+ description: |-
+ ValidatorSlashEvent represents a validator slash event.
+ Height is implicit within the store key.
+ This is needed to calculate appropriate amount of staking tokens
+ for delegations which are withdrawn after a slash has occurred.
+ description: slashes defines the slashes the validator received.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ QueryValidatorSlashesResponse is the response type for the
+ Query/ValidatorSlashes RPC method.
+ cosmos.distribution.v1beta1.ValidatorAccumulatedCommission:
+ type: object
+ properties:
+ commission:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ DecCoin defines a token with a denomination and a decimal amount.
+
+ NOTE: The amount field is an Dec which implements the custom method
+ signatures required by gogoproto.
+ description: |-
+ ValidatorAccumulatedCommission represents accumulated commission
+ for a validator kept as a running counter, can be withdrawn at any time.
+ cosmos.distribution.v1beta1.ValidatorOutstandingRewards:
+ type: object
+ properties:
+ rewards:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ DecCoin defines a token with a denomination and a decimal amount.
+
+ NOTE: The amount field is an Dec which implements the custom method
+ signatures required by gogoproto.
+ description: |-
+ ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
+ for a validator inexpensive to track, allows simple sanity checks.
+ cosmos.distribution.v1beta1.ValidatorSlashEvent:
+ type: object
+ properties:
+ validator_period:
+ type: string
+ format: uint64
+ fraction:
+ type: string
+ description: |-
+ ValidatorSlashEvent represents a validator slash event.
+ Height is implicit within the store key.
+ This is needed to calculate appropriate amount of staking tokens
+ for delegations which are withdrawn after a slash has occurred.
+ cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ description: hash defines the hash of the evidence.
+ description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.
+ cosmos.evidence.v1beta1.QueryAllEvidenceResponse:
+ type: object
+ properties:
+ evidence:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: evidence returns all evidences.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryAllEvidenceResponse is the response type for the Query/AllEvidence
+ RPC
+
+ method.
+ cosmos.evidence.v1beta1.QueryEvidenceResponse:
+ type: object
+ properties:
+ evidence:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ QueryEvidenceResponse is the response type for the Query/Evidence RPC
+ method.
+ cosmos.feegrant.v1beta1.Grant:
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of their
+ funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance of
+ another user's funds.
+ allowance:
+ description: allowance can be any of basic and filtered fee allowance.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ title: Grant is stored in the KVStore to record a grant with full context
+ cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse:
+ type: object
+ description: >-
+ MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response
+ type.
+ cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse:
+ type: object
+ description: >-
+ MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse
+ response type.
+ cosmos.feegrant.v1beta1.QueryAllowanceResponse:
+ type: object
+ properties:
+ allowance:
+ description: allowance is a allowance granted for grantee by granter.
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of their
+ funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance of
+ another user's funds.
+ allowance:
+ description: allowance can be any of basic and filtered fee allowance.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ title: Grant is stored in the KVStore to record a grant with full context
+ description: >-
+ QueryAllowanceResponse is the response type for the Query/Allowance RPC
+ method.
+ cosmos.feegrant.v1beta1.QueryAllowancesResponse:
+ type: object
+ properties:
+ allowances:
+ type: array
+ items:
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of
+ their funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance of
+ another user's funds.
+ allowance:
+ description: allowance can be any of basic and filtered fee allowance.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ title: Grant is stored in the KVStore to record a grant with full context
+ description: allowances are allowance's granted for grantee by granter.
+ pagination:
+ description: pagination defines an pagination for the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryAllowancesResponse is the response type for the Query/Allowances RPC
+ method.
+ cosmos.gov.v1beta1.Deposit:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ depositor:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: |-
+ Deposit defines an amount deposited by an account address to an active
+ proposal.
+ cosmos.gov.v1beta1.DepositParams:
+ type: object
+ properties:
+ min_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: Minimum deposit for a proposal to enter voting period.
+ max_deposit_period:
+ type: string
+ description: >-
+ Maximum period for Atom holders to deposit on a proposal. Initial
+ value: 2
+ months.
+ description: DepositParams defines the params for deposits on governance proposals.
+ cosmos.gov.v1beta1.MsgDepositResponse:
+ type: object
+ description: MsgDepositResponse defines the Msg/Deposit response type.
+ cosmos.gov.v1beta1.MsgSubmitProposalResponse:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
+ cosmos.gov.v1beta1.MsgVoteResponse:
+ type: object
+ description: MsgVoteResponse defines the Msg/Vote response type.
+ cosmos.gov.v1beta1.MsgVoteWeightedResponse:
+ type: object
+ description: MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
+ cosmos.gov.v1beta1.Proposal:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ content:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ status:
+ type: string
+ enum:
+ - PROPOSAL_STATUS_UNSPECIFIED
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD
+ - PROPOSAL_STATUS_VOTING_PERIOD
+ - PROPOSAL_STATUS_PASSED
+ - PROPOSAL_STATUS_REJECTED
+ - PROPOSAL_STATUS_FAILED
+ default: PROPOSAL_STATUS_UNSPECIFIED
+ description: |-
+ ProposalStatus enumerates the valid statuses of a proposal.
+
+ - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
+ period.
+ - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
+ period.
+ - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
+ passed.
+ - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
+ been rejected.
+ - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
+ failed.
+ final_tally_result:
+ type: object
+ properties:
+ 'yes':
+ type: string
+ abstain:
+ type: string
+ 'no':
+ type: string
+ no_with_veto:
+ type: string
+ description: TallyResult defines a standard tally for a governance proposal.
+ submit_time:
+ type: string
+ format: date-time
+ deposit_end_time:
+ type: string
+ format: date-time
+ total_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ voting_start_time:
+ type: string
+ format: date-time
+ voting_end_time:
+ type: string
+ format: date-time
+ description: Proposal defines the core field members of a governance proposal.
+ cosmos.gov.v1beta1.ProposalStatus:
+ type: string
+ enum:
+ - PROPOSAL_STATUS_UNSPECIFIED
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD
+ - PROPOSAL_STATUS_VOTING_PERIOD
+ - PROPOSAL_STATUS_PASSED
+ - PROPOSAL_STATUS_REJECTED
+ - PROPOSAL_STATUS_FAILED
+ default: PROPOSAL_STATUS_UNSPECIFIED
+ description: |-
+ ProposalStatus enumerates the valid statuses of a proposal.
+
+ - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
+ period.
+ - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
+ period.
+ - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
+ passed.
+ - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
+ been rejected.
+ - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
+ failed.
+ cosmos.gov.v1beta1.QueryDepositResponse:
+ type: object
+ properties:
+ deposit:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ depositor:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: |-
+ Deposit defines an amount deposited by an account address to an active
+ proposal.
+ description: >-
+ QueryDepositResponse is the response type for the Query/Deposit RPC
+ method.
+ cosmos.gov.v1beta1.QueryDepositsResponse:
+ type: object
+ properties:
+ deposits:
+ type: array
+ items:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ depositor:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ Deposit defines an amount deposited by an account address to an
+ active
+
+ proposal.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryDepositsResponse is the response type for the Query/Deposits RPC
+ method.
+ cosmos.gov.v1beta1.QueryParamsResponse:
+ type: object
+ properties:
+ voting_params:
+ description: voting_params defines the parameters related to voting.
+ type: object
+ properties:
+ voting_period:
+ type: string
+ description: Length of the voting period.
+ deposit_params:
+ description: deposit_params defines the parameters related to deposit.
+ type: object
+ properties:
+ min_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: Minimum deposit for a proposal to enter voting period.
+ max_deposit_period:
+ type: string
+ description: >-
+ Maximum period for Atom holders to deposit on a proposal. Initial
+ value: 2
+ months.
+ tally_params:
+ description: tally_params defines the parameters related to tally.
+ type: object
+ properties:
+ quorum:
+ type: string
+ format: byte
+ description: >-
+ Minimum percentage of total stake needed to vote for a result to
+ be
+ considered valid.
+ threshold:
+ type: string
+ format: byte
+ description: >-
+ Minimum proportion of Yes votes for proposal to pass. Default
+ value: 0.5.
+ veto_threshold:
+ type: string
+ format: byte
+ description: >-
+ Minimum value of Veto votes to Total votes ratio for proposal to
+ be
+ vetoed. Default value: 1/3.
+ description: QueryParamsResponse is the response type for the Query/Params RPC method.
+ cosmos.gov.v1beta1.QueryProposalResponse:
+ type: object
+ properties:
+ proposal:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ content:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ status:
+ type: string
+ enum:
+ - PROPOSAL_STATUS_UNSPECIFIED
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD
+ - PROPOSAL_STATUS_VOTING_PERIOD
+ - PROPOSAL_STATUS_PASSED
+ - PROPOSAL_STATUS_REJECTED
+ - PROPOSAL_STATUS_FAILED
+ default: PROPOSAL_STATUS_UNSPECIFIED
+ description: |-
+ ProposalStatus enumerates the valid statuses of a proposal.
+
+ - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
+ period.
+ - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
+ period.
+ - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
+ passed.
+ - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
+ been rejected.
+ - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
+ failed.
+ final_tally_result:
+ type: object
+ properties:
+ 'yes':
+ type: string
+ abstain:
+ type: string
+ 'no':
+ type: string
+ no_with_veto:
+ type: string
+ description: TallyResult defines a standard tally for a governance proposal.
+ submit_time:
+ type: string
+ format: date-time
+ deposit_end_time:
+ type: string
+ format: date-time
+ total_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ voting_start_time:
+ type: string
+ format: date-time
+ voting_end_time:
+ type: string
+ format: date-time
+ description: Proposal defines the core field members of a governance proposal.
+ description: >-
+ QueryProposalResponse is the response type for the Query/Proposal RPC
+ method.
+ cosmos.gov.v1beta1.QueryProposalsResponse:
+ type: object
+ properties:
+ proposals:
+ type: array
+ items:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ content:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ status:
+ type: string
+ enum:
+ - PROPOSAL_STATUS_UNSPECIFIED
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD
+ - PROPOSAL_STATUS_VOTING_PERIOD
+ - PROPOSAL_STATUS_PASSED
+ - PROPOSAL_STATUS_REJECTED
+ - PROPOSAL_STATUS_FAILED
+ default: PROPOSAL_STATUS_UNSPECIFIED
+ description: |-
+ ProposalStatus enumerates the valid statuses of a proposal.
+
+ - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
+ - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
+ period.
+ - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
+ period.
+ - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
+ passed.
+ - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
+ been rejected.
+ - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
+ failed.
+ final_tally_result:
+ type: object
+ properties:
+ 'yes':
+ type: string
+ abstain:
+ type: string
+ 'no':
+ type: string
+ no_with_veto:
+ type: string
+ description: TallyResult defines a standard tally for a governance proposal.
+ submit_time:
+ type: string
+ format: date-time
+ deposit_end_time:
+ type: string
+ format: date-time
+ total_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ voting_start_time:
+ type: string
+ format: date-time
+ voting_end_time:
+ type: string
+ format: date-time
+ description: Proposal defines the core field members of a governance proposal.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ QueryProposalsResponse is the response type for the Query/Proposals RPC
+ method.
+ cosmos.gov.v1beta1.QueryTallyResultResponse:
+ type: object
+ properties:
+ tally:
+ type: object
+ properties:
+ 'yes':
+ type: string
+ abstain:
+ type: string
+ 'no':
+ type: string
+ no_with_veto:
+ type: string
+ description: TallyResult defines a standard tally for a governance proposal.
+ description: >-
+ QueryTallyResultResponse is the response type for the Query/Tally RPC
+ method.
+ cosmos.gov.v1beta1.QueryVoteResponse:
+ type: object
+ properties:
+ vote:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ voter:
+ type: string
+ option:
+ description: >-
+ Deprecated: Prefer to use `options` instead. This field is set in
+ queries
+
+ if and only if `len(options) == 1` and that option has weight 1.
+ In all
+
+ other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ options:
+ type: array
+ items:
+ type: object
+ properties:
+ option:
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ description: >-
+ VoteOption enumerates the valid vote options for a given
+ governance proposal.
+
+ - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
+ - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
+ - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
+ - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
+ - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
+ weight:
+ type: string
+ description: WeightedVoteOption defines a unit of vote for vote split.
+ description: |-
+ Vote defines a vote on a governance proposal.
+ A Vote consists of a proposal ID, the voter, and the vote option.
+ description: QueryVoteResponse is the response type for the Query/Vote RPC method.
+ cosmos.gov.v1beta1.QueryVotesResponse:
+ type: object
+ properties:
+ votes:
+ type: array
+ items:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ voter:
+ type: string
+ option:
+ description: >-
+ Deprecated: Prefer to use `options` instead. This field is set
+ in queries
+
+ if and only if `len(options) == 1` and that option has weight 1.
+ In all
+
+ other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ options:
+ type: array
+ items:
+ type: object
+ properties:
+ option:
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ description: >-
+ VoteOption enumerates the valid vote options for a given
+ governance proposal.
+
+ - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
+ - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
+ - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
+ - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
+ - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
+ weight:
+ type: string
+ description: WeightedVoteOption defines a unit of vote for vote split.
+ description: |-
+ Vote defines a vote on a governance proposal.
+ A Vote consists of a proposal ID, the voter, and the vote option.
+ description: votes defined the queried votes.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: QueryVotesResponse is the response type for the Query/Votes RPC method.
+ cosmos.gov.v1beta1.TallyParams:
+ type: object
+ properties:
+ quorum:
+ type: string
+ format: byte
+ description: |-
+ Minimum percentage of total stake needed to vote for a result to be
+ considered valid.
+ threshold:
+ type: string
+ format: byte
+ description: >-
+ Minimum proportion of Yes votes for proposal to pass. Default value:
+ 0.5.
+ veto_threshold:
+ type: string
+ format: byte
+ description: |-
+ Minimum value of Veto votes to Total votes ratio for proposal to be
+ vetoed. Default value: 1/3.
+ description: TallyParams defines the params for tallying votes on governance proposals.
+ cosmos.gov.v1beta1.TallyResult:
+ type: object
+ properties:
+ 'yes':
+ type: string
+ abstain:
+ type: string
+ 'no':
+ type: string
+ no_with_veto:
+ type: string
+ description: TallyResult defines a standard tally for a governance proposal.
+ cosmos.gov.v1beta1.Vote:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ voter:
+ type: string
+ option:
+ description: >-
+ Deprecated: Prefer to use `options` instead. This field is set in
+ queries
+
+ if and only if `len(options) == 1` and that option has weight 1. In
+ all
+
+ other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ options:
+ type: array
+ items:
+ type: object
+ properties:
+ option:
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ description: >-
+ VoteOption enumerates the valid vote options for a given
+ governance proposal.
+
+ - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
+ - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
+ - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
+ - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
+ - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
+ weight:
+ type: string
+ description: WeightedVoteOption defines a unit of vote for vote split.
+ description: |-
+ Vote defines a vote on a governance proposal.
+ A Vote consists of a proposal ID, the voter, and the vote option.
+ cosmos.gov.v1beta1.VoteOption:
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ description: >-
+ VoteOption enumerates the valid vote options for a given governance
+ proposal.
+
+ - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
+ - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
+ - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
+ - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
+ - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
+ cosmos.gov.v1beta1.VotingParams:
+ type: object
+ properties:
+ voting_period:
+ type: string
+ description: Length of the voting period.
+ description: VotingParams defines the params for voting on governance proposals.
+ cosmos.gov.v1beta1.WeightedVoteOption:
+ type: object
+ properties:
+ option:
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ description: >-
+ VoteOption enumerates the valid vote options for a given governance
+ proposal.
+
+ - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
+ - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
+ - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
+ - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
+ - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
+ weight:
+ type: string
+ description: WeightedVoteOption defines a unit of vote for vote split.
+ cosmos.mint.v1beta1.Params:
+ type: object
+ properties:
+ mint_denom:
+ type: string
+ title: type of coin to mint
+ inflation_rate_change:
+ type: string
+ title: maximum annual change in inflation rate
+ inflation_max:
+ type: string
+ title: maximum inflation rate
+ inflation_min:
+ type: string
+ title: minimum inflation rate
+ goal_bonded:
+ type: string
+ title: goal of percent bonded atoms
+ blocks_per_year:
+ type: string
+ format: uint64
+ title: expected blocks per year
+ description: Params holds parameters for the mint module.
+ cosmos.mint.v1beta1.QueryAnnualProvisionsResponse:
+ type: object
+ properties:
+ annual_provisions:
+ type: string
+ format: byte
+ description: annual_provisions is the current minting annual provisions value.
+ description: |-
+ QueryAnnualProvisionsResponse is the response type for the
+ Query/AnnualProvisions RPC method.
+ cosmos.mint.v1beta1.QueryInflationResponse:
+ type: object
+ properties:
+ inflation:
+ type: string
+ format: byte
+ description: inflation is the current minting inflation value.
+ description: |-
+ QueryInflationResponse is the response type for the Query/Inflation RPC
+ method.
+ cosmos.mint.v1beta1.QueryParamsResponse:
+ type: object
+ properties:
+ params:
+ description: params defines the parameters of the module.
+ type: object
+ properties:
+ mint_denom:
+ type: string
+ title: type of coin to mint
+ inflation_rate_change:
+ type: string
+ title: maximum annual change in inflation rate
+ inflation_max:
+ type: string
+ title: maximum inflation rate
+ inflation_min:
+ type: string
+ title: minimum inflation rate
+ goal_bonded:
+ type: string
+ title: goal of percent bonded atoms
+ blocks_per_year:
+ type: string
+ format: uint64
+ title: expected blocks per year
+ description: QueryParamsResponse is the response type for the Query/Params RPC method.
+ cosmos.params.v1beta1.ParamChange:
+ type: object
+ properties:
+ subspace:
+ type: string
+ key:
+ type: string
+ value:
+ type: string
+ description: |-
+ ParamChange defines an individual parameter change, for use in
+ ParameterChangeProposal.
+ cosmos.params.v1beta1.QueryParamsResponse:
+ type: object
+ properties:
+ param:
+ description: param defines the queried parameter.
+ type: object
+ properties:
+ subspace:
+ type: string
+ key:
+ type: string
+ value:
+ type: string
+ description: QueryParamsResponse is response type for the Query/Params RPC method.
+ cosmos.slashing.v1beta1.MsgUnjailResponse:
+ type: object
+ title: MsgUnjailResponse defines the Msg/Unjail response type
+ cosmos.slashing.v1beta1.Params:
+ type: object
+ properties:
+ signed_blocks_window:
+ type: string
+ format: int64
+ min_signed_per_window:
+ type: string
+ format: byte
+ downtime_jail_duration:
+ type: string
+ slash_fraction_double_sign:
+ type: string
+ format: byte
+ slash_fraction_downtime:
+ type: string
+ format: byte
+ description: Params represents the parameters used for by the slashing module.
+ cosmos.slashing.v1beta1.QueryParamsResponse:
+ type: object
+ properties:
+ params:
+ type: object
+ properties:
+ signed_blocks_window:
+ type: string
+ format: int64
+ min_signed_per_window:
+ type: string
+ format: byte
+ downtime_jail_duration:
+ type: string
+ slash_fraction_double_sign:
+ type: string
+ format: byte
+ slash_fraction_downtime:
+ type: string
+ format: byte
+ description: Params represents the parameters used for by the slashing module.
+ title: QueryParamsResponse is the response type for the Query/Params RPC method
+ cosmos.slashing.v1beta1.QuerySigningInfoResponse:
+ type: object
+ properties:
+ val_signing_info:
+ type: object
+ properties:
+ address:
+ type: string
+ start_height:
+ type: string
+ format: int64
+ title: Height at which validator was first a candidate OR was unjailed
+ index_offset:
+ type: string
+ format: int64
+ description: >-
+ Index which is incremented each time the validator was a bonded
+
+ in a block and may have signed a precommit or not. This in
+ conjunction with the
+
+ `SignedBlocksWindow` param determines the index in the
+ `MissedBlocksBitArray`.
+ jailed_until:
+ type: string
+ format: date-time
+ description: >-
+ Timestamp until which the validator is jailed due to liveness
+ downtime.
+ tombstoned:
+ type: boolean
+ description: >-
+ Whether or not a validator has been tombstoned (killed out of
+ validator set). It is set
+
+ once the validator commits an equivocation or for any other
+ configured misbehiavor.
+ missed_blocks_counter:
+ type: string
+ format: int64
+ description: >-
+ A counter kept to avoid unnecessary array reads.
+
+ Note that `Sum(MissedBlocksBitArray)` always equals
+ `MissedBlocksCounter`.
+ description: >-
+ ValidatorSigningInfo defines a validator's signing info for monitoring
+ their
+
+ liveness activity.
+ title: val_signing_info is the signing info of requested val cons address
+ title: >-
+ QuerySigningInfoResponse is the response type for the Query/SigningInfo
+ RPC
+
+ method
+ cosmos.slashing.v1beta1.QuerySigningInfosResponse:
+ type: object
+ properties:
+ info:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ start_height:
+ type: string
+ format: int64
+ title: Height at which validator was first a candidate OR was unjailed
+ index_offset:
+ type: string
+ format: int64
+ description: >-
+ Index which is incremented each time the validator was a bonded
+
+ in a block and may have signed a precommit or not. This in
+ conjunction with the
+
+ `SignedBlocksWindow` param determines the index in the
+ `MissedBlocksBitArray`.
+ jailed_until:
+ type: string
+ format: date-time
+ description: >-
+ Timestamp until which the validator is jailed due to liveness
+ downtime.
+ tombstoned:
+ type: boolean
+ description: >-
+ Whether or not a validator has been tombstoned (killed out of
+ validator set). It is set
+
+ once the validator commits an equivocation or for any other
+ configured misbehiavor.
+ missed_blocks_counter:
+ type: string
+ format: int64
+ description: >-
+ A counter kept to avoid unnecessary array reads.
+
+ Note that `Sum(MissedBlocksBitArray)` always equals
+ `MissedBlocksCounter`.
+ description: >-
+ ValidatorSigningInfo defines a validator's signing info for
+ monitoring their
+
+ liveness activity.
+ title: info is the signing info of all validators
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ PageResponse is to be embedded in gRPC response messages where the
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
+ title: >-
+ QuerySigningInfosResponse is the response type for the Query/SigningInfos
+ RPC
+
+ method
+ cosmos.slashing.v1beta1.ValidatorSigningInfo:
+ type: object
+ properties:
+ address:
+ type: string
+ start_height:
+ type: string
+ format: int64
+ title: Height at which validator was first a candidate OR was unjailed
+ index_offset:
+ type: string
+ format: int64
+ description: >-
+ Index which is incremented each time the validator was a bonded
+
+ in a block and may have signed a precommit or not. This in conjunction
+ with the
+
+ `SignedBlocksWindow` param determines the index in the
+ `MissedBlocksBitArray`.
+ jailed_until:
+ type: string
+ format: date-time
+ description: >-
+ Timestamp until which the validator is jailed due to liveness
+ downtime.
+ tombstoned:
+ type: boolean
+ description: >-
+ Whether or not a validator has been tombstoned (killed out of
+ validator set). It is set
+
+ once the validator commits an equivocation or for any other configured
+ misbehiavor.
+ missed_blocks_counter:
+ type: string
+ format: int64
+ description: >-
+ A counter kept to avoid unnecessary array reads.
+
+ Note that `Sum(MissedBlocksBitArray)` always equals
+ `MissedBlocksCounter`.
+ description: >-
+ ValidatorSigningInfo defines a validator's signing info for monitoring
+ their
+
+ liveness activity.
+ cosmos.staking.v1beta1.BondStatus:
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ description: |-
+ BondStatus is the status of a validator.
+
+ - BOND_STATUS_UNSPECIFIED: UNSPECIFIED defines an invalid validator status.
+ - BOND_STATUS_UNBONDED: UNBONDED defines a validator that is not bonded.
+ - BOND_STATUS_UNBONDING: UNBONDING defines a validator that is unbonding.
+ - BOND_STATUS_BONDED: BONDED defines a validator that is bonded.
+ cosmos.staking.v1beta1.Commission:
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates to be used for
+ creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: 'rate is the commission rate charged to delegators, as a fraction.'
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which validator can
+ ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase of the
+ validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: update_time is the last time the commission rate was changed.
+ description: Commission defines commission parameters for a given validator.
+ cosmos.staking.v1beta1.CommissionRates:
+ type: object
+ properties:
+ rate:
+ type: string
+ description: 'rate is the commission rate charged to delegators, as a fraction.'
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which validator can ever
+ charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase of the validator
+ commission, as a fraction.
+ description: >-
+ CommissionRates defines the initial commission rates to be used for
+ creating
+
+ a validator.
+ cosmos.staking.v1beta1.Delegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: delegator_address is the bech32-encoded address of the delegator.
+ validator_address:
+ type: string
+ description: validator_address is the bech32-encoded address of the validator.
+ shares:
+ type: string
+ description: shares define the delegation shares received.
+ description: |-
+ Delegation represents the bond with tokens held by an account. It is
+ owned by one delegator, and is associated with the voting power of one
+ validator.
+ cosmos.staking.v1beta1.DelegationResponse:
+ type: object
+ properties:
+ delegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: delegator_address is the bech32-encoded address of the delegator.
+ validator_address:
+ type: string
+ description: validator_address is the bech32-encoded address of the validator.
+ shares:
+ type: string
+ description: shares define the delegation shares received.
+ description: |-
+ Delegation represents the bond with tokens held by an account. It is
+ owned by one delegator, and is associated with the voting power of one
+ validator.
+ balance:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: |-
+ DelegationResponse is equivalent to Delegation except that it contains a
+ balance in addition to shares which is more suitable for client responses.
+ cosmos.staking.v1beta1.Description:
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort or
+ Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: security_contact defines an optional email for security contact.
+ details:
+ type: string
+ description: details define other optional details.
+ description: Description defines a validator description.
+ cosmos.staking.v1beta1.HistoricalInfo:
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a block in
+ the blockchain,
+
+ including all blockchain data structures and the rules of the
+ application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ title: prev block info
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ valset:
+ type: array
+ items:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's
+ operator; bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed from bonded
+ status or not.
+ status:
+ description: status is the validator status (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: tokens define the delegated tokens (incl. self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a validator's
+ delegators.
+ description:
+ description: description defines the description terms for the validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort
+ or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at which this
+ validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for the
+ validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates to be
+ used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators, as a
+ fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase of
+ the validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: >-
+ update_time is the last time the commission rate was
+ changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared minimum
+ self delegation.
+ description: >-
+ Validator defines a validator, together with the total amount of the
+
+ Validator's bond shares and their exchange rate to coins. Slashing
+ results in
+
+ a decrease in the exchange rate, allowing correct calculation of
+ future
+
+ undelegations without iterating over delegators. When coins are
+ delegated to
+
+ this validator, the validator is credited with a delegation whose
+ number of
+
+ bond shares is based on the amount of coins delegated divided by the
+ current
+
+ exchange rate. Voting power can be calculated as total bonded shares
+
+ multiplied by exchange rate.
+ description: >-
+ HistoricalInfo contains header and validator information for a given
+ block.
+
+ It is stored as part of staking module's state, which persists the `n`
+ most
+
+ recent HistoricalInfo
+
+ (`n` is set by the staking module's `historical_entries` parameter).
+ cosmos.staking.v1beta1.MsgBeginRedelegateResponse:
+ type: object
+ properties:
+ completion_time:
+ type: string
+ format: date-time
+ description: MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.
+ cosmos.staking.v1beta1.MsgCreateValidatorResponse:
+ type: object
+ description: MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
+ cosmos.staking.v1beta1.MsgDelegateResponse:
+ type: object
+ description: MsgDelegateResponse defines the Msg/Delegate response type.
+ cosmos.staking.v1beta1.MsgEditValidatorResponse:
+ type: object
+ description: MsgEditValidatorResponse defines the Msg/EditValidator response type.
+ cosmos.staking.v1beta1.MsgUndelegateResponse:
+ type: object
+ properties:
+ completion_time:
+ type: string
+ format: date-time
+ description: MsgUndelegateResponse defines the Msg/Undelegate response type.
+ cosmos.staking.v1beta1.Params:
+ type: object
+ properties:
+ unbonding_time:
+ type: string
+ description: unbonding_time is the time duration of unbonding.
+ max_validators:
+ type: integer
+ format: int64
+ description: max_validators is the maximum number of validators.
+ max_entries:
+ type: integer
+ format: int64
+ description: >-
+ max_entries is the max entries for either unbonding delegation or
+ redelegation (per pair/trio).
+ historical_entries:
+ type: integer
+ format: int64
+ description: historical_entries is the number of historical entries to persist.
+ bond_denom:
+ type: string
+ description: bond_denom defines the bondable coin denomination.
+ description: Params defines the parameters for the staking module.
+ cosmos.staking.v1beta1.Pool:
+ type: object
+ properties:
+ not_bonded_tokens:
+ type: string
+ bonded_tokens:
+ type: string
+ description: |-
+ Pool is used for tracking bonded and not-bonded token supply of the bond
+ denomination.
+ cosmos.staking.v1beta1.QueryDelegationResponse:
+ type: object
+ properties:
+ delegation_response:
+ type: object
+ properties:
+ delegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of the
+ validator.
+ shares:
+ type: string
+ description: shares define the delegation shares received.
+ description: >-
+ Delegation represents the bond with tokens held by an account. It
+ is
+
+ owned by one delegator, and is associated with the voting power of
+ one
+
+ validator.
+ balance:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ DelegationResponse is equivalent to Delegation except that it contains
+ a
+
+ balance in addition to shares which is more suitable for client
+ responses.
+ description: >-
+ QueryDelegationResponse is response type for the Query/Delegation RPC
+ method.
+ cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse:
+ type: object
+ properties:
+ delegation_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ delegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of the
+ validator.
+ shares:
+ type: string
+ description: shares define the delegation shares received.
+ description: >-
+ Delegation represents the bond with tokens held by an account.
+ It is
+
+ owned by one delegator, and is associated with the voting power
+ of one
+
+ validator.
+ balance:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ DelegationResponse is equivalent to Delegation except that it
+ contains a
+
+ balance in addition to shares which is more suitable for client
+ responses.
+ description: delegation_responses defines all the delegations' info of a delegator.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ QueryDelegatorDelegationsResponse is response type for the
+ Query/DelegatorDelegations RPC method.
+ cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse:
+ type: object
+ properties:
+ unbonding_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of the
+ validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height is the height which the unbonding took
+ place.
+ completion_time:
+ type: string
+ format: date-time
+ description: completion_time is the unix time for unbonding completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the tokens initially scheduled to
+ receive at completion.
+ balance:
+ type: string
+ description: balance defines the tokens to receive at completion.
+ description: >-
+ UnbondingDelegationEntry defines an unbonding object with
+ relevant metadata.
+ description: entries are the unbonding delegation entries.
+ description: >-
+ UnbondingDelegation stores all of a single delegator's unbonding
+ bonds
+
+ for a single validator in an time-ordered list.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ QueryUnbondingDelegatorDelegationsResponse is response type for the
+ Query/UnbondingDelegatorDelegations RPC method.
+ cosmos.staking.v1beta1.QueryDelegatorValidatorResponse:
+ type: object
+ properties:
+ validator:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's operator;
+ bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed from bonded
+ status or not.
+ status:
+ description: status is the validator status (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: tokens define the delegated tokens (incl. self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a validator's
+ delegators.
+ description:
+ description: description defines the description terms for the validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort or
+ Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at which this
+ validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for the
+ validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates to be
+ used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators, as a
+ fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase of the
+ validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: update_time is the last time the commission rate was changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared minimum self
+ delegation.
+ description: >-
+ Validator defines a validator, together with the total amount of the
+
+ Validator's bond shares and their exchange rate to coins. Slashing
+ results in
+
+ a decrease in the exchange rate, allowing correct calculation of
+ future
+
+ undelegations without iterating over delegators. When coins are
+ delegated to
+
+ this validator, the validator is credited with a delegation whose
+ number of
+
+ bond shares is based on the amount of coins delegated divided by the
+ current
+
+ exchange rate. Voting power can be calculated as total bonded shares
+
+ multiplied by exchange rate.
+ description: |-
+ QueryDelegatorValidatorResponse response type for the
+ Query/DelegatorValidator RPC method.
+ cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's
+ operator; bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed from bonded
+ status or not.
+ status:
+ description: status is the validator status (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: tokens define the delegated tokens (incl. self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a validator's
+ delegators.
+ description:
+ description: description defines the description terms for the validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort
+ or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at which this
+ validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for the
+ validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates to be
+ used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators, as a
+ fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase of
+ the validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: >-
+ update_time is the last time the commission rate was
+ changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared minimum
+ self delegation.
+ description: >-
+ Validator defines a validator, together with the total amount of the
+
+ Validator's bond shares and their exchange rate to coins. Slashing
+ results in
+
+ a decrease in the exchange rate, allowing correct calculation of
+ future
+
+ undelegations without iterating over delegators. When coins are
+ delegated to
+
+ this validator, the validator is credited with a delegation whose
+ number of
+
+ bond shares is based on the amount of coins delegated divided by the
+ current
+
+ exchange rate. Voting power can be calculated as total bonded shares
+
+ multiplied by exchange rate.
+ description: validators defines the the validators' info of a delegator.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ QueryDelegatorValidatorsResponse is response type for the
+ Query/DelegatorValidators RPC method.
+ cosmos.staking.v1beta1.QueryHistoricalInfoResponse:
+ type: object
+ properties:
+ hist:
+ description: hist defines the historical info at the given height.
+ type: object
+ properties:
+ header:
+ type: object
+ properties:
+ version:
+ title: basic block info
+ type: object
+ properties:
+ block:
+ type: string
+ format: uint64
+ app:
+ type: string
+ format: uint64
+ description: >-
+ Consensus captures the consensus rules for processing a block
+ in the blockchain,
+
+ including all blockchain data structures and the rules of the
+ application's
+
+ state transition machine.
+ chain_id:
+ type: string
+ height:
+ type: string
+ format: int64
+ time:
+ type: string
+ format: date-time
+ last_block_id:
+ title: prev block info
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ part_set_header:
+ type: object
+ properties:
+ total:
+ type: integer
+ format: int64
+ hash:
+ type: string
+ format: byte
+ title: PartsetHeader
+ last_commit_hash:
+ type: string
+ format: byte
+ title: hashes of block data
+ data_hash:
+ type: string
+ format: byte
+ validators_hash:
+ type: string
+ format: byte
+ title: hashes from the app output from the prev block
+ next_validators_hash:
+ type: string
+ format: byte
+ consensus_hash:
+ type: string
+ format: byte
+ app_hash:
+ type: string
+ format: byte
+ last_results_hash:
+ type: string
+ format: byte
+ evidence_hash:
+ type: string
+ format: byte
+ title: consensus info
+ proposer_address:
+ type: string
+ format: byte
+ description: Header defines the structure of a Tendermint block header.
+ valset:
+ type: array
+ items:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's
+ operator; bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed from
+ bonded status or not.
+ status:
+ description: status is the validator status (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: tokens define the delegated tokens (incl. self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a
+ validator's delegators.
+ description:
+ description: description defines the description terms for the validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex.
+ UPort or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at which
+ this validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for the
+ validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates to
+ be used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators,
+ as a fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase
+ of the validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: >-
+ update_time is the last time the commission rate was
+ changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared minimum
+ self delegation.
+ description: >-
+ Validator defines a validator, together with the total amount of
+ the
+
+ Validator's bond shares and their exchange rate to coins.
+ Slashing results in
+
+ a decrease in the exchange rate, allowing correct calculation of
+ future
+
+ undelegations without iterating over delegators. When coins are
+ delegated to
+
+ this validator, the validator is credited with a delegation
+ whose number of
+
+ bond shares is based on the amount of coins delegated divided by
+ the current
+
+ exchange rate. Voting power can be calculated as total bonded
+ shares
+
+ multiplied by exchange rate.
+ description: >-
+ QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo
+ RPC
+
+ method.
+ cosmos.staking.v1beta1.QueryParamsResponse:
+ type: object
+ properties:
+ params:
+ description: params holds all the parameters of this module.
+ type: object
+ properties:
+ unbonding_time:
+ type: string
+ description: unbonding_time is the time duration of unbonding.
+ max_validators:
+ type: integer
+ format: int64
+ description: max_validators is the maximum number of validators.
+ max_entries:
+ type: integer
+ format: int64
+ description: >-
+ max_entries is the max entries for either unbonding delegation or
+ redelegation (per pair/trio).
+ historical_entries:
+ type: integer
+ format: int64
+ description: historical_entries is the number of historical entries to persist.
+ bond_denom:
+ type: string
+ description: bond_denom defines the bondable coin denomination.
+ description: QueryParamsResponse is response type for the Query/Params RPC method.
+ cosmos.staking.v1beta1.QueryPoolResponse:
+ type: object
+ properties:
+ pool:
+ description: pool defines the pool info.
+ type: object
+ properties:
+ not_bonded_tokens:
+ type: string
+ bonded_tokens:
+ type: string
+ description: QueryPoolResponse is response type for the Query/Pool RPC method.
+ cosmos.staking.v1beta1.QueryRedelegationsResponse:
+ type: object
+ properties:
+ redelegation_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ redelegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_src_address:
+ type: string
+ description: >-
+ validator_src_address is the validator redelegation source
+ operator address.
+ validator_dst_address:
+ type: string
+ description: >-
+ validator_dst_address is the validator redelegation
+ destination operator address.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height defines the height which the
+ redelegation took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time defines the unix time for redelegation
+ completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the initial balance when
+ redelegation started.
+ shares_dst:
+ type: string
+ description: >-
+ shares_dst is the amount of destination-validator
+ shares created by redelegation.
+ description: >-
+ RedelegationEntry defines a redelegation object with
+ relevant metadata.
+ description: entries are the redelegation entries.
+ description: >-
+ Redelegation contains the list of a particular delegator's
+ redelegating bonds
+
+ from a particular source validator to a particular destination
+ validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ redelegation_entry:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height defines the height which the
+ redelegation took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time defines the unix time for redelegation
+ completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the initial balance when
+ redelegation started.
+ shares_dst:
+ type: string
+ description: >-
+ shares_dst is the amount of destination-validator
+ shares created by redelegation.
+ description: >-
+ RedelegationEntry defines a redelegation object with
+ relevant metadata.
+ balance:
+ type: string
+ description: >-
+ RedelegationEntryResponse is equivalent to a RedelegationEntry
+ except that it
+
+ contains a balance in addition to shares which is more
+ suitable for client
+
+ responses.
+ description: >-
+ RedelegationResponse is equivalent to a Redelegation except that its
+ entries
+
+ contain a balance in addition to shares which is more suitable for
+ client
+
+ responses.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ QueryRedelegationsResponse is response type for the Query/Redelegations
+ RPC
+
+ method.
+ cosmos.staking.v1beta1.QueryUnbondingDelegationResponse:
+ type: object
+ properties:
+ unbond:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: delegator_address is the bech32-encoded address of the delegator.
+ validator_address:
+ type: string
+ description: validator_address is the bech32-encoded address of the validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height is the height which the unbonding took
+ place.
+ completion_time:
+ type: string
+ format: date-time
+ description: completion_time is the unix time for unbonding completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the tokens initially scheduled to
+ receive at completion.
+ balance:
+ type: string
+ description: balance defines the tokens to receive at completion.
+ description: >-
+ UnbondingDelegationEntry defines an unbonding object with
+ relevant metadata.
+ description: entries are the unbonding delegation entries.
+ description: |-
+ UnbondingDelegation stores all of a single delegator's unbonding bonds
+ for a single validator in an time-ordered list.
+ description: |-
+ QueryDelegationResponse is response type for the Query/UnbondingDelegation
+ RPC method.
+ cosmos.staking.v1beta1.QueryValidatorDelegationsResponse:
+ type: object
+ properties:
+ delegation_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ delegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of the
+ validator.
+ shares:
+ type: string
+ description: shares define the delegation shares received.
+ description: >-
+ Delegation represents the bond with tokens held by an account.
+ It is
+
+ owned by one delegator, and is associated with the voting power
+ of one
+
+ validator.
+ balance:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ DelegationResponse is equivalent to Delegation except that it
+ contains a
+
+ balance in addition to shares which is more suitable for client
+ responses.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ title: |-
+ QueryValidatorDelegationsResponse is response type for the
+ Query/ValidatorDelegations RPC method
+ cosmos.staking.v1beta1.QueryValidatorResponse:
+ type: object
+ properties:
+ validator:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's operator;
+ bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed from bonded
+ status or not.
+ status:
+ description: status is the validator status (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: tokens define the delegated tokens (incl. self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a validator's
+ delegators.
+ description:
+ description: description defines the description terms for the validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort or
+ Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at which this
+ validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for the
+ validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates to be
+ used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators, as a
+ fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase of the
+ validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: update_time is the last time the commission rate was changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared minimum self
+ delegation.
+ description: >-
+ Validator defines a validator, together with the total amount of the
+
+ Validator's bond shares and their exchange rate to coins. Slashing
+ results in
+
+ a decrease in the exchange rate, allowing correct calculation of
+ future
+
+ undelegations without iterating over delegators. When coins are
+ delegated to
+
+ this validator, the validator is credited with a delegation whose
+ number of
+
+ bond shares is based on the amount of coins delegated divided by the
+ current
+
+ exchange rate. Voting power can be calculated as total bonded shares
+
+ multiplied by exchange rate.
+ title: QueryValidatorResponse is response type for the Query/Validator RPC method
+ cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse:
+ type: object
+ properties:
+ unbonding_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: >-
+ delegator_address is the bech32-encoded address of the
+ delegator.
+ validator_address:
+ type: string
+ description: >-
+ validator_address is the bech32-encoded address of the
+ validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height is the height which the unbonding took
+ place.
+ completion_time:
+ type: string
+ format: date-time
+ description: completion_time is the unix time for unbonding completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the tokens initially scheduled to
+ receive at completion.
+ balance:
+ type: string
+ description: balance defines the tokens to receive at completion.
+ description: >-
+ UnbondingDelegationEntry defines an unbonding object with
+ relevant metadata.
+ description: entries are the unbonding delegation entries.
+ description: >-
+ UnbondingDelegation stores all of a single delegator's unbonding
+ bonds
+
+ for a single validator in an time-ordered list.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ QueryValidatorUnbondingDelegationsResponse is response type for the
+ Query/ValidatorUnbondingDelegations RPC method.
+ cosmos.staking.v1beta1.QueryValidatorsResponse:
+ type: object
+ properties:
+ validators:
+ type: array
+ items:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's
+ operator; bech encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed from bonded
+ status or not.
+ status:
+ description: status is the validator status (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: tokens define the delegated tokens (incl. self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a validator's
+ delegators.
+ description:
+ description: description defines the description terms for the validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort
+ or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at which this
+ validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for the
+ validator to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates to be
+ used for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators, as a
+ fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase of
+ the validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: >-
+ update_time is the last time the commission rate was
+ changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared minimum
+ self delegation.
+ description: >-
+ Validator defines a validator, together with the total amount of the
+
+ Validator's bond shares and their exchange rate to coins. Slashing
+ results in
+
+ a decrease in the exchange rate, allowing correct calculation of
+ future
+
+ undelegations without iterating over delegators. When coins are
+ delegated to
+
+ this validator, the validator is credited with a delegation whose
+ number of
+
+ bond shares is based on the amount of coins delegated divided by the
+ current
+
+ exchange rate. Voting power can be calculated as total bonded shares
+
+ multiplied by exchange rate.
+ description: validators contains all the queried validators.
+ pagination:
+ description: pagination defines the pagination in the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ title: >-
+ QueryValidatorsResponse is response type for the Query/Validators RPC
+ method
+ cosmos.staking.v1beta1.Redelegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: delegator_address is the bech32-encoded address of the delegator.
+ validator_src_address:
+ type: string
+ description: >-
+ validator_src_address is the validator redelegation source operator
+ address.
+ validator_dst_address:
+ type: string
+ description: >-
+ validator_dst_address is the validator redelegation destination
+ operator address.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height defines the height which the redelegation took
+ place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time defines the unix time for redelegation
+ completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the initial balance when redelegation
+ started.
+ shares_dst:
+ type: string
+ description: >-
+ shares_dst is the amount of destination-validator shares created
+ by redelegation.
+ description: >-
+ RedelegationEntry defines a redelegation object with relevant
+ metadata.
+ description: entries are the redelegation entries.
+ description: >-
+ Redelegation contains the list of a particular delegator's redelegating
+ bonds
+
+ from a particular source validator to a particular destination validator.
+ cosmos.staking.v1beta1.RedelegationEntry:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: creation_height defines the height which the redelegation took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: completion_time defines the unix time for redelegation completion.
+ initial_balance:
+ type: string
+ description: initial_balance defines the initial balance when redelegation started.
+ shares_dst:
+ type: string
+ description: >-
+ shares_dst is the amount of destination-validator shares created by
+ redelegation.
+ description: RedelegationEntry defines a redelegation object with relevant metadata.
+ cosmos.staking.v1beta1.RedelegationEntryResponse:
+ type: object
+ properties:
+ redelegation_entry:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height defines the height which the redelegation took
+ place.
+ completion_time:
+ type: string
+ format: date-time
+ description: completion_time defines the unix time for redelegation completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the initial balance when redelegation
+ started.
+ shares_dst:
+ type: string
+ description: >-
+ shares_dst is the amount of destination-validator shares created
+ by redelegation.
+ description: >-
+ RedelegationEntry defines a redelegation object with relevant
+ metadata.
+ balance:
+ type: string
+ description: >-
+ RedelegationEntryResponse is equivalent to a RedelegationEntry except that
+ it
+
+ contains a balance in addition to shares which is more suitable for client
+
+ responses.
+ cosmos.staking.v1beta1.RedelegationResponse:
+ type: object
+ properties:
+ redelegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: delegator_address is the bech32-encoded address of the delegator.
+ validator_src_address:
+ type: string
+ description: >-
+ validator_src_address is the validator redelegation source
+ operator address.
+ validator_dst_address:
+ type: string
+ description: >-
+ validator_dst_address is the validator redelegation destination
+ operator address.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height defines the height which the redelegation
+ took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time defines the unix time for redelegation
+ completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the initial balance when
+ redelegation started.
+ shares_dst:
+ type: string
+ description: >-
+ shares_dst is the amount of destination-validator shares
+ created by redelegation.
+ description: >-
+ RedelegationEntry defines a redelegation object with relevant
+ metadata.
+ description: entries are the redelegation entries.
+ description: >-
+ Redelegation contains the list of a particular delegator's
+ redelegating bonds
+
+ from a particular source validator to a particular destination
+ validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ redelegation_entry:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: >-
+ creation_height defines the height which the redelegation
+ took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ completion_time defines the unix time for redelegation
+ completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the initial balance when
+ redelegation started.
+ shares_dst:
+ type: string
+ description: >-
+ shares_dst is the amount of destination-validator shares
+ created by redelegation.
+ description: >-
+ RedelegationEntry defines a redelegation object with relevant
+ metadata.
+ balance:
+ type: string
+ description: >-
+ RedelegationEntryResponse is equivalent to a RedelegationEntry
+ except that it
+
+ contains a balance in addition to shares which is more suitable for
+ client
+
+ responses.
+ description: >-
+ RedelegationResponse is equivalent to a Redelegation except that its
+ entries
+
+ contain a balance in addition to shares which is more suitable for client
+
+ responses.
+ cosmos.staking.v1beta1.UnbondingDelegation:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ description: delegator_address is the bech32-encoded address of the delegator.
+ validator_address:
+ type: string
+ description: validator_address is the bech32-encoded address of the validator.
+ entries:
+ type: array
+ items:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: creation_height is the height which the unbonding took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: completion_time is the unix time for unbonding completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the tokens initially scheduled to
+ receive at completion.
+ balance:
+ type: string
+ description: balance defines the tokens to receive at completion.
+ description: >-
+ UnbondingDelegationEntry defines an unbonding object with relevant
+ metadata.
+ description: entries are the unbonding delegation entries.
+ description: |-
+ UnbondingDelegation stores all of a single delegator's unbonding bonds
+ for a single validator in an time-ordered list.
+ cosmos.staking.v1beta1.UnbondingDelegationEntry:
+ type: object
+ properties:
+ creation_height:
+ type: string
+ format: int64
+ description: creation_height is the height which the unbonding took place.
+ completion_time:
+ type: string
+ format: date-time
+ description: completion_time is the unix time for unbonding completion.
+ initial_balance:
+ type: string
+ description: >-
+ initial_balance defines the tokens initially scheduled to receive at
+ completion.
+ balance:
+ type: string
+ description: balance defines the tokens to receive at completion.
+ description: >-
+ UnbondingDelegationEntry defines an unbonding object with relevant
+ metadata.
+ cosmos.staking.v1beta1.Validator:
+ type: object
+ properties:
+ operator_address:
+ type: string
+ description: >-
+ operator_address defines the address of the validator's operator; bech
+ encoded in JSON.
+ consensus_pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ jailed:
+ type: boolean
+ description: >-
+ jailed defined whether the validator has been jailed from bonded
+ status or not.
+ status:
+ description: status is the validator status (bonded/unbonding/unbonded).
+ type: string
+ enum:
+ - BOND_STATUS_UNSPECIFIED
+ - BOND_STATUS_UNBONDED
+ - BOND_STATUS_UNBONDING
+ - BOND_STATUS_BONDED
+ default: BOND_STATUS_UNSPECIFIED
+ tokens:
+ type: string
+ description: tokens define the delegated tokens (incl. self-delegation).
+ delegator_shares:
+ type: string
+ description: >-
+ delegator_shares defines total shares issued to a validator's
+ delegators.
+ description:
+ description: description defines the description terms for the validator.
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort or
+ Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: security_contact defines an optional email for security contact.
+ details:
+ type: string
+ description: details define other optional details.
+ unbonding_height:
+ type: string
+ format: int64
+ description: >-
+ unbonding_height defines, if unbonding, the height at which this
+ validator has begun unbonding.
+ unbonding_time:
+ type: string
+ format: date-time
+ description: >-
+ unbonding_time defines, if unbonding, the min time for the validator
+ to complete unbonding.
+ commission:
+ description: commission defines the commission parameters.
+ type: object
+ properties:
+ commission_rates:
+ description: >-
+ commission_rates defines the initial commission rates to be used
+ for creating a validator.
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators, as a
+ fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which validator
+ can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase of the
+ validator commission, as a fraction.
+ update_time:
+ type: string
+ format: date-time
+ description: update_time is the last time the commission rate was changed.
+ min_self_delegation:
+ type: string
+ description: >-
+ min_self_delegation is the validator's self declared minimum self
+ delegation.
+ description: >-
+ Validator defines a validator, together with the total amount of the
+
+ Validator's bond shares and their exchange rate to coins. Slashing results
+ in
+
+ a decrease in the exchange rate, allowing correct calculation of future
+
+ undelegations without iterating over delegators. When coins are delegated
+ to
+
+ this validator, the validator is credited with a delegation whose number
+ of
+
+ bond shares is based on the amount of coins delegated divided by the
+ current
+
+ exchange rate. Voting power can be calculated as total bonded shares
+
+ multiplied by exchange rate.
+ cosmos.base.abci.v1beta1.ABCIMessageLog:
+ type: object
+ properties:
+ msg_index:
+ type: integer
+ format: int64
+ log:
+ type: string
+ events:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ value:
+ type: string
+ description: >-
+ Attribute defines an attribute wrapper where the key and value
+ are
+
+ strings instead of raw bytes.
+ description: |-
+ StringEvent defines en Event object wrapper where all the attributes
+ contain key/value pairs that are strings instead of raw bytes.
+ description: |-
+ Events contains a slice of Event objects that were emitted during some
+ execution.
+ description: >-
+ ABCIMessageLog defines a structure containing an indexed tx ABCI message
+ log.
+ cosmos.base.abci.v1beta1.Attribute:
+ type: object
+ properties:
+ key:
+ type: string
+ value:
+ type: string
+ description: |-
+ Attribute defines an attribute wrapper where the key and value are
+ strings instead of raw bytes.
+ cosmos.base.abci.v1beta1.GasInfo:
+ type: object
+ properties:
+ gas_wanted:
+ type: string
+ format: uint64
+ description: GasWanted is the maximum units of work we allow this tx to perform.
+ gas_used:
+ type: string
+ format: uint64
+ description: GasUsed is the amount of gas actually consumed.
+ description: GasInfo defines tx execution gas context.
+ cosmos.base.abci.v1beta1.Result:
+ type: object
+ properties:
+ data:
+ type: string
+ format: byte
+ description: >-
+ Data is any data returned from message or handler execution. It MUST
+ be
+
+ length prefixed in order to separate data from multiple message
+ executions.
+ log:
+ type: string
+ description: Log contains the log information from message or handler execution.
+ events:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ format: byte
+ value:
+ type: string
+ format: byte
+ index:
+ type: boolean
+ description: >-
+ EventAttribute is a single key-value pair, associated with an
+ event.
+ description: >-
+ Event allows application developers to attach additional information
+ to
+
+ ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and
+ ResponseDeliverTx.
+
+ Later, transactions may be queried using these events.
+ description: >-
+ Events contains a slice of Event objects that were emitted during
+ message
+
+ or handler execution.
+ description: Result is the union of ResponseFormat and ResponseCheckTx.
+ cosmos.base.abci.v1beta1.StringEvent:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ value:
+ type: string
+ description: |-
+ Attribute defines an attribute wrapper where the key and value are
+ strings instead of raw bytes.
+ description: |-
+ StringEvent defines en Event object wrapper where all the attributes
+ contain key/value pairs that are strings instead of raw bytes.
+ cosmos.base.abci.v1beta1.TxResponse:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ title: The block height
+ txhash:
+ type: string
+ description: The transaction hash.
+ codespace:
+ type: string
+ title: Namespace for the Code
+ code:
+ type: integer
+ format: int64
+ description: Response code.
+ data:
+ type: string
+ description: 'Result bytes, if any.'
+ raw_log:
+ type: string
+ description: |-
+ The output of the application's logger (raw string). May be
+ non-deterministic.
+ logs:
+ type: array
+ items:
+ type: object
+ properties:
+ msg_index:
+ type: integer
+ format: int64
+ log:
+ type: string
+ events:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ value:
+ type: string
+ description: >-
+ Attribute defines an attribute wrapper where the key and
+ value are
+
+ strings instead of raw bytes.
+ description: >-
+ StringEvent defines en Event object wrapper where all the
+ attributes
+
+ contain key/value pairs that are strings instead of raw bytes.
+ description: >-
+ Events contains a slice of Event objects that were emitted
+ during some
+
+ execution.
+ description: >-
+ ABCIMessageLog defines a structure containing an indexed tx ABCI
+ message log.
+ description: >-
+ The output of the application's logger (typed). May be
+ non-deterministic.
+ info:
+ type: string
+ description: Additional information. May be non-deterministic.
+ gas_wanted:
+ type: string
+ format: int64
+ description: Amount of gas requested for transaction.
+ gas_used:
+ type: string
+ format: int64
+ description: Amount of gas consumed by transaction.
+ tx:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ timestamp:
+ type: string
+ description: >-
+ Time of the previous block. For heights > 1, it's the weighted median
+ of
+
+ the timestamps of the valid votes in the block.LastCommit. For height
+ == 1,
+
+ it's genesis time.
+ description: >-
+ TxResponse defines a structure containing relevant tx data and metadata.
+ The
+
+ tags are stringified and the log is JSON decoded.
+ cosmos.crypto.multisig.v1beta1.CompactBitArray:
+ type: object
+ properties:
+ extra_bits_stored:
+ type: integer
+ format: int64
+ elems:
+ type: string
+ format: byte
+ description: |-
+ CompactBitArray is an implementation of a space efficient bit array.
+ This is used to ensure that the encoded data takes up a minimal amount of
+ space after proto encoding.
+ This is not thread safe, and is not intended for concurrent usage.
+ cosmos.tx.signing.v1beta1.SignMode:
+ type: string
+ enum:
+ - SIGN_MODE_UNSPECIFIED
+ - SIGN_MODE_DIRECT
+ - SIGN_MODE_TEXTUAL
+ - SIGN_MODE_LEGACY_AMINO_JSON
+ default: SIGN_MODE_UNSPECIFIED
+ description: |-
+ SignMode represents a signing mode with its own security guarantees.
+
+ - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
+ rejected
+ - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
+ verified with raw bytes from Tx
+ - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some
+ human-readable textual representation on top of the binary representation
+ from SIGN_MODE_DIRECT
+ - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
+ Amino JSON and will be removed in the future
+ cosmos.tx.v1beta1.AuthInfo:
+ type: object
+ properties:
+ signer_infos:
+ type: array
+ items:
+ $ref: '#/definitions/cosmos.tx.v1beta1.SignerInfo'
+ description: >-
+ signer_infos defines the signing modes for the required signers. The
+ number
+
+ and order of elements must match the required signers from TxBody's
+
+ messages. The first element is the primary signer and the one which
+ pays
+
+ the fee.
+ fee:
+ description: >-
+ Fee is the fee and gas limit for the transaction. The first signer is
+ the
+
+ primary signer and the one which pays the fee. The fee can be
+ calculated
+
+ based on the cost of evaluating the body and doing signature
+ verification
+
+ of the signers. This can be estimated via simulation.
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ title: amount is the amount of coins to be paid as a fee
+ gas_limit:
+ type: string
+ format: uint64
+ title: >-
+ gas_limit is the maximum gas that can be used in transaction
+ processing
+
+ before an out of gas error occurs
+ payer:
+ type: string
+ description: >-
+ if unset, the first signer is responsible for paying the fees. If
+ set, the specified account must pay the fees.
+
+ the payer must be a tx signer (and thus have signed this field in
+ AuthInfo).
+
+ setting this field does *not* change the ordering of required
+ signers for the transaction.
+ granter:
+ type: string
+ title: >-
+ if set, the fee payer (either the first signer or the value of the
+ payer field) requests that a fee grant be used
+
+ to pay fees instead of the fee payer's own balance. If an
+ appropriate fee grant does not exist or the chain does
+
+ not support fee grants, this will fail
+ description: |-
+ AuthInfo describes the fee and signer modes that are used to sign a
+ transaction.
+ cosmos.tx.v1beta1.BroadcastMode:
+ type: string
+ enum:
+ - BROADCAST_MODE_UNSPECIFIED
+ - BROADCAST_MODE_BLOCK
+ - BROADCAST_MODE_SYNC
+ - BROADCAST_MODE_ASYNC
+ default: BROADCAST_MODE_UNSPECIFIED
+ description: >-
+ BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC
+ method.
+
+ - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
+ - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
+ the tx to be committed in a block.
+ - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
+ a CheckTx execution response only.
+ - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
+ immediately.
+ cosmos.tx.v1beta1.BroadcastTxRequest:
+ type: object
+ properties:
+ tx_bytes:
+ type: string
+ format: byte
+ description: tx_bytes is the raw transaction.
+ mode:
+ type: string
+ enum:
+ - BROADCAST_MODE_UNSPECIFIED
+ - BROADCAST_MODE_BLOCK
+ - BROADCAST_MODE_SYNC
+ - BROADCAST_MODE_ASYNC
+ default: BROADCAST_MODE_UNSPECIFIED
+ description: >-
+ BroadcastMode specifies the broadcast mode for the TxService.Broadcast
+ RPC method.
+
+ - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
+ - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
+ the tx to be committed in a block.
+ - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
+ a CheckTx execution response only.
+ - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
+ immediately.
+ description: |-
+ BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
+ RPC method.
+ cosmos.tx.v1beta1.BroadcastTxResponse:
+ type: object
+ properties:
+ tx_response:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ title: The block height
+ txhash:
+ type: string
+ description: The transaction hash.
+ codespace:
+ type: string
+ title: Namespace for the Code
+ code:
+ type: integer
+ format: int64
+ description: Response code.
+ data:
+ type: string
+ description: 'Result bytes, if any.'
+ raw_log:
+ type: string
+ description: |-
+ The output of the application's logger (raw string). May be
+ non-deterministic.
+ logs:
+ type: array
+ items:
+ type: object
+ properties:
+ msg_index:
+ type: integer
+ format: int64
+ log:
+ type: string
+ events:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ value:
+ type: string
+ description: >-
+ Attribute defines an attribute wrapper where the key
+ and value are
+
+ strings instead of raw bytes.
+ description: >-
+ StringEvent defines en Event object wrapper where all the
+ attributes
+
+ contain key/value pairs that are strings instead of raw
+ bytes.
+ description: >-
+ Events contains a slice of Event objects that were emitted
+ during some
+
+ execution.
+ description: >-
+ ABCIMessageLog defines a structure containing an indexed tx ABCI
+ message log.
+ description: >-
+ The output of the application's logger (typed). May be
+ non-deterministic.
+ info:
+ type: string
+ description: Additional information. May be non-deterministic.
+ gas_wanted:
+ type: string
+ format: int64
+ description: Amount of gas requested for transaction.
+ gas_used:
+ type: string
+ format: int64
+ description: Amount of gas consumed by transaction.
+ tx:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ timestamp:
+ type: string
+ description: >-
+ Time of the previous block. For heights > 1, it's the weighted
+ median of
+
+ the timestamps of the valid votes in the block.LastCommit. For
+ height == 1,
+
+ it's genesis time.
+ description: >-
+ TxResponse defines a structure containing relevant tx data and
+ metadata. The
+
+ tags are stringified and the log is JSON decoded.
+ description: |-
+ BroadcastTxResponse is the response type for the
+ Service.BroadcastTx method.
+ cosmos.tx.v1beta1.Fee:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ title: amount is the amount of coins to be paid as a fee
+ gas_limit:
+ type: string
+ format: uint64
+ title: >-
+ gas_limit is the maximum gas that can be used in transaction
+ processing
+
+ before an out of gas error occurs
+ payer:
+ type: string
+ description: >-
+ if unset, the first signer is responsible for paying the fees. If set,
+ the specified account must pay the fees.
+
+ the payer must be a tx signer (and thus have signed this field in
+ AuthInfo).
+
+ setting this field does *not* change the ordering of required signers
+ for the transaction.
+ granter:
+ type: string
+ title: >-
+ if set, the fee payer (either the first signer or the value of the
+ payer field) requests that a fee grant be used
+
+ to pay fees instead of the fee payer's own balance. If an appropriate
+ fee grant does not exist or the chain does
+
+ not support fee grants, this will fail
+ description: >-
+ Fee includes the amount of coins paid in fees and the maximum
+
+ gas to be used by the transaction. The ratio yields an effective
+ "gasprice",
+
+ which must be above some miminum to be accepted into the mempool.
+ cosmos.tx.v1beta1.GetTxResponse:
+ type: object
+ properties:
+ tx:
+ $ref: '#/definitions/cosmos.tx.v1beta1.Tx'
+ description: tx is the queried transaction.
+ tx_response:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ title: The block height
+ txhash:
+ type: string
+ description: The transaction hash.
+ codespace:
+ type: string
+ title: Namespace for the Code
+ code:
+ type: integer
+ format: int64
+ description: Response code.
+ data:
+ type: string
+ description: 'Result bytes, if any.'
+ raw_log:
+ type: string
+ description: |-
+ The output of the application's logger (raw string). May be
+ non-deterministic.
+ logs:
+ type: array
+ items:
+ type: object
+ properties:
+ msg_index:
+ type: integer
+ format: int64
+ log:
+ type: string
+ events:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ value:
+ type: string
+ description: >-
+ Attribute defines an attribute wrapper where the key
+ and value are
+
+ strings instead of raw bytes.
+ description: >-
+ StringEvent defines en Event object wrapper where all the
+ attributes
+
+ contain key/value pairs that are strings instead of raw
+ bytes.
+ description: >-
+ Events contains a slice of Event objects that were emitted
+ during some
+
+ execution.
+ description: >-
+ ABCIMessageLog defines a structure containing an indexed tx ABCI
+ message log.
+ description: >-
+ The output of the application's logger (typed). May be
+ non-deterministic.
+ info:
+ type: string
+ description: Additional information. May be non-deterministic.
+ gas_wanted:
+ type: string
+ format: int64
+ description: Amount of gas requested for transaction.
+ gas_used:
+ type: string
+ format: int64
+ description: Amount of gas consumed by transaction.
+ tx:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ timestamp:
+ type: string
+ description: >-
+ Time of the previous block. For heights > 1, it's the weighted
+ median of
+
+ the timestamps of the valid votes in the block.LastCommit. For
+ height == 1,
+
+ it's genesis time.
+ description: >-
+ TxResponse defines a structure containing relevant tx data and
+ metadata. The
+
+ tags are stringified and the log is JSON decoded.
+ description: GetTxResponse is the response type for the Service.GetTx method.
+ cosmos.tx.v1beta1.GetTxsEventResponse:
+ type: object
+ properties:
+ txs:
+ type: array
+ items:
+ $ref: '#/definitions/cosmos.tx.v1beta1.Tx'
+ description: txs is the list of queried transactions.
+ tx_responses:
+ type: array
+ items:
+ type: object
+ properties:
+ height:
+ type: string
+ format: int64
+ title: The block height
+ txhash:
+ type: string
+ description: The transaction hash.
+ codespace:
+ type: string
+ title: Namespace for the Code
+ code:
+ type: integer
+ format: int64
+ description: Response code.
+ data:
+ type: string
+ description: 'Result bytes, if any.'
+ raw_log:
+ type: string
+ description: |-
+ The output of the application's logger (raw string). May be
+ non-deterministic.
+ logs:
+ type: array
+ items:
+ type: object
+ properties:
+ msg_index:
+ type: integer
+ format: int64
+ log:
+ type: string
+ events:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ value:
+ type: string
+ description: >-
+ Attribute defines an attribute wrapper where the
+ key and value are
+
+ strings instead of raw bytes.
+ description: >-
+ StringEvent defines en Event object wrapper where all
+ the attributes
+
+ contain key/value pairs that are strings instead of raw
+ bytes.
+ description: >-
+ Events contains a slice of Event objects that were emitted
+ during some
+
+ execution.
+ description: >-
+ ABCIMessageLog defines a structure containing an indexed tx
+ ABCI message log.
+ description: >-
+ The output of the application's logger (typed). May be
+ non-deterministic.
+ info:
+ type: string
+ description: Additional information. May be non-deterministic.
+ gas_wanted:
+ type: string
+ format: int64
+ description: Amount of gas requested for transaction.
+ gas_used:
+ type: string
+ format: int64
+ description: Amount of gas consumed by transaction.
+ tx:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ timestamp:
+ type: string
+ description: >-
+ Time of the previous block. For heights > 1, it's the weighted
+ median of
+
+ the timestamps of the valid votes in the block.LastCommit. For
+ height == 1,
+
+ it's genesis time.
+ description: >-
+ TxResponse defines a structure containing relevant tx data and
+ metadata. The
+
+ tags are stringified and the log is JSON decoded.
+ description: tx_responses is the list of queried TxResponses.
+ pagination:
+ description: pagination defines an pagination for the response.
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ title: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: |-
+ GetTxsEventResponse is the response type for the Service.TxsByEvents
+ RPC method.
+ cosmos.tx.v1beta1.ModeInfo:
+ type: object
+ properties:
+ single:
+ title: single represents a single signer
+ type: object
+ properties:
+ mode:
+ title: mode is the signing mode of the single signer
+ type: string
+ enum:
+ - SIGN_MODE_UNSPECIFIED
+ - SIGN_MODE_DIRECT
+ - SIGN_MODE_TEXTUAL
+ - SIGN_MODE_LEGACY_AMINO_JSON
+ default: SIGN_MODE_UNSPECIFIED
+ description: >-
+ SignMode represents a signing mode with its own security
+ guarantees.
+
+ - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
+ rejected
+ - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
+ verified with raw bytes from Tx
+ - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some
+ human-readable textual representation on top of the binary
+ representation
+
+ from SIGN_MODE_DIRECT
+ - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
+ Amino JSON and will be removed in the future
+ multi:
+ $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo.Multi'
+ title: multi represents a nested multisig signer
+ description: ModeInfo describes the signing mode of a single or nested multisig signer.
+ cosmos.tx.v1beta1.ModeInfo.Multi:
+ type: object
+ properties:
+ bitarray:
+ title: bitarray specifies which keys within the multisig are signing
+ type: object
+ properties:
+ extra_bits_stored:
+ type: integer
+ format: int64
+ elems:
+ type: string
+ format: byte
+ description: >-
+ CompactBitArray is an implementation of a space efficient bit array.
+
+ This is used to ensure that the encoded data takes up a minimal amount
+ of
+
+ space after proto encoding.
+
+ This is not thread safe, and is not intended for concurrent usage.
+ mode_infos:
+ type: array
+ items:
+ $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo'
+ title: |-
+ mode_infos is the corresponding modes of the signers of the multisig
+ which could include nested multisig public keys
+ title: Multi is the mode info for a multisig public key
+ cosmos.tx.v1beta1.ModeInfo.Single:
+ type: object
+ properties:
+ mode:
+ title: mode is the signing mode of the single signer
+ type: string
+ enum:
+ - SIGN_MODE_UNSPECIFIED
+ - SIGN_MODE_DIRECT
+ - SIGN_MODE_TEXTUAL
+ - SIGN_MODE_LEGACY_AMINO_JSON
+ default: SIGN_MODE_UNSPECIFIED
+ description: >-
+ SignMode represents a signing mode with its own security guarantees.
+
+ - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
+ rejected
+ - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
+ verified with raw bytes from Tx
+ - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some
+ human-readable textual representation on top of the binary
+ representation
+
+ from SIGN_MODE_DIRECT
+ - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
+ Amino JSON and will be removed in the future
+ title: |-
+ Single is the mode info for a single signer. It is structured as a message
+ to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
+ future
+ cosmos.tx.v1beta1.OrderBy:
+ type: string
+ enum:
+ - ORDER_BY_UNSPECIFIED
+ - ORDER_BY_ASC
+ - ORDER_BY_DESC
+ default: ORDER_BY_UNSPECIFIED
+ description: >-
+ - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting
+ order. OrderBy defaults to ASC in this case.
+ - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order
+ - ORDER_BY_DESC: ORDER_BY_DESC defines descending order
+ title: OrderBy defines the sorting order
+ cosmos.tx.v1beta1.SignerInfo:
+ type: object
+ properties:
+ public_key:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ mode_info:
+ $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo'
+ title: |-
+ mode_info describes the signing mode of the signer and is a nested
+ structure to support nested multisig pubkey's
+ sequence:
+ type: string
+ format: uint64
+ description: >-
+ sequence is the sequence of the account, which describes the
+
+ number of committed transactions signed by a given address. It is used
+ to
+
+ prevent replay attacks.
+ description: |-
+ SignerInfo describes the public key and signing mode of a single top-level
+ signer.
+ cosmos.tx.v1beta1.SimulateRequest:
+ type: object
+ properties:
+ tx:
+ $ref: '#/definitions/cosmos.tx.v1beta1.Tx'
+ description: |-
+ tx is the transaction to simulate.
+ Deprecated. Send raw tx bytes instead.
+ tx_bytes:
+ type: string
+ format: byte
+ description: tx_bytes is the raw transaction.
+ description: |-
+ SimulateRequest is the request type for the Service.Simulate
+ RPC method.
+ cosmos.tx.v1beta1.SimulateResponse:
+ type: object
+ properties:
+ gas_info:
+ description: gas_info is the information about gas used in the simulation.
+ type: object
+ properties:
+ gas_wanted:
+ type: string
+ format: uint64
+ description: >-
+ GasWanted is the maximum units of work we allow this tx to
+ perform.
+ gas_used:
+ type: string
+ format: uint64
+ description: GasUsed is the amount of gas actually consumed.
+ result:
+ description: result is the result of the simulation.
+ type: object
+ properties:
+ data:
+ type: string
+ format: byte
+ description: >-
+ Data is any data returned from message or handler execution. It
+ MUST be
+
+ length prefixed in order to separate data from multiple message
+ executions.
+ log:
+ type: string
+ description: >-
+ Log contains the log information from message or handler
+ execution.
+ events:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ format: byte
+ value:
+ type: string
+ format: byte
+ index:
+ type: boolean
+ description: >-
+ EventAttribute is a single key-value pair, associated with
+ an event.
+ description: >-
+ Event allows application developers to attach additional
+ information to
+
+ ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and
+ ResponseDeliverTx.
+
+ Later, transactions may be queried using these events.
+ description: >-
+ Events contains a slice of Event objects that were emitted during
+ message
+
+ or handler execution.
+ description: |-
+ SimulateResponse is the response type for the
+ Service.SimulateRPC method.
+ cosmos.tx.v1beta1.Tx:
+ type: object
+ properties:
+ body:
+ title: body is the processable content of the transaction
+ type: object
+ properties:
+ messages:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ messages is a list of messages to be executed. The required
+ signers of
+
+ those messages define the number and order of elements in
+ AuthInfo's
+
+ signer_infos and Tx's signatures. Each required signer address is
+ added to
+
+ the list only the first time it occurs.
+
+ By convention, the first required signer (usually from the first
+ message)
+
+ is referred to as the primary signer and pays the fee for the
+ whole
+
+ transaction.
+ memo:
+ type: string
+ description: >-
+ memo is any arbitrary note/comment to be added to the transaction.
+
+ WARNING: in clients, any publicly exposed text should not be
+ called memo,
+
+ but should be called `note` instead (see
+ https://github.com/cosmos/cosmos-sdk/issues/9122).
+ timeout_height:
+ type: string
+ format: uint64
+ title: |-
+ timeout is the block height after which this transaction will not
+ be processed by the chain
+ extension_options:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: >-
+ extension_options are arbitrary options that can be added by
+ chains
+
+ when the default options are not sufficient. If any of these are
+ present
+
+ and can't be handled, the transaction will be rejected
+ non_critical_extension_options:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: >-
+ extension_options are arbitrary options that can be added by
+ chains
+
+ when the default options are not sufficient. If any of these are
+ present
+
+ and can't be handled, they will be ignored
+ description: TxBody is the body of a transaction that all signers sign over.
+ auth_info:
+ $ref: '#/definitions/cosmos.tx.v1beta1.AuthInfo'
+ title: |-
+ auth_info is the authorization related content of the transaction,
+ specifically signers, signer modes and fee
+ signatures:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: >-
+ signatures is a list of signatures that matches the length and order
+ of
+
+ AuthInfo's signer_infos to allow connecting signature meta information
+ like
+
+ public key and signing mode by position.
+ description: Tx is the standard type used for broadcasting transactions.
+ cosmos.tx.v1beta1.TxBody:
+ type: object
+ properties:
+ messages:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ messages is a list of messages to be executed. The required signers of
+
+ those messages define the number and order of elements in AuthInfo's
+
+ signer_infos and Tx's signatures. Each required signer address is
+ added to
+
+ the list only the first time it occurs.
+
+ By convention, the first required signer (usually from the first
+ message)
+
+ is referred to as the primary signer and pays the fee for the whole
+
+ transaction.
+ memo:
+ type: string
+ description: >-
+ memo is any arbitrary note/comment to be added to the transaction.
+
+ WARNING: in clients, any publicly exposed text should not be called
+ memo,
+
+ but should be called `note` instead (see
+ https://github.com/cosmos/cosmos-sdk/issues/9122).
+ timeout_height:
+ type: string
+ format: uint64
+ title: |-
+ timeout is the block height after which this transaction will not
+ be processed by the chain
+ extension_options:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: >-
+ extension_options are arbitrary options that can be added by chains
+
+ when the default options are not sufficient. If any of these are
+ present
+
+ and can't be handled, the transaction will be rejected
+ non_critical_extension_options:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning
+ with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any
+ type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom JSON
+
+ representation, that representation will be embedded adding a field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ title: >-
+ extension_options are arbitrary options that can be added by chains
+
+ when the default options are not sufficient. If any of these are
+ present
+
+ and can't be handled, they will be ignored
+ description: TxBody is the body of a transaction that all signers sign over.
+ tendermint.abci.Event:
+ type: object
+ properties:
+ type:
+ type: string
+ attributes:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ format: byte
+ value:
+ type: string
+ format: byte
+ index:
+ type: boolean
+ description: 'EventAttribute is a single key-value pair, associated with an event.'
+ description: >-
+ Event allows application developers to attach additional information to
+
+ ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and
+ ResponseDeliverTx.
+
+ Later, transactions may be queried using these events.
+ tendermint.abci.EventAttribute:
+ type: object
+ properties:
+ key:
+ type: string
+ format: byte
+ value:
+ type: string
+ format: byte
+ index:
+ type: boolean
+ description: 'EventAttribute is a single key-value pair, associated with an event.'
+ cosmos.upgrade.v1beta1.ModuleVersion:
+ type: object
+ properties:
+ name:
+ type: string
+ title: name of the app module
+ version:
+ type: string
+ format: uint64
+ title: consensus version of the app module
+ description: ModuleVersion specifies a module and its consensus version.
+ cosmos.upgrade.v1beta1.Plan:
+ type: object
+ properties:
+ name:
+ type: string
+ description: >-
+ Sets the name for the upgrade. This name will be used by the upgraded
+
+ version of the software to apply any special "on-upgrade" commands
+ during
+
+ the first BeginBlock method after the upgrade is applied. It is also
+ used
+
+ to detect whether a software version can handle a given upgrade. If no
+
+ upgrade handler with this name has been set in the software, it will
+ be
+
+ assumed that the software is out-of-date when the upgrade Time or
+ Height is
+
+ reached and the software will exit.
+ time:
+ type: string
+ format: date-time
+ description: >-
+ Deprecated: Time based upgrades have been deprecated. Time based
+ upgrade logic
+
+ has been removed from the SDK.
+
+ If this field is not empty, an error will be thrown.
+ height:
+ type: string
+ format: int64
+ description: |-
+ The height at which the upgrade must be performed.
+ Only used if Time is not set.
+ info:
+ type: string
+ title: |-
+ Any application specific upgrade info to be included on-chain
+ such as a git commit that validators could automatically upgrade to
+ upgraded_client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all types
+ that they
+
+ expect it to use in the context of Any. However, for URLs which
+ use the
+
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+
+ server that maps type URLs to message definitions as follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+
+ of utility functions or additional generated methods of the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+
+ methods only use the fully qualified type name after the last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+
+ name "y.z".
+
+
+
+ JSON
+
+ ====
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName":