From 1ccf051a9e1d14a7c3e6aba7f51cce79a2c989a1 Mon Sep 17 00:00:00 2001 From: harish <marri.harish@cosmiclabs.co> Date: Sat, 8 May 2021 19:14:11 +0530 Subject: [PATCH] Updated omniflix details --- .gitignore | 1 + Makefile | 42 +++++ cmd/flixnet-ibcd/cmd/root.go | 2 +- config.yml | 48 +++++- go.mod | 2 +- go.sum | 144 +--------------- vue/package-lock.json | 162 +++++++++--------- .../cosmos-sdk/cosmos.bank.v1beta1/index.js | 36 ++-- .../cosmos-sdk/cosmos.bank.v1beta1/index.ts | 36 ++-- .../cosmos.bank.v1beta1/module/index.d.ts | 4 +- .../cosmos.bank.v1beta1/module/index.js | 6 +- .../cosmos.bank.v1beta1/module/index.ts | 6 +- .../cosmos.bank.v1beta1/module/rest.d.ts | 2 +- .../cosmos.bank.v1beta1/module/rest.js | 2 +- .../cosmos.bank.v1beta1/module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../types/google/protobuf/duration.d.ts | 2 +- .../module/types/google/protobuf/duration.ts | 2 +- .../types/google/protobuf/timestamp.d.ts | 47 +++-- .../module/types/google/protobuf/timestamp.ts | 47 +++-- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../cosmos.distribution.v1beta1/index.js | 66 +++---- .../cosmos.distribution.v1beta1/index.ts | 64 +++---- .../module/index.d.ts | 4 +- .../module/index.js | 6 +- .../module/index.ts | 6 +- .../module/rest.d.ts | 2 +- .../module/rest.js | 2 +- .../module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../cosmos.evidence.v1beta1/module/rest.d.ts | 2 +- .../cosmos.evidence.v1beta1/module/rest.js | 2 +- .../cosmos.evidence.v1beta1/module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../types/google/protobuf/timestamp.d.ts | 47 +++-- .../module/types/google/protobuf/timestamp.ts | 47 +++-- .../cosmos-sdk/cosmos.gov.v1beta1/index.js | 38 ++-- .../cosmos-sdk/cosmos.gov.v1beta1/index.ts | 36 ++-- .../cosmos.gov.v1beta1/module/index.d.ts | 4 +- .../cosmos.gov.v1beta1/module/index.js | 6 +- .../cosmos.gov.v1beta1/module/index.ts | 6 +- .../cosmos.gov.v1beta1/module/rest.d.ts | 2 +- .../cosmos.gov.v1beta1/module/rest.js | 2 +- .../cosmos.gov.v1beta1/module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../types/google/protobuf/duration.d.ts | 2 +- .../module/types/google/protobuf/duration.ts | 2 +- .../types/google/protobuf/timestamp.d.ts | 47 +++-- .../module/types/google/protobuf/timestamp.ts | 47 +++-- .../cosmos.slashing.v1beta1/module/rest.d.ts | 2 +- .../cosmos.slashing.v1beta1/module/rest.js | 2 +- .../cosmos.slashing.v1beta1/module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../types/google/protobuf/duration.d.ts | 2 +- .../module/types/google/protobuf/duration.ts | 2 +- .../types/google/protobuf/timestamp.d.ts | 47 +++-- .../module/types/google/protobuf/timestamp.ts | 47 +++-- .../cosmos.staking.v1beta1/index.js | 48 +++--- .../cosmos.staking.v1beta1/index.ts | 48 +++--- .../cosmos.staking.v1beta1/module/index.d.ts | 8 +- .../cosmos.staking.v1beta1/module/index.js | 12 +- .../cosmos.staking.v1beta1/module/index.ts | 12 +- .../cosmos.staking.v1beta1/module/rest.d.ts | 2 +- .../cosmos.staking.v1beta1/module/rest.js | 2 +- .../cosmos.staking.v1beta1/module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../types/google/protobuf/duration.d.ts | 2 +- .../module/types/google/protobuf/duration.ts | 2 +- .../types/google/protobuf/timestamp.d.ts | 47 +++-- .../module/types/google/protobuf/timestamp.ts | 47 +++-- .../cosmos.vesting.v1beta1/module/rest.d.ts | 2 +- .../cosmos.vesting.v1beta1/module/rest.js | 2 +- .../cosmos.vesting.v1beta1/module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../module/rest.d.ts | 2 +- .../module/rest.js | 2 +- .../module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../cosmos-sdk/ibc.core.channel.v1/index.js | 116 ++++++------- .../cosmos-sdk/ibc.core.channel.v1/index.ts | 116 ++++++------- .../ibc.core.channel.v1/module/index.d.ts | 20 +-- .../ibc.core.channel.v1/module/index.js | 30 ++-- .../ibc.core.channel.v1/module/index.ts | 30 ++-- .../ibc.core.channel.v1/module/rest.d.ts | 2 +- .../ibc.core.channel.v1/module/rest.js | 2 +- .../ibc.core.channel.v1/module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../cosmos-sdk/ibc.core.client.v1/index.js | 40 ++--- .../cosmos-sdk/ibc.core.client.v1/index.ts | 40 ++--- .../ibc.core.client.v1/module/index.d.ts | 8 +- .../ibc.core.client.v1/module/index.js | 12 +- .../ibc.core.client.v1/module/index.ts | 12 +- .../ibc.core.client.v1/module/rest.d.ts | 2 +- .../ibc.core.client.v1/module/rest.js | 2 +- .../ibc.core.client.v1/module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- .../ibc.core.connection.v1/index.js | 48 +++--- .../ibc.core.connection.v1/index.ts | 48 +++--- .../ibc.core.connection.v1/module/index.d.ts | 8 +- .../ibc.core.connection.v1/module/index.js | 12 +- .../ibc.core.connection.v1/module/index.ts | 12 +- .../ibc.core.connection.v1/module/rest.d.ts | 2 +- .../ibc.core.connection.v1/module/rest.js | 2 +- .../ibc.core.connection.v1/module/rest.ts | 2 +- .../types/google/protobuf/descriptor.d.ts | 34 +++- .../types/google/protobuf/descriptor.js | 21 +++ .../types/google/protobuf/descriptor.ts | 53 +++++- vue/src/store/generated/index.d.ts | 12 +- vue/src/store/generated/index.js | 24 +-- vue/src/store/generated/index.ts | 24 +-- 138 files changed, 2439 insertions(+), 1090 deletions(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 0cffc51..fa75454 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ vue/node_modules vue/dist secret.yml +.idea \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..60107ff --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ +PACKAGES=$(shell go list ./... | grep -v '/simulation') + +VERSION := $(shell echo $(shell git describe --tags --always) | sed 's/^v//') +COMMIT := $(shell git log -1 --format='%H') +COSMOS_SDK := $(shell grep -i cosmos-sdk go.mod | awk '{print $$2}') + +build_tags := $(strip netgo $(build_tags)) + +ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=FlixNetIBC \ + -X github.com/cosmos/cosmos-sdk/version.ServerName=flixnetibcd \ + -X github.com/cosmos/cosmos-sdk/version.ClientName=flixnetibcd \ + -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ + -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ + -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags),cosmos-sdk $(COSMOS_SDK)" + +BUILD_FLAGS := -ldflags '$(ldflags)' + +all: go.sum install + +create-wallet: + flixnetibcd keys add validator + +init: + rm -rf ~/.flixnetibcd + flixnetibcd init flixnet-node --chain-id "omniflix-stakenet-1" --stake-denom uflix + flixnetibcd add-genesis-account $(shell flixnetcli keys show validator -a) 1000000000000uflix + flixnetibcd gentx --name=validator --amount 100000000uflix + flixnetibcd collect-gentxs + +install: go.sum + go install $(BUILD_FLAGS) ./cmd/flixnetibcd +build: + go build -o bin/flixnetd ./cmd/flixnetibcd + +go.sum: go.mod + @echo "--> Ensure dependencies have not been modified" + GO111MODULE=on go mod verify + +lint: + @echo "--> Running linter" + @golangci-lint run + @go mod verify diff --git a/cmd/flixnet-ibcd/cmd/root.go b/cmd/flixnet-ibcd/cmd/root.go index 24d5aa1..2bab815 100644 --- a/cmd/flixnet-ibcd/cmd/root.go +++ b/cmd/flixnet-ibcd/cmd/root.go @@ -58,7 +58,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { rootCmd := &cobra.Command{ Use: app.Name + "d", - Short: "Stargate CosmosHub App", + Short: "Stargate FlixNet IBC App", PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { if err := client.SetCmdClientContextHandler(initClientCtx, cmd); err != nil { return err diff --git a/config.yml b/config.yml index ebb6b9c..e60f8d9 100644 --- a/config.yml +++ b/config.yml @@ -1,14 +1,44 @@ +version: 1 accounts: - - name: alice - coins: ["1000token", "100000000stake"] - - name: bob - coins: ["500token"] -validator: - name: alice - staked: "100000000stake" + - name: omniflix + coins: [ "100000000000000uflix" ] + - name: harish + coins: [ "100000000000000uflix" ] + - name: faucet + coins: ['1000000000000uflix'] client: vuex: path: "vue/src/store" faucet: - name: bob - coins: ["5token"] + name: faucet + coins: ["10000000uflix"] +validator: + name: omniflix + staked: "100000000uflix" +genesis: + chain_id: "omniflix-stakenet-1" + app_state: + staking: + params: + bond_denom: "uflix" + gov: + deposit_params: + min_deposit: + - amount: "10000000" + denom: "uflix" + mint: + params: + mint_denom: "uflix" + supply: + supply: + - amount: "201000000000000" + denom: "uflix" + crisis: + constant_fee: + amount: "1000" + denom: "uflix" + +build: + binary: "flixnetibcd" +init: + home: "~/.flixnetibc" \ No newline at end of file diff --git a/go.mod b/go.mod index 6c07f95..eb53f46 100644 --- a/go.mod +++ b/go.mod @@ -5,9 +5,9 @@ go 1.15 require ( github.com/cosmos/cosmos-sdk v0.42.1 github.com/gogo/protobuf v1.3.3 + github.com/google/go-cmp v0.5.4 // indirect github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0 // indirect github.com/spf13/cast v1.3.1 github.com/spf13/cobra v1.1.1 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index 652a8f8..9cba6b5 100644 --- a/go.sum +++ b/go.sum @@ -4,32 +4,11 @@ cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6A cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/99designs/keyring v1.1.6 h1:kVDC2uCgVwecxCk+9zoCt2uEL6dt+dfVzMvGgnVcIuM= github.com/99designs/keyring v1.1.6/go.mod h1:16e0ds7LGQQcT59QqkTg72Hh5ShM51Byv5PEmW6uoRU= @@ -101,9 +80,6 @@ github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= @@ -190,7 +166,6 @@ github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4 github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= @@ -212,13 +187,8 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfU github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -226,7 +196,6 @@ github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= @@ -248,23 +217,16 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -295,8 +257,6 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t github.com/grpc-ecosystem/grpc-gateway v1.14.7/go.mod h1:oYZKL012gGh6LMyg/xA7Q2yq6j8bu0wa+9w14EEthWU= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0 h1:HlJcTiqGHvaWDG7/s85d68Kw7G7FqMz+9LlcyVauOAw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0/go.mod h1:gRq9gZWcIFvz68EgWqy2qQpRbmtn5j2qLZ4zHjqiLpg= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= @@ -336,7 +296,6 @@ github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2p github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= @@ -354,7 +313,6 @@ github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= @@ -616,9 +574,7 @@ github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijb github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/zondax/hid v0.9.0 h1:eiT3P6vNxAEVxXMw66eZUAAnU2zD33JBkfG/EnfAKl8= github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= @@ -632,8 +588,6 @@ go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= @@ -668,11 +622,6 @@ golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -682,9 +631,6 @@ golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= @@ -711,25 +657,13 @@ golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974 h1:IX6qOQeG5uLjB/hjjwjedwfjND0hgjPMMyO1RoIXQNI= @@ -737,17 +671,13 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20210201163806-010130855d6c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -775,35 +705,22 @@ golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211 h1:9UQO31fZ+0aKQOFldThf7BKPMJTiBfWycGh/u3UoO88= golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221 h1:/ZHdbVpdR/jk3g30/d4yUL0JU9kksj8+F/bnQUVLGDM= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= @@ -832,33 +749,10 @@ golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -871,23 +765,10 @@ google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -899,28 +780,10 @@ google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98 google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200324203455-a04cca1dde73/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201111145450-ac7456db90a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201119123407-9b1e624d6bc4/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -930,7 +793,6 @@ google.golang.org/genproto v0.0.0-20210207032614-bba0dbe2a9ea h1:N98SvVh7Hdle2lg google.golang.org/genproto v0.0.0-20210207032614-bba0dbe2a9ea/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.0.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -976,10 +838,6 @@ honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/vue/package-lock.json b/vue/package-lock.json index b382c8a..cb8c2b8 100644 --- a/vue/package-lock.json +++ b/vue/package-lock.json @@ -1962,87 +1962,6 @@ "webpack-chain": "^6.4.0", "webpack-dev-server": "^3.11.0", "webpack-merge": "^4.2.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "optional": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "optional": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "optional": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "optional": true - }, - "loader-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", - "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", - "dev": true, - "optional": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "optional": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "vue-loader-v16": { - "version": "npm:vue-loader@16.2.0", - "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.2.0.tgz", - "integrity": "sha512-TitGhqSQ61RJljMmhIGvfWzJ2zk9m1Qug049Ugml6QP3t0e95o0XJjk29roNEiPKJQBEi8Ord5hFuSuELzSp8Q==", - "dev": true, - "optional": true, - "requires": { - "chalk": "^4.1.0", - "hash-sum": "^2.0.0", - "loader-utils": "^2.0.0" - } - } } }, "@vue/cli-shared-utils": { @@ -12799,6 +12718,87 @@ } } }, + "vue-loader-v16": { + "version": "npm:vue-loader@16.2.0", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.2.0.tgz", + "integrity": "sha512-TitGhqSQ61RJljMmhIGvfWzJ2zk9m1Qug049Ugml6QP3t0e95o0XJjk29roNEiPKJQBEi8Ord5hFuSuELzSp8Q==", + "dev": true, + "optional": true, + "requires": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "loader-utils": "^2.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "optional": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "optional": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "optional": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "optional": true + }, + "loader-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", + "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", + "dev": true, + "optional": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "optional": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "vue-router": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.0.5.tgz", diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.js index 52c9e02..824f747 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.js @@ -1,6 +1,7 @@ import { txClient, queryClient } from './module'; // @ts-ignore import { SpVuexError } from '@starport/vuex'; +import { Balance } from "./module/types/cosmos/bank/v1beta1/genesis"; import { Params } from "./module/types/cosmos/bank/v1beta1/bank"; import { SendEnabled } from "./module/types/cosmos/bank/v1beta1/bank"; import { Input } from "./module/types/cosmos/bank/v1beta1/bank"; @@ -8,7 +9,6 @@ import { Output } from "./module/types/cosmos/bank/v1beta1/bank"; import { Supply } from "./module/types/cosmos/bank/v1beta1/bank"; import { DenomUnit } from "./module/types/cosmos/bank/v1beta1/bank"; import { Metadata } from "./module/types/cosmos/bank/v1beta1/bank"; -import { Balance } from "./module/types/cosmos/bank/v1beta1/genesis"; async function initTxClient(vuexGetters) { return await txClient(vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] @@ -39,6 +39,7 @@ const getDefaultState = () => { DenomMetadata: {}, DenomsMetadata: {}, _Structure: { + Balance: getStructure(Balance.fromPartial({})), Params: getStructure(Params.fromPartial({})), SendEnabled: getStructure(SendEnabled.fromPartial({})), Input: getStructure(Input.fromPartial({})), @@ -46,7 +47,6 @@ const getDefaultState = () => { Supply: getStructure(Supply.fromPartial({})), DenomUnit: getStructure(DenomUnit.fromPartial({})), Metadata: getStructure(Metadata.fromPartial({})), - Balance: getStructure(Balance.fromPartial({})), }, _Subscriptions: new Set(), }; @@ -250,63 +250,63 @@ export default { return {}; } }, - async sendMsgMultiSend({ rootGetters }, { value, fee, memo }) { + async sendMsgSend({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgMultiSend(value); + const msg = await (await initTxClient(rootGetters)).msgSend(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgMultiSend:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgSend:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgMultiSend:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgSend:Send', 'Could not broadcast Tx.'); } } }, - async sendMsgSend({ rootGetters }, { value, fee, memo }) { + async sendMsgMultiSend({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgSend(value); + const msg = await (await initTxClient(rootGetters)).msgMultiSend(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgSend:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgMultiSend:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgSend:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgMultiSend:Send', 'Could not broadcast Tx.'); } } }, - async MsgMultiSend({ rootGetters }, { value }) { + async MsgSend({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgMultiSend(value); + const msg = await (await initTxClient(rootGetters)).msgSend(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgMultiSend:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgSend:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgMultiSend:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgSend:Create', 'Could not create message.'); } } }, - async MsgSend({ rootGetters }, { value }) { + async MsgMultiSend({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgSend(value); + const msg = await (await initTxClient(rootGetters)).msgMultiSend(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgSend:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgMultiSend:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgSend:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgMultiSend:Create', 'Could not create message.'); } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.ts index 99aebe8..1869523 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.ts @@ -2,6 +2,7 @@ import { txClient, queryClient } from './module' // @ts-ignore import { SpVuexError } from '@starport/vuex' +import { Balance } from "./module/types/cosmos/bank/v1beta1/genesis" import { Params } from "./module/types/cosmos/bank/v1beta1/bank" import { SendEnabled } from "./module/types/cosmos/bank/v1beta1/bank" import { Input } from "./module/types/cosmos/bank/v1beta1/bank" @@ -9,7 +10,6 @@ import { Output } from "./module/types/cosmos/bank/v1beta1/bank" import { Supply } from "./module/types/cosmos/bank/v1beta1/bank" import { DenomUnit } from "./module/types/cosmos/bank/v1beta1/bank" import { Metadata } from "./module/types/cosmos/bank/v1beta1/bank" -import { Balance } from "./module/types/cosmos/bank/v1beta1/genesis" async function initTxClient(vuexGetters) { @@ -46,6 +46,7 @@ const getDefaultState = () => { DenomsMetadata: {}, _Structure: { + Balance: getStructure(Balance.fromPartial({})), Params: getStructure(Params.fromPartial({})), SendEnabled: getStructure(SendEnabled.fromPartial({})), Input: getStructure(Input.fromPartial({})), @@ -53,7 +54,6 @@ const getDefaultState = () => { Supply: getStructure(Supply.fromPartial({})), DenomUnit: getStructure(DenomUnit.fromPartial({})), Metadata: getStructure(Metadata.fromPartial({})), - Balance: getStructure(Balance.fromPartial({})), }, _Subscriptions: new Set(), @@ -262,56 +262,56 @@ export default { } }, - async sendMsgMultiSend({ rootGetters }, { value, fee, memo }) { + async sendMsgSend({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgMultiSend(value) + const msg = await (await initTxClient(rootGetters)).msgSend(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgMultiSend:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgSend:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgMultiSend:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgSend:Send', 'Could not broadcast Tx.') } } }, - async sendMsgSend({ rootGetters }, { value, fee, memo }) { + async sendMsgMultiSend({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgSend(value) + const msg = await (await initTxClient(rootGetters)).msgMultiSend(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgSend:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgMultiSend:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgSend:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgMultiSend:Send', 'Could not broadcast Tx.') } } }, - async MsgMultiSend({ rootGetters }, { value }) { + async MsgSend({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgMultiSend(value) + const msg = await (await initTxClient(rootGetters)).msgSend(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgMultiSend:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgSend:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgMultiSend:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgSend:Create', 'Could not create message.') } } }, - async MsgSend({ rootGetters }, { value }) { + async MsgMultiSend({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgSend(value) + const msg = await (await initTxClient(rootGetters)).msgMultiSend(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgSend:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgMultiSend:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgSend:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgMultiSend:Create', 'Could not create message.') } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.d.ts index 2256a43..9b7ea9d 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.d.ts @@ -1,8 +1,8 @@ import { StdFee } from "@cosmjs/launchpad"; import { OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; interface TxClientOptions { addr: string; } @@ -12,8 +12,8 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions) => Promise<import("@cosmjs/stargate").BroadcastTxResponse>; - msgMultiSend: (data: MsgMultiSend) => EncodeObject; msgSend: (data: MsgSend) => EncodeObject; + msgMultiSend: (data: MsgMultiSend) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.js index b463228..b8e6cb6 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.js @@ -2,11 +2,11 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; const types = [ - ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], ["/cosmos.bank.v1beta1.MsgSend", MsgSend], + ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], ]; const registry = new Registry(types); const defaultFee = { @@ -20,8 +20,8 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee = defaultFee, memo = null }) => memo ? client.signAndBroadcast(address, msgs, fee, memo) : client.signAndBroadcast(address, msgs, fee), - msgMultiSend: (data) => ({ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: data }), msgSend: (data) => ({ typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: data }), + msgMultiSend: (data) => ({ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: data }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.ts index f1e4832..5af6187 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.ts @@ -4,13 +4,13 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; const types = [ - ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], ["/cosmos.bank.v1beta1.MsgSend", MsgSend], + ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], ]; @@ -38,8 +38,8 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee=defaultFee, memo=null }: SignAndBroadcastOptions) => memo?client.signAndBroadcast(address, msgs, fee,memo):client.signAndBroadcast(address, msgs, fee), - msgMultiSend: (data: MsgMultiSend): EncodeObject => ({ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: data }), msgSend: (data: MsgSend): EncodeObject => ({ typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: data }), + msgMultiSend: (data: MsgMultiSend): EncodeObject => ({ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: data }), }; }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.d.ts index b5c92be..5bc3bfb 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.d.ts @@ -245,7 +245,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title cosmos/bank/v1beta1/bank.proto + * @title cosmos/bank/v1beta1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.js index bdee86f..342b7f7 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.js @@ -130,7 +130,7 @@ export class HttpClient { } } /** - * @title cosmos/bank/v1beta1/bank.proto + * @title cosmos/bank/v1beta1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.ts index 05f7d93..8a0e7a7 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/rest.ts @@ -424,7 +424,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title cosmos/bank/v1beta1/bank.proto + * @title cosmos/bank/v1beta1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/duration.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/duration.d.ts index b586045..3493f63 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/duration.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/duration.d.ts @@ -22,7 +22,7 @@ export declare const protobufPackage = "google.protobuf"; * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { + * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/duration.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/duration.ts index f67058a..fffd5b1 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/duration.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/duration.ts @@ -26,7 +26,7 @@ export const protobufPackage = "google.protobuf"; * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { + * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/timestamp.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/timestamp.d.ts index 82af3da..0c9db0b 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/timestamp.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/timestamp.d.ts @@ -1,17 +1,19 @@ import { Writer, Reader } from "protobufjs/minimal"; export declare const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -50,7 +52,16 @@ export declare const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -72,12 +83,14 @@ export declare const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/timestamp.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/timestamp.ts index 52a7265..11864af 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/timestamp.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.abci.v1beta1/module/types/google/protobuf/timestamp.ts @@ -5,17 +5,19 @@ import { util, configure, Writer, Reader } from "protobufjs/minimal"; export const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -54,7 +56,16 @@ export const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -76,12 +87,14 @@ export const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.base.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.js index e21acf5..9c9fe94 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.js @@ -1,6 +1,13 @@ import { txClient, queryClient } from './module'; // @ts-ignore import { SpVuexError } from '@starport/vuex'; +import { DelegatorWithdrawInfo } from "./module/types/cosmos/distribution/v1beta1/genesis"; +import { ValidatorOutstandingRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; +import { ValidatorAccumulatedCommissionRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; +import { ValidatorHistoricalRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; +import { ValidatorCurrentRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; +import { DelegatorStartingInfoRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; +import { ValidatorSlashEventRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; import { Params } from "./module/types/cosmos/distribution/v1beta1/distribution"; import { ValidatorHistoricalRewards } from "./module/types/cosmos/distribution/v1beta1/distribution"; import { ValidatorCurrentRewards } from "./module/types/cosmos/distribution/v1beta1/distribution"; @@ -13,13 +20,6 @@ import { CommunityPoolSpendProposal } from "./module/types/cosmos/distribution/v import { DelegatorStartingInfo } from "./module/types/cosmos/distribution/v1beta1/distribution"; import { DelegationDelegatorReward } from "./module/types/cosmos/distribution/v1beta1/distribution"; import { CommunityPoolSpendProposalWithDeposit } from "./module/types/cosmos/distribution/v1beta1/distribution"; -import { DelegatorWithdrawInfo } from "./module/types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorOutstandingRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorAccumulatedCommissionRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorHistoricalRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorCurrentRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; -import { DelegatorStartingInfoRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorSlashEventRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; async function initTxClient(vuexGetters) { return await txClient(vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] @@ -52,6 +52,13 @@ const getDefaultState = () => { DelegatorWithdrawAddress: {}, CommunityPool: {}, _Structure: { + DelegatorWithdrawInfo: getStructure(DelegatorWithdrawInfo.fromPartial({})), + ValidatorOutstandingRewardsRecord: getStructure(ValidatorOutstandingRewardsRecord.fromPartial({})), + ValidatorAccumulatedCommissionRecord: getStructure(ValidatorAccumulatedCommissionRecord.fromPartial({})), + ValidatorHistoricalRewardsRecord: getStructure(ValidatorHistoricalRewardsRecord.fromPartial({})), + ValidatorCurrentRewardsRecord: getStructure(ValidatorCurrentRewardsRecord.fromPartial({})), + DelegatorStartingInfoRecord: getStructure(DelegatorStartingInfoRecord.fromPartial({})), + ValidatorSlashEventRecord: getStructure(ValidatorSlashEventRecord.fromPartial({})), Params: getStructure(Params.fromPartial({})), ValidatorHistoricalRewards: getStructure(ValidatorHistoricalRewards.fromPartial({})), ValidatorCurrentRewards: getStructure(ValidatorCurrentRewards.fromPartial({})), @@ -64,13 +71,6 @@ const getDefaultState = () => { DelegatorStartingInfo: getStructure(DelegatorStartingInfo.fromPartial({})), DelegationDelegatorReward: getStructure(DelegationDelegatorReward.fromPartial({})), CommunityPoolSpendProposalWithDeposit: getStructure(CommunityPoolSpendProposalWithDeposit.fromPartial({})), - DelegatorWithdrawInfo: getStructure(DelegatorWithdrawInfo.fromPartial({})), - ValidatorOutstandingRewardsRecord: getStructure(ValidatorOutstandingRewardsRecord.fromPartial({})), - ValidatorAccumulatedCommissionRecord: getStructure(ValidatorAccumulatedCommissionRecord.fromPartial({})), - ValidatorHistoricalRewardsRecord: getStructure(ValidatorHistoricalRewardsRecord.fromPartial({})), - ValidatorCurrentRewardsRecord: getStructure(ValidatorCurrentRewardsRecord.fromPartial({})), - DelegatorStartingInfoRecord: getStructure(DelegatorStartingInfoRecord.fromPartial({})), - ValidatorSlashEventRecord: getStructure(ValidatorSlashEventRecord.fromPartial({})), }, _Subscriptions: new Set(), }; @@ -301,6 +301,22 @@ export default { return {}; } }, + async sendMsgSetWithdrawAddress({ rootGetters }, { value, fee, memo }) { + try { + const msg = await (await initTxClient(rootGetters)).msgSetWithdrawAddress(value); + const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, + gas: "200000" }, memo }); + return result; + } + catch (e) { + if (e.toString() == 'wallet is required') { + throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Init', 'Could not initialize signing client. Wallet is required.'); + } + else { + throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Send', 'Could not broadcast Tx.'); + } + } + }, async sendMsgFundCommunityPool({ rootGetters }, { value, fee, memo }) { try { const msg = await (await initTxClient(rootGetters)).msgFundCommunityPool(value); @@ -349,19 +365,17 @@ export default { } } }, - async sendMsgSetWithdrawAddress({ rootGetters }, { value, fee, memo }) { + async MsgSetWithdrawAddress({ rootGetters }, { value }) { try { const msg = await (await initTxClient(rootGetters)).msgSetWithdrawAddress(value); - const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, - gas: "200000" }, memo }); - return result; + return msg; } catch (e) { if (e.toString() == 'wallet is required') { throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Create', 'Could not create message.'); } } }, @@ -407,19 +421,5 @@ export default { } } }, - async MsgSetWithdrawAddress({ rootGetters }, { value }) { - try { - const msg = await (await initTxClient(rootGetters)).msgSetWithdrawAddress(value); - return msg; - } - catch (e) { - if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Init', 'Could not initialize signing client. Wallet is required.'); - } - else { - throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Create', 'Could not create message.'); - } - } - }, } }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.ts index 12a4634..05bd39c 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.ts @@ -2,6 +2,13 @@ import { txClient, queryClient } from './module' // @ts-ignore import { SpVuexError } from '@starport/vuex' +import { DelegatorWithdrawInfo } from "./module/types/cosmos/distribution/v1beta1/genesis" +import { ValidatorOutstandingRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" +import { ValidatorAccumulatedCommissionRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" +import { ValidatorHistoricalRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" +import { ValidatorCurrentRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" +import { DelegatorStartingInfoRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" +import { ValidatorSlashEventRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" import { Params } from "./module/types/cosmos/distribution/v1beta1/distribution" import { ValidatorHistoricalRewards } from "./module/types/cosmos/distribution/v1beta1/distribution" import { ValidatorCurrentRewards } from "./module/types/cosmos/distribution/v1beta1/distribution" @@ -14,13 +21,6 @@ import { CommunityPoolSpendProposal } from "./module/types/cosmos/distribution/v import { DelegatorStartingInfo } from "./module/types/cosmos/distribution/v1beta1/distribution" import { DelegationDelegatorReward } from "./module/types/cosmos/distribution/v1beta1/distribution" import { CommunityPoolSpendProposalWithDeposit } from "./module/types/cosmos/distribution/v1beta1/distribution" -import { DelegatorWithdrawInfo } from "./module/types/cosmos/distribution/v1beta1/genesis" -import { ValidatorOutstandingRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" -import { ValidatorAccumulatedCommissionRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" -import { ValidatorHistoricalRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" -import { ValidatorCurrentRewardsRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" -import { DelegatorStartingInfoRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" -import { ValidatorSlashEventRecord } from "./module/types/cosmos/distribution/v1beta1/genesis" async function initTxClient(vuexGetters) { @@ -59,6 +59,13 @@ const getDefaultState = () => { CommunityPool: {}, _Structure: { + DelegatorWithdrawInfo: getStructure(DelegatorWithdrawInfo.fromPartial({})), + ValidatorOutstandingRewardsRecord: getStructure(ValidatorOutstandingRewardsRecord.fromPartial({})), + ValidatorAccumulatedCommissionRecord: getStructure(ValidatorAccumulatedCommissionRecord.fromPartial({})), + ValidatorHistoricalRewardsRecord: getStructure(ValidatorHistoricalRewardsRecord.fromPartial({})), + ValidatorCurrentRewardsRecord: getStructure(ValidatorCurrentRewardsRecord.fromPartial({})), + DelegatorStartingInfoRecord: getStructure(DelegatorStartingInfoRecord.fromPartial({})), + ValidatorSlashEventRecord: getStructure(ValidatorSlashEventRecord.fromPartial({})), Params: getStructure(Params.fromPartial({})), ValidatorHistoricalRewards: getStructure(ValidatorHistoricalRewards.fromPartial({})), ValidatorCurrentRewards: getStructure(ValidatorCurrentRewards.fromPartial({})), @@ -71,13 +78,6 @@ const getDefaultState = () => { DelegatorStartingInfo: getStructure(DelegatorStartingInfo.fromPartial({})), DelegationDelegatorReward: getStructure(DelegationDelegatorReward.fromPartial({})), CommunityPoolSpendProposalWithDeposit: getStructure(CommunityPoolSpendProposalWithDeposit.fromPartial({})), - DelegatorWithdrawInfo: getStructure(DelegatorWithdrawInfo.fromPartial({})), - ValidatorOutstandingRewardsRecord: getStructure(ValidatorOutstandingRewardsRecord.fromPartial({})), - ValidatorAccumulatedCommissionRecord: getStructure(ValidatorAccumulatedCommissionRecord.fromPartial({})), - ValidatorHistoricalRewardsRecord: getStructure(ValidatorHistoricalRewardsRecord.fromPartial({})), - ValidatorCurrentRewardsRecord: getStructure(ValidatorCurrentRewardsRecord.fromPartial({})), - DelegatorStartingInfoRecord: getStructure(DelegatorStartingInfoRecord.fromPartial({})), - ValidatorSlashEventRecord: getStructure(ValidatorSlashEventRecord.fromPartial({})), }, _Subscriptions: new Set(), @@ -313,6 +313,20 @@ export default { } }, + async sendMsgSetWithdrawAddress({ rootGetters }, { value, fee, memo }) { + try { + const msg = await (await initTxClient(rootGetters)).msgSetWithdrawAddress(value) + const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, + gas: "200000" }, memo}) + return result + } catch (e) { + if (e.toString()=='wallet is required') { + throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Init', 'Could not initialize signing client. Wallet is required.') + }else{ + throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Send', 'Could not broadcast Tx.') + } + } + }, async sendMsgFundCommunityPool({ rootGetters }, { value, fee, memo }) { try { const msg = await (await initTxClient(rootGetters)).msgFundCommunityPool(value) @@ -355,21 +369,19 @@ export default { } } }, - async sendMsgSetWithdrawAddress({ rootGetters }, { value, fee, memo }) { + + async MsgSetWithdrawAddress({ rootGetters }, { value }) { try { const msg = await (await initTxClient(rootGetters)).msgSetWithdrawAddress(value) - const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, - gas: "200000" }, memo}) - return result + return msg } catch (e) { if (e.toString()=='wallet is required') { throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Create', 'Could not create message.') } } }, - async MsgFundCommunityPool({ rootGetters }, { value }) { try { const msg = await (await initTxClient(rootGetters)).msgFundCommunityPool(value) @@ -406,18 +418,6 @@ export default { } } }, - async MsgSetWithdrawAddress({ rootGetters }, { value }) { - try { - const msg = await (await initTxClient(rootGetters)).msgSetWithdrawAddress(value) - return msg - } catch (e) { - if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Init', 'Could not initialize signing client. Wallet is required.') - }else{ - throw new SpVuexError('TxClient:MsgSetWithdrawAddress:Create', 'Could not create message.') - } - } - }, } } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.d.ts index 8c44f85..44fca3d 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.d.ts @@ -1,10 +1,10 @@ import { StdFee } from "@cosmjs/launchpad"; import { OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; interface TxClientOptions { addr: string; } @@ -14,10 +14,10 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions) => Promise<import("@cosmjs/stargate").BroadcastTxResponse>; + msgSetWithdrawAddress: (data: MsgSetWithdrawAddress) => EncodeObject; msgFundCommunityPool: (data: MsgFundCommunityPool) => EncodeObject; msgWithdrawValidatorCommission: (data: MsgWithdrawValidatorCommission) => EncodeObject; msgWithdrawDelegatorReward: (data: MsgWithdrawDelegatorReward) => EncodeObject; - msgSetWithdrawAddress: (data: MsgSetWithdrawAddress) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.js index e60b34e..165e3d5 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.js @@ -2,15 +2,15 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; const types = [ + ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], - ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ]; const registry = new Registry(types); const defaultFee = { @@ -24,10 +24,10 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee = defaultFee, memo = null }) => memo ? client.signAndBroadcast(address, msgs, fee, memo) : client.signAndBroadcast(address, msgs, fee), + msgSetWithdrawAddress: (data) => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: data }), msgFundCommunityPool: (data) => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: data }), msgWithdrawValidatorCommission: (data) => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: data }), msgWithdrawDelegatorReward: (data) => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: data }), - msgSetWithdrawAddress: (data) => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: data }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.ts index 3780c7a..26966a1 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.ts @@ -4,17 +4,17 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; const types = [ + ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], - ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ]; @@ -42,10 +42,10 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee=defaultFee, memo=null }: SignAndBroadcastOptions) => memo?client.signAndBroadcast(address, msgs, fee,memo):client.signAndBroadcast(address, msgs, fee), + msgSetWithdrawAddress: (data: MsgSetWithdrawAddress): EncodeObject => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: data }), msgFundCommunityPool: (data: MsgFundCommunityPool): EncodeObject => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: data }), msgWithdrawValidatorCommission: (data: MsgWithdrawValidatorCommission): EncodeObject => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: data }), msgWithdrawDelegatorReward: (data: MsgWithdrawDelegatorReward): EncodeObject => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: data }), - msgSetWithdrawAddress: (data: MsgSetWithdrawAddress): EncodeObject => ({ typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: data }), }; }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.d.ts index 685b4e9..475d3e5 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.d.ts @@ -265,7 +265,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title cosmos/distribution/v1beta1/tx.proto + * @title cosmos/distribution/v1beta1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.js index 02c1b15..e8f8c88 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.js @@ -130,7 +130,7 @@ export class HttpClient { } } /** - * @title cosmos/distribution/v1beta1/tx.proto + * @title cosmos/distribution/v1beta1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.ts index 24ef404..41e42e1 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/rest.ts @@ -445,7 +445,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title cosmos/distribution/v1beta1/tx.proto + * @title cosmos/distribution/v1beta1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.d.ts index 13d7ae7..0589066 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.d.ts @@ -253,7 +253,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title cosmos/evidence/v1beta1/tx.proto + * @title cosmos/evidence/v1beta1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.js index 6896747..aae7d8c 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.js @@ -130,7 +130,7 @@ export class HttpClient { } } /** - * @title cosmos/evidence/v1beta1/tx.proto + * @title cosmos/evidence/v1beta1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.ts index c33b99f..49ede74 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/rest.ts @@ -415,7 +415,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title cosmos/evidence/v1beta1/tx.proto + * @title cosmos/evidence/v1beta1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/timestamp.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/timestamp.d.ts index 82af3da..0c9db0b 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/timestamp.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/timestamp.d.ts @@ -1,17 +1,19 @@ import { Writer, Reader } from "protobufjs/minimal"; export declare const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -50,7 +52,16 @@ export declare const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -72,12 +83,14 @@ export declare const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/timestamp.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/timestamp.ts index 52a7265..11864af 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/timestamp.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/protobuf/timestamp.ts @@ -5,17 +5,19 @@ import { util, configure, Writer, Reader } from "protobufjs/minimal"; export const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -54,7 +56,16 @@ export const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -76,12 +87,14 @@ export const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.js index 1a26234..3e574d2 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.js @@ -281,6 +281,22 @@ export default { return {}; } }, + async sendMsgVote({ rootGetters }, { value, fee, memo }) { + try { + const msg = await (await initTxClient(rootGetters)).msgVote(value); + const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, + gas: "200000" }, memo }); + return result; + } + catch (e) { + if (e.toString() == 'wallet is required') { + throw new SpVuexError('TxClient:MsgVote:Init', 'Could not initialize signing client. Wallet is required.'); + } + else { + throw new SpVuexError('TxClient:MsgVote:Send', 'Could not broadcast Tx.'); + } + } + }, async sendMsgSubmitProposal({ rootGetters }, { value, fee, memo }) { try { const msg = await (await initTxClient(rootGetters)).msgSubmitProposal(value); @@ -313,19 +329,17 @@ export default { } } }, - async sendMsgVote({ rootGetters }, { value, fee, memo }) { + async MsgVote({ rootGetters }, { value }) { try { const msg = await (await initTxClient(rootGetters)).msgVote(value); - const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, - gas: "200000" }, memo }); - return result; + return msg; } catch (e) { if (e.toString() == 'wallet is required') { throw new SpVuexError('TxClient:MsgVote:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgVote:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgVote:Create', 'Could not create message.'); } } }, @@ -357,19 +371,5 @@ export default { } } }, - async MsgVote({ rootGetters }, { value }) { - try { - const msg = await (await initTxClient(rootGetters)).msgVote(value); - return msg; - } - catch (e) { - if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgVote:Init', 'Could not initialize signing client. Wallet is required.'); - } - else { - throw new SpVuexError('TxClient:MsgVote:Create', 'Could not create message.'); - } - } - }, } }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.ts index c9861ef..9be30c2 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.ts @@ -293,6 +293,20 @@ export default { } }, + async sendMsgVote({ rootGetters }, { value, fee, memo }) { + try { + const msg = await (await initTxClient(rootGetters)).msgVote(value) + const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, + gas: "200000" }, memo}) + return result + } catch (e) { + if (e.toString()=='wallet is required') { + throw new SpVuexError('TxClient:MsgVote:Init', 'Could not initialize signing client. Wallet is required.') + }else{ + throw new SpVuexError('TxClient:MsgVote:Send', 'Could not broadcast Tx.') + } + } + }, async sendMsgSubmitProposal({ rootGetters }, { value, fee, memo }) { try { const msg = await (await initTxClient(rootGetters)).msgSubmitProposal(value) @@ -321,21 +335,19 @@ export default { } } }, - async sendMsgVote({ rootGetters }, { value, fee, memo }) { + + async MsgVote({ rootGetters }, { value }) { try { const msg = await (await initTxClient(rootGetters)).msgVote(value) - const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, - gas: "200000" }, memo}) - return result + return msg } catch (e) { if (e.toString()=='wallet is required') { throw new SpVuexError('TxClient:MsgVote:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgVote:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgVote:Create', 'Could not create message.') } } }, - async MsgSubmitProposal({ rootGetters }, { value }) { try { const msg = await (await initTxClient(rootGetters)).msgSubmitProposal(value) @@ -360,18 +372,6 @@ export default { } } }, - async MsgVote({ rootGetters }, { value }) { - try { - const msg = await (await initTxClient(rootGetters)).msgVote(value) - return msg - } catch (e) { - if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgVote:Init', 'Could not initialize signing client. Wallet is required.') - }else{ - throw new SpVuexError('TxClient:MsgVote:Create', 'Could not create message.') - } - } - }, } } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.d.ts index 8362a7a..4af94e5 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.d.ts @@ -1,9 +1,9 @@ import { StdFee } from "@cosmjs/launchpad"; import { OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; interface TxClientOptions { addr: string; } @@ -13,9 +13,9 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions) => Promise<import("@cosmjs/stargate").BroadcastTxResponse>; + msgVote: (data: MsgVote) => EncodeObject; msgSubmitProposal: (data: MsgSubmitProposal) => EncodeObject; msgDeposit: (data: MsgDeposit) => EncodeObject; - msgVote: (data: MsgVote) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.js index 89faa3a..0f69b52 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.js @@ -2,13 +2,13 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; const types = [ + ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit], - ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ]; const registry = new Registry(types); const defaultFee = { @@ -22,9 +22,9 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee = defaultFee, memo = null }) => memo ? client.signAndBroadcast(address, msgs, fee, memo) : client.signAndBroadcast(address, msgs, fee), + msgVote: (data) => ({ typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: data }), msgSubmitProposal: (data) => ({ typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: data }), msgDeposit: (data) => ({ typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: data }), - msgVote: (data) => ({ typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: data }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.ts index 8d5ad03..f1bcdb1 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.ts @@ -4,15 +4,15 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; const types = [ + ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit], - ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ]; @@ -40,9 +40,9 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee=defaultFee, memo=null }: SignAndBroadcastOptions) => memo?client.signAndBroadcast(address, msgs, fee,memo):client.signAndBroadcast(address, msgs, fee), + msgVote: (data: MsgVote): EncodeObject => ({ typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: data }), msgSubmitProposal: (data: MsgSubmitProposal): EncodeObject => ({ typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: data }), msgDeposit: (data: MsgDeposit): EncodeObject => ({ typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: data }), - msgVote: (data: MsgVote): EncodeObject => ({ typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: data }), }; }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.d.ts index b3bb3cd..957be0f 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.d.ts @@ -550,7 +550,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title cosmos/gov/v1beta1/gov.proto + * @title cosmos/gov/v1beta1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.js index 1bea9eb..2092059 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.js @@ -171,7 +171,7 @@ export class HttpClient { } } /** - * @title cosmos/gov/v1beta1/gov.proto + * @title cosmos/gov/v1beta1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.ts index b5c0ae7..d90f570 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/rest.ts @@ -745,7 +745,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title cosmos/gov/v1beta1/gov.proto + * @title cosmos/gov/v1beta1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/duration.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/duration.d.ts index b586045..3493f63 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/duration.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/duration.d.ts @@ -22,7 +22,7 @@ export declare const protobufPackage = "google.protobuf"; * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { + * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/duration.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/duration.ts index f67058a..fffd5b1 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/duration.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/duration.ts @@ -26,7 +26,7 @@ export const protobufPackage = "google.protobuf"; * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { + * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/timestamp.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/timestamp.d.ts index 82af3da..0c9db0b 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/timestamp.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/timestamp.d.ts @@ -1,17 +1,19 @@ import { Writer, Reader } from "protobufjs/minimal"; export declare const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -50,7 +52,16 @@ export declare const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -72,12 +83,14 @@ export declare const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/timestamp.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/timestamp.ts index 52a7265..11864af 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/timestamp.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/protobuf/timestamp.ts @@ -5,17 +5,19 @@ import { util, configure, Writer, Reader } from "protobufjs/minimal"; export const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -54,7 +56,16 @@ export const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -76,12 +87,14 @@ export const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.d.ts index 460ef25..22cc107 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.d.ts @@ -168,7 +168,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title cosmos/slashing/v1beta1/slashing.proto + * @title cosmos/slashing/v1beta1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.js index 8cec4c3..8df4227 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.js @@ -130,7 +130,7 @@ export class HttpClient { } } /** - * @title cosmos/slashing/v1beta1/slashing.proto + * @title cosmos/slashing/v1beta1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.ts index e2001f9..8ea3cf7 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/rest.ts @@ -340,7 +340,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title cosmos/slashing/v1beta1/slashing.proto + * @title cosmos/slashing/v1beta1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/duration.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/duration.d.ts index b586045..3493f63 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/duration.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/duration.d.ts @@ -22,7 +22,7 @@ export declare const protobufPackage = "google.protobuf"; * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { + * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/duration.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/duration.ts index f67058a..fffd5b1 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/duration.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/duration.ts @@ -26,7 +26,7 @@ export const protobufPackage = "google.protobuf"; * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { + * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/timestamp.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/timestamp.d.ts index 82af3da..0c9db0b 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/timestamp.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/timestamp.d.ts @@ -1,17 +1,19 @@ import { Writer, Reader } from "protobufjs/minimal"; export declare const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -50,7 +52,16 @@ export declare const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -72,12 +83,14 @@ export declare const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/timestamp.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/timestamp.ts index 52a7265..11864af 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/timestamp.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/protobuf/timestamp.ts @@ -5,17 +5,19 @@ import { util, configure, Writer, Reader } from "protobufjs/minimal"; export const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -54,7 +56,16 @@ export const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -76,12 +87,14 @@ export const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.js index 1b4a5ba..2c21ab3 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.js @@ -471,19 +471,19 @@ export default { return {}; } }, - async sendMsgDelegate({ rootGetters }, { value, fee, memo }) { + async sendMsgCreateValidator({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgDelegate(value); + const msg = await (await initTxClient(rootGetters)).msgCreateValidator(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgDelegate:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgDelegate:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgCreateValidator:Send', 'Could not broadcast Tx.'); } } }, @@ -503,35 +503,35 @@ export default { } } }, - async sendMsgCreateValidator({ rootGetters }, { value, fee, memo }) { + async sendMsgUndelegate({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgCreateValidator(value); + const msg = await (await initTxClient(rootGetters)).msgUndelegate(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgUndelegate:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgCreateValidator:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgUndelegate:Send', 'Could not broadcast Tx.'); } } }, - async sendMsgUndelegate({ rootGetters }, { value, fee, memo }) { + async sendMsgDelegate({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgUndelegate(value); + const msg = await (await initTxClient(rootGetters)).msgDelegate(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgUndelegate:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgDelegate:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgUndelegate:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgDelegate:Send', 'Could not broadcast Tx.'); } } }, @@ -551,17 +551,17 @@ export default { } } }, - async MsgDelegate({ rootGetters }, { value }) { + async MsgCreateValidator({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgDelegate(value); + const msg = await (await initTxClient(rootGetters)).msgCreateValidator(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgDelegate:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgDelegate:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgCreateValidator:Create', 'Could not create message.'); } } }, @@ -579,31 +579,31 @@ export default { } } }, - async MsgCreateValidator({ rootGetters }, { value }) { + async MsgUndelegate({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgCreateValidator(value); + const msg = await (await initTxClient(rootGetters)).msgUndelegate(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgUndelegate:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgCreateValidator:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgUndelegate:Create', 'Could not create message.'); } } }, - async MsgUndelegate({ rootGetters }, { value }) { + async MsgDelegate({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgUndelegate(value); + const msg = await (await initTxClient(rootGetters)).msgDelegate(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgUndelegate:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgDelegate:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgUndelegate:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgDelegate:Create', 'Could not create message.'); } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.ts index 0656255..68b47ad 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.ts @@ -483,17 +483,17 @@ export default { } }, - async sendMsgDelegate({ rootGetters }, { value, fee, memo }) { + async sendMsgCreateValidator({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgDelegate(value) + const msg = await (await initTxClient(rootGetters)).msgCreateValidator(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgDelegate:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgDelegate:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgCreateValidator:Send', 'Could not broadcast Tx.') } } }, @@ -511,31 +511,31 @@ export default { } } }, - async sendMsgCreateValidator({ rootGetters }, { value, fee, memo }) { + async sendMsgUndelegate({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgCreateValidator(value) + const msg = await (await initTxClient(rootGetters)).msgUndelegate(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgUndelegate:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgCreateValidator:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgUndelegate:Send', 'Could not broadcast Tx.') } } }, - async sendMsgUndelegate({ rootGetters }, { value, fee, memo }) { + async sendMsgDelegate({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgUndelegate(value) + const msg = await (await initTxClient(rootGetters)).msgDelegate(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgUndelegate:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgDelegate:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgUndelegate:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgDelegate:Send', 'Could not broadcast Tx.') } } }, @@ -554,15 +554,15 @@ export default { } }, - async MsgDelegate({ rootGetters }, { value }) { + async MsgCreateValidator({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgDelegate(value) + const msg = await (await initTxClient(rootGetters)).msgCreateValidator(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgDelegate:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgDelegate:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgCreateValidator:Create', 'Could not create message.') } } }, @@ -578,27 +578,27 @@ export default { } } }, - async MsgCreateValidator({ rootGetters }, { value }) { + async MsgUndelegate({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgCreateValidator(value) + const msg = await (await initTxClient(rootGetters)).msgUndelegate(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgUndelegate:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgCreateValidator:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgUndelegate:Create', 'Could not create message.') } } }, - async MsgUndelegate({ rootGetters }, { value }) { + async MsgDelegate({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgUndelegate(value) + const msg = await (await initTxClient(rootGetters)).msgDelegate(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgUndelegate:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgDelegate:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgUndelegate:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgDelegate:Create', 'Could not create message.') } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.d.ts index 29652a3..a66d6e0 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.d.ts @@ -1,10 +1,10 @@ import { StdFee } from "@cosmjs/launchpad"; import { OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; interface TxClientOptions { addr: string; @@ -15,10 +15,10 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions) => Promise<import("@cosmjs/stargate").BroadcastTxResponse>; - msgDelegate: (data: MsgDelegate) => EncodeObject; - msgEditValidator: (data: MsgEditValidator) => EncodeObject; msgCreateValidator: (data: MsgCreateValidator) => EncodeObject; + msgEditValidator: (data: MsgEditValidator) => EncodeObject; msgUndelegate: (data: MsgUndelegate) => EncodeObject; + msgDelegate: (data: MsgDelegate) => EncodeObject; msgBeginRedelegate: (data: MsgBeginRedelegate) => EncodeObject; }>; interface QueryClientOptions { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.js index 23404b0..eef857f 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.js @@ -2,16 +2,16 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; const types = [ - ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], - ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], + ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], + ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ]; const registry = new Registry(types); @@ -26,10 +26,10 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee = defaultFee, memo = null }) => memo ? client.signAndBroadcast(address, msgs, fee, memo) : client.signAndBroadcast(address, msgs, fee), - msgDelegate: (data) => ({ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: data }), - msgEditValidator: (data) => ({ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: data }), msgCreateValidator: (data) => ({ typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: data }), + msgEditValidator: (data) => ({ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: data }), msgUndelegate: (data) => ({ typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: data }), + msgDelegate: (data) => ({ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: data }), msgBeginRedelegate: (data) => ({ typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: data }), }; }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.ts index 7d3d3b6..ddebc02 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.ts @@ -4,18 +4,18 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; const types = [ - ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], - ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], + ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], + ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ]; @@ -44,10 +44,10 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee=defaultFee, memo=null }: SignAndBroadcastOptions) => memo?client.signAndBroadcast(address, msgs, fee,memo):client.signAndBroadcast(address, msgs, fee), - msgDelegate: (data: MsgDelegate): EncodeObject => ({ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: data }), - msgEditValidator: (data: MsgEditValidator): EncodeObject => ({ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: data }), msgCreateValidator: (data: MsgCreateValidator): EncodeObject => ({ typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: data }), + msgEditValidator: (data: MsgEditValidator): EncodeObject => ({ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: data }), msgUndelegate: (data: MsgUndelegate): EncodeObject => ({ typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: data }), + msgDelegate: (data: MsgDelegate): EncodeObject => ({ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: data }), msgBeginRedelegate: (data: MsgBeginRedelegate): EncodeObject => ({ typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: data }), }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.d.ts index 6d18488..ab0524b 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.d.ts @@ -681,7 +681,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title cosmos/staking/v1beta1/staking.proto + * @title cosmos/staking/v1beta1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.js index 52ec2e3..1d2a55d 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.js @@ -145,7 +145,7 @@ export class HttpClient { } } /** - * @title cosmos/staking/v1beta1/staking.proto + * @title cosmos/staking/v1beta1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.ts index 972f2fe..a19b34d 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/rest.ts @@ -934,7 +934,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title cosmos/staking/v1beta1/staking.proto + * @title cosmos/staking/v1beta1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/duration.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/duration.d.ts index b586045..3493f63 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/duration.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/duration.d.ts @@ -22,7 +22,7 @@ export declare const protobufPackage = "google.protobuf"; * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { + * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/duration.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/duration.ts index f67058a..fffd5b1 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/duration.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/duration.ts @@ -26,7 +26,7 @@ export const protobufPackage = "google.protobuf"; * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { + * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/timestamp.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/timestamp.d.ts index 82af3da..0c9db0b 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/timestamp.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/timestamp.d.ts @@ -1,17 +1,19 @@ import { Writer, Reader } from "protobufjs/minimal"; export declare const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -50,7 +52,16 @@ export declare const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -72,12 +83,14 @@ export declare const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/timestamp.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/timestamp.ts index 52a7265..11864af 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/timestamp.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/protobuf/timestamp.ts @@ -5,17 +5,19 @@ import { util, configure, Writer, Reader } from "protobufjs/minimal"; export const protobufPackage = "google.protobuf"; /** - * A Timestamp represents a point in time independent of any time zone - * or calendar, represented as seconds and fractions of seconds at - * nanosecond resolution in UTC Epoch time. It is encoded using the - * Proleptic Gregorian Calendar which extends the Gregorian calendar - * backwards to year one. It is encoded assuming all minutes are 60 - * seconds long, i.e. leap seconds are "smeared" so that no leap second - * table is needed for interpretation. Range is from - * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. - * By restricting to that range, we ensure that we can convert to - * and from RFC 3339 date strings. - * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * @@ -54,7 +56,16 @@ export const protobufPackage = "google.protobuf"; * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * + * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -76,12 +87,14 @@ export const protobufPackage = "google.protobuf"; * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) - * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one - * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.d.ts index 678d5a6..86578b9 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.d.ts @@ -190,7 +190,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title cosmos/vesting/v1beta1/vesting.proto + * @title cosmos/vesting/v1beta1/tx.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.js index fbf438f..9409326 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.js @@ -130,7 +130,7 @@ export class HttpClient { } } /** - * @title cosmos/vesting/v1beta1/vesting.proto + * @title cosmos/vesting/v1beta1/tx.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.ts index f03aea5..0dd0e5f 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/rest.ts @@ -344,7 +344,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title cosmos/vesting/v1beta1/vesting.proto + * @title cosmos/vesting/v1beta1/tx.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {} diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.d.ts index 4c0524a..830258b 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.d.ts @@ -309,7 +309,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title ibc/applications/transfer/v1/tx.proto + * @title ibc/applications/transfer/v1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.js index 505eacd..f0cff8a 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.js @@ -130,7 +130,7 @@ export class HttpClient { } } /** - * @title ibc/applications/transfer/v1/tx.proto + * @title ibc/applications/transfer/v1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.ts index d69d69c..a93ffbc 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/rest.ts @@ -479,7 +479,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title ibc/applications/transfer/v1/tx.proto + * @title ibc/applications/transfer/v1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.applications.transfer.v1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/index.js index 0d49567..70bfd78 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/index.js @@ -1,13 +1,13 @@ import { txClient, queryClient } from './module'; // @ts-ignore import { SpVuexError } from '@starport/vuex'; +import { PacketSequence } from "./module/types/ibc/core/channel/v1/genesis"; import { Channel } from "./module/types/ibc/core/channel/v1/channel"; import { IdentifiedChannel } from "./module/types/ibc/core/channel/v1/channel"; import { Counterparty } from "./module/types/ibc/core/channel/v1/channel"; import { Packet } from "./module/types/ibc/core/channel/v1/channel"; import { PacketState } from "./module/types/ibc/core/channel/v1/channel"; import { Acknowledgement } from "./module/types/ibc/core/channel/v1/channel"; -import { PacketSequence } from "./module/types/ibc/core/channel/v1/genesis"; async function initTxClient(vuexGetters) { return await txClient(vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] @@ -44,13 +44,13 @@ const getDefaultState = () => { UnreceivedAcks: {}, NextSequenceReceive: {}, _Structure: { + PacketSequence: getStructure(PacketSequence.fromPartial({})), Channel: getStructure(Channel.fromPartial({})), IdentifiedChannel: getStructure(IdentifiedChannel.fromPartial({})), Counterparty: getStructure(Counterparty.fromPartial({})), Packet: getStructure(Packet.fromPartial({})), PacketState: getStructure(PacketState.fromPartial({})), Acknowledgement: getStructure(Acknowledgement.fromPartial({})), - PacketSequence: getStructure(PacketSequence.fromPartial({})), }, _Subscriptions: new Set(), }; @@ -390,19 +390,19 @@ export default { return {}; } }, - async sendMsgChannelOpenInit({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelOpenTry({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenInit(value); + const msg = await (await initTxClient(rootGetters)).msgChannelOpenTry(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenInit:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelOpenTry:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelOpenInit:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgChannelOpenTry:Send', 'Could not broadcast Tx.'); } } }, @@ -422,51 +422,51 @@ export default { } } }, - async sendMsgChannelOpenAck({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelOpenInit({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenAck(value); + const msg = await (await initTxClient(rootGetters)).msgChannelOpenInit(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenAck:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelOpenInit:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelOpenAck:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgChannelOpenInit:Send', 'Could not broadcast Tx.'); } } }, - async sendMsgChannelCloseInit({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelCloseConfirm({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelCloseInit(value); + const msg = await (await initTxClient(rootGetters)).msgChannelCloseConfirm(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelCloseInit:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelCloseInit:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Send', 'Could not broadcast Tx.'); } } }, - async sendMsgChannelCloseConfirm({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelCloseInit({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelCloseConfirm(value); + const msg = await (await initTxClient(rootGetters)).msgChannelCloseInit(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelCloseInit:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgChannelCloseInit:Send', 'Could not broadcast Tx.'); } } }, @@ -486,35 +486,35 @@ export default { } } }, - async sendMsgChannelOpenTry({ rootGetters }, { value, fee, memo }) { + async sendMsgRecvPacket({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenTry(value); + const msg = await (await initTxClient(rootGetters)).msgRecvPacket(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenTry:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRecvPacket:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelOpenTry:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgRecvPacket:Send', 'Could not broadcast Tx.'); } } }, - async sendMsgRecvPacket({ rootGetters }, { value, fee, memo }) { + async sendMsgAcknowledgement({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgRecvPacket(value); + const msg = await (await initTxClient(rootGetters)).msgAcknowledgement(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgRecvPacket:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgAcknowledgement:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgRecvPacket:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgAcknowledgement:Send', 'Could not broadcast Tx.'); } } }, @@ -534,33 +534,33 @@ export default { } } }, - async sendMsgAcknowledgement({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelOpenAck({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgAcknowledgement(value); + const msg = await (await initTxClient(rootGetters)).msgChannelOpenAck(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgAcknowledgement:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelOpenAck:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgAcknowledgement:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgChannelOpenAck:Send', 'Could not broadcast Tx.'); } } }, - async MsgChannelOpenInit({ rootGetters }, { value }) { + async MsgChannelOpenTry({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenInit(value); + const msg = await (await initTxClient(rootGetters)).msgChannelOpenTry(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenInit:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelOpenTry:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelOpenInit:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgChannelOpenTry:Create', 'Could not create message.'); } } }, @@ -578,45 +578,45 @@ export default { } } }, - async MsgChannelOpenAck({ rootGetters }, { value }) { + async MsgChannelOpenInit({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenAck(value); + const msg = await (await initTxClient(rootGetters)).msgChannelOpenInit(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenAck:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelOpenInit:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelOpenAck:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgChannelOpenInit:Create', 'Could not create message.'); } } }, - async MsgChannelCloseInit({ rootGetters }, { value }) { + async MsgChannelCloseConfirm({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelCloseInit(value); + const msg = await (await initTxClient(rootGetters)).msgChannelCloseConfirm(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelCloseInit:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelCloseInit:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Create', 'Could not create message.'); } } }, - async MsgChannelCloseConfirm({ rootGetters }, { value }) { + async MsgChannelCloseInit({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelCloseConfirm(value); + const msg = await (await initTxClient(rootGetters)).msgChannelCloseInit(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelCloseInit:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgChannelCloseInit:Create', 'Could not create message.'); } } }, @@ -634,31 +634,31 @@ export default { } } }, - async MsgChannelOpenTry({ rootGetters }, { value }) { + async MsgRecvPacket({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenTry(value); + const msg = await (await initTxClient(rootGetters)).msgRecvPacket(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenTry:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRecvPacket:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgChannelOpenTry:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgRecvPacket:Create', 'Could not create message.'); } } }, - async MsgRecvPacket({ rootGetters }, { value }) { + async MsgAcknowledgement({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgRecvPacket(value); + const msg = await (await initTxClient(rootGetters)).msgAcknowledgement(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgRecvPacket:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgAcknowledgement:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgRecvPacket:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgAcknowledgement:Create', 'Could not create message.'); } } }, @@ -676,17 +676,17 @@ export default { } } }, - async MsgAcknowledgement({ rootGetters }, { value }) { + async MsgChannelOpenAck({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgAcknowledgement(value); + const msg = await (await initTxClient(rootGetters)).msgChannelOpenAck(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgAcknowledgement:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgChannelOpenAck:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgAcknowledgement:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgChannelOpenAck:Create', 'Could not create message.'); } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/index.ts index 5a56700..d571945 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/index.ts @@ -2,13 +2,13 @@ import { txClient, queryClient } from './module' // @ts-ignore import { SpVuexError } from '@starport/vuex' +import { PacketSequence } from "./module/types/ibc/core/channel/v1/genesis" import { Channel } from "./module/types/ibc/core/channel/v1/channel" import { IdentifiedChannel } from "./module/types/ibc/core/channel/v1/channel" import { Counterparty } from "./module/types/ibc/core/channel/v1/channel" import { Packet } from "./module/types/ibc/core/channel/v1/channel" import { PacketState } from "./module/types/ibc/core/channel/v1/channel" import { Acknowledgement } from "./module/types/ibc/core/channel/v1/channel" -import { PacketSequence } from "./module/types/ibc/core/channel/v1/genesis" async function initTxClient(vuexGetters) { @@ -51,13 +51,13 @@ const getDefaultState = () => { NextSequenceReceive: {}, _Structure: { + PacketSequence: getStructure(PacketSequence.fromPartial({})), Channel: getStructure(Channel.fromPartial({})), IdentifiedChannel: getStructure(IdentifiedChannel.fromPartial({})), Counterparty: getStructure(Counterparty.fromPartial({})), Packet: getStructure(Packet.fromPartial({})), PacketState: getStructure(PacketState.fromPartial({})), Acknowledgement: getStructure(Acknowledgement.fromPartial({})), - PacketSequence: getStructure(PacketSequence.fromPartial({})), }, _Subscriptions: new Set(), @@ -402,17 +402,17 @@ export default { } }, - async sendMsgChannelOpenInit({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelOpenTry({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenInit(value) + const msg = await (await initTxClient(rootGetters)).msgChannelOpenTry(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenInit:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelOpenTry:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelOpenInit:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgChannelOpenTry:Send', 'Could not broadcast Tx.') } } }, @@ -430,45 +430,45 @@ export default { } } }, - async sendMsgChannelOpenAck({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelOpenInit({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenAck(value) + const msg = await (await initTxClient(rootGetters)).msgChannelOpenInit(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenAck:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelOpenInit:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelOpenAck:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgChannelOpenInit:Send', 'Could not broadcast Tx.') } } }, - async sendMsgChannelCloseInit({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelCloseConfirm({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelCloseInit(value) + const msg = await (await initTxClient(rootGetters)).msgChannelCloseConfirm(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelCloseInit:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelCloseInit:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Send', 'Could not broadcast Tx.') } } }, - async sendMsgChannelCloseConfirm({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelCloseInit({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelCloseConfirm(value) + const msg = await (await initTxClient(rootGetters)).msgChannelCloseInit(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelCloseInit:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgChannelCloseInit:Send', 'Could not broadcast Tx.') } } }, @@ -486,31 +486,31 @@ export default { } } }, - async sendMsgChannelOpenTry({ rootGetters }, { value, fee, memo }) { + async sendMsgRecvPacket({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenTry(value) + const msg = await (await initTxClient(rootGetters)).msgRecvPacket(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenTry:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRecvPacket:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelOpenTry:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgRecvPacket:Send', 'Could not broadcast Tx.') } } }, - async sendMsgRecvPacket({ rootGetters }, { value, fee, memo }) { + async sendMsgAcknowledgement({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgRecvPacket(value) + const msg = await (await initTxClient(rootGetters)).msgAcknowledgement(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgRecvPacket:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgAcknowledgement:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgRecvPacket:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgAcknowledgement:Send', 'Could not broadcast Tx.') } } }, @@ -528,30 +528,30 @@ export default { } } }, - async sendMsgAcknowledgement({ rootGetters }, { value, fee, memo }) { + async sendMsgChannelOpenAck({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgAcknowledgement(value) + const msg = await (await initTxClient(rootGetters)).msgChannelOpenAck(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgAcknowledgement:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelOpenAck:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgAcknowledgement:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgChannelOpenAck:Send', 'Could not broadcast Tx.') } } }, - async MsgChannelOpenInit({ rootGetters }, { value }) { + async MsgChannelOpenTry({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenInit(value) + const msg = await (await initTxClient(rootGetters)).msgChannelOpenTry(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenInit:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelOpenTry:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelOpenInit:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgChannelOpenTry:Create', 'Could not create message.') } } }, @@ -567,39 +567,39 @@ export default { } } }, - async MsgChannelOpenAck({ rootGetters }, { value }) { + async MsgChannelOpenInit({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenAck(value) + const msg = await (await initTxClient(rootGetters)).msgChannelOpenInit(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenAck:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelOpenInit:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelOpenAck:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgChannelOpenInit:Create', 'Could not create message.') } } }, - async MsgChannelCloseInit({ rootGetters }, { value }) { + async MsgChannelCloseConfirm({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelCloseInit(value) + const msg = await (await initTxClient(rootGetters)).msgChannelCloseConfirm(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelCloseInit:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelCloseInit:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Create', 'Could not create message.') } } }, - async MsgChannelCloseConfirm({ rootGetters }, { value }) { + async MsgChannelCloseInit({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelCloseConfirm(value) + const msg = await (await initTxClient(rootGetters)).msgChannelCloseInit(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelCloseInit:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelCloseConfirm:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgChannelCloseInit:Create', 'Could not create message.') } } }, @@ -615,27 +615,27 @@ export default { } } }, - async MsgChannelOpenTry({ rootGetters }, { value }) { + async MsgRecvPacket({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgChannelOpenTry(value) + const msg = await (await initTxClient(rootGetters)).msgRecvPacket(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgChannelOpenTry:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRecvPacket:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgChannelOpenTry:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgRecvPacket:Create', 'Could not create message.') } } }, - async MsgRecvPacket({ rootGetters }, { value }) { + async MsgAcknowledgement({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgRecvPacket(value) + const msg = await (await initTxClient(rootGetters)).msgAcknowledgement(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgRecvPacket:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgAcknowledgement:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgRecvPacket:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgAcknowledgement:Create', 'Could not create message.') } } }, @@ -651,15 +651,15 @@ export default { } } }, - async MsgAcknowledgement({ rootGetters }, { value }) { + async MsgChannelOpenAck({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgAcknowledgement(value) + const msg = await (await initTxClient(rootGetters)).msgChannelOpenAck(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgAcknowledgement:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgChannelOpenAck:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgAcknowledgement:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgChannelOpenAck:Create', 'Could not create message.') } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.d.ts index 146340c..e081a09 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.d.ts @@ -1,16 +1,16 @@ import { StdFee } from "@cosmjs/launchpad"; import { OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; interface TxClientOptions { addr: string; } @@ -20,16 +20,16 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions) => Promise<import("@cosmjs/stargate").BroadcastTxResponse>; - msgChannelOpenInit: (data: MsgChannelOpenInit) => EncodeObject; + msgChannelOpenTry: (data: MsgChannelOpenTry) => EncodeObject; msgTimeout: (data: MsgTimeout) => EncodeObject; - msgChannelOpenAck: (data: MsgChannelOpenAck) => EncodeObject; - msgChannelCloseInit: (data: MsgChannelCloseInit) => EncodeObject; + msgChannelOpenInit: (data: MsgChannelOpenInit) => EncodeObject; msgChannelCloseConfirm: (data: MsgChannelCloseConfirm) => EncodeObject; + msgChannelCloseInit: (data: MsgChannelCloseInit) => EncodeObject; msgChannelOpenConfirm: (data: MsgChannelOpenConfirm) => EncodeObject; - msgChannelOpenTry: (data: MsgChannelOpenTry) => EncodeObject; msgRecvPacket: (data: MsgRecvPacket) => EncodeObject; - msgTimeoutOnClose: (data: MsgTimeoutOnClose) => EncodeObject; msgAcknowledgement: (data: MsgAcknowledgement) => EncodeObject; + msgTimeoutOnClose: (data: MsgTimeoutOnClose) => EncodeObject; + msgChannelOpenAck: (data: MsgChannelOpenAck) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.js index c94ce11..b39ad39 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.js @@ -2,27 +2,27 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; const types = [ - ["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], + ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgTimeout", MsgTimeout], - ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], - ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], + ["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], ["/ibc.core.channel.v1.MsgChannelCloseConfirm", MsgChannelCloseConfirm], + ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], ["/ibc.core.channel.v1.MsgChannelOpenConfirm", MsgChannelOpenConfirm], - ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgRecvPacket", MsgRecvPacket], - ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], ["/ibc.core.channel.v1.MsgAcknowledgement", MsgAcknowledgement], + ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], + ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], ]; const registry = new Registry(types); const defaultFee = { @@ -36,16 +36,16 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee = defaultFee, memo = null }) => memo ? client.signAndBroadcast(address, msgs, fee, memo) : client.signAndBroadcast(address, msgs, fee), - msgChannelOpenInit: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: data }), + msgChannelOpenTry: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: data }), msgTimeout: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgTimeout", value: data }), - msgChannelOpenAck: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: data }), - msgChannelCloseInit: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: data }), + msgChannelOpenInit: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: data }), msgChannelCloseConfirm: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: data }), + msgChannelCloseInit: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: data }), msgChannelOpenConfirm: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: data }), - msgChannelOpenTry: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: data }), msgRecvPacket: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgRecvPacket", value: data }), - msgTimeoutOnClose: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: data }), msgAcknowledgement: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement", value: data }), + msgTimeoutOnClose: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: data }), + msgChannelOpenAck: (data) => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: data }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.ts index e0f43f7..4d9ab2a 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/index.ts @@ -4,29 +4,29 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; const types = [ - ["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], + ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgTimeout", MsgTimeout], - ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], - ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], + ["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], ["/ibc.core.channel.v1.MsgChannelCloseConfirm", MsgChannelCloseConfirm], + ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], ["/ibc.core.channel.v1.MsgChannelOpenConfirm", MsgChannelOpenConfirm], - ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgRecvPacket", MsgRecvPacket], - ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], ["/ibc.core.channel.v1.MsgAcknowledgement", MsgAcknowledgement], + ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], + ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], ]; @@ -54,16 +54,16 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee=defaultFee, memo=null }: SignAndBroadcastOptions) => memo?client.signAndBroadcast(address, msgs, fee,memo):client.signAndBroadcast(address, msgs, fee), - msgChannelOpenInit: (data: MsgChannelOpenInit): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: data }), + msgChannelOpenTry: (data: MsgChannelOpenTry): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: data }), msgTimeout: (data: MsgTimeout): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgTimeout", value: data }), - msgChannelOpenAck: (data: MsgChannelOpenAck): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: data }), - msgChannelCloseInit: (data: MsgChannelCloseInit): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: data }), + msgChannelOpenInit: (data: MsgChannelOpenInit): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: data }), msgChannelCloseConfirm: (data: MsgChannelCloseConfirm): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: data }), + msgChannelCloseInit: (data: MsgChannelCloseInit): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: data }), msgChannelOpenConfirm: (data: MsgChannelOpenConfirm): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: data }), - msgChannelOpenTry: (data: MsgChannelOpenTry): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: data }), msgRecvPacket: (data: MsgRecvPacket): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgRecvPacket", value: data }), - msgTimeoutOnClose: (data: MsgTimeoutOnClose): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: data }), msgAcknowledgement: (data: MsgAcknowledgement): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement", value: data }), + msgTimeoutOnClose: (data: MsgTimeoutOnClose): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: data }), + msgChannelOpenAck: (data: MsgChannelOpenAck): EncodeObject => ({ typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: data }), }; }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.d.ts index c934f0b..3ae2b35 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.d.ts @@ -816,7 +816,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title ibc/core/channel/v1/tx.proto + * @title ibc/core/channel/v1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.js index 3e37973..85db6e0 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.js @@ -162,7 +162,7 @@ export class HttpClient { } } /** - * @title ibc/core/channel/v1/tx.proto + * @title ibc/core/channel/v1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.ts index e5f2fa4..8853ad0 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/rest.ts @@ -1044,7 +1044,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title ibc/core/channel/v1/tx.proto + * @title ibc/core/channel/v1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.channel.v1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/index.js index 78d9f89..e107e15 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/index.js @@ -1,14 +1,14 @@ import { txClient, queryClient } from './module'; // @ts-ignore import { SpVuexError } from '@starport/vuex'; +import { GenesisMetadata } from "./module/types/ibc/core/client/v1/genesis"; +import { IdentifiedGenesisMetadata } from "./module/types/ibc/core/client/v1/genesis"; import { IdentifiedClientState } from "./module/types/ibc/core/client/v1/client"; import { ConsensusStateWithHeight } from "./module/types/ibc/core/client/v1/client"; import { ClientConsensusStates } from "./module/types/ibc/core/client/v1/client"; import { ClientUpdateProposal } from "./module/types/ibc/core/client/v1/client"; import { Height } from "./module/types/ibc/core/client/v1/client"; import { Params } from "./module/types/ibc/core/client/v1/client"; -import { GenesisMetadata } from "./module/types/ibc/core/client/v1/genesis"; -import { IdentifiedGenesisMetadata } from "./module/types/ibc/core/client/v1/genesis"; async function initTxClient(vuexGetters) { return await txClient(vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] @@ -37,14 +37,14 @@ const getDefaultState = () => { ConsensusStates: {}, ClientParams: {}, _Structure: { + GenesisMetadata: getStructure(GenesisMetadata.fromPartial({})), + IdentifiedGenesisMetadata: getStructure(IdentifiedGenesisMetadata.fromPartial({})), IdentifiedClientState: getStructure(IdentifiedClientState.fromPartial({})), ConsensusStateWithHeight: getStructure(ConsensusStateWithHeight.fromPartial({})), ClientConsensusStates: getStructure(ClientConsensusStates.fromPartial({})), ClientUpdateProposal: getStructure(ClientUpdateProposal.fromPartial({})), Height: getStructure(Height.fromPartial({})), Params: getStructure(Params.fromPartial({})), - GenesisMetadata: getStructure(GenesisMetadata.fromPartial({})), - IdentifiedGenesisMetadata: getStructure(IdentifiedGenesisMetadata.fromPartial({})), }, _Subscriptions: new Set(), }; @@ -237,19 +237,19 @@ export default { } } }, - async sendMsgUpdateClient({ rootGetters }, { value, fee, memo }) { + async sendMsgSubmitMisbehaviour({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgUpdateClient(value); + const msg = await (await initTxClient(rootGetters)).msgSubmitMisbehaviour(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgUpdateClient:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgUpdateClient:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Send', 'Could not broadcast Tx.'); } } }, @@ -269,19 +269,19 @@ export default { } } }, - async sendMsgSubmitMisbehaviour({ rootGetters }, { value, fee, memo }) { + async sendMsgUpdateClient({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgSubmitMisbehaviour(value); + const msg = await (await initTxClient(rootGetters)).msgUpdateClient(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgUpdateClient:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgUpdateClient:Send', 'Could not broadcast Tx.'); } } }, @@ -299,17 +299,17 @@ export default { } } }, - async MsgUpdateClient({ rootGetters }, { value }) { + async MsgSubmitMisbehaviour({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgUpdateClient(value); + const msg = await (await initTxClient(rootGetters)).msgSubmitMisbehaviour(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgUpdateClient:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgUpdateClient:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Create', 'Could not create message.'); } } }, @@ -327,17 +327,17 @@ export default { } } }, - async MsgSubmitMisbehaviour({ rootGetters }, { value }) { + async MsgUpdateClient({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgSubmitMisbehaviour(value); + const msg = await (await initTxClient(rootGetters)).msgUpdateClient(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgUpdateClient:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgUpdateClient:Create', 'Could not create message.'); } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/index.ts index 4a5aed5..c2e812d 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/index.ts @@ -2,14 +2,14 @@ import { txClient, queryClient } from './module' // @ts-ignore import { SpVuexError } from '@starport/vuex' +import { GenesisMetadata } from "./module/types/ibc/core/client/v1/genesis" +import { IdentifiedGenesisMetadata } from "./module/types/ibc/core/client/v1/genesis" import { IdentifiedClientState } from "./module/types/ibc/core/client/v1/client" import { ConsensusStateWithHeight } from "./module/types/ibc/core/client/v1/client" import { ClientConsensusStates } from "./module/types/ibc/core/client/v1/client" import { ClientUpdateProposal } from "./module/types/ibc/core/client/v1/client" import { Height } from "./module/types/ibc/core/client/v1/client" import { Params } from "./module/types/ibc/core/client/v1/client" -import { GenesisMetadata } from "./module/types/ibc/core/client/v1/genesis" -import { IdentifiedGenesisMetadata } from "./module/types/ibc/core/client/v1/genesis" async function initTxClient(vuexGetters) { @@ -44,14 +44,14 @@ const getDefaultState = () => { ClientParams: {}, _Structure: { + GenesisMetadata: getStructure(GenesisMetadata.fromPartial({})), + IdentifiedGenesisMetadata: getStructure(IdentifiedGenesisMetadata.fromPartial({})), IdentifiedClientState: getStructure(IdentifiedClientState.fromPartial({})), ConsensusStateWithHeight: getStructure(ConsensusStateWithHeight.fromPartial({})), ClientConsensusStates: getStructure(ClientConsensusStates.fromPartial({})), ClientUpdateProposal: getStructure(ClientUpdateProposal.fromPartial({})), Height: getStructure(Height.fromPartial({})), Params: getStructure(Params.fromPartial({})), - GenesisMetadata: getStructure(GenesisMetadata.fromPartial({})), - IdentifiedGenesisMetadata: getStructure(IdentifiedGenesisMetadata.fromPartial({})), }, _Subscriptions: new Set(), @@ -247,17 +247,17 @@ export default { } } }, - async sendMsgUpdateClient({ rootGetters }, { value, fee, memo }) { + async sendMsgSubmitMisbehaviour({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgUpdateClient(value) + const msg = await (await initTxClient(rootGetters)).msgSubmitMisbehaviour(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgUpdateClient:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgUpdateClient:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Send', 'Could not broadcast Tx.') } } }, @@ -275,17 +275,17 @@ export default { } } }, - async sendMsgSubmitMisbehaviour({ rootGetters }, { value, fee, memo }) { + async sendMsgUpdateClient({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgSubmitMisbehaviour(value) + const msg = await (await initTxClient(rootGetters)).msgUpdateClient(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgUpdateClient:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgUpdateClient:Send', 'Could not broadcast Tx.') } } }, @@ -302,15 +302,15 @@ export default { } } }, - async MsgUpdateClient({ rootGetters }, { value }) { + async MsgSubmitMisbehaviour({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgUpdateClient(value) + const msg = await (await initTxClient(rootGetters)).msgSubmitMisbehaviour(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgUpdateClient:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgUpdateClient:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Create', 'Could not create message.') } } }, @@ -326,15 +326,15 @@ export default { } } }, - async MsgSubmitMisbehaviour({ rootGetters }, { value }) { + async MsgUpdateClient({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgSubmitMisbehaviour(value) + const msg = await (await initTxClient(rootGetters)).msgUpdateClient(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgUpdateClient:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgSubmitMisbehaviour:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgUpdateClient:Create', 'Could not create message.') } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.d.ts index 82c9c1d..08d8db7 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.d.ts @@ -2,9 +2,9 @@ import { StdFee } from "@cosmjs/launchpad"; import { OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; +import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; interface TxClientOptions { addr: string; } @@ -15,9 +15,9 @@ interface SignAndBroadcastOptions { declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions) => Promise<import("@cosmjs/stargate").BroadcastTxResponse>; msgUpgradeClient: (data: MsgUpgradeClient) => EncodeObject; - msgUpdateClient: (data: MsgUpdateClient) => EncodeObject; - msgCreateClient: (data: MsgCreateClient) => EncodeObject; msgSubmitMisbehaviour: (data: MsgSubmitMisbehaviour) => EncodeObject; + msgCreateClient: (data: MsgCreateClient) => EncodeObject; + msgUpdateClient: (data: MsgUpdateClient) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.js index dd0c0a2..05546e3 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.js @@ -3,14 +3,14 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; +import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; const types = [ ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], - ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], - ["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour], + ["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], + ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], ]; const registry = new Registry(types); const defaultFee = { @@ -25,9 +25,9 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 return { signAndBroadcast: (msgs, { fee = defaultFee, memo = null }) => memo ? client.signAndBroadcast(address, msgs, fee, memo) : client.signAndBroadcast(address, msgs, fee), msgUpgradeClient: (data) => ({ typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", value: data }), - msgUpdateClient: (data) => ({ typeUrl: "/ibc.core.client.v1.MsgUpdateClient", value: data }), - msgCreateClient: (data) => ({ typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: data }), msgSubmitMisbehaviour: (data) => ({ typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: data }), + msgCreateClient: (data) => ({ typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: data }), + msgUpdateClient: (data) => ({ typeUrl: "/ibc.core.client.v1.MsgUpdateClient", value: data }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.ts index 3bf3b93..8efd8cb 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/index.ts @@ -5,16 +5,16 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; +import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; const types = [ ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], - ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], - ["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour], + ["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], + ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], ]; @@ -43,9 +43,9 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee=defaultFee, memo=null }: SignAndBroadcastOptions) => memo?client.signAndBroadcast(address, msgs, fee,memo):client.signAndBroadcast(address, msgs, fee), msgUpgradeClient: (data: MsgUpgradeClient): EncodeObject => ({ typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", value: data }), - msgUpdateClient: (data: MsgUpdateClient): EncodeObject => ({ typeUrl: "/ibc.core.client.v1.MsgUpdateClient", value: data }), - msgCreateClient: (data: MsgCreateClient): EncodeObject => ({ typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: data }), msgSubmitMisbehaviour: (data: MsgSubmitMisbehaviour): EncodeObject => ({ typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: data }), + msgCreateClient: (data: MsgCreateClient): EncodeObject => ({ typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: data }), + msgUpdateClient: (data: MsgUpdateClient): EncodeObject => ({ typeUrl: "/ibc.core.client.v1.MsgUpdateClient", value: data }), }; }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.d.ts index 645e206..0dab590 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.d.ts @@ -677,7 +677,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title ibc/core/client/v1/client.proto + * @title ibc/core/client/v1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.js index cabd4ff..0a2d822 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.js @@ -130,7 +130,7 @@ export class HttpClient { } } /** - * @title ibc/core/client/v1/client.proto + * @title ibc/core/client/v1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.ts index 6bb68f6..858db27 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/rest.ts @@ -857,7 +857,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title ibc/core/client/v1/client.proto + * @title ibc/core/client/v1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.client.v1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/index.js index e7c638b..0fc46d6 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/index.js @@ -195,19 +195,19 @@ export default { return {}; } }, - async sendMsgConnectionOpenAck({ rootGetters }, { value, fee, memo }) { + async sendMsgConnectionOpenInit({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenAck(value); + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenInit(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenAck:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgConnectionOpenInit:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgConnectionOpenAck:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgConnectionOpenInit:Send', 'Could not broadcast Tx.'); } } }, @@ -227,49 +227,49 @@ export default { } } }, - async sendMsgConnectionOpenInit({ rootGetters }, { value, fee, memo }) { + async sendMsgConnectionOpenTry({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenInit(value); + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenTry(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenInit:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgConnectionOpenTry:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgConnectionOpenInit:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgConnectionOpenTry:Send', 'Could not broadcast Tx.'); } } }, - async sendMsgConnectionOpenTry({ rootGetters }, { value, fee, memo }) { + async sendMsgConnectionOpenAck({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenTry(value); + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenAck(value); const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenTry:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgConnectionOpenAck:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgConnectionOpenTry:Send', 'Could not broadcast Tx.'); + throw new SpVuexError('TxClient:MsgConnectionOpenAck:Send', 'Could not broadcast Tx.'); } } }, - async MsgConnectionOpenAck({ rootGetters }, { value }) { + async MsgConnectionOpenInit({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenAck(value); + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenInit(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenAck:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgConnectionOpenInit:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgConnectionOpenAck:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgConnectionOpenInit:Create', 'Could not create message.'); } } }, @@ -287,31 +287,31 @@ export default { } } }, - async MsgConnectionOpenInit({ rootGetters }, { value }) { + async MsgConnectionOpenTry({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenInit(value); + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenTry(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenInit:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgConnectionOpenTry:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgConnectionOpenInit:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgConnectionOpenTry:Create', 'Could not create message.'); } } }, - async MsgConnectionOpenTry({ rootGetters }, { value }) { + async MsgConnectionOpenAck({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenTry(value); + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenAck(value); return msg; } catch (e) { if (e.toString() == 'wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenTry:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgConnectionOpenAck:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgConnectionOpenTry:Create', 'Could not create message.'); + throw new SpVuexError('TxClient:MsgConnectionOpenAck:Create', 'Could not create message.'); } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/index.ts index 010f1ac..fa1d1f9 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/index.ts @@ -207,17 +207,17 @@ export default { } }, - async sendMsgConnectionOpenAck({ rootGetters }, { value, fee, memo }) { + async sendMsgConnectionOpenInit({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenAck(value) + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenInit(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenAck:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgConnectionOpenInit:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgConnectionOpenAck:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgConnectionOpenInit:Send', 'Could not broadcast Tx.') } } }, @@ -235,44 +235,44 @@ export default { } } }, - async sendMsgConnectionOpenInit({ rootGetters }, { value, fee, memo }) { + async sendMsgConnectionOpenTry({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenInit(value) + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenTry(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenInit:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgConnectionOpenTry:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgConnectionOpenInit:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgConnectionOpenTry:Send', 'Could not broadcast Tx.') } } }, - async sendMsgConnectionOpenTry({ rootGetters }, { value, fee, memo }) { + async sendMsgConnectionOpenAck({ rootGetters }, { value, fee, memo }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenTry(value) + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenAck(value) const result = await (await initTxClient(rootGetters)).signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenTry:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgConnectionOpenAck:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgConnectionOpenTry:Send', 'Could not broadcast Tx.') + throw new SpVuexError('TxClient:MsgConnectionOpenAck:Send', 'Could not broadcast Tx.') } } }, - async MsgConnectionOpenAck({ rootGetters }, { value }) { + async MsgConnectionOpenInit({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenAck(value) + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenInit(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenAck:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgConnectionOpenInit:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgConnectionOpenAck:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgConnectionOpenInit:Create', 'Could not create message.') } } }, @@ -288,27 +288,27 @@ export default { } } }, - async MsgConnectionOpenInit({ rootGetters }, { value }) { + async MsgConnectionOpenTry({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenInit(value) + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenTry(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenInit:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgConnectionOpenTry:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgConnectionOpenInit:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgConnectionOpenTry:Create', 'Could not create message.') } } }, - async MsgConnectionOpenTry({ rootGetters }, { value }) { + async MsgConnectionOpenAck({ rootGetters }, { value }) { try { - const msg = await (await initTxClient(rootGetters)).msgConnectionOpenTry(value) + const msg = await (await initTxClient(rootGetters)).msgConnectionOpenAck(value) return msg } catch (e) { if (e.toString()=='wallet is required') { - throw new SpVuexError('TxClient:MsgConnectionOpenTry:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgConnectionOpenAck:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgConnectionOpenTry:Create', 'Could not create message.') + throw new SpVuexError('TxClient:MsgConnectionOpenAck:Create', 'Could not create message.') } } }, diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.d.ts index 02e4632..e2ebb3d 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.d.ts @@ -1,10 +1,10 @@ import { StdFee } from "@cosmjs/launchpad"; import { OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; interface TxClientOptions { addr: string; } @@ -14,10 +14,10 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions) => Promise<import("@cosmjs/stargate").BroadcastTxResponse>; - msgConnectionOpenAck: (data: MsgConnectionOpenAck) => EncodeObject; - msgConnectionOpenConfirm: (data: MsgConnectionOpenConfirm) => EncodeObject; msgConnectionOpenInit: (data: MsgConnectionOpenInit) => EncodeObject; + msgConnectionOpenConfirm: (data: MsgConnectionOpenConfirm) => EncodeObject; msgConnectionOpenTry: (data: MsgConnectionOpenTry) => EncodeObject; + msgConnectionOpenAck: (data: MsgConnectionOpenAck) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.js index df0d2bd..3620952 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.js @@ -2,15 +2,15 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; const types = [ - ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], - ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", MsgConnectionOpenConfirm], ["/ibc.core.connection.v1.MsgConnectionOpenInit", MsgConnectionOpenInit], + ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", MsgConnectionOpenConfirm], ["/ibc.core.connection.v1.MsgConnectionOpenTry", MsgConnectionOpenTry], + ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], ]; const registry = new Registry(types); const defaultFee = { @@ -24,10 +24,10 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee = defaultFee, memo = null }) => memo ? client.signAndBroadcast(address, msgs, fee, memo) : client.signAndBroadcast(address, msgs, fee), - msgConnectionOpenAck: (data) => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: data }), - msgConnectionOpenConfirm: (data) => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm", value: data }), msgConnectionOpenInit: (data) => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit", value: data }), + msgConnectionOpenConfirm: (data) => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm", value: data }), msgConnectionOpenTry: (data) => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry", value: data }), + msgConnectionOpenAck: (data) => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: data }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.ts index 5e3f462..f88d73f 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/index.ts @@ -4,17 +4,17 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; const types = [ - ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], - ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", MsgConnectionOpenConfirm], ["/ibc.core.connection.v1.MsgConnectionOpenInit", MsgConnectionOpenInit], + ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", MsgConnectionOpenConfirm], ["/ibc.core.connection.v1.MsgConnectionOpenTry", MsgConnectionOpenTry], + ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], ]; @@ -42,10 +42,10 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee=defaultFee, memo=null }: SignAndBroadcastOptions) => memo?client.signAndBroadcast(address, msgs, fee,memo):client.signAndBroadcast(address, msgs, fee), - msgConnectionOpenAck: (data: MsgConnectionOpenAck): EncodeObject => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: data }), - msgConnectionOpenConfirm: (data: MsgConnectionOpenConfirm): EncodeObject => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm", value: data }), msgConnectionOpenInit: (data: MsgConnectionOpenInit): EncodeObject => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit", value: data }), + msgConnectionOpenConfirm: (data: MsgConnectionOpenConfirm): EncodeObject => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm", value: data }), msgConnectionOpenTry: (data: MsgConnectionOpenTry): EncodeObject => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry", value: data }), + msgConnectionOpenAck: (data: MsgConnectionOpenAck): EncodeObject => ({ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: data }), }; }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.d.ts index cc7eeb8..2ce360b 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.d.ts @@ -610,7 +610,7 @@ export declare class HttpClient<SecurityDataType = unknown> { request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>; } /** - * @title ibc/core/connection/v1/tx.proto + * @title ibc/core/connection/v1/query.proto * @version version not set */ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.js index 4691d36..1d3a1e4 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.js @@ -147,7 +147,7 @@ export class HttpClient { } } /** - * @title ibc/core/connection/v1/tx.proto + * @title ibc/core/connection/v1/query.proto * @version version not set */ export class Api extends HttpClient { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.ts index d6b255b..cac87c5 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/rest.ts @@ -807,7 +807,7 @@ export class HttpClient<SecurityDataType = unknown> { } /** - * @title ibc/core/connection/v1/tx.proto + * @title ibc/core/connection/v1/query.proto * @version version not set */ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> { diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.d.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.d.ts index 73fd7c6..bb417df 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.d.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.d.ts @@ -59,7 +59,9 @@ export interface DescriptorProto { reservedName: string[]; } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -122,6 +124,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export declare enum FieldDescriptorProto_Type { /** @@ -344,8 +370,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -423,7 +449,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -671,7 +697,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.js b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.js index 2b3d027..2527258 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.js +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.js @@ -1256,6 +1256,7 @@ const baseFieldDescriptorProto = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { encode(message, writer = Writer.create()) { @@ -1289,6 +1290,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, decode(input, length) { @@ -1328,6 +1332,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -1397,6 +1404,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } + else { + message.proto3Optional = false; + } return message; }, toJSON(message) { @@ -1417,6 +1430,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial(object) { @@ -1481,6 +1496,12 @@ export const FieldDescriptorProto = { else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } + else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.ts b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.ts index 15632c1..8fef522 100644 --- a/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.ts +++ b/vue/src/store/generated/cosmos/cosmos-sdk/ibc.core.connection.v1/module/types/google/protobuf/descriptor.ts @@ -66,7 +66,9 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ start: number; + /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } @@ -132,6 +134,30 @@ export interface FieldDescriptorProto { */ jsonName: string; options: FieldOptions | undefined; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + */ + proto3Optional: boolean; } export enum FieldDescriptorProto_Type { @@ -504,8 +530,8 @@ export interface FileOptions { phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be used - * for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. */ phpMetadataNamespace: string; /** @@ -618,7 +644,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementions still need to work as + * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -969,7 +995,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendent. For example, a "group" defines + * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -2113,6 +2139,7 @@ const baseFieldDescriptorProto: object = { defaultValue: "", oneofIndex: 0, jsonName: "", + proto3Optional: false, }; export const FieldDescriptorProto = { @@ -2150,6 +2177,9 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } + if (message.proto3Optional === true) { + writer.uint32(136).bool(message.proto3Optional); + } return writer; }, @@ -2190,6 +2220,9 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -2250,6 +2283,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = Boolean(object.proto3Optional); + } else { + message.proto3Optional = false; + } return message; }, @@ -2271,6 +2309,8 @@ export const FieldDescriptorProto = { (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && + (obj.proto3Optional = message.proto3Optional); return obj; }, @@ -2326,6 +2366,11 @@ export const FieldDescriptorProto = { } else { message.options = undefined; } + if (object.proto3Optional !== undefined && object.proto3Optional !== null) { + message.proto3Optional = object.proto3Optional; + } else { + message.proto3Optional = false; + } return message; }, }; diff --git a/vue/src/store/generated/index.d.ts b/vue/src/store/generated/index.d.ts index 32e91d4..caf577f 100644 --- a/vue/src/store/generated/index.d.ts +++ b/vue/src/store/generated/index.d.ts @@ -1,17 +1,17 @@ declare const _default: { - CosmosCosmosSdkCosmosStakingV1Beta1: (store: any) => void; - CosmosCosmosSdkCosmosBaseAbciV1Beta1: (store: any) => void; - CosmosCosmosSdkCosmosCrisisV1Beta1: (store: any) => void; CosmosCosmosSdkIbcApplicationsTransferV1: (store: any) => void; CosmosCosmosSdkCosmosBankV1Beta1: (store: any) => void; - CosmosCosmosSdkIbcCoreClientV1: (store: any) => void; - CosmosCosmosSdkCosmosGovV1Beta1: (store: any) => void; + CosmosCosmosSdkCosmosCrisisV1Beta1: (store: any) => void; + CosmosCosmosSdkCosmosStakingV1Beta1: (store: any) => void; CosmosCosmosSdkCosmosSlashingV1Beta1: (store: any) => void; - CosmosCosmosSdkIbcCoreChannelV1: (store: any) => void; + CosmosCosmosSdkCosmosBaseAbciV1Beta1: (store: any) => void; CosmosCosmosSdkIbcCoreConnectionV1: (store: any) => void; CosmosCosmosSdkCosmosVestingV1Beta1: (store: any) => void; CosmosCosmosSdkCosmosEvidenceV1Beta1: (store: any) => void; + CosmosCosmosSdkIbcCoreChannelV1: (store: any) => void; + CosmosCosmosSdkCosmosGovV1Beta1: (store: any) => void; CosmosCosmosSdkCosmosBaseV1Beta1: (store: any) => void; CosmosCosmosSdkCosmosDistributionV1Beta1: (store: any) => void; + CosmosCosmosSdkIbcCoreClientV1: (store: any) => void; }; export default _default; diff --git a/vue/src/store/generated/index.js b/vue/src/store/generated/index.js index 9c3a51d..cf250c8 100644 --- a/vue/src/store/generated/index.js +++ b/vue/src/store/generated/index.js @@ -1,33 +1,33 @@ // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. -import CosmosCosmosSdkCosmosStakingV1Beta1 from './cosmos/cosmos-sdk/cosmos.staking.v1beta1'; -import CosmosCosmosSdkCosmosBaseAbciV1Beta1 from './cosmos/cosmos-sdk/cosmos.base.abci.v1beta1'; -import CosmosCosmosSdkCosmosCrisisV1Beta1 from './cosmos/cosmos-sdk/cosmos.crisis.v1beta1'; import CosmosCosmosSdkIbcApplicationsTransferV1 from './cosmos/cosmos-sdk/ibc.applications.transfer.v1'; import CosmosCosmosSdkCosmosBankV1Beta1 from './cosmos/cosmos-sdk/cosmos.bank.v1beta1'; -import CosmosCosmosSdkIbcCoreClientV1 from './cosmos/cosmos-sdk/ibc.core.client.v1'; -import CosmosCosmosSdkCosmosGovV1Beta1 from './cosmos/cosmos-sdk/cosmos.gov.v1beta1'; +import CosmosCosmosSdkCosmosCrisisV1Beta1 from './cosmos/cosmos-sdk/cosmos.crisis.v1beta1'; +import CosmosCosmosSdkCosmosStakingV1Beta1 from './cosmos/cosmos-sdk/cosmos.staking.v1beta1'; import CosmosCosmosSdkCosmosSlashingV1Beta1 from './cosmos/cosmos-sdk/cosmos.slashing.v1beta1'; -import CosmosCosmosSdkIbcCoreChannelV1 from './cosmos/cosmos-sdk/ibc.core.channel.v1'; +import CosmosCosmosSdkCosmosBaseAbciV1Beta1 from './cosmos/cosmos-sdk/cosmos.base.abci.v1beta1'; import CosmosCosmosSdkIbcCoreConnectionV1 from './cosmos/cosmos-sdk/ibc.core.connection.v1'; import CosmosCosmosSdkCosmosVestingV1Beta1 from './cosmos/cosmos-sdk/cosmos.vesting.v1beta1'; import CosmosCosmosSdkCosmosEvidenceV1Beta1 from './cosmos/cosmos-sdk/cosmos.evidence.v1beta1'; +import CosmosCosmosSdkIbcCoreChannelV1 from './cosmos/cosmos-sdk/ibc.core.channel.v1'; +import CosmosCosmosSdkCosmosGovV1Beta1 from './cosmos/cosmos-sdk/cosmos.gov.v1beta1'; import CosmosCosmosSdkCosmosBaseV1Beta1 from './cosmos/cosmos-sdk/cosmos.base.v1beta1'; import CosmosCosmosSdkCosmosDistributionV1Beta1 from './cosmos/cosmos-sdk/cosmos.distribution.v1beta1'; +import CosmosCosmosSdkIbcCoreClientV1 from './cosmos/cosmos-sdk/ibc.core.client.v1'; export default { - CosmosCosmosSdkCosmosStakingV1Beta1: load(CosmosCosmosSdkCosmosStakingV1Beta1, 'cosmos.staking.v1beta1'), - CosmosCosmosSdkCosmosBaseAbciV1Beta1: load(CosmosCosmosSdkCosmosBaseAbciV1Beta1, 'cosmos.base.abci.v1beta1'), - CosmosCosmosSdkCosmosCrisisV1Beta1: load(CosmosCosmosSdkCosmosCrisisV1Beta1, 'cosmos.crisis.v1beta1'), CosmosCosmosSdkIbcApplicationsTransferV1: load(CosmosCosmosSdkIbcApplicationsTransferV1, 'ibc.applications.transfer.v1'), CosmosCosmosSdkCosmosBankV1Beta1: load(CosmosCosmosSdkCosmosBankV1Beta1, 'cosmos.bank.v1beta1'), - CosmosCosmosSdkIbcCoreClientV1: load(CosmosCosmosSdkIbcCoreClientV1, 'ibc.core.client.v1'), - CosmosCosmosSdkCosmosGovV1Beta1: load(CosmosCosmosSdkCosmosGovV1Beta1, 'cosmos.gov.v1beta1'), + CosmosCosmosSdkCosmosCrisisV1Beta1: load(CosmosCosmosSdkCosmosCrisisV1Beta1, 'cosmos.crisis.v1beta1'), + CosmosCosmosSdkCosmosStakingV1Beta1: load(CosmosCosmosSdkCosmosStakingV1Beta1, 'cosmos.staking.v1beta1'), CosmosCosmosSdkCosmosSlashingV1Beta1: load(CosmosCosmosSdkCosmosSlashingV1Beta1, 'cosmos.slashing.v1beta1'), - CosmosCosmosSdkIbcCoreChannelV1: load(CosmosCosmosSdkIbcCoreChannelV1, 'ibc.core.channel.v1'), + CosmosCosmosSdkCosmosBaseAbciV1Beta1: load(CosmosCosmosSdkCosmosBaseAbciV1Beta1, 'cosmos.base.abci.v1beta1'), CosmosCosmosSdkIbcCoreConnectionV1: load(CosmosCosmosSdkIbcCoreConnectionV1, 'ibc.core.connection.v1'), CosmosCosmosSdkCosmosVestingV1Beta1: load(CosmosCosmosSdkCosmosVestingV1Beta1, 'cosmos.vesting.v1beta1'), CosmosCosmosSdkCosmosEvidenceV1Beta1: load(CosmosCosmosSdkCosmosEvidenceV1Beta1, 'cosmos.evidence.v1beta1'), + CosmosCosmosSdkIbcCoreChannelV1: load(CosmosCosmosSdkIbcCoreChannelV1, 'ibc.core.channel.v1'), + CosmosCosmosSdkCosmosGovV1Beta1: load(CosmosCosmosSdkCosmosGovV1Beta1, 'cosmos.gov.v1beta1'), CosmosCosmosSdkCosmosBaseV1Beta1: load(CosmosCosmosSdkCosmosBaseV1Beta1, 'cosmos.base.v1beta1'), CosmosCosmosSdkCosmosDistributionV1Beta1: load(CosmosCosmosSdkCosmosDistributionV1Beta1, 'cosmos.distribution.v1beta1'), + CosmosCosmosSdkIbcCoreClientV1: load(CosmosCosmosSdkIbcCoreClientV1, 'ibc.core.client.v1'), }; function load(mod, fullns) { return function init(store) { diff --git a/vue/src/store/generated/index.ts b/vue/src/store/generated/index.ts index 0bba09d..714f735 100644 --- a/vue/src/store/generated/index.ts +++ b/vue/src/store/generated/index.ts @@ -1,36 +1,36 @@ // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. -import CosmosCosmosSdkCosmosStakingV1Beta1 from './cosmos/cosmos-sdk/cosmos.staking.v1beta1' -import CosmosCosmosSdkCosmosBaseAbciV1Beta1 from './cosmos/cosmos-sdk/cosmos.base.abci.v1beta1' -import CosmosCosmosSdkCosmosCrisisV1Beta1 from './cosmos/cosmos-sdk/cosmos.crisis.v1beta1' import CosmosCosmosSdkIbcApplicationsTransferV1 from './cosmos/cosmos-sdk/ibc.applications.transfer.v1' import CosmosCosmosSdkCosmosBankV1Beta1 from './cosmos/cosmos-sdk/cosmos.bank.v1beta1' -import CosmosCosmosSdkIbcCoreClientV1 from './cosmos/cosmos-sdk/ibc.core.client.v1' -import CosmosCosmosSdkCosmosGovV1Beta1 from './cosmos/cosmos-sdk/cosmos.gov.v1beta1' +import CosmosCosmosSdkCosmosCrisisV1Beta1 from './cosmos/cosmos-sdk/cosmos.crisis.v1beta1' +import CosmosCosmosSdkCosmosStakingV1Beta1 from './cosmos/cosmos-sdk/cosmos.staking.v1beta1' import CosmosCosmosSdkCosmosSlashingV1Beta1 from './cosmos/cosmos-sdk/cosmos.slashing.v1beta1' -import CosmosCosmosSdkIbcCoreChannelV1 from './cosmos/cosmos-sdk/ibc.core.channel.v1' +import CosmosCosmosSdkCosmosBaseAbciV1Beta1 from './cosmos/cosmos-sdk/cosmos.base.abci.v1beta1' import CosmosCosmosSdkIbcCoreConnectionV1 from './cosmos/cosmos-sdk/ibc.core.connection.v1' import CosmosCosmosSdkCosmosVestingV1Beta1 from './cosmos/cosmos-sdk/cosmos.vesting.v1beta1' import CosmosCosmosSdkCosmosEvidenceV1Beta1 from './cosmos/cosmos-sdk/cosmos.evidence.v1beta1' +import CosmosCosmosSdkIbcCoreChannelV1 from './cosmos/cosmos-sdk/ibc.core.channel.v1' +import CosmosCosmosSdkCosmosGovV1Beta1 from './cosmos/cosmos-sdk/cosmos.gov.v1beta1' import CosmosCosmosSdkCosmosBaseV1Beta1 from './cosmos/cosmos-sdk/cosmos.base.v1beta1' import CosmosCosmosSdkCosmosDistributionV1Beta1 from './cosmos/cosmos-sdk/cosmos.distribution.v1beta1' +import CosmosCosmosSdkIbcCoreClientV1 from './cosmos/cosmos-sdk/ibc.core.client.v1' export default { - CosmosCosmosSdkCosmosStakingV1Beta1: load(CosmosCosmosSdkCosmosStakingV1Beta1, 'cosmos.staking.v1beta1'), - CosmosCosmosSdkCosmosBaseAbciV1Beta1: load(CosmosCosmosSdkCosmosBaseAbciV1Beta1, 'cosmos.base.abci.v1beta1'), - CosmosCosmosSdkCosmosCrisisV1Beta1: load(CosmosCosmosSdkCosmosCrisisV1Beta1, 'cosmos.crisis.v1beta1'), CosmosCosmosSdkIbcApplicationsTransferV1: load(CosmosCosmosSdkIbcApplicationsTransferV1, 'ibc.applications.transfer.v1'), CosmosCosmosSdkCosmosBankV1Beta1: load(CosmosCosmosSdkCosmosBankV1Beta1, 'cosmos.bank.v1beta1'), - CosmosCosmosSdkIbcCoreClientV1: load(CosmosCosmosSdkIbcCoreClientV1, 'ibc.core.client.v1'), - CosmosCosmosSdkCosmosGovV1Beta1: load(CosmosCosmosSdkCosmosGovV1Beta1, 'cosmos.gov.v1beta1'), + CosmosCosmosSdkCosmosCrisisV1Beta1: load(CosmosCosmosSdkCosmosCrisisV1Beta1, 'cosmos.crisis.v1beta1'), + CosmosCosmosSdkCosmosStakingV1Beta1: load(CosmosCosmosSdkCosmosStakingV1Beta1, 'cosmos.staking.v1beta1'), CosmosCosmosSdkCosmosSlashingV1Beta1: load(CosmosCosmosSdkCosmosSlashingV1Beta1, 'cosmos.slashing.v1beta1'), - CosmosCosmosSdkIbcCoreChannelV1: load(CosmosCosmosSdkIbcCoreChannelV1, 'ibc.core.channel.v1'), + CosmosCosmosSdkCosmosBaseAbciV1Beta1: load(CosmosCosmosSdkCosmosBaseAbciV1Beta1, 'cosmos.base.abci.v1beta1'), CosmosCosmosSdkIbcCoreConnectionV1: load(CosmosCosmosSdkIbcCoreConnectionV1, 'ibc.core.connection.v1'), CosmosCosmosSdkCosmosVestingV1Beta1: load(CosmosCosmosSdkCosmosVestingV1Beta1, 'cosmos.vesting.v1beta1'), CosmosCosmosSdkCosmosEvidenceV1Beta1: load(CosmosCosmosSdkCosmosEvidenceV1Beta1, 'cosmos.evidence.v1beta1'), + CosmosCosmosSdkIbcCoreChannelV1: load(CosmosCosmosSdkIbcCoreChannelV1, 'ibc.core.channel.v1'), + CosmosCosmosSdkCosmosGovV1Beta1: load(CosmosCosmosSdkCosmosGovV1Beta1, 'cosmos.gov.v1beta1'), CosmosCosmosSdkCosmosBaseV1Beta1: load(CosmosCosmosSdkCosmosBaseV1Beta1, 'cosmos.base.v1beta1'), CosmosCosmosSdkCosmosDistributionV1Beta1: load(CosmosCosmosSdkCosmosDistributionV1Beta1, 'cosmos.distribution.v1beta1'), + CosmosCosmosSdkIbcCoreClientV1: load(CosmosCosmosSdkIbcCoreClientV1, 'ibc.core.client.v1'), } -- GitLab